Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys whitespace diffs [and comments]



details:   https://anonhg.NetBSD.org/src/rev/bdf488ca1e7e
branches:  trunk
changeset: 772881:bdf488ca1e7e
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jan 19 21:25:13 2012 +0000

description:
whitespace diffs [and comments]

diffstat:

 sys/sys/exec_elf.h |  236 ++++++++++++++++++++++++++--------------------------
 1 files changed, 118 insertions(+), 118 deletions(-)

diffs (truncated from 524 to 300 lines):

diff -r 3e19680c75a8 -r bdf488ca1e7e sys/sys/exec_elf.h
--- a/sys/sys/exec_elf.h        Thu Jan 19 20:55:38 2012 +0000
+++ b/sys/sys/exec_elf.h        Thu Jan 19 21:25:13 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_elf.h,v 1.118 2011/11/25 14:34:50 joerg Exp $     */
+/*     $NetBSD: exec_elf.h,v 1.119 2012/01/19 21:25:13 christos Exp $  */
 
 /*-
  * Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -52,42 +52,42 @@
 #include <machine/elf_machdep.h>
 #endif
 
-typedef        uint8_t         Elf_Byte;
+typedef uint8_t                Elf_Byte;
 
-typedef        uint32_t        Elf32_Addr;
+typedef uint32_t       Elf32_Addr;
 #define        ELF32_FSZ_ADDR  4
-typedef        uint32_t        Elf32_Off;
-typedef        int32_t         Elf32_SOff;
+typedef uint32_t       Elf32_Off;
+typedef int32_t                Elf32_SOff;
 #define        ELF32_FSZ_OFF   4
-typedef        int32_t         Elf32_Sword;
-#define        ELF32_FSZ_SWORD 4
-typedef        uint32_t        Elf32_Word;
+typedef int32_t                Elf32_Sword;
+#define        ELF32_FSZ_SWORD 4
+typedef uint32_t       Elf32_Word;
 #define        ELF32_FSZ_WORD  4
-typedef        uint16_t        Elf32_Half;
+typedef uint16_t       Elf32_Half;
 #define        ELF32_FSZ_HALF  2
-typedef        uint64_t        Elf32_Lword;
-#define        ELF32_FSZ_LWORD 8
+typedef uint64_t       Elf32_Lword;
+#define        ELF32_FSZ_LWORD 8
 
-typedef        uint64_t        Elf64_Addr;
+typedef uint64_t       Elf64_Addr;
 #define        ELF64_FSZ_ADDR  8
-typedef        uint64_t        Elf64_Off;
-typedef        int64_t         Elf64_SOff;
+typedef uint64_t       Elf64_Off;
+typedef int64_t                Elf64_SOff;
 #define        ELF64_FSZ_OFF   8
-typedef        int32_t         Elf64_Shalf;
-#define        ELF64_FSZ_SHALF 4
+typedef int32_t                Elf64_Shalf;
+#define        ELF64_FSZ_SHALF 4
 
-typedef        int32_t         Elf64_Sword;
-#define        ELF64_FSZ_SWORD 4
-typedef        uint32_t        Elf64_Word;
+typedef int32_t                Elf64_Sword;
+#define        ELF64_FSZ_SWORD 4
+typedef uint32_t       Elf64_Word;
 #define        ELF64_FSZ_WORD  4
 
-typedef        int64_t         Elf64_Sxword;
+typedef int64_t                Elf64_Sxword;
 #define        ELF64_FSZ_SXWORD 8
-typedef        uint64_t        Elf64_Xword;
-#define        ELF64_FSZ_XWORD 8
-typedef        uint64_t        Elf64_Lword;
-#define        ELF64_FSZ_LWORD 8
-typedef        uint16_t        Elf64_Half;
+typedef uint64_t       Elf64_Xword;
+#define        ELF64_FSZ_XWORD 8
+typedef uint64_t       Elf64_Lword;
+#define        ELF64_FSZ_LWORD 8
+typedef uint16_t       Elf64_Half;
 #define        ELF64_FSZ_HALF 2
 
 /*
@@ -104,12 +104,12 @@
        Elf32_Off       e_phoff;                /* Program hdr offset */
        Elf32_Off       e_shoff;                /* Section hdr offset */
        Elf32_Word      e_flags;                /* Processor flags */
