1
/************************************************
3
missing.h - prototype for *.c in ./missing, and
4
for missing timeval struct
7
$Date: 2007-06-10 12:06:15 +0900 (日, 10 6月 2007) $
8
created at: Sat May 11 23:46:03 JST 2002
10
************************************************/
12
#ifndef RUBY_MISSING_H
13
#define RUBY_MISSING_H 1
15
#if defined(__cplusplus)
18
} /* satisfy cc-mode */
22
#if defined(HAVE_SYS_TIME_H)
23
# include <sys/time.h>
24
#elif !defined(_WIN32)
27
time_t tv_sec; /* seconds */
28
time_t tv_usec; /* microseconds */
31
#if defined(HAVE_SYS_TYPES_H)
32
# include <sys/types.h>
36
extern double acosh(double);
37
extern double asinh(double);
38
extern double atanh(double);
42
extern char *crypt(const char *, const char *);
46
extern int dup2(int, int);
50
extern int eaccess(const char*, int);
54
extern int finite(double);
58
extern int flock(int, int);
63
extern double frexp(double, int *);
68
extern double hypot(double, double);
72
extern double erf(double);
73
extern double erfc(double);
78
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
79
# define isinf(x) (!finite(x) && !isnan(x))
81
extern int isinf(double);
87
extern int isnan(double);
92
extern int memcmp(const void *, const void *, size_t);
97
extern void *memmove(void *, const void *, size_t);
102
extern double modf(double, double *);
106
#ifndef HAVE_STRCASECMP
107
extern int strcasecmp(const char *, const char *);
110
#ifndef HAVE_STRNCASECMP
111
extern int strncasecmp(const char *, const char *, size_t);
115
extern char *strchr(const char *, int);
116
extern char *strrchr(const char *, int);
119
#ifndef HAVE_STRERROR
120
extern char *strerror(int);
123
#ifndef HAVE_STRFTIME
124
extern size_t strftime(char *, size_t, const char *, const struct tm *);
128
extern char *strstr(const char *, const char *);
133
extern long strtol(const char *, char **, int);
138
extern unsigned long strtoul(const char *, char **, int);
141
#ifndef HAVE_VSNPRINTF
143
extern int snprintf(char *, size_t n, char const *, ...);
144
extern int vsnprintf(char *, size_t n, char const *, va_list);
148
extern size_t strlcpy(char *, const char*, size_t);
152
extern size_t strlcat(char *, const char*, size_t);
155
#if defined(__cplusplus)
157
{ /* satisfy cc-mode */
162
#endif /* RUBY_MISSING_H */