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

  1. #ifndef _HPPABSD_H
  2. #define _HPPABSD_H
  3.  
  4. #include <fcntl.h>
  5. #include <errno.h>
  6. #include <stdio.h>
  7. #include <sys/types.h>
  8. #include <sys/stat.h>
  9. #include <ctype.h>
  10. #include <string.h>
  11. #include <sys/file.h>
  12.  
  13. extern PTR  EXFUN(malloc,(unsigned));
  14. extern void EXFUN(free, (PTR));
  15.  
  16. #define HOST_HPPABSD
  17.  
  18. #ifndef O_ACCMODE
  19. #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
  20. #endif
  21.  
  22. #define SEEK_SET 0
  23. #define SEEK_CUR 1
  24.  
  25. #include <machine/machparam.h>
  26.  
  27. #define    HOST_PAGE_SIZE        NBPG
  28. #define    HOST_SEGMENT_SIZE    NBPG    /* Data seg start addr rounds to NBPG */
  29. #define    HOST_MACHINE_ARCH    bfd_arch_m68k
  30. /* #define    HOST_MACHINE_MACHINE     */
  31.  
  32. #define    HOST_TEXT_START_ADDR        UTEXTSEG
  33. #define HOST_DATA_START_ADDR        UDATASEG
  34. #define    HOST_STACK_END_ADDR        KSTAKSEG
  35.  
  36. /* EXACT TYPES */
  37. typedef char int8e_type;
  38. typedef unsigned char uint8e_type;
  39. typedef short int16e_type;
  40. typedef unsigned short uint16e_type;
  41. typedef int int32e_type;
  42. typedef unsigned int uint32e_type;
  43.  
  44. /* CORRECT SIZE OR GREATER */
  45. typedef char int8_type;
  46. typedef unsigned char uint8_type;
  47. typedef short int16_type;
  48. typedef unsigned short uint16_type;
  49. typedef int int32_type;
  50. typedef unsigned int uint32_type;
  51. #include "fopen-same.h"
  52.  
  53. #endif /* _HPPABSD_H */
  54.