Declare free() for hpux.
[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
10 void free();
11
12 #ifndef O_ACCMODE
13 #define O_ACCMODE (O_RDONLY | O_WRONLY | O_RDWR)
14 #endif
15 #define SEEK_SET 0
16 #define SEEK_CUR 1
17
18 /*
19 * Some things that need to be defined in order to make code written for
20 * BSD Unix compile under System V ("USG") Unix. This file should be
21 * conditionally included in the source.
22 */
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 #if 0
30 static int
31 rename(from, to)
32 {
33 unlink(to);
34 return(link(from, to));
35 }
36 #endif
37
38 /*
39 * Might not need these. Leave them out for now.
40 *
41 #include <string.h>
42 #define index(s,c) strchr(s,c)
43 #define rindex(s,c) strrchr(s,c)
44
45 #ifdef SEEK_SET
46 # ifndef L_SET
47 # define L_SET SEEK_SET
48 # endif
49 # endif
50
51 #ifdef SEEK_CUR
52 # ifndef L_INCR
53 # define L_INCR SEEK_CUR
54 # endif
55 # endif
56 */
57
58 /* EXACT TYPES */
59 typedef char int8e_type;
60 typedef unsigned char uint8e_type;
61 typedef short int16e_type;
62 typedef unsigned short uint16e_type;
63 typedef int int32e_type;
64 typedef unsigned int uint32e_type;
65
66 /* CORRECT SIZE OR GREATER */
67 typedef char int8_type;
68 typedef unsigned char uint8_type;
69 typedef short int16_type;
70 typedef unsigned short uint16_type;
71 typedef int int32_type;
72 typedef unsigned int uint32_type;
73
74 #include "fopen-same.h"
This page took 0.031352 seconds and 5 git commands to generate.