Ruby  2.1.10p492(2016-04-01revision54464)
Data Structures | Macros | Functions | Variables
missing.h File Reference
#include "ruby/config.h"
#include <stddef.h>
#include <math.h>

Go to the source code of this file.

Data Structures

struct  timeval
 
struct  timespec
 
struct  timezone
 
union  bytesequence4_or_float
 

Macros

#define RUBY_SYMBOL_EXPORT_BEGIN   /* begin */
 
#define RUBY_SYMBOL_EXPORT_END   /* end */
 
#define RUBY_EXTERN   extern
 
#define INFINITY   (rb_infinity.float_value)
 
#define NAN   (rb_nan.float_value)
 

Functions

RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh (double)
 
RUBY_EXTERN double asinh (double)
 
RUBY_EXTERN double atanh (double)
 
RUBY_EXTERN char * crypt (const char *, const char *)
 
RUBY_EXTERN int dup2 (int, int)
 
RUBY_EXTERN int eaccess (const char *, int)
 
RUBY_EXTERN double round (double)
 
RUBY_EXTERN int finite (double)
 
RUBY_EXTERN int flock (int, int)
 
RUBY_EXTERN double hypot (double, double)
 
RUBY_EXTERN double erf (double)
 
RUBY_EXTERN double erfc (double)
 
RUBY_EXTERN double tgamma (double)
 
RUBY_EXTERN double lgamma_r (double, int *)
 
RUBY_EXTERN double cbrt (double)
 
RUBY_EXTERN int isinf (double)
 
RUBY_EXTERN int isnan (double)
 
RUBY_EXTERN void * memmove (void *, const void *, size_t)
 
RUBY_EXTERN char * strchr (const char *, int)
 
RUBY_EXTERN char * strrchr (const char *, int)
 
RUBY_EXTERN char * strerror (int)
 
RUBY_EXTERN char * strstr (const char *, const char *)
 
RUBY_EXTERN size_t strlcpy (char *, const char *, size_t)
 
RUBY_EXTERN size_t strlcat (char *, const char *, size_t)
 
RUBY_EXTERN int signbit (double x)
 
RUBY_EXTERN int ffs (int)
 
RUBY_EXTERN void setproctitle (const char *fmt,...)
 

Variables

RUBY_EXTERN const union bytesequence4_or_float rb_infinity
 
RUBY_EXTERN const union bytesequence4_or_float rb_nan
 

Macro Definition Documentation

◆ INFINITY

#define INFINITY   (rb_infinity.float_value)

◆ NAN

#define NAN   (rb_nan.float_value)

Definition at line 149 of file missing.h.

Referenced by Init_Numeric(), and r_object0().

◆ RUBY_EXTERN

#define RUBY_EXTERN   extern

Definition at line 67 of file missing.h.

Referenced by Init_dbm().

◆ RUBY_SYMBOL_EXPORT_BEGIN

#define RUBY_SYMBOL_EXPORT_BEGIN   /* begin */

Definition at line 38 of file missing.h.

◆ RUBY_SYMBOL_EXPORT_END

#define RUBY_SYMBOL_EXPORT_END   /* end */

Definition at line 39 of file missing.h.

Function Documentation

◆ acosh()

RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh ( double  )

Definition at line 36 of file acosh.c.

References BIG_CRITERIA.

Referenced by math_acosh().

◆ asinh()

RUBY_EXTERN double asinh ( double  )

Definition at line 52 of file acosh.c.

References BIG_CRITERIA, DBL_MANT_DIG, neg, and SMALL_CRITERIA.

Referenced by math_asinh().

◆ atanh()

RUBY_EXTERN double atanh ( double  )

Definition at line 75 of file acosh.c.

References errno, isinf(), neg, and SMALL_CRITERIA.

Referenced by math_atanh().

◆ cbrt()

RUBY_EXTERN double cbrt ( double  )

Definition at line 4 of file cbrt.c.

Referenced by math_cbrt().

◆ crypt()

RUBY_EXTERN char* crypt ( const char *  ,
const char *   
)

Definition at line 500 of file crypt.c.

