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

Defined macros

_EXEC_ defined in line 10; used 1 times
  • in line 9

Usage of this include

Last modified: 1994-01-08
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 3218
Valid CSS Valid XHTML 1.0 Strict