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

  1. #include <fcntl.h>
  2. #include <errno.h>
  3. #include <stdio.h>
  4. #include <sys/types.h>
  5. #include <sys/stat.h>
  6. #include <ctype.h>
  7. #include <string.h>
  8. #include <sys/file.h>
  9. #include <malloc.h>
  10. #ifndef O_ACCMODE
  11. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  12. #endif
  13. #define SEEK_SET 0
  14. #define SEEK_CUR 1
  15.  
  16. #include <machine/param.h>
  17. #include <machine/vmparam.h>
  18. #define    HOST_PAGE_SIZE        NBPG
  19. /* #define    HOST_SEGMENT_SIZE    NBPG -- we use HOST_DATA_START_ADDR */
  20. #define    HOST_MACHINE_ARCH    bfd_arch_mips
  21. /* #define    HOST_MACHINE_MACHINE     */
  22.  
  23. #define    HOST_TEXT_START_ADDR        USRTEXT
  24. #define    HOST_DATA_START_ADDR        USRDATA
  25. #define    HOST_STACK_END_ADDR        USRSTACK
  26.  
  27. #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
  28.   ((core_bfd)->tdata.trad_core_data->u.u_arg[0])
  29.  
  30. #include "fopen-same.h"
  31.  
  32. /* EXACT TYPES */
  33. typedef char int8e_type;
  34. typedef unsigned char uint8e_type;
  35. typedef short int16e_type;
  36. typedef unsigned short uint16e_type;
  37. typedef int int32e_type;
  38. typedef unsigned int uint32e_type;
  39.  
  40. /* CORRECT SIZE OR GREATER */
  41. typedef char int8_type;
  42. typedef unsigned char uint8_type;
  43. typedef short int16_type;
  44. typedef unsigned short uint16_type;
  45. typedef int int32_type;
  46. typedef unsigned int uint32_type;
  47.  
  48. /* other */
  49.  
  50. extern char *getenv();
  51.