# 2.11BSD#431 - /usr/include/nlist.h

##### Macros

    N_ABS             X
    N_BSS             X
    N_DATA            X
    N_EXT             X
    N_FN              X
    N_FORMAT          X
    N_REG             X
    N_TEXT            X
    N_TYPE            X
    N_UNDF            X
    _NLIST_H_         X

##### struct's

    nlist             X
    oldnlist          X

       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; used 176 times

- in /usr/src/bin/adb/sym.c line 161(2)
- in /usr/src/bin/ld/ld.c line 821(2), 1204(2), 1271(2), 1486(2)
- in /usr/src/bin/nm/nm.c line 119-120(4), 129(2), 150-154(6), 178(2), 192(2), 252(2)
- in /usr/src/bin/ps.c line 34(2), 626-628(4), 635(2), 649(2), 723-728(4), 752(2)
- in /usr/src/lib/libc/gen/nlist.c line 29(2)
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 43(2), 50(2)
- in /usr/src/libexec/identd/src/kvm.c line 172(2), 327(2)
- in /usr/src/local/mkovmake/mkovmake.c line 496(2)
- in /usr/src/local/trace.c line 6(2)
- in /usr/src/new/kermit5.188/ckutio.c line 4093(2)
- in /usr/src/old/checkobj/checkobj.c line 25-26(4)
- in /usr/src/sbin/dmesg/dmesg.c line 33(2)
- in /usr/src/sbin/route/route.c line 83(2), 95(2)
- in /usr/src/sbin/savecore/savecore.c line 26(2)
- in /usr/src/sys/conf/checksys.c line 43(2)
- in /usr/src/sys/conf/netbind.c line 65(2), 210(2), 237(2)
- in /usr/src/ucb/PORT/pascal/utilities/pc3.c line 187(2), 203-212(8), 267(2)
- in /usr/src/ucb/PORT/systat/disks.c line 15(2)
- in /usr/src/ucb/PORT/systat/iostat.c line 35(2)
- in /usr/src/ucb/PORT/systat/main.c line 19(2)
- in /usr/src/ucb/PORT/systat/mbufs.c line 97(2)
- in /usr/src/ucb/PORT/systat/netstat.c line 98(2)
- in /usr/src/ucb/PORT/systat/pigs.c line 148(2)
- in /usr/src/ucb/PORT/systat/swap.c line 169(2)
- in /usr/src/ucb/PORT/systat/vmstat.c line 57(2)
- in /usr/src/ucb/gcore.c line 24(2)
- in /usr/src/ucb/strcompact.c line 47(2), 84(2)
- in /usr/src/ucb/symcompact.c line 60-61(4), 93(2), 148(4), 260(2), 275(2), 296(2)
- in /usr/src/ucb/symdump.c line 74(2), 99-100(4)
- in /usr/src/ucb/symorder.c line 49(2), 82(2), 240(2), 248(2)
- in /usr/src/ucb/vmstat.c line 32(2)
- in /usr/src/usr.bin/fstat/fstat.c line 74(2), 84(2)
- in /usr/src/usr.bin/iostat.c line 18(2)
- in /usr/src/usr.bin/prof/prof.c line 237-242(4), 258(2)
- in /usr/src/usr.bin/ranlib/build.c line 130(2), 158-160(4)
- in /usr/src/usr.bin/uucp/acucntrl.c line 81(2)
- in /usr/src/usr.sbin/arp/arp.c line 248(2), 259(2)
- in /usr/src/usr.sbin/pstat/pstat.c line 41(2)
- in /usr/src/usr.sbin/trpt/trpt.c line 57(2)
- in /usr/src/usr.sbin/trsp/trsp.c line 53(2)

oldnlist defined in line 45; never used

#### Defined macros

N_ABS defined in line 70; used 5 times

- in /usr/src/bin/ld/ld.c line 909, 1333, 1467
- in /usr/src/sys/conf/netbind.c line 249-254(2)

N_BSS defined in line 73; used 5 times

- in /usr/src/bin/adb/print.c line 246
- in /usr/src/bin/ld/ld.c line 1029, 1143
- in /usr/src/bin/ps.c line 681
- in /usr/src/sys/conf/checksys.c line 261

N_DATA defined in line 72; used 3 times

