Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby31/include/ruby
File: missing.h
#ifndef RUBY_MISSING_H /*-*-C++-*-vi:se ft=cpp:*/
[0] Fix | Delete
#define RUBY_MISSING_H 1
[1] Fix | Delete
/**
[2] Fix | Delete
* @author $Author$
[3] Fix | Delete
* @date Sat May 11 23:46:03 JST 2002
[4] Fix | Delete
* @copyright This file is a part of the programming language Ruby.
[5] Fix | Delete
* Permission is hereby granted, to either redistribute and/or
[6] Fix | Delete
* modify this file, provided that the conditions mentioned in the
[7] Fix | Delete
* file COPYING are met. Consult the file for details.
[8] Fix | Delete
* @brief Prototype for *.c in ./missing, and for missing timeval struct.
[9] Fix | Delete
*/
[10] Fix | Delete
#include "ruby/internal/config.h"
[11] Fix | Delete
[12] Fix | Delete
#ifdef STDC_HEADERS
[13] Fix | Delete
# include <stddef.h>
[14] Fix | Delete
#endif
[15] Fix | Delete
[16] Fix | Delete
#if defined(__cplusplus)
[17] Fix | Delete
# include <cmath>
[18] Fix | Delete
#else
[19] Fix | Delete
# include <math.h> /* for INFINITY and NAN */
[20] Fix | Delete
#endif
[21] Fix | Delete
[22] Fix | Delete
#ifdef RUBY_ALTERNATIVE_MALLOC_HEADER
[23] Fix | Delete
# include RUBY_ALTERNATIVE_MALLOC_HEADER
[24] Fix | Delete
#endif
[25] Fix | Delete
[26] Fix | Delete
#if defined(HAVE_TIME_H)
[27] Fix | Delete
# include <time.h>
[28] Fix | Delete
#endif
[29] Fix | Delete
[30] Fix | Delete
#if defined(HAVE_SYS_TIME_H)
[31] Fix | Delete
# include <sys/time.h>
[32] Fix | Delete
#endif
[33] Fix | Delete
[34] Fix | Delete
#ifdef HAVE_IEEEFP_H
[35] Fix | Delete
# include <ieeefp.h>
[36] Fix | Delete
#endif
[37] Fix | Delete
[38] Fix | Delete
#include "ruby/internal/dllexport.h"
[39] Fix | Delete
#include "ruby/internal/attr/format.h"
[40] Fix | Delete
[41] Fix | Delete
#ifndef M_PI
[42] Fix | Delete
# define M_PI 3.14159265358979323846
[43] Fix | Delete
#endif
[44] Fix | Delete
#ifndef M_PI_2
[45] Fix | Delete
# define M_PI_2 (M_PI/2)
[46] Fix | Delete
#endif
[47] Fix | Delete
[48] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEVAL)
[49] Fix | Delete
struct timeval {
[50] Fix | Delete
time_t tv_sec; /* seconds */
[51] Fix | Delete
long tv_usec; /* microseconds */
[52] Fix | Delete
};
[53] Fix | Delete
#endif /* HAVE_STRUCT_TIMEVAL */
[54] Fix | Delete
[55] Fix | Delete
#if !defined(HAVE_STRUCT_TIMESPEC)
[56] Fix | Delete
/* :BEWARE: @shyouhei warns that IT IS A WRONG IDEA to define our own version
[57] Fix | Delete
* of struct timespec here. `clock_gettime` is a system call, and your kernel
[58] Fix | Delete
* could expect something other than just `long` (results stack smashing if
[59] Fix | Delete
* that happens). See also https://ewontfix.com/19/ */
[60] Fix | Delete
struct timespec {
[61] Fix | Delete
time_t tv_sec; /* seconds */
[62] Fix | Delete
long tv_nsec; /* nanoseconds */
[63] Fix | Delete
};
[64] Fix | Delete
#endif
[65] Fix | Delete
[66] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEZONE)
[67] Fix | Delete
struct timezone {
[68] Fix | Delete
int tz_minuteswest;
[69] Fix | Delete
int tz_dsttime;
[70] Fix | Delete
};
[71] Fix | Delete
#endif
[72] Fix | Delete
[73] Fix | Delete
RBIMPL_SYMBOL_EXPORT_BEGIN()
[74] Fix | Delete
[75] Fix | Delete
#ifndef HAVE_ACOSH
[76] Fix | Delete
RUBY_EXTERN double acosh(double);
[77] Fix | Delete
RUBY_EXTERN double asinh(double);
[78] Fix | Delete
RUBY_EXTERN double atanh(double);
[79] Fix | Delete
#endif
[80] Fix | Delete
[81] Fix | Delete
#ifndef HAVE_CRYPT
[82] Fix | Delete
RUBY_EXTERN char *crypt(const char *, const char *);
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
#ifndef HAVE_EACCESS
[86] Fix | Delete
RUBY_EXTERN int eaccess(const char*, int);
[87] Fix | Delete
#endif
[88] Fix | Delete
[89] Fix | Delete
#ifndef HAVE_ROUND
[90] Fix | Delete
RUBY_EXTERN double round(double); /* numeric.c */
[91] Fix | Delete
#endif
[92] Fix | Delete
[93] Fix | Delete
#ifndef HAVE_FLOCK
[94] Fix | Delete
RUBY_EXTERN int flock(int, int);
[95] Fix | Delete
#endif
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
#ifndef HAVE_FREXP
[99] Fix | Delete
RUBY_EXTERN double frexp(double, int *);
[100] Fix | Delete
#endif
[101] Fix | Delete
*/
[102] Fix | Delete
[103] Fix | Delete
#ifndef HAVE_HYPOT
[104] Fix | Delete
RUBY_EXTERN double hypot(double, double);
[105] Fix | Delete
#endif
[106] Fix | Delete
[107] Fix | Delete
#ifndef HAVE_ERF
[108] Fix | Delete
RUBY_EXTERN double erf(double);
[109] Fix | Delete
RUBY_EXTERN double erfc(double);
[110] Fix | Delete
#endif
[111] Fix | Delete
[112] Fix | Delete
#ifndef HAVE_TGAMMA
[113] Fix | Delete
RUBY_EXTERN double tgamma(double);
[114] Fix | Delete
#endif
[115] Fix | Delete
[116] Fix | Delete
#ifndef HAVE_LGAMMA_R
[117] Fix | Delete
RUBY_EXTERN double lgamma_r(double, int *);
[118] Fix | Delete
#endif
[119] Fix | Delete
[120] Fix | Delete
#ifndef HAVE_CBRT
[121] Fix | Delete
RUBY_EXTERN double cbrt(double);
[122] Fix | Delete
#endif
[123] Fix | Delete
[124] Fix | Delete
#if !defined(INFINITY) || !defined(NAN)
[125] Fix | Delete
union bytesequence4_or_float {
[126] Fix | Delete
unsigned char bytesequence[4];
[127] Fix | Delete
float float_value;
[128] Fix | Delete
};
[129] Fix | Delete
#endif
[130] Fix | Delete
[131] Fix | Delete
#ifndef INFINITY
[132] Fix | Delete
/** @internal */
[133] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_infinity;
[134] Fix | Delete
# define INFINITY (rb_infinity.float_value)
[135] Fix | Delete
# define USE_RB_INFINITY 1
[136] Fix | Delete
#endif
[137] Fix | Delete
[138] Fix | Delete
#ifndef NAN
[139] Fix | Delete
/** @internal */
[140] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_nan;
[141] Fix | Delete
# define NAN (rb_nan.float_value)
[142] Fix | Delete
# define USE_RB_NAN 1
[143] Fix | Delete
#endif
[144] Fix | Delete
[145] Fix | Delete
#ifndef HUGE_VAL
[146] Fix | Delete
# define HUGE_VAL ((double)INFINITY)
[147] Fix | Delete
#endif
[148] Fix | Delete
[149] Fix | Delete
#ifndef HAVE_FINITE
[150] Fix | Delete
# define HAVE_FINITE 1
[151] Fix | Delete
# define finite(x) isfinite(x)
[152] Fix | Delete
#endif
[153] Fix | Delete
[154] Fix | Delete
#ifndef HAVE_NAN
[155] Fix | Delete
RUBY_EXTERN double nan(const char *);
[156] Fix | Delete
#endif
[157] Fix | Delete
[158] Fix | Delete
#ifndef HAVE_NEXTAFTER
[159] Fix | Delete
RUBY_EXTERN double nextafter(double x, double y);
[160] Fix | Delete
#endif
[161] Fix | Delete
[162] Fix | Delete
/*
[163] Fix | Delete
#ifndef HAVE_MEMCMP
[164] Fix | Delete
RUBY_EXTERN int memcmp(const void *, const void *, size_t);
[165] Fix | Delete
#endif
[166] Fix | Delete
*/
[167] Fix | Delete
[168] Fix | Delete
#ifndef HAVE_MEMMOVE
[169] Fix | Delete
RUBY_EXTERN void *memmove(void *, const void *, size_t);
[170] Fix | Delete
#endif
[171] Fix | Delete
[172] Fix | Delete
/*
[173] Fix | Delete
#ifndef HAVE_MODF
[174] Fix | Delete
RUBY_EXTERN double modf(double, double *);
[175] Fix | Delete
#endif
[176] Fix | Delete
*/
[177] Fix | Delete
[178] Fix | Delete
#ifndef HAVE_STRCHR
[179] Fix | Delete
RUBY_EXTERN char *strchr(const char *, int);
[180] Fix | Delete
RUBY_EXTERN char *strrchr(const char *, int);
[181] Fix | Delete
#endif
[182] Fix | Delete
[183] Fix | Delete
#ifndef HAVE_STRERROR
[184] Fix | Delete
RUBY_EXTERN char *strerror(int);
[185] Fix | Delete
#endif
[186] Fix | Delete
[187] Fix | Delete
#ifndef HAVE_STRSTR
[188] Fix | Delete
RUBY_EXTERN char *strstr(const char *, const char *);
[189] Fix | Delete
#endif
[190] Fix | Delete
[191] Fix | Delete
#ifndef HAVE_STRLCPY
[192] Fix | Delete
RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
[193] Fix | Delete
#endif
[194] Fix | Delete
[195] Fix | Delete
#ifndef HAVE_STRLCAT
[196] Fix | Delete
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
[197] Fix | Delete
#endif
[198] Fix | Delete
[199] Fix | Delete
#ifndef HAVE_FFS
[200] Fix | Delete
RUBY_EXTERN int ffs(int);
[201] Fix | Delete
#endif
[202] Fix | Delete
[203] Fix | Delete
#ifdef BROKEN_CLOSE
[204] Fix | Delete
# include <sys/types.h>
[205] Fix | Delete
# include <sys/socket.h>
[206] Fix | Delete
RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *);
[207] Fix | Delete
RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *);
[208] Fix | Delete
RUBY_EXTERN int ruby_shutdown(int, int);
[209] Fix | Delete
RUBY_EXTERN int ruby_close(int);
[210] Fix | Delete
#endif
[211] Fix | Delete
[212] Fix | Delete
#ifndef HAVE_SETPROCTITLE
[213] Fix | Delete
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 2)
[214] Fix | Delete
RUBY_EXTERN void setproctitle(const char *fmt, ...);
[215] Fix | Delete
#endif
[216] Fix | Delete
[217] Fix | Delete
#ifdef HAVE_EXPLICIT_BZERO
[218] Fix | Delete
# /* Take that. */
[219] Fix | Delete
#elif defined(SecureZeroMemory)
[220] Fix | Delete
# define explicit_bzero(b, len) SecureZeroMemory(b, len)
[221] Fix | Delete
#else
[222] Fix | Delete
RUBY_EXTERN void explicit_bzero(void *b, size_t len);
[223] Fix | Delete
#endif
[224] Fix | Delete
[225] Fix | Delete
RBIMPL_SYMBOL_EXPORT_END()
[226] Fix | Delete
[227] Fix | Delete
#endif /* RUBY_MISSING_H */
[228] Fix | Delete
[229] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function