home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / bfd / hosts / i386bsd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.2 KB  |  52 lines

  1. /* Intel 386 running any BSD Unix */
  2. #include <fcntl.h>
  3. #include <errno.h>
  4. #include <stdio.h>
  5. #include <stdlib.h>
  6. #include <sys/types.h>
  7. #include <sys/stat.h>
  8. #include <ctype.h>
  9. #include <string.h>
  10. #include <sys/file.h>
  11. #include <machine/param.h>
  12. #include <machine/vmparam.h>
  13.  
  14. #ifndef O_ACCMODE
  15. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  16. #endif
  17.  
  18. #define SEEK_SET 0
  19. #define SEEK_CUR 1
  20.  
  21. #define    HOST_PAGE_SIZE        NBPG
  22. #define    HOST_MACHINE_ARCH    bfd_arch_i386
  23. #define    HOST_TEXT_START_ADDR        USRTEXT
  24.  
  25. #if 0    /* This doesn't work in Jolitz release 0.1 */
  26. #define    HOST_STACK_END_ADDR        USRSTACK
  27. #else    /* Found by experimentation. */
  28. #define    HOST_STACK_END_ADDR        (USRSTACK - MAXSSIZ)
  29. #endif
  30.  
  31. #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  32.   ((core_bfd)->tdata.trad_core_data->u.u_sig)
  33. #define u_comm u_kproc.kp_proc.p_comm
  34.  
  35. /* EXACT TYPES */
  36. typedef char int8e_type;
  37. typedef unsigned char uint8e_type;
  38. typedef short int16e_type;
  39. typedef unsigned short uint16e_type;
  40. typedef int int32e_type;
  41. typedef unsigned int uint32e_type;
  42.  
  43. /* CORRECT SIZE OR GREATER */
  44. typedef char int8_type;
  45. typedef unsigned char uint8_type;
  46. typedef short int16_type;
  47. typedef unsigned short uint16_type;
  48. typedef int int32_type;
  49. typedef unsigned int uint32_type;
  50.  
  51. #include "fopen-same.h"
  52.