Ruby 2.7.0p0(2019-12-25revision647ee6f091eafcce70ffb75ddf7e121e192ab217)

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 | M_PI 3.14159265358979323846
#define | M_PI_2 (M_PI/2)
#define | RUBY_SYMBOL_EXPORT_BEGIN /* begin */
#define | RUBY_SYMBOL_EXPORT_END /* end */
#define | RUBY_EXTERN extern
#define | INFINITY (rb_infinity.float_value)
#define | USE_RB_INFINITY 1
#define | NAN (rb_nan.float_value)
#define | USE_RB_NAN 1
#define | HUGE_VAL ((double)INFINITY)
#define | HAVE_ISFINITE 1
#define | isfinite(x) finite(x)

## 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 double | nan (const char *)
RUBY_EXTERN double | nextafter (double x, double y)
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,...)
RUBY_EXTERN void | explicit_bzero (void *b, size_t len)

## Variables
RUBY_EXTERN const union bytesequence4_or_float | rb_infinity
RUBY_EXTERN const union bytesequence4_or_float | rb_nan

## Macro Definition Documentation

## ◆ HAVE_ISFINITE

#define HAVE_ISFINITE 1

Definition at line 191 of file missing.h.

## ◆ HUGE_VAL

#define HUGE_VAL ((double)INFINITY)

Definition at line 161 of file missing.h.

## ◆ INFINITY

#define INFINITY (rb_infinity.float_value)

Definition at line 149 of file missing.h.

## ◆ isfinite

#define isfinite | ( |  | x | ) | finite(x)

Definition at line 192 of file missing.h.

## ◆ M_PI

#define M_PI 3.14159265358979323846

Definition at line 41 of file missing.h.

## ◆ M_PI_2

#define M_PI_2 (M_PI/2)

Definition at line 44 of file missing.h.

## ◆ NAN

#define NAN (rb_nan.float_value)

Definition at line 156 of file missing.h.

## ◆ RUBY_EXTERN

#define RUBY_EXTERN extern

Definition at line 77 of file missing.h.

## ◆ RUBY_SYMBOL_EXPORT_BEGIN

#define RUBY_SYMBOL_EXPORT_BEGIN /* begin */

Definition at line 48 of file missing.h.

## ◆ RUBY_SYMBOL_EXPORT_END

#define RUBY_SYMBOL_EXPORT_END /* end */

Definition at line 49 of file missing.h.

## ◆ USE_RB_INFINITY

#define USE_RB_INFINITY 1

Definition at line 150 of file missing.h.

## ◆ USE_RB_NAN

#define USE_RB_NAN 1

Definition at line 157 of file missing.h.

## Function Documentation

## ◆ acosh()

RUBY_SYMBOL_EXPORT_BEGIN RUBY_EXTERN double acosh | ( | double |  | ) |

Definition at line 36 of file acosh.c.

## ◆ asinh()

RUBY_EXTERN double asinh | ( | double |  | ) |

Definition at line 52 of file acosh.c.

## ◆ atanh()

RUBY_EXTERN double atanh | ( | double |  | ) |

Definition at line 75 of file acosh.c.

## ◆ cbrt()

RUBY_EXTERN double cbrt | ( | double |  | ) |

Definition at line 4 of file cbrt.c.

## ◆ crypt()

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

## ◆ dup2()

RUBY_EXTERN int dup2 | ( | int | ,
|  | int |
| ) |  |

Definition at line 27 of file dup2.c.

Referenced by goruby_options(), rb_cloexec_dup2(), and rb_w32_dup2().

## ◆ eaccess()

RUBY_EXTERN int eaccess | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 1460 of file file.c.

## ◆ erf()

RUBY_EXTERN double erf | ( | double |  | ) |

Definition at line 71 of file erf.c.

## ◆ erfc()

RUBY_EXTERN double erfc | ( | double |  | ) |

Definition at line 81 of file erf.c.

## ◆ explicit_bzero()

RUBY_EXTERN void explicit_bzero | ( | void * | b,
|  | size_t | len
| ) |  |

Definition at line 77 of file explicit_bzero.c.

## ◆ ffs()

RUBY_EXTERN int ffs | ( | int |  | ) |

Definition at line 6 of file ffs.c.

## ◆ finite()

RUBY_EXTERN int finite | ( | double |  | ) |

Definition at line 6 of file finite.c.

## ◆ 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.

## ◆ isinf()

RUBY_EXTERN int isinf | ( | double |  | ) |

Definition at line 56 of file isinf.c.

## ◆ isnan()

RUBY_EXTERN int isnan | ( | double |  | ) |

Definition at line 22 of file isnan.c.

## ◆ lgamma_r()

RUBY_EXTERN double lgamma_r | ( | double | ,
|  | int * |
| ) |  |

Definition at line 63 of file lgamma_r.c.

## ◆ memmove()

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

Definition at line 7 of file memmove.c.

## ◆ nan()

RUBY_EXTERN double nan | ( | const char * |  | ) |

Definition at line 7 of file nan.c.

Referenced by VpGetDoubleNaN().

## ◆ nextafter()

RUBY_EXTERN double nextafter | ( | double | x,
|  | double | y
| ) |  |

Definition at line 9 of file nextafter.c.

## ◆ round()

RUBY_EXTERN double round | ( | double |  | ) |

Definition at line 80 of file numeric.c.

## ◆ setproctitle()

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

Definition at line 139 of file setproctitle.c.

## ◆ signbit()

RUBY_EXTERN int signbit | ( | double | x | ) |

Definition at line 5 of file signbit.c.

References CHAR_BIT, double, i, and long.

## ◆ strchr()

RUBY_EXTERN char* strchr | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 8 of file strchr.c.

## ◆ strerror()

RUBY_EXTERN char* strerror | ( | int |  | ) |

Definition at line 11 of file strerror.c.

Referenced by rb_maygvl_fd_fix_cloexec(), rb_threadptr_root_fiber_setup(), and rsock_detect_cloexec().

## ◆ strlcat()

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

Definition at line 31 of file strlcat.c.

## ◆ strlcpy()

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

Definition at line 29 of file strlcpy.c.

Referenced by setproctitle().

## ◆ strrchr()

RUBY_EXTERN char* strrchr | ( | const char * | ,
|  | int |
| ) |  |

Definition at line 20 of file strchr.c.

## ◆ strstr()

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

Definition at line 8 of file strstr.c.

## ◆ tgamma()

RUBY_EXTERN double tgamma | ( | double |  | ) |

Definition at line 66 of file tgamma.c.

## Variable Documentation

## ◆ rb_infinity

RUBY_EXTERN const union bytesequence4_or_float rb_infinity

Definition at line 148 of file missing.h.

## ◆ rb_nan

RUBY_EXTERN const union bytesequence4_or_float rb_nan

Definition at line 155 of file missing.h.