References _PASSWORD_EFMT1, a64toi, C_block::b, constdatablock, cryptresult, des_cipher(), des_setkey(), itoa64, key, NULL, and t().

Referenced by rb_str_crypt().

◆ dup2()

RUBY_EXTERN int dup2 ( int  ,
int   
)

Definition at line 27 of file dup2.c.

References BADEXIT, errno, F_DUPFD, and fcntl().

Referenced by chfunc(), fill_standard_fds(), goruby_options(), main(), rb_cloexec_dup2(), and rb_w32_dup2().

◆ eaccess()

RUBY_EXTERN int eaccess ( const char *  ,
int   
)

◆ erf()

RUBY_EXTERN double erf ( double  )

Definition at line 71 of file erf.c.

References finite(), isnan, LOG_PI_OVER_2, and p_gamma().

Referenced by math_erf().

◆ erfc()

RUBY_EXTERN double erfc ( double  )

Definition at line 81 of file erf.c.

References finite(), isnan, LOG_PI_OVER_2, p_gamma(), and q_gamma().

Referenced by math_erfc().

◆ ffs()

RUBY_EXTERN int ffs ( int  )

Definition at line 6 of file ffs.c.

Referenced by big2str_base_poweroftwo(), and rb_str_format().

◆ finite()

RUBY_EXTERN int finite ( double  )

Definition at line 6 of file finite.c.

References isinf(), and isnan.

Referenced by erf(), and erfc().

◆ flock()

RUBY_EXTERN int flock ( int  ,
int   
)

Definition at line 125 of file flock.c.

◆ hypot()

RUBY_EXTERN double hypot ( double  ,
double   
)

Definition at line 6 of file hypot.c.

Referenced by math_hypot().

◆ isinf()

RUBY_EXTERN int isinf ( double  )

◆ isnan()

RUBY_EXTERN int isnan ( double  )

Definition at line 22 of file isnan.c.

References double_ne().

◆ lgamma_r()

RUBY_EXTERN double lgamma_r ( double  ,
int *   
)

Definition at line 63 of file lgamma_r.c.

References errno, f, LOG_PI, loggamma(), and PI.

Referenced by math_lgamma().

◆ memmove()

RUBY_EXTERN void* memmove ( void *  ,
const void *  ,
size_t   
)

◆ round()

RUBY_EXTERN double round ( double  )

◆ setproctitle()

RUBY_EXTERN void setproctitle ( const char *  fmt,
  ... 
)

Definition at line 135 of file setproctitle.c.

References NULL, SPT_PADCHAR, strlcpy(), strlen(), and vsnprintf.

Referenced by proc_setproctitle().

◆ signbit()

RUBY_EXTERN int signbit ( double  x)

Definition at line 5 of file signbit.c.

References CHAR_BIT.

Referenced by f_signbit(), math_atan2(), math_gamma(), math_lgamma(), and num_step().

◆ strchr()

RUBY_EXTERN char* strchr ( const char *  ,
int   
)

Definition at line 8 of file strchr.c.

References strlen().

◆ strerror()

RUBY_EXTERN char* strerror ( int  )

◆ strlcat()

RUBY_EXTERN size_t strlcat ( char *  ,
const char *  ,
size_t   
)

Definition at line 46 of file strlcat.c.

References strlen().

Referenced by dln_load(), rb_file_expand_path_internal(), and w32_aspawn_flags().

◆ strlcpy()

RUBY_EXTERN size_t strlcpy ( char *  ,
const char *  ,
size_t   
)

◆ strrchr()

RUBY_EXTERN char* strrchr ( const char *  ,
int   
)

Definition at line 20 of file strchr.c.

References strlen().

◆ strstr()

RUBY_EXTERN char* strstr ( const char *  ,
const char *   
)

Definition at line 8 of file strstr.c.

References strlen().

Referenced by do_spawn(), load_file_internal(), and Messaging_HandleMessage().

◆ tgamma()

RUBY_EXTERN double tgamma ( double  )

Definition at line 72 of file tgamma.c.

References errno, f, loggamma(), PI, and zero().

Referenced by math_gamma().

Variable Documentation

◆ rb_infinity

Definition at line 140 of file missing.h.

◆ rb_nan

Definition at line 148 of file missing.h.