Stuff for new machiens
[deliverable/binutils-gdb.git] / bfd / hosts / i386v.h
1 #include <sys/types.h>
2 #include <sys/file.h>
3 #include <fcntl.h>
4 #include <errno.h>
5 #include <stdio.h>
6
7 #include <sys/stat.h>
8 #include <ctype.h>
9 #include <string.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 /*
18 * Some things that need to be defined in order to make code written for
19 * BSD Unix compile under System V ("USG") Unix. This file should be
20 * conditionally included in the source.
21 */
22
23 #include <memory.h>
24 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
25 #define bcopy(src,dst,len) memcpy(dst,src,len)
26 #define bzero(s,n) memset(s,0,n)
27
28 #include <string.h>
29 #define index(s,c) strchr(s,c)
30 #define rindex(s,c) strrchr(s,c)
31
32 /*
33 * Might not need these. Leave them out for now.
34 *
35 #ifdef SEEK_SET
36 # ifndef L_SET
37 # define L_SET SEEK_SET
38 # endif
39 # endif
40
41 #ifdef SEEK_CUR
42 # ifndef L_INCR
43 # define L_INCR SEEK_CUR
44 # endif
45 # endif
46 */
47
48 #ifndef DONTDECLARE_MALLOC
49 extern PROTO(PTR,malloc,(unsigned));
50 extern PROTO(PTR ,realloc, (PTR, unsigned));
51 extern PROTO(void, free,(PTR));
52 #endif
53
54 /* EXACT TYPES */
55 typedef char int8e_type;
56 typedef unsigned char uint8e_type;
57 typedef short int16e_type;
58 typedef unsigned short uint16e_type;
59 typedef int int32e_type;
60 typedef unsigned int uint32e_type;
61
62 /* CORRECT SIZE OR GREATER */
63 typedef char int8_type;
64 typedef unsigned char uint8_type;
65 typedef short int16_type;
66 typedef unsigned short uint16_type;
67 typedef int int32_type;
68 typedef unsigned int uint32_type;
69
This page took 0.032669 seconds and 5 git commands to generate.