1 | /************************************************
|
---|
2 |
|
---|
3 | missing.h - prototype for *.c in ./missing, and
|
---|
4 | for missing timeval struct
|
---|
5 |
|
---|
6 | $Author: shyouhei $
|
---|
7 | $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
|
---|
8 | created at: Sat May 11 23:46:03 JST 2002
|
---|
9 |
|
---|
10 | ************************************************/
|
---|
11 |
|
---|
12 | #ifndef MISSING_H
|
---|
13 | #define MISSING_H
|
---|
14 |
|
---|
15 | #if defined(HAVE_SYS_TIME_H)
|
---|
16 | # include <sys/time.h>
|
---|
17 | #elif !defined(_WIN32)
|
---|
18 | # define time_t long
|
---|
19 | struct timeval {
|
---|
20 | time_t tv_sec; /* seconds */
|
---|
21 | time_t tv_usec; /* microseconds */
|
---|
22 | };
|
---|
23 | #endif
|
---|
24 | #if defined(HAVE_SYS_TYPES_H)
|
---|
25 | # include <sys/types.h>
|
---|
26 | #endif
|
---|
27 |
|
---|
28 | #ifndef HAVE_ACOSH
|
---|
29 | extern double acosh _((double));
|
---|
30 | extern double asinh _((double));
|
---|
31 | extern double atanh _((double));
|
---|
32 | #endif
|
---|
33 |
|
---|
34 | #ifndef HAVE_CRYPT
|
---|
35 | extern char *crypt _((char *, char *));
|
---|
36 | #endif
|
---|
37 |
|
---|
38 | #ifndef HAVE_DUP2
|
---|
39 | extern int dup2 _((int, int));
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | #ifndef HAVE_EACCESS
|
---|
43 | extern int eaccess _((const char*, int));
|
---|
44 | #endif
|
---|
45 |
|
---|
46 | #ifndef HAVE_FINITE
|
---|
47 | extern int finite _((double));
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #ifndef HAVE_FLOCK
|
---|
51 | extern int flock _((int, int));
|
---|
52 | #endif
|
---|
53 |
|
---|
54 | /*
|
---|
55 | #ifndef HAVE_FREXP
|
---|
56 | extern double frexp _((double, int *));
|
---|
57 | #endif
|
---|
58 | */
|
---|
59 |
|
---|
60 | #ifndef HAVE_HYPOT
|
---|
61 | extern double hypot _((double, double));
|
---|
62 | #endif
|
---|
63 |
|
---|
64 | #ifndef HAVE_ERF
|
---|
65 | extern double erf _((double));
|
---|
66 | extern double erfc _((double));
|
---|
67 | #endif
|
---|
68 |
|
---|
69 | #ifndef HAVE_ISINF
|
---|
70 | # if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
---|
71 | # define isinf(x) (!finite(x) && !isnan(x))
|
---|
72 | # else
|
---|
73 | extern int isinf _((double));
|
---|
74 | # endif
|
---|
75 | #endif
|
---|
76 |
|
---|
77 | #ifndef HAVE_ISNAN
|
---|
78 | extern int isnan _((double));
|
---|
79 | #endif
|
---|
80 |
|
---|
81 | /*
|
---|
82 | #ifndef HAVE_MEMCMP
|
---|
83 | extern int memcmp _((char *, char *, int));
|
---|
84 | #endif
|
---|
85 | */
|
---|
86 |
|
---|
87 | #ifndef HAVE_MEMMOVE
|
---|
88 | extern void *memmove _((void *, void *, int));
|
---|
89 | #endif
|
---|
90 |
|
---|
91 | /*
|
---|
92 | #ifndef HAVE_MODF
|
---|
93 | extern double modf _((double, double *));
|
---|
94 | #endif
|
---|
95 | */
|
---|
96 |
|
---|
97 | #ifndef HAVE_STRCASECMP
|
---|
98 | extern int strcasecmp _((char *, char *));
|
---|
99 | #endif
|
---|
100 |
|
---|
101 | #ifndef HAVE_STRNCASECMP
|
---|
102 | extern int strncasecmp _((char *, char *, int));
|
---|
103 | #endif
|
---|
104 |
|
---|
105 | #ifndef HAVE_STRCHR
|
---|
106 | extern char *strchr _((char *, int));
|
---|
107 | extern char *strrchr _((char *, int));
|
---|
108 | #endif
|
---|
109 |
|
---|
110 | #ifndef HAVE_STRERROR
|
---|
111 | extern char *strerror _((int));
|
---|
112 | #endif
|
---|
113 |
|
---|
114 | #ifndef HAVE_STRFTIME
|
---|
115 | extern size_t strftime _((char *, size_t, const char *, const struct tm *));
|
---|
116 | #endif
|
---|
117 |
|
---|
118 | #ifndef HAVE_STRSTR
|
---|
119 | extern char *strstr _((char *, char *));
|
---|
120 | #endif
|
---|
121 |
|
---|
122 | /*
|
---|
123 | #ifndef HAVE_STRTOL
|
---|
124 | extern long strtol _((char *, char **, int));
|
---|
125 | #endif
|
---|
126 | */
|
---|
127 |
|
---|
128 | #ifndef HAVE_STRTOUL
|
---|
129 | extern unsigned long strtoul _((char *, char **, int));
|
---|
130 | #endif
|
---|
131 |
|
---|
132 | #ifndef HAVE_VSNPRINTF
|
---|
133 | # ifdef HAVE_STDARG_PROTOTYPES
|
---|
134 | # include <stdarg.h>
|
---|
135 | # else
|
---|
136 | # include <varargs.h>
|
---|
137 | # endif
|
---|
138 | extern int snprintf __((char *, size_t n, char const *, ...));
|
---|
139 | extern int vsnprintf _((char *, size_t n, char const *, va_list));
|
---|
140 | #endif
|
---|
141 |
|
---|
142 | #endif /* MISSING_H */
|
---|