1: /*-
   2:  * Copyright (c) 1991 The Regents of the University of California.
   3:  * All rights reserved.
   4:  *
   5:  * Redistribution and use in source and binary forms, with or without
   6:  * modification, are permitted provided that the following conditions
   7:  * are met:
   8:  * 1. Redistributions of source code must retain the above copyright
   9:  *    notice, this list of conditions and the following disclaimer.
  10:  * 2. Redistributions in binary form must reproduce the above copyright
  11:  *    notice, this list of conditions and the following disclaimer in the
  12:  *    documentation and/or other materials provided with the distribution.
  13:  * 3. All advertising materials mentioning features or use of this software
  14:  *    must display the following acknowledgement:
  15:  *	This product includes software developed by the University of
  16:  *	California, Berkeley and its contributors.
  17:  * 4. Neither the name of the University nor the names of its contributors
  18:  *    may be used to endorse or promote products derived from this software
  19:  *    without specific prior written permission.
  20:  *
  21:  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  22:  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  23:  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  24:  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  25:  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  26:  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  27:  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  28:  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  29:  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  30:  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  31:  * SUCH DAMAGE.
  32:  *
  33:  *	@(#)nlist.h	5.6.1 (2.11BSD GTE) 1/15/94
  34:  */
  35: 
  36: #ifndef _NLIST_H_
  37: #define _NLIST_H_
  38: #include <sys/types.h>
  39: 
  40: /*
  41:  * Symbol table entry format.  The #ifdef's are so that programs including
  42:  * nlist.h can initialize nlist structures statically.
  43:  */
  44: 
  45: struct  oldnlist {      /* XXX - compatibility/conversion aid */
  46:     char    n_name[8];  /* symbol name */
  47:     int n_type;     /* type flag */
  48: unsigned int    n_value;    /* value */
  49: };
  50: 
  51: struct  nlist {
  52: #ifdef  _AOUT_INCLUDE_
  53:     union {
  54:         char *n_name;   /* In memory address of symbol name */
  55:         off_t n_strx;   /* String table offset (file) */
  56:     } n_un;
  57: #else
  58:     char    *n_name;    /* symbol name (in memory) */
  59:     char    *n_filler;  /* need to pad out to the union's size */
  60: #endif
  61:     u_char  n_type;     /* Type of symbol - see below */
  62:     char    n_ovly;     /* Overlay number */
  63:     u_int   n_value;    /* Symbol value */
  64: };
  65: 
  66: /*
  67:  * Simple values for n_type.
  68:  */
  69: #define N_UNDF  0x00        /* undefined */
  70: #define N_ABS   0x01        /* absolute */
  71: #define N_TEXT  0x02        /* text segment */
  72: #define N_DATA  0x03        /* data segment */
  73: #define N_BSS   0x04        /* bss segment */
  74: #define N_REG   0x14        /* register symbol */
  75: #define N_FN    0x1f        /* file name */
  76: 
  77: #define N_EXT   0x20        /* external (global) bit, OR'ed in */
  78: #define N_TYPE  0x1f        /* mask for all the type bits */
  79: 
  80: #define N_FORMAT    "%06o"  /* namelist value format; XXX */
  81: #endif	/* !_NLIST_H_ */

Defined struct's

nlist defined in line 51; never used
oldnlist defined in line 45; never used

Defined macros

N_ABS defined in line 70; never used
N_BSS defined in line 73; never used
N_DATA defined in line 72; never used
N_EXT defined in line 77; never used
N_FN defined in line 75; never used
N_FORMAT defined in line 80; never used
N_REG defined in line 74; never used
N_TEXT defined in line 71; never used
N_TYPE defined in line 78; never used
N_UNDF defined in line 69; never used
_NLIST_H_ defined in line 37; used 1 times
  • in line 36
Last modified: 1994-01-27
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 2480
Valid CSS Valid XHTML 1.0 Strict