Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../opt/alt/ruby32/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_SYS_STAT_H
[35] Fix | Delete
# include <sys/stat.h>
[36] Fix | Delete
#endif
[37] Fix | Delete
[38] Fix | Delete
#ifdef HAVE_UNISTD_H
[39] Fix | Delete
# include <unistd.h>
[40] Fix | Delete
#endif
[41] Fix | Delete
[42] Fix | Delete
#ifdef HAVE_STDIO_H
[43] Fix | Delete
# include <stdio.h>
[44] Fix | Delete
#endif
[45] Fix | Delete
[46] Fix | Delete
#ifdef HAVE_IEEEFP_H
[47] Fix | Delete
# include <ieeefp.h>
[48] Fix | Delete
#endif
[49] Fix | Delete
[50] Fix | Delete
#include "ruby/internal/dllexport.h"
[51] Fix | Delete
#include "ruby/internal/attr/format.h"
[52] Fix | Delete
[53] Fix | Delete
#ifndef M_PI
[54] Fix | Delete
# define M_PI 3.14159265358979323846
[55] Fix | Delete
#endif
[56] Fix | Delete
#ifndef M_PI_2
[57] Fix | Delete
# define M_PI_2 (M_PI/2)
[58] Fix | Delete
#endif
[59] Fix | Delete
[60] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEVAL)
[61] Fix | Delete
struct timeval {
[62] Fix | Delete
time_t tv_sec; /* seconds */
[63] Fix | Delete
long tv_usec; /* microseconds */
[64] Fix | Delete
};
[65] Fix | Delete
#endif /* HAVE_STRUCT_TIMEVAL */
[66] Fix | Delete
[67] Fix | Delete
#if !defined(HAVE_STRUCT_TIMESPEC)
[68] Fix | Delete
/* :BEWARE: @shyouhei warns that IT IS A WRONG IDEA to define our own version
[69] Fix | Delete
* of struct timespec here. `clock_gettime` is a system call, and your kernel
[70] Fix | Delete
* could expect something other than just `long` (results stack smashing if
[71] Fix | Delete
* that happens). See also https://ewontfix.com/19/ */
[72] Fix | Delete
struct timespec {
[73] Fix | Delete
time_t tv_sec; /* seconds */
[74] Fix | Delete
long tv_nsec; /* nanoseconds */
[75] Fix | Delete
};
[76] Fix | Delete
#endif
[77] Fix | Delete
[78] Fix | Delete
#if !defined(HAVE_STRUCT_TIMEZONE)
[79] Fix | Delete
struct timezone {
[80] Fix | Delete
int tz_minuteswest;
[81] Fix | Delete
int tz_dsttime;
[82] Fix | Delete
};
[83] Fix | Delete
#endif
[84] Fix | Delete
[85] Fix | Delete
RBIMPL_SYMBOL_EXPORT_BEGIN()
[86] Fix | Delete
[87] Fix | Delete
#ifndef HAVE_ACOSH
[88] Fix | Delete
RUBY_EXTERN double acosh(double);
[89] Fix | Delete
RUBY_EXTERN double asinh(double);
[90] Fix | Delete
RUBY_EXTERN double atanh(double);
[91] Fix | Delete
#endif
[92] Fix | Delete
[93] Fix | Delete
#ifndef HAVE_CRYPT
[94] Fix | Delete
RUBY_EXTERN char *crypt(const char *, const char *);
[95] Fix | Delete
#endif
[96] Fix | Delete
[97] Fix | Delete
#ifndef HAVE_EACCESS
[98] Fix | Delete
RUBY_EXTERN int eaccess(const char*, int);
[99] Fix | Delete
#endif
[100] Fix | Delete
[101] Fix | Delete
#ifndef HAVE_ROUND
[102] Fix | Delete
RUBY_EXTERN double round(double); /* numeric.c */
[103] Fix | Delete
#endif
[104] Fix | Delete
[105] Fix | Delete
#ifndef HAVE_FLOCK
[106] Fix | Delete
RUBY_EXTERN int flock(int, int);
[107] Fix | Delete
#endif
[108] Fix | Delete
[109] Fix | Delete
/*
[110] Fix | Delete
#ifndef HAVE_FREXP
[111] Fix | Delete
RUBY_EXTERN double frexp(double, int *);
[112] Fix | Delete
#endif
[113] Fix | Delete
*/
[114] Fix | Delete
[115] Fix | Delete
#ifndef HAVE_HYPOT
[116] Fix | Delete
RUBY_EXTERN double hypot(double, double);
[117] Fix | Delete
#endif
[118] Fix | Delete
[119] Fix | Delete
#ifndef HAVE_ERF
[120] Fix | Delete
RUBY_EXTERN double erf(double);
[121] Fix | Delete
RUBY_EXTERN double erfc(double);
[122] Fix | Delete
#endif
[123] Fix | Delete
[124] Fix | Delete
#ifndef HAVE_TGAMMA
[125] Fix | Delete
RUBY_EXTERN double tgamma(double);
[126] Fix | Delete
#endif
[127] Fix | Delete
[128] Fix | Delete
#ifndef HAVE_LGAMMA_R
[129] Fix | Delete
RUBY_EXTERN double lgamma_r(double, int *);
[130] Fix | Delete
#endif
[131] Fix | Delete
[132] Fix | Delete
#ifndef HAVE_CBRT
[133] Fix | Delete
RUBY_EXTERN double cbrt(double);
[134] Fix | Delete
#endif
[135] Fix | Delete
[136] Fix | Delete
#if !defined(INFINITY) || !defined(NAN)
[137] Fix | Delete
union bytesequence4_or_float {
[138] Fix | Delete
unsigned char bytesequence[4];
[139] Fix | Delete
float float_value;
[140] Fix | Delete
};
[141] Fix | Delete
#endif
[142] Fix | Delete
[143] Fix | Delete
#ifndef INFINITY
[144] Fix | Delete
/** @internal */
[145] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_infinity;
[146] Fix | Delete
# define INFINITY (rb_infinity.float_value)
[147] Fix | Delete
# define USE_RB_INFINITY 1
[148] Fix | Delete
#endif
[149] Fix | Delete
[150] Fix | Delete
#ifndef NAN
[151] Fix | Delete
/** @internal */
[152] Fix | Delete
RUBY_EXTERN const union bytesequence4_or_float rb_nan;
[153] Fix | Delete
# define NAN (rb_nan.float_value)
[154] Fix | Delete
# define USE_RB_NAN 1
[155] Fix | Delete
#endif
[156] Fix | Delete
[157] Fix | Delete
#ifndef HUGE_VAL
[158] Fix | Delete
# define HUGE_VAL ((double)INFINITY)
[159] Fix | Delete
#endif
[160] Fix | Delete
[161] Fix | Delete
#ifndef HAVE_FINITE
[162] Fix | Delete
# define HAVE_FINITE 1
[163] Fix | Delete
# define finite(x) isfinite(x)
[164] Fix | Delete
#endif
[165] Fix | Delete
[166] Fix | Delete
#ifndef HAVE_NAN
[167] Fix | Delete
RUBY_EXTERN double nan(const char *);
[168] Fix | Delete
#endif
[169] Fix | Delete
[170] Fix | Delete
#ifndef HAVE_NEXTAFTER
[171] Fix | Delete
RUBY_EXTERN double nextafter(double x, double y);
[172] Fix | Delete
#endif
[173] Fix | Delete
[174] Fix | Delete
/*
[175] Fix | Delete
#ifndef HAVE_MEMCMP
[176] Fix | Delete
RUBY_EXTERN int memcmp(const void *, const void *, size_t);
[177] Fix | Delete
#endif
[178] Fix | Delete
*/
[179] Fix | Delete
[180] Fix | Delete
#ifndef HAVE_MEMMOVE
[181] Fix | Delete
RUBY_EXTERN void *memmove(void *, const void *, size_t);
[182] Fix | Delete
#endif
[183] Fix | Delete
[184] Fix | Delete
/*
[185] Fix | Delete
#ifndef HAVE_MODF
[186] Fix | Delete
RUBY_EXTERN double modf(double, double *);
[187] Fix | Delete
#endif
[188] Fix | Delete
*/
[189] Fix | Delete
[190] Fix | Delete
#ifndef HAVE_STRCHR
[191] Fix | Delete
RUBY_EXTERN char *strchr(const char *, int);
[192] Fix | Delete
RUBY_EXTERN char *strrchr(const char *, int);
[193] Fix | Delete
#endif
[194] Fix | Delete
[195] Fix | Delete
#ifndef HAVE_STRERROR
[196] Fix | Delete
RUBY_EXTERN char *strerror(int);
[197] Fix | Delete
#endif
[198] Fix | Delete
[199] Fix | Delete
#ifndef HAVE_STRSTR
[200] Fix | Delete
RUBY_EXTERN char *strstr(const char *, const char *);
[201] Fix | Delete
#endif
[202] Fix | Delete
[203] Fix | Delete
#ifndef HAVE_STRLCPY
[204] Fix | Delete
RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
[205] Fix | Delete
#endif
[206] Fix | Delete
[207] Fix | Delete
#ifndef HAVE_STRLCAT
[208] Fix | Delete
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
[209] Fix | Delete
#endif
[210] Fix | Delete
[211] Fix | Delete
#ifndef HAVE_FFS
[212] Fix | Delete
RUBY_EXTERN int ffs(int);
[213] Fix | Delete
#endif
[214] Fix | Delete
[215] Fix | Delete
#ifdef BROKEN_CLOSE
[216] Fix | Delete
# include <sys/types.h>
[217] Fix | Delete
# include <sys/socket.h>
[218] Fix | Delete
RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *);
[219] Fix | Delete
RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *);
[220] Fix | Delete
RUBY_EXTERN int ruby_shutdown(int, int);
[221] Fix | Delete
RUBY_EXTERN int ruby_close(int);
[222] Fix | Delete
#endif
[223] Fix | Delete
[224] Fix | Delete
#ifndef HAVE_SETPROCTITLE
[225] Fix | Delete
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 1, 2)
[226] Fix | Delete
RUBY_EXTERN void setproctitle(const char *fmt, ...);
[227] Fix | Delete
#endif
[228] Fix | Delete
[229] Fix | Delete
#ifdef HAVE_EXPLICIT_BZERO
[230] Fix | Delete
# /* Take that. */
[231] Fix | Delete
#elif defined(SecureZeroMemory)
[232] Fix | Delete
# define explicit_bzero(b, len) SecureZeroMemory(b, len)
[233] Fix | Delete
#else
[234] Fix | Delete
RUBY_EXTERN void explicit_bzero(void *b, size_t len);
[235] Fix | Delete
#endif
[236] Fix | Delete
[237] Fix | Delete
#ifndef HAVE_TZSET
[238] Fix | Delete
RUBY_EXTERN void tzset(void);
[239] Fix | Delete
#endif
[240] Fix | Delete
[241] Fix | Delete
#ifndef HAVE_POSIX_MADVISE
[242] Fix | Delete
RUBY_EXTERN int posix_madvise(void *, size_t, int);
[243] Fix | Delete
#endif
[244] Fix | Delete
[245] Fix | Delete
#ifndef HAVE_GETEUID
[246] Fix | Delete
RUBY_EXTERN rb_uid_t geteuid(void);
[247] Fix | Delete
#endif
[248] Fix | Delete
[249] Fix | Delete
#ifndef HAVE_GETUID
[250] Fix | Delete
RUBY_EXTERN rb_uid_t getuid(void);
[251] Fix | Delete
#endif
[252] Fix | Delete
[253] Fix | Delete
#ifndef HAVE_GETEGID
[254] Fix | Delete
RUBY_EXTERN rb_gid_t getegid(void);
[255] Fix | Delete
#endif
[256] Fix | Delete
[257] Fix | Delete
#ifndef HAVE_GETGID
[258] Fix | Delete
RUBY_EXTERN rb_gid_t getgid(void);
[259] Fix | Delete
#endif
[260] Fix | Delete
[261] Fix | Delete
#ifndef HAVE_GETLOGIN
[262] Fix | Delete
RUBY_EXTERN char *getlogin(void);
[263] Fix | Delete
#endif
[264] Fix | Delete
[265] Fix | Delete
#ifndef HAVE_GETPPID
[266] Fix | Delete
RUBY_EXTERN rb_pid_t getppid(void);
[267] Fix | Delete
#endif
[268] Fix | Delete
[269] Fix | Delete
#ifndef HAVE_UMASK
[270] Fix | Delete
RUBY_EXTERN rb_mode_t umask(rb_mode_t);
[271] Fix | Delete
#endif
[272] Fix | Delete
[273] Fix | Delete
#ifndef HAVE_CHMOD
[274] Fix | Delete
RUBY_EXTERN int chmod(const char *, rb_mode_t);
[275] Fix | Delete
#endif
[276] Fix | Delete
[277] Fix | Delete
#ifndef HAVE_CHOWN
[278] Fix | Delete
RUBY_EXTERN int chown(const char *, rb_uid_t, rb_gid_t);
[279] Fix | Delete
#endif
[280] Fix | Delete
[281] Fix | Delete
#ifndef HAVE_PCLOSE
[282] Fix | Delete
RUBY_EXTERN int pclose(FILE *);
[283] Fix | Delete
#endif
[284] Fix | Delete
[285] Fix | Delete
#ifndef HAVE_POPEN
[286] Fix | Delete
RUBY_EXTERN FILE *popen(const char *, const char *);
[287] Fix | Delete
#endif
[288] Fix | Delete
[289] Fix | Delete
#ifndef HAVE_PIPE
[290] Fix | Delete
RUBY_EXTERN int pipe(int [2]);
[291] Fix | Delete
#endif
[292] Fix | Delete
[293] Fix | Delete
#ifndef HAVE_DUP
[294] Fix | Delete
RUBY_EXTERN int dup(int);
[295] Fix | Delete
#endif
[296] Fix | Delete
[297] Fix | Delete
#ifndef HAVE_DUP2
[298] Fix | Delete
RUBY_EXTERN int dup2(int, int);
[299] Fix | Delete
#endif
[300] Fix | Delete
[301] Fix | Delete
#ifndef HAVE_KILL
[302] Fix | Delete
RUBY_EXTERN int kill(rb_pid_t, int);
[303] Fix | Delete
#endif
[304] Fix | Delete
[305] Fix | Delete
#ifndef HAVE_EXECL
[306] Fix | Delete
RUBY_EXTERN int execl(const char *, const char *, ...);
[307] Fix | Delete
#endif
[308] Fix | Delete
[309] Fix | Delete
#ifndef HAVE_EXECLE
[310] Fix | Delete
RUBY_EXTERN int execle(const char *, const char *, ...);
[311] Fix | Delete
#endif
[312] Fix | Delete
[313] Fix | Delete
#ifndef HAVE_EXECV
[314] Fix | Delete
RUBY_EXTERN int execv(const char *, char *const []);
[315] Fix | Delete
#endif
[316] Fix | Delete
[317] Fix | Delete
#ifndef HAVE_EXECVE
[318] Fix | Delete
RUBY_EXTERN int execve(const char *, char *const [], char *const []);
[319] Fix | Delete
#endif
[320] Fix | Delete
[321] Fix | Delete
#ifndef HAVE_SHUTDOWN
[322] Fix | Delete
RUBY_EXTERN int shutdown(int, int);
[323] Fix | Delete
#endif
[324] Fix | Delete
[325] Fix | Delete
#ifndef HAVE_SYSTEM
[326] Fix | Delete
RUBY_EXTERN int system(const char *);
[327] Fix | Delete
#endif
[328] Fix | Delete
[329] Fix | Delete
#ifndef WNOHANG
[330] Fix | Delete
# define WNOHANG 0
[331] Fix | Delete
#endif
[332] Fix | Delete
[333] Fix | Delete
#ifndef HAVE_WAITPID
[334] Fix | Delete
# define HAVE_WAITPID 1
[335] Fix | Delete
RUBY_EXTERN rb_pid_t waitpid(rb_pid_t, int *, int);
[336] Fix | Delete
#endif
[337] Fix | Delete
[338] Fix | Delete
RBIMPL_SYMBOL_EXPORT_END()
[339] Fix | Delete
[340] Fix | Delete
#endif /* RUBY_MISSING_H */
[341] Fix | Delete
[342] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function