* hosts/std-host.h: New file. Attempt at a generic/default
[deliverable/binutils-gdb.git] / bfd / hosts / hp300.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 #ifndef O_ACCMODE
10 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
11 #endif
12 #define SEEK_SET 0
13 #define SEEK_CUR 1
14
15 #define USE_UTIME
16
17 void free();
18
19 /* Some things that need to be defined in order to make code written for
20 BSD Unix compile under System V Unix. */
21
22 #include <memory.h>
23 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
24 #define bcopy(src,dst,len) memcpy(dst,src,len)
25 #define bzero(s,n) memset(s,0,n)
26
27 #if 0
28 static int
29 rename(from, to)
30 {
31 unlink(to);
32 return(link(from, to));
33 }
34 #endif
35
36 /*
37 * Might not need these. Leave them out for now.
38 *
39 #include <string.h>
40 #define index(s,c) strchr(s,c)
41 #define rindex(s,c) strrchr(s,c)
42 */
43
44 /* EXACT TYPES */
45 typedef char int8e_type;
46 typedef unsigned char uint8e_type;
47 typedef short int16e_type;
48 typedef unsigned short uint16e_type;
49 typedef int int32e_type;
50 typedef unsigned int uint32e_type;
51
52 /* CORRECT SIZE OR GREATER */
53 typedef char int8_type;
54 typedef unsigned char uint8_type;
55 typedef short int16_type;
56 typedef unsigned short uint16_type;
57 typedef int int32_type;
58 typedef unsigned int uint32_type;
59
60 #include "fopen-same.h"
This page took 0.056004 seconds and 4 git commands to generate.