AT&T UNIX™PC Unix System V Users Manual - tenox
AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox
0 !:)
FILEHDR (4) (not. on PDP-11) FILEHDR ( 4) NAME filehdr - file header for common object files SYNOPSIS #include DESCRIPTION Every common object file begins with a 20-byte header. The following C struct declaration is used: struct filehdr { } ; unsigned short unsigned short long long long unsigned short unsigned short f_magic ; f_nscns ; f_timdat ; f_symptr ; f_nsyms ; f_opthdr ; Ulags ; I* magic number *I I* number of sections *I I* time & date stamp *I I* file ptr to symtab *I I* # symtab entries *I I* sizeof(opt hdr) *I I* flags *I F _symptr is the byte offset into the file at which the symbol table can be found. Its value can be used as the offset in fa eek(3S) to position an IIO stream to the symbol table. The UNIX optional header is always 36 bytes. The valid magic numbers are given below: #define N3BMAGIC #define NTVMAGIC #define V AXWRMAGIC 0570 #define V AXROMAGIC 0575 0550 I* 3B20S *I 0551 I* 3B20S *I I* VAX writable text segments *I I* VAX readonly sharab I e text *I /* segments *I The value in f_timdat is obtained from the time(2) system call. Flag bits currently defined are: #define F _RELFLG 00001 I* relocation entries stripped *I #define F _EXEC 00002 I* file is executable *I #define F _LNNO 00004 I* line numbers stripped *I #define F_LSYMS 00010 I* local symbols stripped *I #define F_MINMAL 00020 I* minimal object file *I #define F _UPDATE 00040 I* update file, ogen produced *I #define F _SWABD 00100 I* file is "pre-swabbed" *I #define F_AR16WR 00200 I* 16 bit DEC host *I #define F_AR32WR 00400 I* 32 bit DEC host *I #define F_AR32W 01000 I* non-DEC host *I #define F_PATCH 02000 I* "patch" list in opt hdr *I SEE ALSO time(2), fseek(3S), a. out( 4). - 1 -
- Page 1015: TRIG ( 3M ) TRIG ( 3M) NAME sin, co
- Page 1018 and 1019: TSEARCH ( 3C ) TSEARCH ( 3C ) data
- Page 1021: TTYNAME ( 3C ) TTYNAME ( 3C ) NAME
- Page 1025 and 1026: UNGETC ( 3S ) UNGETC ( 3S ) NAME un
- Page 1027 and 1028: VPRINTF ( 3S ) VPRINTF ( 3S ) NAME
- Page 1029 and 1030: WIND ( 3T ) ( AT&T UNIX PC only ) W
- Page 1031 and 1032: WRASTOP ( 3T ) ( AT&T UNIX PC only
- Page 1033: INTRO ( 4) INTRO ( 4) NAME intro -
- Page 1036 and 1037: A.OUT ( 4) A.OUT ( 4) data segment
- Page 1038 and 1039: A.OUT (4) A.OUT (4) char n_numaux;
- Page 1041 and 1042: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1043 and 1044: ADF ( 4 ) (AT&T UNIX PC only ) \ \
- Page 1045 and 1046: ADF ( 4) (AT&T UNIX PC only ) FORMA
- Page 1047 and 1048: ADF (4) (AT&T UNIX PC only ) ADF (4
- Page 1049 and 1050: ADF (4) (AT&T UNIX PC only ) ADF (
- Page 1051 and 1052: ADF ( 4) (AT&T UNIX PC only ) ADF (
- Page 1053 and 1054: ADF ( 4 ) (AT&T UNIX PC only ) Toke
- Page 1055 and 1056: AR( 4 ) AR ( 4) NAME ar - common ar
- Page 1057: CHECKLIST ( 4 ) CHECKLIST ( 4 ) NAM
- Page 1060 and 1061: I I I I I I II I I I I I I I I I I
- Page 1063: Dffi ( 4 ) Dffi ( 4 ) NAME dir - fo
- Page 1068 and 1069: FONT ( 4) (AT&T UNIX PC only ) FONT
- Page 1070 and 1071: I�
- Page 1072 and 1073: FS (4) FS (4) S_type indicates the
- Page 1074 and 1075: (�
- Page 1076 and 1077: FSPEC ( 4) FSPEC ( 4) Several UNIX
- Page 1078 and 1079: GETTYDEFS ( 4) GETTYDEFS ( 4 ) sett
- Page 1080 and 1081: � , __
- Page 1082 and 1083: INITTAB ( 4) INITTAB ( 4) I etclini
- Page 1084 and 1085: I I �I I I I I � I I 1� 1 1 I
- Page 1086 and 1087: (� .
- Page 1089 and 1090: � LDFCN( 4) LDFCN( 4) NAME ldfcn
- Page 1091: LDFCN( 4) LDFCN{4) REWIND(Idptr) FE
- Page 1095 and 1096: MASTER ( 4) MASTER (4) NAME master
- Page 1097: MNTTAB (4) MNTTAB (4) NAME mnttab -
- Page 1100 and 1101: PASSWD (4) PASSWD ( 4) Haphazard mo
- Page 1102 and 1103: PHONE (4) 02 (short) 03 (short) 04
- Page 1104 and 1105: y . /
- Page 1107: PROFILE ( 4) PROFILE ( 4) NAME prof
- Page 1110 and 1111: RELOC (4) RELOC ( 4) R_ABS The refe
- Page 1112 and 1113: (�
FILEHDR (4) (not. on PDP-11) FILEHDR ( 4)<br />
NAME<br />
filehdr - file header for common object files<br />
SYNOPSIS<br />
#include <br />
DESCRIPTION<br />
Every common object file begins with a 20-byte header. The following<br />
C struct declaration is used:<br />
struct filehdr<br />
{<br />
} ;<br />
unsigned short<br />
unsigned short<br />
long<br />
long<br />
long<br />
unsigned short<br />
unsigned short<br />
f_magic ;<br />
f_nscns ;<br />
f_timdat ;<br />
f_symptr ;<br />
f_nsyms ;<br />
f_opthdr ;<br />
Ulags ;<br />
I* magic number *I<br />
I* number of sections *I<br />
I* time & date stamp *I<br />
I* file ptr to symtab *I<br />
I* # symtab entries *I<br />
I* sizeof(opt hdr) *I<br />
I* flags *I<br />
F _symptr is the byte offset into the file at which the symbol table<br />
can be found. Its value can be used as the offset in fa eek(3S) to<br />
position an IIO stream to the symbol table. The UNIX optional<br />
header is always 36 bytes. The valid magic numbers are given<br />
below:<br />
#define N3BMAGIC<br />
#define NTVMAGIC<br />
#define V AXWRMAGIC 0570<br />
#define V AXROMAGIC 0575<br />
0550 I* 3B20S *I<br />
0551 I* 3B20S *I<br />
I* VAX writable text segments *I<br />
I* VAX readonly sharab I e text *I<br />
/* segments *I<br />
The value in f_timdat is obtained from the time(2) system call.<br />
Flag bits currently defined are:<br />
#define F _RELFLG 00001 I* relocation entries stripped *I<br />
#define F _EXEC 00002 I* file is executable *I<br />
#define F _LNNO 00004 I* line numbers stripped *I<br />
#define F_LSYMS 00010 I* local symbols stripped *I<br />
#define F_MINMAL 00020 I* minimal object file *I<br />
#define F _UPDATE 00040 I* update file, ogen produced *I<br />
#define F _SWABD 00100 I* file is "pre-swabbed" *I<br />
#define F_AR16WR 00200 I* 16 bit DEC host *I<br />
#define F_AR32WR 00400 I* 32 bit DEC host *I<br />
#define F_AR32W 01000 I* non-DEC host *I<br />
#define F_PATCH 02000 I* "patch" list in opt hdr *I<br />
SEE ALSO<br />
time(2), fseek(3S), a. out( 4).<br />
- 1 -