328703be941ce0d81b504e917e6a5fdfbbf79714
[deliverable/binutils-gdb.git] / bfd / hosts / i386v.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 <utime.h>
7 #include <ctype.h>
8 #include <string.h>
9 #include <unistd.h>
10
11 #ifndef O_ACCMODE
12 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
13 #endif
14 #ifndef SEEK_SET
15 #define SEEK_SET 0
16 #define SEEK_CUR 1
17 #endif
18
19 #ifndef L_SET
20 # define L_SET SEEK_SET
21 #endif
22
23 #define POSIX_UTIME
24
25 /* Some things that need to be defined in order to make code written for
26 BSD Unix compile under System V Unix. */
27
28 /*#include <memory.h>*/
29 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
30 #define bcopy(src,dst,len) memcpy(dst,src,len)
31 #define bzero(s,n) memset(s,0,n)
32
33 #include <string.h>
34 #define index(s,c) strchr(s,c)
35 #define rindex(s,c) strrchr(s,c)
36
37 /*
38 * Might not need these. Leave them out for now.
39 *
40 #ifdef SEEK_SET
41 # ifndef L_SET
42 # define L_SET SEEK_SET
43 # endif
44 # endif
45
46 #ifdef SEEK_CUR
47 # ifndef L_INCR
48 # define L_INCR SEEK_CUR
49 # endif
50 # endif
51 */
52
53 #ifndef DONTDECLARE_MALLOC
54 extern PTR EXFUN(malloc,(unsigned));
55 extern PTR EXFUN(realloc, (PTR, unsigned));
56 extern void EXFUN(free,(PTR));
57 #endif
58
59 /* EXACT TYPES */
60 typedef char int8e_type;
61 typedef unsigned char uint8e_type;
62 typedef short int16e_type;
63 typedef unsigned short uint16e_type;
64 typedef int int32e_type;
65 typedef unsigned int uint32e_type;
66
67 /* CORRECT SIZE OR GREATER */
68 typedef char int8_type;
69 typedef unsigned char uint8_type;
70 typedef short int16_type;
71 typedef unsigned short uint16_type;
72 typedef int int32_type;
73 typedef unsigned int uint32_type;
74
75 #include "fopen-same.h"
This page took 0.224599 seconds and 3 git commands to generate.