# 2.11BSD#431 - /usr/src/sys/h/exec.h

##### Macros

    A_MAGIC1          X
    A_MAGIC2          X
    A_MAGIC3          X
    A_MAGIC4          X
    A_MAGIC5          X
    A_MAGIC6          X
    NOVL              X
    _EXEC_            X

##### struct's

    exec              X
    ovlhdr            X
    xexec             X

       1: /*
       2:  * Copyright (c) 1986 Regents of the University of California.
       3:  * All rights reserved.  The Berkeley software License Agreement
       4:  * specifies the terms and conditions for redistribution.
       5:  *
       6:  *	@(#)exec.h	1.2 (2.11BSD GTE) 10/31/93
       7:  */
       8:
       9: #ifndef _EXEC_
      10: #define _EXEC_
      11: /*
      12:  * Header prepended to each a.out file.
      13:  */
      14: struct  exec {
      15:     int a_magic;    /* magic number */
      16: unsigned int    a_text;     /* size of text segment */
      17: unsigned int    a_data;     /* size of initialized data */
      18: unsigned int    a_bss;      /* size of uninitialized data */
      19: unsigned int    a_syms;     /* size of symbol table */
      20: unsigned int    a_entry;    /* entry point */
      21: unsigned int    a_unused;   /* not used */
      22: unsigned int    a_flag;     /* relocation info stripped */
      23: };
      24:
      25: #define NOVL    15      /* number of overlays */
      26: struct  ovlhdr {
      27:     int max_ovl;    /* maximum overlay size */
      28: unsigned int    ov_siz[NOVL];   /* size of i'th overlay */
      29: };
      30:
      31: /*
      32:  * eXtended header definition for use with the new macros in a.out.h
      33: */
      34: struct  xexec {
      35:     struct  exec    e;
      36:     struct  ovlhdr  o;
      37:     };
      38:
      39: #define A_MAGIC1    0407    /* normal */
      40: #define A_MAGIC2    0410    /* read-only text */
      41: #define A_MAGIC3    0411    /* separated I&D */
      42: #define A_MAGIC4    0405    /* overlay */
      43: #define A_MAGIC5    0430    /* auto-overlay (nonseparate) */
      44: #define A_MAGIC6    0431    /* auto-overlay (separate) */
      45:
      46: #endif

#### Defined struct's

exec defined in line 14; used 76 times

