Commit | Line | Data |
---|---|---|
8bd4e54b KR |
1 | #ifndef hosts_i386bsd_H |
2 | /* Intel 386 running any BSD Unix */ | |
214f8f23 KR |
3 | #include <fcntl.h> |
4 | #include <errno.h> | |
5 | #include <stdio.h> | |
6 | #include <stdlib.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 | #include <machine/param.h> | |
8bd4e54b | 13 | #include <machine/vmparam.h> |
214f8f23 KR |
14 | |
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 | ||
214f8f23 | 22 | #define HOST_PAGE_SIZE NBPG |
214f8f23 | 23 | #define HOST_MACHINE_ARCH bfd_arch_i386 |
8bd4e54b KR |
24 | #define HOST_TEXT_START_ADDR USRTEXT |
25 | ||
ce93f569 JK |
26 | #ifdef __bsdi__ |
27 | /* This seems to be the right thing for BSDI. */ | |
8bd4e54b | 28 | #define HOST_STACK_END_ADDR USRSTACK |
ce93f569 JK |
29 | #else |
30 | /* This seems to be the right thing for 386BSD release 0.1. */ | |
8bd4e54b KR |
31 | #define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ) |
32 | #endif | |
33 | ||
34 | #define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \ | |
35 | ((core_bfd)->tdata.trad_core_data->u.u_sig) | |
36 | #define u_comm u_kproc.kp_proc.p_comm | |
214f8f23 | 37 | |
214f8f23 | 38 | #include "fopen-same.h" |
8bd4e54b KR |
39 | #define hosts_i386bsd_H |
40 | #endif |