Commit | Line | Data |
---|---|---|
f751f474 | 1 | #include <ansidecl.h> |
76d31348 JG |
2 | #include <fcntl.h> |
3 | #include <errno.h> | |
243f4d0a | 4 | extern int errno; /* <errno.h> forgets to do this... */ |
76d31348 JG |
5 | #include <stdio.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/machparam.h> | |
12 | ||
13 | #ifndef O_ACCMODE | |
14 | #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR) | |
15 | #endif | |
16 | ||
17 | #define SEEK_SET 0 | |
18 | #define SEEK_CUR 1 | |
19 | ||
302c8ab1 SC |
20 | extern PTR EXFUN(malloc, (unsigned)); |
21 | extern PTR EXFUN(realloc, (PTR, unsigned)); | |
22 | extern void EXFUN(free, (PTR)); | |
76d31348 JG |
23 | |
24 | #define HAVE_STRERROR | |
25 | ||
26 | #define HOST_PAGE_SIZE NBPG | |
27 | #define HOST_SEGMENT_SIZE NBPG | |
28 | #define HOST_MACHINE_ARCH bfd_arch_i386 | |
29 | #define HOST_TEXT_START_ADDR 0x10000 /* By inspection */ | |
30 | #define HOST_STACK_END_ADDR KERNBASE | |
31 | ||
a5431adc | 32 | #include "fopen-same.h" |