2002-05-11 23:31:18 +04:00
|
|
|
/************************************************
|
|
|
|
|
2002-09-17 17:52:45 +04:00
|
|
|
missing.h - prototype for *.c in ./missing, and
|
|
|
|
for missing timeval struct
|
2002-05-11 23:31:18 +04:00
|
|
|
|
|
|
|
$Author$
|
|
|
|
$Date$
|
|
|
|
created at: Sat May 11 23:46:03 JST 2002
|
|
|
|
|
|
|
|
************************************************/
|
|
|
|
|
|
|
|
#ifndef MISSING_H
|
|
|
|
#define MISSING_H
|
|
|
|
|
2002-09-17 17:52:45 +04:00
|
|
|
#if defined(HAVE_SYS_TIME_H)
|
|
|
|
# include <sys/time.h>
|
* configure.in, defines.h, dir.c, dir.h, dln.c, error.c,
eval.c, file.c, hash.c, io.c, main.c, missing.c,
process.c, ruby.c, rubysig.h, signal.c, st.c, util.c, util.h,
bcc/Makefile.sub, win32/Makefile.sub, win32/win32.h,
ext/Win32API/Win32API.c, ext/socket/getaddrinfo.c,
ext/socket/getnameinfo.c, ext/socket/socket.c,
ext/tcltklib/stubs.c
: replace "NT" with "_WIN32", add DOSISH_DRIVE_LETTER
* wince/exe.mak : delete \r at the end of lines.
* wince/mswince-ruby17.def : delete rb_obj_become
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-15 06:18:08 +03:00
|
|
|
#elif !defined(_WIN32)
|
2002-09-17 17:52:45 +04:00
|
|
|
# define time_t long
|
|
|
|
struct timeval {
|
|
|
|
time_t tv_sec; /* seconds */
|
|
|
|
time_t tv_usec; /* microseconds */
|
|
|
|
};
|
|
|
|
#endif
|
2005-06-10 17:56:08 +04:00
|
|
|
#if defined(HAVE_SYS_TYPES_H)
|
|
|
|
# include <sys/types.h>
|
|
|
|
#endif
|
2002-09-17 17:52:45 +04:00
|
|
|
|
2002-05-11 23:31:18 +04:00
|
|
|
#ifndef HAVE_ACOSH
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern double acosh(double);
|
|
|
|
extern double asinh(double);
|
|
|
|
extern double atanh(double);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_CRYPT
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern char *crypt(const char *, const char *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_DUP2
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int dup2(int, int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_FINITE
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int finite(double);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_FLOCK
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int flock(int, int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
#ifndef HAVE_FREXP
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern double frexp(double, int *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HAVE_HYPOT
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern double hypot(double, double);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
2003-06-05 10:40:42 +04:00
|
|
|
#ifndef HAVE_ERF
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern double erf(double);
|
|
|
|
extern double erfc(double);
|
2003-06-05 10:40:42 +04:00
|
|
|
#endif
|
|
|
|
|
2002-05-11 23:31:18 +04:00
|
|
|
#ifndef HAVE_ISINF
|
2003-12-22 11:23:55 +03:00
|
|
|
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
|
|
|
|
# define isinf(x) (!finite(x) && !isnan(x))
|
|
|
|
# else
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int isinf(double);
|
2003-12-22 11:23:55 +03:00
|
|
|
# endif
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_ISNAN
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int isnan(double);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
#ifndef HAVE_MEMCMP
|
2005-10-27 06:55:18 +04:00
|
|
|
extern int memcmp(const void *, const void *, size_t);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HAVE_MEMMOVE
|
2005-10-27 06:55:18 +04:00
|
|
|
extern void *memmove(void *, const void *, size_t);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
#ifndef HAVE_MODF
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern double modf(double, double *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HAVE_STRCASECMP
|
2005-10-22 05:28:00 +04:00
|
|
|
extern int strcasecmp(const char *, const char *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRNCASECMP
|
2005-10-22 05:28:00 +04:00
|
|
|
extern int strncasecmp(const char *, const char *, size_t);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRCHR
|
2005-10-20 06:22:50 +04:00
|
|
|
extern char *strchr(const char *, int);
|
|
|
|
extern char *strrchr(const char *, int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRERROR
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern char *strerror(int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRFTIME
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern size_t strftime(char *, size_t, const char *, const struct tm *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_STRSTR
|
2005-10-20 06:22:50 +04:00
|
|
|
extern char *strstr(const char *, const char *);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
#ifndef HAVE_STRTOL
|
2005-10-22 05:28:00 +04:00
|
|
|
extern long strtol(const char *, char **, int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef HAVE_STRTOUL
|
2005-10-22 05:28:00 +04:00
|
|
|
extern unsigned long strtoul(const char *, char **, int);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef HAVE_VSNPRINTF
|
2005-10-22 05:28:00 +04:00
|
|
|
# include <stdarg.h>
|
* bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
* defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
util.c, util.h, variable.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-09-14 10:32:32 +04:00
|
|
|
extern int snprintf(char *, size_t n, char const *, ...);
|
|
|
|
extern int vsnprintf(char *, size_t n, char const *, va_list);
|
2002-05-11 23:31:18 +04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* MISSING_H */
|