Mon Jan 3 10:59:28 1994 Stan Shebs (shebs@andros.cygnus.com)
[platform/upstream/binutils.git] / bfd / hosts / i386v.h
1 #include <ansidecl.h>
2 #include <fcntl.h>
3 #include <errno.h>
4 #include <stdio.h>
5 #include <sys/types.h>
6 #include <sys/stat.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 #define USE_UTIME
20
21 /* Some things that need to be defined in order to make code written for
22    BSD Unix compile under System V Unix.  */
23
24 /*#include <memory.h>*/
25 #define bcmp(b1,b2,len)         memcmp(b1,b2,len)
26 #define bcopy(src,dst,len)      memcpy(dst,src,len)
27 #define bzero(s,n)              memset(s,0,n)
28
29 #include <string.h>
30
31 #ifndef DONTDECLARE_MALLOC
32 extern PTR  malloc      PARAMS ((unsigned));
33 extern PTR  realloc     PARAMS ((PTR, unsigned));
34 extern void free        PARAMS ((PTR));
35 #endif
36
37 #include "fopen-same.h"