Get 64bit stuff right.
[deliverable/binutils-gdb.git] / bfd / hosts / i386bsd.h
CommitLineData
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
26#if 0 /* This doesn't work in Jolitz release 0.1 */
27#define HOST_STACK_END_ADDR USRSTACK
28#else /* Found by experimentation. */
29#define HOST_STACK_END_ADDR (USRSTACK - MAXSSIZ)
30#endif
31
32#define TRAD_UNIX_CORE_FILE_FAILING_SIGNAL(core_bfd) \
33 ((core_bfd)->tdata.trad_core_data->u.u_sig)
34#define u_comm u_kproc.kp_proc.p_comm
214f8f23
KR
35
36/* EXACT TYPES */
37typedef char int8e_type;
38typedef unsigned char uint8e_type;
39typedef short int16e_type;
40typedef unsigned short uint16e_type;
41typedef int int32e_type;
42typedef unsigned int uint32e_type;
43
44/* CORRECT SIZE OR GREATER */
45typedef char int8_type;
46typedef unsigned char uint8_type;
47typedef short int16_type;
48typedef unsigned short uint16_type;
49typedef int int32_type;
50typedef unsigned int uint32_type;
8bd4e54b 51
214f8f23 52#include "fopen-same.h"
8bd4e54b
KR
53#define hosts_i386bsd_H
54#endif
This page took 0.078745 seconds and 4 git commands to generate.