-       Elf32_Half      e_ehsize;               /* sizeof ehdr */
-       Elf32_Half      e_phentsize;            /* Program header entry size */
-       Elf32_Half      e_phnum;                /* Number of program headers */
-       Elf32_Half      e_shentsize;            /* Section header entry size */
-       Elf32_Half      e_shnum;                /* Number of section headers */
-       Elf32_Half      e_shstrndx;             /* String table index */
+       Elf32_Half      e_ehsize;               /* sizeof ehdr */
+       Elf32_Half      e_phentsize;            /* Program header entry size */
+       Elf32_Half      e_phnum;                /* Number of program headers */
+       Elf32_Half      e_shentsize;            /* Section header entry size */
+       Elf32_Half      e_shnum;                /* Number of section headers */
+       Elf32_Half      e_shstrndx;             /* String table index */
 } Elf32_Ehdr;
 
 typedef struct {
@@ -131,9 +131,9 @@
 
 /* e_ident offsets */
 #define        EI_MAG0         0       /* '\177' */
-#define        EI_MAG1         1       /* 'E'    */
-#define        EI_MAG2         2       /* 'L'    */
-#define        EI_MAG3         3       /* 'F'    */
+#define        EI_MAG1         1       /* 'E'    */
+#define        EI_MAG2         2       /* 'L'    */
+#define        EI_MAG3         3       /* 'F'    */
 #define        EI_CLASS        4       /* File class */
 #define        EI_DATA         5       /* Data encoding */
 #define        EI_VERSION      6       /* File version */
@@ -343,23 +343,23 @@
 #define        PT_TLS          7               /* TLS initialisation image */
 #define        PT_NUM          8
 
-#define        PT_LOOS         0x60000000      /* OS-specific range */
+#define        PT_LOOS         0x60000000      /* OS-specific range */
 
 /* GNU-specific */
-#define        PT_GNU_EH_FRAME 0x6474e550      /* EH frame segment */
+#define        PT_GNU_EH_FRAME 0x6474e550      /* EH frame segment */
 #define        PT_GNU_STACK    0x6474e551      /* Indicate executable stack */
-#define        PT_GNU_RELRO    0x6474e552      /* Make read-only after relocation */
+#define        PT_GNU_RELRO    0x6474e552      /* Make read-only after relocation */
 
-#define        PT_HIOS         0x6fffffff
+#define        PT_HIOS         0x6fffffff
 #define        PT_LOPROC       0x70000000      /* Processor-specific range */
 #define        PT_HIPROC       0x7fffffff
 
-#define        PT_MIPS_REGINFO 0x70000000
+#define        PT_MIPS_REGINFO 0x70000000
 
 /* p_flags */
-#define        PF_R            0x4     /* Segment is readable */
-#define        PF_W            0x2     /* Segment is writable */
-#define        PF_X            0x1     /* Segment is executable */
+#define        PF_R            0x4             /* Segment is readable */
+#define        PF_W            0x2             /* Segment is writable */
+#define        PF_X            0x1             /* Segment is executable */
 
 #define        PF_MASKOS       0x0ff00000      /* Operating system specific values */
 #define        PF_MASKPROC     0xf0000000      /* Processor-specific values */
@@ -420,11 +420,11 @@
 #define        SHT_GNU_HASH    0x6ffffff6      /* GNU style symbol hash table */
 #define        SHT_SUNW_move   0x6ffffffa
 #define        SHT_SUNW_syminfo 0x6ffffffc
-#define        SHT_SUNW_verdef 0x6ffffffd      /* Versions defined by file */
+#define        SHT_SUNW_verdef 0x6ffffffd      /* Versions defined by file */
 #define        SHT_GNU_verdef  SHT_SUNW_verdef
 #define        SHT_SUNW_verneed 0x6ffffffe     /* Versions needed by file */
-#define        SHT_GNU_verneed SHT_SUNW_verneed
-#define        SHT_SUNW_versym 0x6fffffff      /* Symbol versions */
+#define        SHT_GNU_verneed SHT_SUNW_verneed
+#define        SHT_SUNW_versym 0x6fffffff      /* Symbol versions */
 #define        SHT_GNU_versym  SHT_SUNW_versym
 #define        SHT_HIOS        0x6fffffff
 #define        SHT_LOPROC      0x70000000      /* Processor-specific range */
@@ -547,7 +547,7 @@
 /* r_info utility macros */
 #define        ELF32_R_SYM(info)       ((info) >> 8)
 #define        ELF32_R_TYPE(info)      ((info) & 0xff)
-#define        ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type))
+#define        ELF32_R_INFO(sym, type) (((sym) << 8) + (unsigned char)(type))
 
 typedef struct {
        Elf64_Addr      r_offset;       /* where to do it */
@@ -578,7 +578,7 @@
 
 #define        ELF32_M_SYM(info)       ((info) >> 8)
 #define        ELF32_M_SIZE(info)      ((info) & 0xff)
-#define        ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char)(size))
+#define        ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char)(size))
 
 typedef struct {
        Elf64_Lword     m_value;        /* symbol value */
@@ -590,24 +590,24 @@
 
 #define        ELF64_M_SYM(info)       ((info) >> 8)
 #define        ELF64_M_SIZE(info)      ((info) & 0xff)
-#define        ELF64_M_INFO(sym, size) (((sym) << 8) + (unsigned char)(size))
+#define        ELF64_M_INFO(sym, size) (((sym) << 8) + (unsigned char)(size))
 
 /*
  * Hardware/software capabilities entry
  */
 typedef struct {
-       Elf32_Word      c_tag;          /* entry tag value */
+       Elf32_Word              c_tag;  /* entry tag value */
        union {
-           Elf32_Addr  c_ptr;
-           Elf32_Word  c_val;
+               Elf32_Addr      c_ptr;
+               Elf32_Word      c_val;
        } c_un;
 } Elf32_Cap;
 
 typedef struct {
-       Elf64_Xword     c_tag;          /* entry tag value */
+       Elf64_Xword             c_tag;  /* entry tag value */
        union {
-           Elf64_Addr  c_ptr;
-           Elf64_Xword c_val;
+               Elf64_Addr      c_ptr;
+               Elf64_Xword     c_val;
        } c_un;
 } Elf64_Cap;
 
@@ -615,18 +615,18 @@
  * Dynamic Section structure array
  */
 typedef struct {
-       Elf32_Word      d_tag;          /* entry tag value */
+       Elf32_Word              d_tag;  /* entry tag value */
        union {
-           Elf32_Addr  d_ptr;
-           Elf32_Word  d_val;
+               Elf32_Addr      d_ptr;
+               Elf32_Word      d_val;
        } d_un;
 } Elf32_Dyn;
 
 typedef struct {
-       Elf64_Xword     d_tag;          /* entry tag value */
+       Elf64_Xword             d_tag;  /* entry tag value */
        union {
-           Elf64_Addr  d_ptr;
-           Elf64_Xword d_val;
+               Elf64_Addr      d_ptr;
+               Elf64_Xword     d_val;
        } d_un;
 } Elf64_Dyn;
 
@@ -651,15 +651,15 @@
 #define        DT_REL          17      /* Address of Rel relocation table */
 #define        DT_RELSZ        18      /* Size, in bytes, of DT_REL table */
 #define        DT_RELENT       19      /* Size, in bytes, of one DT_REL entry */
-#define        DT_PLTREL       20      /* Type of PLT relocation entries */
+#define        DT_PLTREL       20      /* Type of PLT relocation entries */
 #define        DT_DEBUG        21      /* Used for debugging; unspecified */
 #define        DT_TEXTREL      22      /* Relocations might modify non-writable seg */
 #define        DT_JMPREL       23      /* Address of relocations associated with PLT */
 #define        DT_BIND_NOW     24      /* Process all relocations at load-time */
 #define        DT_INIT_ARRAY   25      /* Address of initialization function array */
 #define        DT_FINI_ARRAY   26      /* Size, in bytes, of DT_INIT_ARRAY array */
-#define        DT_INIT_ARRAYSZ 27      /* Address of termination function array */
-#define        DT_FINI_ARRAYSZ 28      /* Size, in bytes, of DT_FINI_ARRAY array*/
+#define        DT_INIT_ARRAYSZ 27      /* Address of termination function array */
+#define        DT_FINI_ARRAYSZ 28      /* Size, in bytes, of DT_FINI_ARRAY array*/
 #define        DT_NUM          29
 
 #define        DT_LOOS         0x60000000      /* Operating system specific range */
@@ -688,8 +688,8 @@
 } Aux32Info;
 
 typedef struct {
-       Elf64_Word      a_type;                         /* 32-bit id */
-       Elf64_Xword     a_v;                            /* 64-bit id */
+       Elf64_Word      a_type;         /* 32-bit id */
+       Elf64_Xword     a_v;            /* 64-bit id */
 } Aux64Info;
 
 /* a_type */
@@ -722,15 +722,15 @@
 #define        AT_SUN_LPGSIZE  2007    /* large pagesize */
 
        /* Other information */
-#define        AT_SUN_PLATFORM 2008    /* sysinfo(SI_PLATFORM) */
+#define        AT_SUN_PLATFORM 2008    /* sysinfo(SI_PLATFORM) */
 #define        AT_SUN_HWCAP    2009    /* process hardware capabilities */
 #define        AT_SUN_IFLUSH   2010    /* do we need to flush the instruction cache? */
 #define        AT_SUN_CPU      2011    /* CPU name */
        /* ibcs2 emulation band aid */
 #define        AT_SUN_EMUL_ENTRY 2012  /* coff entry point */
-#define        AT_SUN_EMUL_EXECFD 2013 /* coff file descriptor */
+#define        AT_SUN_EMUL_EXECFD 2013 /* coff file descriptor */
        /* Executable's fully resolved name */
-#define        AT_SUN_EXECNAME 2014
+#define        AT_SUN_EXECNAME 2014
 
 /*
  * Note Headers
@@ -800,7 +800,7 @@
  * name: SuSE\0\0\0\0
  * namesz: 8
  * desc: 
- *      word[0] = VVTTMMmm
+ *     word[0] = VVTTMMmm
  *
  *     V = version of following data
  *     T = product type: [box, sles, nld, whatever]
@@ -819,7 +819,7 @@
  * name: NetBSD\0\0
  * namesz: 8
  * desc: 
- *      word[0]: MMmmrrpp00
+ *     word[0]: MMmmrrpp00
  *
  *     M = major version
  *     m = minor version
@@ -839,7 +839,7 @@
  * name: ???
  * namesz: ???



Home | Main Index | Thread Index | Old Index