- in /usr/src/bin/adb/print.c line 246
- in /usr/src/bin/ld/ld.c line 1028
- in /usr/src/bin/ps.c line 681

N_EXT defined in line 77; used 63 times

- in /usr/src/bin/adb/print.c line 246(2)
- in /usr/src/bin/adb/sym.c line 196, 217
- in /usr/src/bin/ld/ld.c line 283, 779, 886, 894-909(6), 918-920(2), 927-932(2), 1012, 1027-1029(3), 1035-1038(2), 1052, 1079, 1113, 1127-1143(6), 1169, 1214, 1318-1333(6), 1342, 1358-1359(2), 1462-1467(2), 1504, 1855, 1884
- in /usr/src/bin/nm/nm.c line 142, 159, 234
- in /usr/src/bin/ps.c line 663
- in /usr/src/local/mkovmake/mkovmake.c line 523, 556
- in /usr/src/sys/conf/netbind.c line 110, 129, 249-254(2)
- in /usr/src/usr.bin/prof/prof.c line 245-247(2), 267-269(2)
- in /usr/src/usr.bin/ranlib/build.c line 167

N_FN defined in line 75; used 3 times

- in /usr/src/bin/adb/sym.c line 60
- in /usr/src/bin/ld/ld.c line 1673
- in /usr/src/bin/nm/nm.c line 199

N_FORMAT defined in line 80; used 1 times

- in /usr/src/bin/nm/nm.c line 240

N_REG defined in line 74; used 5 times

- in /usr/src/bin/adb/sym.c line 177, 194, 215
- in /usr/src/ucb/symcompact.c line 299
- in /usr/src/ucb/symorder.c line 175

N_TEXT defined in line 71; used 18 times

- in /usr/src/bin/ld/ld.c line 927-932(2), 1027, 1052, 1079, 1214, 1349, 1359, 1504, 1884
- in /usr/src/ucb/symcompact.c line 183, 196
- in /usr/src/usr.bin/prof/prof.c line 245-247(3), 267-269(3)

N_TYPE defined in line 78; used 13 times

- in /usr/src/bin/nm/nm.c line 144, 161, 201
- in /usr/src/bin/ps.c line 665
- in /usr/src/local/mkovmake/mkovmake.c line 525, 558
- in /usr/src/sys/conf/checksys.c line 261
- in /usr/src/sys/conf/netbind.c line 244, 285, 309
- in /usr/src/ucb/symcompact.c line 183, 196
- in /usr/src/usr.bin/ranlib/build.c line 174

N_UNDF defined in line 69; used 19 times

- in /usr/src/bin/ld/ld.c line 283, 779, 918-920(2), 1012, 1035, 1169, 1358, 1462, 1855
- in /usr/src/bin/nm/nm.c line 144, 161
- in /usr/src/old/checkobj/checkobj.c line 244(2)
- in /usr/src/sys/conf/netbind.c line 110, 222, 285, 309
- in /usr/src/usr.bin/ranlib/build.c line 174

_NLIST_H_ defined in line 37; used 1 times

- in line 36

#### Usage of this include

nlist.h used 19 times

- in /usr/include/a.out.h line 70
- in /usr/src/include/a.out.h line 70
- in /usr/src/libexec/identd/src/kernel/2.11bsd.c line 13
- in /usr/src/libexec/identd/src/kvm.c line 21
- in /usr/src/local/trace.c line 2
- in /usr/src/sbin/dmesg/dmesg.c line 21
- in /usr/src/sbin/route/route.c line 81
- in /usr/src/sbin/savecore/savecore.c line 7
- in /usr/src/ucb/PORT/systat/systat.h line 10
- in /usr/src/ucb/gcore.c line 18
- in /usr/src/ucb/netstat/ns.c line 19
- in /usr/src/ucb/vmstat.c line 17
- in /usr/src/usr.bin/fstat/fstat.c line 44
- in /usr/src/usr.bin/iostat.c line 10
- in /usr/src/usr.bin/uucp/acucntrl.c line 62
- in /usr/src/usr.sbin/arp/arp.c line 17
- in /usr/src/usr.sbin/pstat/pstat.c line 33
- in /usr/src/usr.sbin/trpt/trpt.c line 48
- in /usr/src/usr.sbin/trsp/trsp.c line 44

Last modified: 1994-01-27 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 1260 |