* configure.in: Get host file from ../bfd/config, not config.
[deliverable/binutils-gdb.git] / bfd / hosts / i386mach.h
CommitLineData
76d31348
JG
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#include <machine/machparam.h>
10
11#ifndef O_ACCMODE
12#define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
13#endif
14
15#define SEEK_SET 0
16#define SEEK_CUR 1
17
18extern PROTO(PTR, malloc, (unsigned));
19extern PROTO(PTR, realloc, (PTR, unsigned));
20extern PROTO(void, free, (PTR));
21
22#define HAVE_STRERROR
23
24#define HOST_PAGE_SIZE NBPG
25#define HOST_SEGMENT_SIZE NBPG
26#define HOST_MACHINE_ARCH bfd_arch_i386
27#define HOST_TEXT_START_ADDR 0x10000 /* By inspection */
28#define HOST_STACK_END_ADDR KERNBASE
29
30/* EXACT TYPES */
31typedef char int8e_type;
32typedef unsigned char uint8e_type;
33typedef short int16e_type;
34typedef unsigned short uint16e_type;
35typedef int int32e_type;
36typedef unsigned int uint32e_type;
37
38/* CORRECT SIZE OR GREATER */
39typedef char int8_type;
40typedef unsigned char uint8_type;
41typedef short int16_type;
42typedef unsigned short uint16_type;
43typedef int int32_type;
44typedef unsigned int uint32_type;
This page took 0.023174 seconds and 4 git commands to generate.