Changeset 149


Ignore:
Timestamp:
May 15, 2003, 5:26:05 PM (22 years ago)
Author:
zap
Message:

Removed DOS-related stuff from defs.h (emxbind-related)
Added libc-alias.h which defines the _STD macro.

Location:
trunk/src/emx/src/include
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/include/defs.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r148 r149  
    3030#define ATTR_PRINTF(s,f)
    3131#endif
     32
     33/* The magic number that is always the first DWORD in .data,
     34   followed by a offset to the __os2dll set. */
     35#define DATASEG_MAGIC   0xba0bab
    3236
    3337
     
    247251};
    248252
    249 /* This is the layout of the emxbind patch area for DOS.  It is
    250    located at the beginning of the loadable image. */
    251 
    252 struct dos_bind_header
    253 {
    254   byte hdr[BIND_OFFSET];        /* emx version number */
    255   byte bind_flag;               /* Non-zero if this program is bound */
    256   byte fill_1;                  /* Padding for proper alignment */
    257   word hdr_loc_lo;              /* Location of the a.out header */
    258   word hdr_loc_hi;              /* (split into two words due to alignment) */
    259   byte options[64];             /* emx options to be used under DOS */
    260 };
    261 
    262 /* This is the layout of the emxbind patch area for OS/2.  It is
    263    located at the beginning of the data segment.  This table contains
    264    information required for dumping core and for forking. */
    265 
    266 struct os2_bind_header
    267 {
    268   dword text_base;              /* Base address of the text segment */
    269   dword text_end;               /* End address of the text segment */
    270   dword data_base;              /* Base address of initialized data */
    271   dword data_end;               /* End address of initialized data */
    272   dword bss_base;               /* Base address of uninitialized data */
    273   dword bss_end;                /* End address of uninitialized data */
    274   dword heap_base;              /* Base address of the heap */
    275   dword heap_end;               /* End address of the heap */
    276   dword heap_brk;               /* End address of the used heap space */
    277   dword heap_off;               /* Location of heap data in the executable */
    278   dword os2_dll;                /* Address of the import table for (I1) */
    279   dword stack_base;             /* Base address of the stack */
    280   dword stack_end;              /* End address of the stack */
    281   dword flags;                  /* Flags (DLL) and interface number */
    282   dword reserved[2];            /* Not yet used */
    283   byte options[64];             /* emx options to be used under OS/2 */
    284 };
    285 
    286253#pragma pack(1)
    287254
Note: See TracChangeset for help on using the changeset viewer.