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
xexec
defined in line
34; used 42 times
Defined macros
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
Usage of this include