Commit | Line | Data |
---|---|---|
3fd76e58 SG |
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 free(); | |
12 | ||
9a5e3a9a SG |
13 | #define HOST_HPPABSD |
14 | ||
3fd76e58 SG |
15 | #ifndef O_ACCMODE |
16 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
17 | #endif | |
18 | ||
19 | #define SEEK_SET 0 | |
20 | #define SEEK_CUR 1 | |
21 | ||
22 | #include <machine/machparam.h> | |
23 | ||
24 | #define HOST_PAGE_SIZE NBPG | |
25 | #define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */ | |
26 | #define HOST_MACHINE_ARCH bfd_arch_m68k | |
27 | /* #define HOST_MACHINE_MACHINE */ | |
28 | ||
29 | #define HOST_TEXT_START_ADDR UTEXTSEG | |
30 | #define HOST_DATA_START_ADDR UDATASEG | |
31 | #define HOST_STACK_END_ADDR KSTAKSEG | |
32 | ||
33 | /* EXACT TYPES */ | |
34 | typedef char int8e_type; | |
35 | typedef unsigned char uint8e_type; | |
36 | typedef short int16e_type; | |
37 | typedef unsigned short uint16e_type; | |
38 | typedef int int32e_type; | |
39 | typedef unsigned int uint32e_type; | |
40 | ||
41 | /* CORRECT SIZE OR GREATER */ | |
42 | typedef char int8_type; | |
43 | typedef unsigned char uint8_type; | |
44 | typedef short int16_type; | |
45 | typedef unsigned short uint16_type; | |
46 | typedef int int32_type; | |
47 | typedef unsigned int uint32_type; | |
48 | #include "fopen-same.h" |