Ruby
2.7.1p83(2020-03-31revisiona0c7c23c9cec0d0ffcba012279cd652d28ad5bf3)
|
Go to the documentation of this file.
11 #ifndef RUBY_MISSING_H
12 #define RUBY_MISSING_H 1
14 #if defined(__cplusplus)
21 #include "ruby/config.h"
24 #ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
25 # include RUBY_ALTERNATIVE_MALLOC_HEADER
28 #include RUBY_EXTCONF_H
31 #if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC)
32 #if defined(HAVE_TIME_H)
35 #if defined(HAVE_SYS_TIME_H)
36 # include <sys/time.h>
41 # define M_PI 3.14159265358979323846
44 # define M_PI_2 (M_PI/2)
47 #ifndef RUBY_SYMBOL_EXPORT_BEGIN
48 # define RUBY_SYMBOL_EXPORT_BEGIN
49 # define RUBY_SYMBOL_EXPORT_END
52 #if !defined(HAVE_STRUCT_TIMEVAL)
59 #if !defined(HAVE_STRUCT_TIMESPEC)
66 #if !defined(HAVE_STRUCT_TIMEZONE)
77 #define RUBY_EXTERN extern
131 #ifndef HAVE_LGAMMA_R
139 #if !defined(INFINITY) || !defined(NAN)
149 # define INFINITY (rb_infinity.float_value)
150 # define USE_RB_INFINITY 1
156 # define NAN (rb_nan.float_value)
157 # define USE_RB_NAN 1
161 # define HUGE_VAL ((double)INFINITY)
166 # if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
167 # ifdef HAVE_IEEEFP_H
170 # define isinf(x) (!finite(x) && !isnan(x))
171 # elif defined(__cplusplus) && __cplusplus >= 201103L
181 # if defined(__cplusplus) && __cplusplus >= 201103L
190 # ifndef HAVE_ISFINITE
191 # define HAVE_ISFINITE 1
192 # define isfinite(x) finite(x)
200 #ifndef HAVE_NEXTAFTER
225 #ifndef HAVE_STRERROR
250 #include <sys/types.h>
251 #include <sys/socket.h>
258 #ifndef HAVE_SETPROCTITLE
262 #ifndef HAVE_EXPLICIT_BZERO
264 # if defined SecureZeroMemory
265 # define explicit_bzero(b, len) SecureZeroMemory(b, len)
271 #if defined(__cplusplus)
#define RUBY_SYMBOL_EXPORT_END
RUBY_EXTERN const union bytesequence4_or_float rb_nan
RUBY_EXTERN int isinf(double)
RUBY_EXTERN size_t strlcat(char *, const char *, size_t)
RUBY_EXTERN char * strstr(const char *, const char *)
RUBY_EXTERN void explicit_bzero(void *b, size_t len)
int ruby_getpeername(int s, struct sockaddr *name, socklen_t *namelen)
RUBY_EXTERN const union bytesequence4_or_float rb_infinity
RUBY_EXTERN int signbit(double x)
RUBY_EXTERN int eaccess(const char *, int)
RUBY_EXTERN double erfc(double)
RUBY_EXTERN char * crypt(const char *, const char *)
RUBY_EXTERN double round(double)
RUBY_EXTERN char * strerror(int)
RUBY_EXTERN void * memmove(void *, const void *, size_t)
int ruby_shutdown(int s, int how)
RUBY_EXTERN double nan(const char *)
RUBY_EXTERN char * strrchr(const char *, int)
RUBY_EXTERN double lgamma_r(double, int *)
RUBY_EXTERN size_t strlcpy(char *, const char *, size_t)
RUBY_EXTERN void setproctitle(const char *fmt,...)
RUBY_EXTERN double erf(double)
RUBY_EXTERN int dup2(int, int)
RUBY_EXTERN double hypot(double, double)
#define RUBY_SYMBOL_EXPORT_BEGIN
RUBY_EXTERN int finite(double)
RUBY_EXTERN char * strchr(const char *, int)
RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh(double)
int ruby_getsockname(int s, struct sockaddr *name, socklen_t *namelen)
unsigned char bytesequence[4]
RUBY_EXTERN double asinh(double)
RUBY_EXTERN double cbrt(double)
RUBY_EXTERN double atanh(double)
RUBY_EXTERN double nextafter(double x, double y)
RUBY_EXTERN double tgamma(double)
RUBY_EXTERN int flock(int, int)
RUBY_EXTERN int isnan(double)