home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / bfd / hosts / hp300bsd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.5 KB  |  58 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.  
  10. void *malloc();
  11. void *realloc();
  12. void free();
  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. /* This is a hack.  This is only a hack.  Were this a common source file,
  22.    rather than a config file specific to BSD on HP 68k's, you would have
  23.    been instructed to clean this up.  As it is, clean it up if FSF's 
  24.    HP's-running-ancient-BSD ever go away.  */
  25. #ifdef    EPROCUNAVAIL
  26. #include <machine/param.h>        /* BSD 4.4 alpha or better */
  27. #include <stdlib.h>            /* Get this too, for abort(). */
  28. #define    NO_CORE_COMMAND            /* Core files don't have command name */
  29. #else
  30. #include <machine/machparam.h>        /* BSD 4.3 or worse */
  31. #endif
  32.  
  33. #define    HOST_PAGE_SIZE        NBPG
  34. #define    HOST_SEGMENT_SIZE    NBPG    /* Data seg start addr rounds to NBPG */
  35. #define    HOST_MACHINE_ARCH    bfd_arch_m68k
  36. /* #define    HOST_MACHINE_MACHINE     */
  37.  
  38. #define    HOST_TEXT_START_ADDR        0
  39. #define    HOST_STACK_END_ADDR        0xfff00000
  40. #define    HOST_BIG_ENDIAN_P
  41.  
  42. /* EXACT TYPES */
  43. typedef char int8e_type;
  44. typedef unsigned char uint8e_type;
  45. typedef short int16e_type;
  46. typedef unsigned short uint16e_type;
  47. typedef int int32e_type;
  48. typedef unsigned int uint32e_type;
  49.  
  50. /* CORRECT SIZE OR GREATER */
  51. typedef char int8_type;
  52. typedef unsigned char uint8_type;
  53. typedef short int16_type;
  54. typedef unsigned short uint16_type;
  55. typedef int int32_type;
  56. typedef unsigned int uint32_type;
  57. #include "fopen-same.h"
  58.