8525052763d2d9831bc4e5cd24326b53f4d97179
[binutils-gdb.git] / bfd / hosts / rtbsd.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
10 #ifndef O_ACCMODE
11 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
12 #endif
13
14 #define SEEK_SET 0
15 #define SEEK_CUR 1
16
17 extern char *malloc();
18 extern void free();
19
20
21 /* EXACT TYPES */
22 typedef char int8e_type;
23 typedef unsigned char uint8e_type;
24 typedef short int16e_type;
25 typedef unsigned short uint16e_type;
26 typedef int int32e_type;
27 typedef unsigned int uint32e_type;
28
29 /* CORRECT SIZE OR GREATER */
30 typedef char int8_type;
31 typedef unsigned char uint8_type;
32 typedef short int16_type;
33 typedef unsigned short uint16_type;
34 typedef int int32_type;
35 typedef unsigned int uint32_type;