recording file death
[deliverable/binutils-gdb.git] / bfd / hosts / hp9000.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 void free();
16
17 /* Some things that need to be defined in order to make code written for
18 BSD Unix compile under System V Unix. */
19
20 #include <memory.h>
21 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
22 #define bcopy(src,dst,len) memcpy(dst,src,len)
23 #define bzero(s,n) memset(s,0,n)
24
25 #if 0
26 static int
27 rename(from, to)
28 {
29 unlink(to);
30 return(link(from, to));
31 }
32 #endif
33
34 /*
35 * Might not need these. Leave them out for now.
36 *
37 #include <string.h>
38 #define index(s,c) strchr(s,c)
39 #define rindex(s,c) strrchr(s,c)
40
41 #ifdef SEEK_SET
42 # ifndef L_SET
43 # define L_SET SEEK_SET
44 # endif
45 # endif
46
47 #ifdef SEEK_CUR
48 # ifndef L_INCR
49 # define L_INCR SEEK_CUR
50 # endif
51 # endif
52 */
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
70 #include "fopen-same.h"
This page took 0.033934 seconds and 4 git commands to generate.