4c7f1dc9e0d92a3199165fd01804a3553345ef0d
[deliverable/binutils-gdb.git] / bfd / hosts / hppahpux.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 /*
16 * Some things that need to be defined in order to make code written for
17 * BSD Unix compile under System V ("USG") Unix. This file should be
18 * conditionally included in the source.
19 */
20
21 #include <memory.h>
22 #define bcmp(b1,b2,len) memcmp(b1,b2,len)
23 #define bcopy(src,dst,len) memcpy(dst,src,len)
24 #define bzero(s,n) memset(s,0,n)
25
26 #if 0
27 static int
28 rename(from, to)
29 {
30 unlink(to);
31 return(link(from, to));
32 }
33 #endif
34
35 /*
36 * Might not need these. Leave them out for now.
37 *
38 #include <string.h>
39 #define index(s,c) strchr(s,c)
40 #define rindex(s,c) strrchr(s,c)
41
42 #ifdef SEEK_SET
43 # ifndef L_SET
44 # define L_SET SEEK_SET
45 # endif
46 # endif
47
48 #ifdef SEEK_CUR
49 # ifndef L_INCR
50 # define L_INCR SEEK_CUR
51 # endif
52 # endif
53 */
54
55 /* EXACT TYPES */
56 typedef char int8e_type;
57 typedef unsigned char uint8e_type;
58 typedef short int16e_type;
59 typedef unsigned short uint16e_type;
60 typedef int int32e_type;
61 typedef unsigned int uint32e_type;
62
63 /* CORRECT SIZE OR GREATER */
64 typedef char int8_type;
65 typedef unsigned char uint8_type;
66 typedef short int16_type;
67 typedef unsigned short uint16_type;
68 typedef int int32_type;
69 typedef unsigned int uint32_type;
70
71 #include "fopen-same.h"
This page took 0.047276 seconds and 4 git commands to generate.