Annotation of GNUtools/cctools/include/gnu/exec.h, revision 1.1

1.1     ! root        1: /* 
        !             2:  * Mach Operating System
        !             3:  * Copyright (c) 1987 Carnegie-Mellon University
        !             4:  * All rights reserved.  The CMU software License Agreement specifies
        !             5:  * the terms and conditions for use and redistribution.
        !             6:  */
        !             7: /*
        !             8:  **********************************************************************
        !             9:  * HISTORY
        !            10:  * 13-Feb-88  John Seamons (jks) at NeXT
        !            11:  *     NeXT: use same hack as Sun for machine type.
        !            12:  *
        !            13:  * 12-Sep-86  Jonathan J. Chew (jjc) at Carnegie-Mellon University
        !            14:  *     Changed first long word to two shorts for the Sun to give
        !            15:  *     the machine type along with the magic number.
        !            16:  *     Added machine types for Sun.
        !            17:  *     Made file includable more than once.
        !            18:  *
        !            19:  **********************************************************************
        !            20:  */
        !            21:  
        !            22: /*
        !            23:  * Copyright (c) 1982, 1986 Regents of the University of California.
        !            24:  * All rights reserved.  The Berkeley software License Agreement
        !            25:  * specifies the terms and conditions for redistribution.
        !            26:  *
        !            27:  *     @(#)exec.h      7.1 (Berkeley) 6/4/86
        !            28:  */
        !            29: 
        !            30: #ifndef        _EXEC_
        !            31: #define        _EXEC_  1
        !            32: 
        !            33: /*
        !            34:  * Header prepended to each a.out file.
        !            35:  */
        !            36: struct exec {
        !            37: #if    sun || NeXT
        !            38: unsigned short  a_machtype;     /* machine type */
        !            39: unsigned short  a_magic;        /* magic number */
        !            40: #else  sun || NeXT
        !            41:        long    a_magic;        /* magic number */
        !            42: #endif sun || NeXT
        !            43: unsigned long  a_text;         /* size of text segment */
        !            44: unsigned long  a_data;         /* size of initialized data */
        !            45: unsigned long  a_bss;          /* size of uninitialized data */
        !            46: unsigned long  a_syms;         /* size of symbol table */
        !            47: unsigned long  a_entry;        /* entry point */
        !            48: unsigned long  a_trsize;       /* size of text relocation */
        !            49: unsigned long  a_drsize;       /* size of data relocation */
        !            50: };
        !            51: 
        !            52: #define        OMAGIC  0407            /* old impure format */
        !            53: #define        NMAGIC  0410            /* read-only text */
        !            54: #define        ZMAGIC  0413            /* demand load format */
        !            55: 
        !            56: #ifdef sun
        !            57: /* Sun machine types */
        !            58: 
        !            59: #define M_OLDSUN2      0       /* old sun-2 executable files */
        !            60: #define M_68010                1       /* runs on either 68010 or 68020 */
        !            61: #define M_68020                2       /* runs only on 68020 */
        !            62: #endif sun
        !            63: 
        !            64: #endif _EXEC_

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.