home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Education Sampler 1992 [NeXTSTEP]
/
Education_1992_Sampler.iso
/
NeXT
/
GnuSource
/
cc-61.0.1
/
include
/
gnu
/
exec.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-17
|
2KB
|
65 lines
/*
* Mach Operating System
* Copyright (c) 1987 Carnegie-Mellon University
* All rights reserved. The CMU software License Agreement specifies
* the terms and conditions for use and redistribution.
*/
/*
**********************************************************************
* HISTORY
* 13-Feb-88 John Seamons (jks) at NeXT
* NeXT: use same hack as Sun for machine type.
*
* 12-Sep-86 Jonathan J. Chew (jjc) at Carnegie-Mellon University
* Changed first long word to two shorts for the Sun to give
* the machine type along with the magic number.
* Added machine types for Sun.
* Made file includable more than once.
*
**********************************************************************
*/
/*
* Copyright (c) 1982, 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*
* @(#)exec.h 7.1 (Berkeley) 6/4/86
*/
#ifndef _EXEC_
#define _EXEC_ 1
/*
* Header prepended to each a.out file.
*/
struct exec {
#if sun || NeXT
unsigned short a_machtype; /* machine type */
unsigned short a_magic; /* magic number */
#else sun || NeXT
long a_magic; /* magic number */
#endif sun || NeXT
unsigned long a_text; /* size of text segment */
unsigned long a_data; /* size of initialized data */
unsigned long a_bss; /* size of uninitialized data */
unsigned long a_syms; /* size of symbol table */
unsigned long a_entry; /* entry point */
unsigned long a_trsize; /* size of text relocation */
unsigned long a_drsize; /* size of data relocation */
};
#define OMAGIC 0407 /* old impure format */
#define NMAGIC 0410 /* read-only text */
#define ZMAGIC 0413 /* demand load format */
#ifdef sun
/* Sun machine types */
#define M_OLDSUN2 0 /* old sun-2 executable files */
#define M_68010 1 /* runs on either 68010 or 68020 */
#define M_68020 2 /* runs only on 68020 */
#endif sun
#endif _EXEC_