* sys/h-vaxult.h: Make it work. (David Taylor <taylor@think.com>)
[binutils-gdb.git] / bfd / hosts / vaxult.h
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 <stdlib.h>
10
11 #ifndef O_ACCMODE
12 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
13 #endif
14 #define SEEK_SET 0
15 #define SEEK_CUR 1
16
17 #include <machine/param.h>
18 #include <machine/vmparam.h>
19 #define HOST_PAGE_SIZE NBPG
20 #define HOST_SEGMENT_SIZE NBPG /* Data seg start addr rounds to NBPG */
21 #define HOST_MACHINE_ARCH bfd_arch_vax
22 /* #define HOST_MACHINE_MACHINE */
23
24 #define HOST_TEXT_START_ADDR USRTEXT
25 #define HOST_STACK_END_ADDR USRSTACK
26
27
28 /* EXACT TYPES */
29 typedef char int8e_type;
30 typedef unsigned char uint8e_type;
31 typedef short int16e_type;
32 typedef unsigned short uint16e_type;
33 typedef int int32e_type;
34 typedef unsigned int uint32e_type;
35
36 /* CORRECT SIZE OR GREATER */
37 typedef char int8_type;
38 typedef unsigned char uint8_type;
39 typedef short int16_type;
40 typedef unsigned short uint16_type;
41 typedef int int32_type;
42 typedef unsigned int uint32_type;
43