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