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)
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
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)
161# define HUGE_VAL ((double)INFINITY)
166# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
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
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)
int ruby_getpeername(int s, struct sockaddr *name, socklen_t *namelen)
int ruby_getsockname(int s, struct sockaddr *name, socklen_t *namelen)
int ruby_shutdown(int s, int how)
RUBY_EXTERN void * memmove(void *, const void *, size_t)
RUBY_EXTERN double cbrt(double)
RUBY_EXTERN double nextafter(double x, double y)
RUBY_EXTERN char * strchr(const char *, int)
RUBY_EXTERN char * strstr(const char *, const char *)
RUBY_EXTERN int dup2(int, int)
RUBY_EXTERN const union bytesequence4_or_float rb_nan
RUBY_EXTERN double erf(double)
RUBY_EXTERN double atanh(double)
RUBY_EXTERN char * strrchr(const char *, int)
RUBY_EXTERN int flock(int, int)
#define RUBY_SYMBOL_EXPORT_BEGIN
RUBY_EXTERN double tgamma(double)
RUBY_EXTERN char * strerror(int)
RUBY_EXTERN int signbit(double x)
RUBY_EXTERN double asinh(double)
RUBY_EXTERN double hypot(double, double)
RUBY_EXTERN double nan(const char *)
RUBY_EXTERN double round(double)
RUBY_EXTERN char * crypt(const char *, const char *)
#define RUBY_SYMBOL_EXPORT_END
RUBY_EXTERN int finite(double)
RUBY_EXTERN void setproctitle(const char *fmt,...)
RUBY_EXTERN size_t strlcat(char *, const char *, size_t)
RUBY_EXTERN double erfc(double)
RUBY_EXTERN int isnan(double)
RUBY_EXTERN const union bytesequence4_or_float rb_infinity
RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh(double)
RUBY_EXTERN void explicit_bzero(void *b, size_t len)
RUBY_EXTERN size_t strlcpy(char *, const char *, size_t)
RUBY_EXTERN int isinf(double)
RUBY_EXTERN double lgamma_r(double, int *)
RUBY_EXTERN int eaccess(const char *, int)
unsigned char bytesequence[4]