- in line 35(2)
- in /usr/src/bin/adb/sym.c line 157(2)
- in /usr/src/bin/diff/diffdir.c line 394-396(6)
- in /usr/src/bin/diff/diffreg.c line 948-950(6)
- in /usr/src/bin/size.c line 17(2)
- in /usr/src/games/adventure/save.c line 21(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 56(2)
- in /usr/src/new/OLD/buildcore.c line 25(2)
- in /usr/src/new/ansi/ansitape.c line 670(2), 698(4)
- in /usr/src/new/crash/symbol.c line 53(2)
- in /usr/src/old/checkobj/checkobj.c line 22(2)
- in /usr/src/sys/autoconfig/read_nlist.c line 45(2)
- in /usr/src/sys/conf/checksys.c line 69(2)
- in /usr/src/sys/conf/netbind.c line 238(2)
- in /usr/src/sys/pdpstand/boot.c line 48(2)
- in /usr/src/sys/sys/init_main.c line 341(2)
- in /usr/src/sys/sys/kern_exec.c line 61(2), 432(2), 508(2), 593(2)
- in /usr/src/sys/sys/vm_text.c line 140(2), 217(2)
- in /usr/src/ucb/PORT/pascal/src/yymain.c line 132(2), 142(2), 168(2), 175(2)
- in /usr/src/ucb/PORT/pascal/utilities/pc3.c line 130(2), 184(2)
- in /usr/src/usr.bin/ranlib/build.c line 129(2), 139-140(4)
- in /usr/src/usr.sbin/lpr/lpr.c line 505(2)

ovlhdr defined in line 26; used 24 times

- in line 36(2)
- in /usr/src/bin/adb/access.c line 11(2)
- in /usr/src/bin/adb/setup.c line 27(2)
- in /usr/src/bin/size.c line 23(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 61(2)
- in /usr/src/new/OLD/buildcore.c line 27(2)
- in /usr/src/new/crash/symbol.c line 42(2), 74(2)
- in /usr/src/old/checkobj/checkobj.c line 23(2)
- in /usr/src/sys/autoconfig/read_nlist.c line 46(2)
- in /usr/src/sys/conf/checksys.c line 70(2)
- in /usr/src/sys/pdpstand/boot.c line 49(2)

xexec defined in line 34; used 42 times

- in /usr/src/bin/adb/setup.c line 36(2)
- in /usr/src/bin/ld/ld.c line 185(2)
- in /usr/src/bin/nm/nm.c line 26(2), 123(2)
- in /usr/src/bin/ps.c line 629(2)
- in /usr/src/bin/strip.c line 20(2)
- in /usr/src/lib/libc/gen/nlist.c line 39(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 22(2), 33(2), 50(2), 69(2), 80(2)
- in /usr/src/local/mkovmake/mkovmake.c line 495(2)
- in /usr/src/sys/conf/netbind.c line 26(2), 163(2)
- in /usr/src/ucb/strcompact.c line 49(2)
- in /usr/src/ucb/strings.c line 25(2)
- in /usr/src/ucb/symcompact.c line 62(2)
- in /usr/src/ucb/symdump.c line 35(2)
- in /usr/src/ucb/symorder.c line 50(2)
- in /usr/src/usr.bin/prof/prof.c line 76(2)

#### Defined macros

A_MAGIC1 defined in line 39; used 11 times

- in /usr/include/a.out.h line 42
- in /usr/src/bin/ld/ld.c line 1195-1197(2), 1925
- in /usr/src/include/a.out.h line 42
- in /usr/src/sys/pdpstand/boot.c line 118, 313, 407, 438, 474
- in /usr/src/usr.sbin/lpr/lp.local.h line 22

A_MAGIC2 defined in line 40; used 8 times

- in /usr/include/a.out.h line 42
- in /usr/src/bin/ld/ld.c line 1195
- in /usr/src/include/a.out.h line 42
- in /usr/src/sys/autoconfig/read_nlist.c line 104
- in /usr/src/sys/conf/checksys.c line 266
- in /usr/src/sys/pdpstand/boot.c line 119, 303, 323

A_MAGIC3 defined in line 41; used 6 times

- in /usr/include/a.out.h line 43
- in /usr/src/bin/ld/ld.c line 1195
- in /usr/src/include/a.out.h line 43
- in /usr/src/sys/pdpstand/boot.c line 120, 283
- in /usr/src/sys/sys/init_main.c line 367

A_MAGIC4 defined in line 42; used 4 times

- in /usr/include/a.out.h line 43
- in /usr/src/bin/ld/ld.c line 1195
- in /usr/src/include/a.out.h line 43
- in /usr/src/usr.sbin/lpr/lpr.c line 534

A_MAGIC5 defined in line 43; used 18 times

- in /usr/include/a.out.h line 44-47(2)
- in /usr/src/bin/size.c line 58
- in /usr/src/include/a.out.h line 44-47(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 57, 88
- in /usr/src/new/crash/symbol.c line 72
- in /usr/src/old/checkobj/checkobj.c line 97
- in /usr/src/sys/autoconfig/read_nlist.c line 104-109(3)
- in /usr/src/sys/conf/checksys.c line 98, 266-270(3)
- in /usr/src/sys/pdpstand/boot.c line 121, 256

A_MAGIC6 defined in line 44; used 17 times

- in /usr/include/a.out.h line 44-47(2)
- in /usr/src/bin/size.c line 58
- in /usr/src/include/a.out.h line 44-47(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 57, 88
- in /usr/src/new/OLD/buildcore.c line 100, 126
- in /usr/src/new/crash/symbol.c line 72
- in /usr/src/old/checkobj/checkobj.c line 97
- in /usr/src/sys/autoconfig/read_nlist.c line 106
- in /usr/src/sys/conf/checksys.c line 98, 268
- in /usr/src/sys/pdpstand/boot.c line 122, 256, 283

NOVL defined in line 25; used 46 times

- in line 28
- in /usr/src/bin/adb/access.c line 142
- in /usr/src/bin/adb/runpcs.c line 198
- in /usr/src/bin/adb/setup.c line 29, 78
- in /usr/src/bin/ld/ld.c line 475-476(2), 1088, 1494
- in /usr/src/bin/size.c line 61-64(2)
- in /usr/src/lib/libc/pdp/gen/nsym.c line 59, 90
- in /usr/src/local/mkovmake/mkovmake.c line 82, 156-161(3)
- in /usr/src/new/OLD/buildcore.c line 127
- in /usr/src/new/crash/symbol.c line 75
- in /usr/src/old/checkobj/checkobj.c line 127, 135, 169, 185
- in /usr/src/sys/autoconfig/read_nlist.c line 111
- in /usr/src/sys/conf/checksys.c line 181, 193, 272
- in /usr/src/sys/h/user.h line 90
- in /usr/src/sys/pdp/genassym.c line 96
- in /usr/src/sys/pdpstand/boot.c line 47, 259, 410, 506-507(2), 553, 604(2)
- in /usr/src/sys/sys/kern_exec.c line 439, 538, 596
- in /usr/src/sys/sys/kern_mman.c line 105
- in /usr/src/sys/sys/sys_process.c line 165
- in /usr/src/sys/sys/vm_text.c line 201, 219, 228
- in /usr/src/usr.sbin/pstat/pstat.c line 587

_EXEC_ defined in line 10; used 1 times

- in line 9

#### Usage of this include

exec.h used 4 times

- in /usr/include/a.out.h line 39
- in /usr/src/include/a.out.h line 39
- in /usr/src/sys/h/user.h line 12, 18

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