Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/smanonr..../opt/alt/ruby27/include/ruby
File: missing.h
/************************************************
[0] Fix | Delete
[1] Fix | Delete
missing.h - prototype for *.c in ./missing, and
[2] Fix | Delete
for missing timeval struct
[3] Fix | Delete
[4] Fix | Delete
$Author$
[5] Fix | Delete
created at: Sat May 11 23:46:03 JST 2002
[6] Fix | Delete
[7] Fix | Delete
************************************************/
[8] Fix | Delete
[9] Fix | Delete
#ifndef RUBY_MISSING_H
[10] Fix | Delete
#define RUBY_MISSING_H 1
[11] Fix | Delete
[12] Fix | Delete
#if defined(__cplusplus)
[13] Fix | Delete
extern "C" {
[14] Fix | Delete
#if 0
[15] Fix | Delete
} /* satisfy cc-mode */
[16] Fix | Delete
#endif
[17] Fix | Delete
#endif
[18] Fix | Delete
[19] Fix | Delete
#include "ruby/config.h"
[20] Fix | Delete
#include <stddef.h>
[21] Fix | Delete
#include <math.h> /* for INFINITY and NAN */
[22] Fix | Delete
#ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
[23] Fix | Delete
# include RUBY_ALTERNATIVE_MALLOC_HEADER
[24] Fix | Delete
#endif
[25] Fix | Delete
#ifdef RUBY_EXTCONF_H
[26] Fix | Delete
#include RUBY_EXTCONF_H
[27] Fix | Delete
#endif
[28] Fix | Delete
[29] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEVAL) || !defined(HAVE_STRUCT_TIMESPEC)
[30] Fix | Delete
#if defined(HAVE_TIME_H)
[31] Fix | Delete
# include <time.h>
[32] Fix | Delete
#endif
[33] Fix | Delete
#if defined(HAVE_SYS_TIME_H)
[34] Fix | Delete
# include <sys/time.h>
[35] Fix | Delete
#endif
[36] Fix | Delete
#endif
[37] Fix | Delete
[38] Fix | Delete
#ifndef M_PI
[39] Fix | Delete
# define M_PI 3.14159265358979323846
[40] Fix | Delete
#endif
[41] Fix | Delete
#ifndef M_PI_2
[42] Fix | Delete
# define M_PI_2 (M_PI/2)
[43] Fix | Delete
#endif
[44] Fix | Delete
[45] Fix | Delete
#ifndef RUBY_SYMBOL_EXPORT_BEGIN
[46] Fix | Delete
# define RUBY_SYMBOL_EXPORT_BEGIN /* begin */
[47] Fix | Delete
# define RUBY_SYMBOL_EXPORT_END /* end */
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEVAL)
[51] Fix | Delete
struct timeval {
[52] Fix | Delete
time_t tv_sec; /* seconds */
[53] Fix | Delete
long tv_usec; /* microseconds */
[54] Fix | Delete
};
[55] Fix | Delete
#endif /* HAVE_STRUCT_TIMEVAL */
[56] Fix | Delete
[57] Fix | Delete
#if !defined(HAVE_STRUCT_TIMESPEC)
[58] Fix | Delete
struct timespec {
[59] Fix | Delete
time_t tv_sec; /* seconds */
[60] Fix | Delete
long tv_nsec; /* nanoseconds */
[61] Fix | Delete
};
[62] Fix | Delete
#endif
[63] Fix | Delete
[64] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEZONE)
[65] Fix | Delete
struct timezone {
[66] Fix | Delete
int tz_minuteswest;
[67] Fix | Delete
int tz_dsttime;
[68] Fix | Delete
};
[69] Fix | Delete
#endif
[70] Fix | Delete
[71] Fix | Delete
#ifdef RUBY_EXPORT
[72] Fix | Delete
#undef RUBY_EXTERN
[73] Fix | Delete
#endif
[74] Fix | Delete
#ifndef RUBY_EXTERN
[75] Fix | Delete
#define RUBY_EXTERN extern
[76] Fix | Delete
#endif
[77] Fix | Delete
[78] Fix | Delete
RUBY_SYMBOL_EXPORT_BEGIN
[79] Fix | Delete
[80] Fix | Delete
#ifndef HAVE_ACOSH
[81] Fix | Delete
RUBY_EXTERN double acosh(double);
[82] Fix | Delete
RUBY_EXTERN double asinh(double);
[83] Fix | Delete
RUBY_EXTERN double atanh(double);
[84] Fix | Delete
#endif
[85] Fix | Delete
[86] Fix | Delete
#ifndef HAVE_CRYPT
[87] Fix | Delete
RUBY_EXTERN char *crypt(const char *, const char *);
[88] Fix | Delete
#endif
[89] Fix | Delete
[90] Fix | Delete
#ifndef HAVE_DUP2
[91] Fix | Delete
RUBY_EXTERN int dup2(int, int);
[92] Fix | Delete
#endif
[93] Fix | Delete
[94] Fix | Delete
#ifndef HAVE_EACCESS
[95] Fix | Delete
RUBY_EXTERN int eaccess(const char*, int);
[96] Fix | Delete
#endif
[97] Fix | Delete
[98] Fix | Delete
#ifndef HAVE_ROUND
[99] Fix | Delete
RUBY_EXTERN double round(double); /* numeric.c */
[100] Fix | Delete
#endif
[101] Fix | Delete
[102] Fix | Delete
#ifndef HAVE_FINITE
[103] Fix | Delete
RUBY_EXTERN int finite(double);
[104] Fix | Delete
#endif
[105] Fix | Delete
[106] Fix | Delete
#ifndef HAVE_FLOCK
[107] Fix | Delete
RUBY_EXTERN int flock(int, int);
[108] Fix | Delete
#endif
[109] Fix | Delete
[110] Fix | Delete
/*
[111] Fix | Delete
#ifndef HAVE_FREXP
[112] Fix | Delete
RUBY_EXTERN double frexp(double, int *);
[113] Fix | Delete
#endif
[114] Fix | Delete
*/
[115] Fix | Delete
[116] Fix | Delete
#ifndef HAVE_HYPOT
[117] Fix | Delete
RUBY_EXTERN double hypot(double, double);
[118] Fix | Delete
#endif
[119] Fix | Delete
[120] Fix | Delete
#ifndef HAVE_ERF
[121] Fix | Delete
RUBY_EXTERN double erf(double);
[122] Fix | Delete
RUBY_EXTERN double erfc(double);
[123] Fix | Delete
#endif
[124] Fix | Delete
[125] Fix | Delete
#ifndef HAVE_TGAMMA
[126] Fix | Delete
RUBY_EXTERN double tgamma(double);
[127] Fix | Delete
#endif
[128] Fix | Delete
[129] Fix | Delete
#ifndef HAVE_LGAMMA_R
[130] Fix | Delete
RUBY_EXTERN double lgamma_r(double, int *);
[131] Fix | Delete
#endif
[132] Fix | Delete
[133] Fix | Delete
#ifndef HAVE_CBRT
[134] Fix | Delete
RUBY_EXTERN double cbrt(double);
[135] Fix | Delete
#endif
[136] Fix | Delete
[137] Fix | Delete
#if !defined(INFINITY) || !defined(NAN)
[138] Fix | Delete
union bytesequence4_or_float {
[139] Fix | Delete
unsigned char bytesequence[4];
[140] Fix | Delete
float float_value;
[141] Fix | Delete
};
[142] Fix | Delete
#endif
[143] Fix | Delete
[144] Fix | Delete
#ifndef INFINITY
[145] Fix | Delete
/** @internal */
[146] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_infinity;
[147] Fix | Delete
# define INFINITY (rb_infinity.float_value)
[148] Fix | Delete
# define USE_RB_INFINITY 1
[149] Fix | Delete
#endif
[150] Fix | Delete
[151] Fix | Delete
#ifndef NAN
[152] Fix | Delete
/** @internal */
[153] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_nan;
[154] Fix | Delete
# define NAN (rb_nan.float_value)
[155] Fix | Delete
# define USE_RB_NAN 1
[156] Fix | Delete
#endif
[157] Fix | Delete
[158] Fix | Delete
#ifndef HUGE_VAL
[159] Fix | Delete
# define HUGE_VAL ((double)INFINITY)
[160] Fix | Delete
#endif
[161] Fix | Delete
[162] Fix | Delete
#ifndef isinf
[163] Fix | Delete
# ifndef HAVE_ISINF
[164] Fix | Delete
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
[165] Fix | Delete
# ifdef HAVE_IEEEFP_H
[166] Fix | Delete
# include <ieeefp.h>
[167] Fix | Delete
# endif
[168] Fix | Delete
# define isinf(x) (!finite(x) && !isnan(x))
[169] Fix | Delete
# elif defined(__cplusplus) && __cplusplus >= 201103L
[170] Fix | Delete
# include <cmath> // it must include constexpr bool isinf(double);
[171] Fix | Delete
# else
[172] Fix | Delete
RUBY_EXTERN int isinf(double);
[173] Fix | Delete
# endif
[174] Fix | Delete
# endif
[175] Fix | Delete
#endif
[176] Fix | Delete
[177] Fix | Delete
#ifndef isnan
[178] Fix | Delete
# ifndef HAVE_ISNAN
[179] Fix | Delete
# if defined(__cplusplus) && __cplusplus >= 201103L
[180] Fix | Delete
# include <cmath> // it must include constexpr bool isnan(double);
[181] Fix | Delete
# else
[182] Fix | Delete
RUBY_EXTERN int isnan(double);
[183] Fix | Delete
# endif
[184] Fix | Delete
# endif
[185] Fix | Delete
#endif
[186] Fix | Delete
[187] Fix | Delete
#ifndef isfinite
[188] Fix | Delete
# ifndef HAVE_ISFINITE
[189] Fix | Delete
# define HAVE_ISFINITE 1
[190] Fix | Delete
# define isfinite(x) finite(x)
[191] Fix | Delete
# endif
[192] Fix | Delete
#endif
[193] Fix | Delete
[194] Fix | Delete
#ifndef HAVE_NAN
[195] Fix | Delete
RUBY_EXTERN double nan(const char *);
[196] Fix | Delete
#endif
[197] Fix | Delete
[198] Fix | Delete
#ifndef HAVE_NEXTAFTER
[199] Fix | Delete
RUBY_EXTERN double nextafter(double x, double y);
[200] Fix | Delete
#endif
[201] Fix | Delete
[202] Fix | Delete
/*
[203] Fix | Delete
#ifndef HAVE_MEMCMP
[204] Fix | Delete
RUBY_EXTERN int memcmp(const void *, const void *, size_t);
[205] Fix | Delete
#endif
[206] Fix | Delete
*/
[207] Fix | Delete
[208] Fix | Delete
#ifndef HAVE_MEMMOVE
[209] Fix | Delete
RUBY_EXTERN void *memmove(void *, const void *, size_t);
[210] Fix | Delete
#endif
[211] Fix | Delete
[212] Fix | Delete
/*
[213] Fix | Delete
#ifndef HAVE_MODF
[214] Fix | Delete
RUBY_EXTERN double modf(double, double *);
[215] Fix | Delete
#endif
[216] Fix | Delete
*/
[217] Fix | Delete
[218] Fix | Delete
#ifndef HAVE_STRCHR
[219] Fix | Delete
RUBY_EXTERN char *strchr(const char *, int);
[220] Fix | Delete
RUBY_EXTERN char *strrchr(const char *, int);
[221] Fix | Delete
#endif
[222] Fix | Delete
[223] Fix | Delete
#ifndef HAVE_STRERROR
[224] Fix | Delete
RUBY_EXTERN char *strerror(int);
[225] Fix | Delete
#endif
[226] Fix | Delete
[227] Fix | Delete
#ifndef HAVE_STRSTR
[228] Fix | Delete
RUBY_EXTERN char *strstr(const char *, const char *);
[229] Fix | Delete
#endif
[230] Fix | Delete
[231] Fix | Delete
#ifndef HAVE_STRLCPY
[232] Fix | Delete
RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
[233] Fix | Delete
#endif
[234] Fix | Delete
[235] Fix | Delete
#ifndef HAVE_STRLCAT
[236] Fix | Delete
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
[237] Fix | Delete
#endif
[238] Fix | Delete
[239] Fix | Delete
#ifndef HAVE_SIGNBIT
[240] Fix | Delete
RUBY_EXTERN int signbit(double x);
[241] Fix | Delete
#endif
[242] Fix | Delete
[243] Fix | Delete
#ifndef HAVE_FFS
[244] Fix | Delete
RUBY_EXTERN int ffs(int);
[245] Fix | Delete
#endif
[246] Fix | Delete
[247] Fix | Delete
#ifdef BROKEN_CLOSE
[248] Fix | Delete
#include <sys/types.h>
[249] Fix | Delete
#include <sys/socket.h>
[250] Fix | Delete
RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *);
[251] Fix | Delete
RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *);
[252] Fix | Delete
RUBY_EXTERN int ruby_shutdown(int, int);
[253] Fix | Delete
RUBY_EXTERN int ruby_close(int);
[254] Fix | Delete
#endif
[255] Fix | Delete
[256] Fix | Delete
#ifndef HAVE_SETPROCTITLE
[257] Fix | Delete
RUBY_EXTERN void setproctitle(const char *fmt, ...);
[258] Fix | Delete
#endif
[259] Fix | Delete
[260] Fix | Delete
#ifndef HAVE_EXPLICIT_BZERO
[261] Fix | Delete
RUBY_EXTERN void explicit_bzero(void *b, size_t len);
[262] Fix | Delete
# if defined SecureZeroMemory
[263] Fix | Delete
# define explicit_bzero(b, len) SecureZeroMemory(b, len)
[264] Fix | Delete
# endif
[265] Fix | Delete
#endif
[266] Fix | Delete
[267] Fix | Delete
RUBY_SYMBOL_EXPORT_END
[268] Fix | Delete
[269] Fix | Delete
#if defined(__cplusplus)
[270] Fix | Delete
#if 0
[271] Fix | Delete
{ /* satisfy cc-mode */
[272] Fix | Delete
#endif
[273] Fix | Delete
} /* extern "C" { */
[274] Fix | Delete
#endif
[275] Fix | Delete
[276] Fix | Delete
#endif /* RUBY_MISSING_H */
[277] Fix | Delete
[278] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function