Ruby  1.9.3p551(2014-11-13revision48407)
Data Structures | Macros | Enumerations | Functions | Variables
ruby.c File Reference
#include "ruby/ruby.h"
#include "ruby/encoding.h"
#include "internal.h"
#include "eval_intern.h"
#include "dln.h"
#include <stdio.h>
#include <sys/types.h>
#include <ctype.h>
#include "ruby/util.h"

Go to the source code of this file.

Data Structures

struct  cmdline_options
 
struct  load_file_arg
 

Macros

#define MAXPATHLEN   1024
 
#define DISABLE_BIT(bit)   (1U << disable_##bit)
 
#define DUMP_BIT(bit)   (1U << dump_##bit)
 
#define src_encoding_index   GET_VM()->src_encoding_index
 
#define forbid_setid(s)   forbid_setid((s), opt)
 
#define rubylib_mangled_path   rb_str_new
 
#define RUBY_RELATIVE(path, len)   rubylib_mangled_path((path), (len))
 
#define PREFIX_PATH()   RUBY_RELATIVE(exec_prefix, sizeof(exec_prefix)-1)
 
#define NAME_MATCH_P(name, str, len)   ((len) < (int)sizeof(name) && strncmp((str), (name), (len)) == 0)
 
#define UNSET_WHEN(name, bit, str, len)
 
#define SET_WHEN(name, bit, str, len)
 
#define UNSET_WHEN_DISABLE(bit)   UNSET_WHEN(#bit, DISABLE_BIT(bit), str, len)
 
#define SET_WHEN_DISABLE(bit)   SET_WHEN(#bit, DISABLE_BIT(bit), str, len)
 
#define SET_WHEN_DUMP(bit)   SET_WHEN(#bit, DUMP_BIT(bit), str, len)
 
#define set_internal_encoding_once(opt, e, elen)   set_option_encoding_once("default_internal", &(opt)->intern.enc.name, (e), (elen))
 
#define set_external_encoding_once(opt, e, elen)   set_option_encoding_once("default_external", &(opt)->ext.enc.name, (e), (elen))
 
#define set_source_encoding_once(opt, e, elen)   set_option_encoding_once("source", &(opt)->src.enc.name, (e), (elen))
 
#define is_option_end(c, allow_hyphen)   (!(c) || ((allow_hyphen) && (c) == '-') || (c) == '=')
 
#define check_envopt(name, allow_envopt)
 
#define need_argument(name, s)
 
#define is_option_with_arg(name, allow_hyphen, allow_envopt)
 
#define set_encoding_part(type)
 
#define rb_progname   (GET_VM()->progname)
 
#define rb_define_readonly_boolean(name, val)   rb_define_virtual_variable((name), (val) ? true_value : false_value, 0)
 
#define PREPARE_PARSE_MAIN(expr)
 

Enumerations

enum  disable_flag_bits { disable_gems, disable_rubyopt, disable_flag_count }
 
enum  dump_flag_bits {
  dump_version, dump_copyright, dump_usage, dump_yydebug,
  dump_syntax, dump_parsetree, dump_parsetree_with_comment, dump_insns,
  dump_flag_count
}
 

Functions

char * getenv ()
 
static void init_ids (struct cmdline_options *)
 
static struct cmdline_optionscmdline_options_init (struct cmdline_options *opt)
 
static NODEload_file (VALUE, const char *, int, struct cmdline_options *)
 
static void forbid_setid (const char *, struct cmdline_options *)
 
static void usage (const char *name)
 
static void push_include (const char *path, VALUE(*filter)(VALUE))
 
void ruby_push_include (const char *path, VALUE(*filter)(VALUE))
 
static VALUE identical_path (VALUE path)
 
static VALUE locale_path (VALUE path)
 
void ruby_incpush (const char *path)
 
static VALUE expand_include_path (VALUE path)
 
void ruby_incpush_expand (const char *path)
 
void ruby_init_loadpath_safe (int safe_level)
 
void ruby_init_loadpath (void)
 
static void add_modules (VALUE *req_list, const char *mod)
 
static void require_libraries (VALUE *req_list)
 
static void process_sflag (int *sflag)
 
static long proc_options (long argc, char **argv, struct cmdline_options *opt, int envopt)
 
static void moreswitches (const char *s, struct cmdline_options *opt, int envopt)
 
static void enable_option (const char *str, int len, void *arg)
 
static void disable_option (const char *str, int len, void *arg)
 
static void dump_option (const char *str, int len, void *arg)
 
static void set_option_encoding_once (const char *type, VALUE *name, const char *e, long elen)
 
static void ruby_init_prelude (void)
 
static int opt_enc_index (VALUE enc_name)
 
static VALUE false_value (void)
 
static VALUE true_value (void)
 
static VALUE uscore_get (void)
 
 rb_lastline_set (str)
 
static VALUE rb_f_chop (void)
 
static VALUE process_options (int argc, char **argv, struct cmdline_options *opt)
 
static VALUE load_file_internal (VALUE arg)
 
static VALUE restore_lineno (VALUE lineno)
 
voidrb_load_file (const char *fname)
 
static void set_arg0 (VALUE val, ID id)
 
void ruby_script (const char *name)
 
static void verbose_setter (VALUE val, ID id, void *data)
 
static VALUE opt_W_getter (ID id, void *data)
 
void ruby_prog_init (void)
 
void ruby_set_argv (int argc, char **argv)
 
voidruby_process_options (int argc, char **argv)
 
static void fill_standard_fds (void)
 
void ruby_sysinit (int *argc, char ***argv)
 

Variables

struct {
   int   argc
 
   char **   argv
 
origarg
 
VALUE rb_argv0
 
return str
 

Macro Definition Documentation

#define check_envopt (   name,
  allow_envopt 
)
Value:
(((allow_envopt) || !envopt) ? (void)0 : \
rb_raise(rb_eRuntimeError, "invalid switch in RUBYOPT: --" name))
void rb_raise(VALUE exc, const char *fmt,...)
Definition: error.c:1574
VALUE rb_eRuntimeError
Definition: error.c:466
VP_EXPORT void
Definition: bigdecimal.c:4944
const char * name
Definition: nkf.c:208
#define DISABLE_BIT (   bit)    (1U << disable_##bit)

Definition at line 55 of file ruby.c.

Referenced by cmdline_options_init(), and process_options().

#define DUMP_BIT (   bit)    (1U << dump_##bit)

Definition at line 62 of file ruby.c.

Referenced by proc_options(), and process_options().

#define forbid_setid (   s)    forbid_setid((s), opt)

Definition at line 117 of file ruby.c.

Referenced by load_file_internal(), proc_options(), and process_options().

#define is_option_end (   c,
  allow_hyphen 
)    (!(c) || ((allow_hyphen) && (c) == '-') || (c) == '=')
#define is_option_with_arg (   name,
  allow_hyphen,
  allow_envopt 
)
Value:
(strncmp((name), s, n = sizeof(name) - 1) == 0 && is_option_end(s[n], (allow_hyphen)) ? \
(check_envopt(name, (allow_envopt)), s += n, need_argument(name, s), 1) : 0)
ssize_t n
Definition: bigdecimal.c:5519
#define check_envopt(name, allow_envopt)
#define is_option_end(c, allow_hyphen)
#define need_argument(name, s)
register char * s
Definition: os2.c:56
const char * name
Definition: nkf.c:208

Referenced by proc_options().

#define MAXPATHLEN   1024

Definition at line 46 of file ruby.c.

Referenced by process_options(), and ruby_init_loadpath_safe().

#define NAME_MATCH_P (   name,
  str,
  len 
)    ((len) < (int)sizeof(name) && strncmp((str), (name), (len)) == 0)

Definition at line 631 of file ruby.c.

Referenced by disable_option(), and enable_option().

#define need_argument (   name,
  s 
)
Value:
((*(s)++ ? !*(s) : (!--argc || !((s) = *++argv))) ? \
rb_raise(rb_eRuntimeError, "missing argument for --" name) \
: (void)0)
void rb_raise(VALUE exc, const char *fmt,...)
Definition: error.c:1574
VALUE rb_eRuntimeError
Definition: error.c:466
VALUE * argv
Definition: tcltklib.c:1962
register char * s
Definition: os2.c:56
VP_EXPORT void
Definition: bigdecimal.c:4944
int argc
Definition: tcltklib.c:1961
const char * name
Definition: nkf.c:208
#define PREFIX_PATH ( )    RUBY_RELATIVE(exec_prefix, sizeof(exec_prefix)-1)

Referenced by ruby_init_loadpath_safe().

#define PREPARE_PARSE_MAIN (   expr)
Value:
do { \
th->parse_in_eval--; \
th->base_block = &env->block; \
th->parse_in_eval++; \
th->base_block = 0; \
} while (0)
static VALUE VALUE th
Definition: tcltklib.c:2937
expr expr keyword_or expr
Definition: ripper.y:1263
#define env

Referenced by process_options().

#define rb_define_readonly_boolean (   name,
  val 
)    rb_define_virtual_variable((name), (val) ? true_value : false_value, 0)

Definition at line 1150 of file ruby.c.

Referenced by process_options().

#define rb_progname   (GET_VM()->progname)
#define RUBY_RELATIVE (   path,
  len 
)    rubylib_mangled_path((path), (len))

Referenced by ruby_init_loadpath_safe().

#define rubylib_mangled_path   rb_str_new

Definition at line 204 of file ruby.c.

Referenced by push_include(), and ruby_init_loadpath_safe().

#define set_encoding_part (   type)
Value:
if (!(p = strchr(s, ':'))) { \
set_##type##_encoding_once(opt, s, 0); \
break; \
} \
else if (p > s) { \
set_##type##_encoding_once(opt, s, p-s); \
}
SYMID SyckParser * p
Definition: yaml2byte.c:119
register char * s
Definition: os2.c:56
int type
Definition: tcltklib.c:107
char * strchr(char *, char)
else
Definition: bigdecimal.c:1150

Referenced by proc_options().

#define set_external_encoding_once (   opt,
  e,
  elen 
)    set_option_encoding_once("default_external", &(opt)->ext.enc.name, (e), (elen))

Definition at line 706 of file ruby.c.

Referenced by proc_options().

#define set_internal_encoding_once (   opt,
  e,
  elen 
)    set_option_encoding_once("default_internal", &(opt)->intern.enc.name, (e), (elen))

Definition at line 704 of file ruby.c.

Referenced by proc_options().

#define set_source_encoding_once (   opt,
  e,
  elen 
)    set_option_encoding_once("source", &(opt)->src.enc.name, (e), (elen))

Definition at line 708 of file ruby.c.

Referenced by proc_options().

#define SET_WHEN (   name,
  bit,
  str,
  len 
)
Value:
if (NAME_MATCH_P((name), (str), (len))) { \
*(unsigned int *)arg |= (bit); \
}
return str
Definition: ruby.c:1183
#define NAME_MATCH_P(name, str, len)
Definition: ruby.c:631
register unsigned int len
Definition: name2ctype.h:22210
arg
Definition: ripper.y:1287
return
Definition: name2ctype.h:23857
const char * name
Definition: nkf.c:208

Definition at line 640 of file ruby.c.

#define SET_WHEN_DISABLE (   bit)    SET_WHEN(#bit, DISABLE_BIT(bit), str, len)

Referenced by disable_option().

#define SET_WHEN_DUMP (   bit)    SET_WHEN(#bit, DUMP_BIT(bit), str, len)

Referenced by dump_option().

#define src_encoding_index   GET_VM()->src_encoding_index

Definition at line 99 of file ruby.c.

Referenced by cmdline_options_init(), load_file_internal(), and process_options().

#define UNSET_WHEN (   name,
  bit,
  str,
  len 
)
Value:
if (NAME_MATCH_P((name), (str), (len))) { \
*(unsigned int *)arg &= ~(bit); \
}
return str
Definition: ruby.c:1183
#define NAME_MATCH_P(name, str, len)
Definition: ruby.c:631
register unsigned int len
Definition: name2ctype.h:22210
arg
Definition: ripper.y:1287
return
Definition: name2ctype.h:23857
const char * name
Definition: nkf.c:208

Definition at line 634 of file ruby.c.

#define UNSET_WHEN_DISABLE (   bit)    UNSET_WHEN(#bit, DISABLE_BIT(bit), str, len)

Referenced by enable_option().

Enumeration Type Documentation

Enumerator
disable_gems 
disable_rubyopt 
disable_flag_count 

Definition at line 56 of file ruby.c.

Enumerator
dump_version 
dump_copyright 
dump_usage 
dump_yydebug 
dump_syntax 
dump_parsetree 
dump_parsetree_with_comment 
dump_insns 
dump_flag_count 

Definition at line 63 of file ruby.c.

Function Documentation

static void add_modules ( VALUE req_list,
const char *  mod 
)
static

Definition at line 476 of file ruby.c.

References list, rb_ary_new(), rb_ary_push(), rb_str_new2(), and RBASIC.

Referenced by proc_options().

static struct cmdline_options* cmdline_options_init ( struct cmdline_options opt)
static
static void disable_option ( const char *  str,
int  len,
void arg 
)
static

Definition at line 660 of file ruby.c.

References NAME_MATCH_P, rb_warn(), and SET_WHEN_DISABLE.

Referenced by proc_options().

static void dump_option ( const char *  str,
int  len,
void arg 
)
static

Definition at line 673 of file ruby.c.

References rb_warn(), SET_WHEN_DUMP, usage(), version(), and yydebug.

Referenced by proc_options().

static void enable_option ( const char *  str,
int  len,
void arg 
)
static

Definition at line 647 of file ruby.c.

References NAME_MATCH_P, rb_warn(), and UNSET_WHEN_DISABLE.

Referenced by proc_options().

static VALUE expand_include_path ( VALUE  path)
static

Definition at line 296 of file ruby.c.

References path, Qnil, rb_file_expand_path(), and RSTRING_PTR.

Referenced by ruby_incpush_expand(), and ruby_init_loadpath_safe().

static VALUE false_value ( void  )
static

Definition at line 1139 of file ruby.c.

References Qfalse.

static void fill_standard_fds ( void  )
static

Definition at line 1838 of file ruby.c.

References dup2(), errno, fstat, and stat.

Referenced by ruby_sysinit().

static void forbid_setid ( const char *  s,
struct cmdline_options opt 
)
static
char* getenv ( )
static VALUE identical_path ( VALUE  path)
static

Definition at line 278 of file ruby.c.

References path.

Referenced by ruby_init_loadpath_safe().

static void init_ids ( struct cmdline_options opt)
static
static NODE * load_file ( VALUE  parser,
const char *  fname,
int  script,
struct cmdline_options opt 
)
static
static VALUE load_file_internal ( VALUE  arg)
static
static VALUE locale_path ( VALUE  path)
static

Definition at line 283 of file ruby.c.

References path, rb_enc_associate(), and rb_locale_encoding().

Referenced by ruby_incpush().

static void moreswitches ( const char *  s,
struct cmdline_options opt,
int  envopt 
)
static
static int opt_enc_index ( VALUE  enc_name)
static
static VALUE opt_W_getter ( ID  id,
void data 
)
static

Definition at line 1758 of file ruby.c.

References data, INT2FIX, Qfalse, Qnil, and Qtrue.

Referenced by ruby_prog_init().

static long proc_options ( long  argc,
char **  argv,
struct cmdline_options opt,
int  envopt 
)
static
static VALUE process_options ( int  argc,
char **  argv,
struct cmdline_options opt 
)
static

Definition at line 1248 of file ruby.c.

References cmdline_options::disable, DISABLE_BIT, dln_find_file_r(), cmdline_options::do_line, cmdline_options::do_loop, cmdline_options::do_print, cmdline_options::do_search, cmdline_options::do_split, cmdline_options::dump, DUMP_BIT, cmdline_options::e_script, cmdline_options::enc, enc, env, rb_binding_t::env, cmdline_options::ext, fbuf, FL_TAINT, FL_UNSET, forbid_setid, GET_THREAD, GET_VM, GetBindingPtr, getenv(), GetEnvPtr, i, int, cmdline_options::intern, load_file(), MAXPATHLEN, moreswitches(), OBJ_TAINT, opt_enc_index(), origarg, parser, PATH_ENV, PREPARE_PARSE_MAIN, proc_options(), process_sflag(), Qfalse, Qnil, Qtrue, RARRAY_LEN, RARRAY_PTR(), rb_argv, rb_cObject, rb_const_get(), rb_default_internal_encoding(), rb_define_global_function(), rb_define_module(), rb_define_readonly_boolean, rb_enc_associate(), rb_enc_find_index(), rb_enc_from_encoding(), rb_enc_from_index(), rb_enc_set_default_external(), rb_enc_set_default_internal(), rb_f_chop(), rb_gc_set_params(), rb_intern, rb_io_flush(), rb_io_write(), rb_iseq_disasm(), rb_iseq_new_main(), rb_locale_encoding(), rb_obj_freeze(), rb_parser_append_print(), rb_parser_compile_string(), rb_parser_dump_tree(), rb_parser_new(), rb_parser_set_yydebug(), rb_parser_while_loop(), rb_progname, rb_realpath_internal(), rb_require(), rb_set_safe_level(), rb_stdio_set_default_encoding(), rb_stdout, rb_str_new_cstr(), rb_vm_set_progname(), cmdline_options::req_list, require_libraries(), RSTRING_PTR, ruby_init_loadpath_safe(), ruby_init_prelude(), ruby_set_argv(), ruby_show_copyright(), ruby_show_version(), s, cmdline_options::safe_level, cmdline_options::script, cmdline_options::script_name, cmdline_options::sflag, cmdline_options::src, src_encoding_index, th, usage(), cmdline_options::verbose, version(), cmdline_options::xflag, and yydebug.

Referenced by ruby_process_options().

static void process_sflag ( int sflag)
static
static void push_include ( const char *  path,
VALUE(*)(VALUE filter 
)
static

Definition at line 208 of file ruby.c.

References CharNext, GET_VM, p, path, PATH_SEP_CHAR, rb_ary_push(), rubylib_mangled_path, and s.

Referenced by ruby_push_include().

static VALUE rb_f_chop ( void  )
static

Definition at line 1218 of file ruby.c.

References rb_funcall_passing_block(), rb_intern, rb_lastline_set(), str, and uscore_get().

Referenced by process_options().

rb_lastline_set ( str  )
Initial value:
{
VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE *)
Definition: vm_eval.c:690
unsigned long VALUE
Definition: ruby.h:88
return str
Definition: ruby.c:1183
VALUE * argv
Definition: tcltklib.c:1962
int argc
Definition: tcltklib.c:1961
static VALUE uscore_get(void)
Definition: ruby.c:1154
#define rb_intern(str)
void* rb_load_file ( const char *  fname)

Definition at line 1690 of file ruby.c.

References cmdline_options_init(), load_file(), and rb_parser_new().

Referenced by rb_load_internal().

static void require_libraries ( VALUE req_list)
static
static VALUE restore_lineno ( VALUE  lineno)
static

Definition at line 1673 of file ruby.c.

References rb_gv_set().

Referenced by load_file().

void ruby_incpush ( const char *  path)

Definition at line 290 of file ruby.c.

References locale_path(), and ruby_push_include().

void ruby_incpush_expand ( const char *  path)

Definition at line 307 of file ruby.c.

References expand_include_path(), and ruby_push_include().

Referenced by proc_options().

void ruby_init_loadpath ( void  )

Definition at line 333 of file ruby.c.

References ruby_init_loadpath_safe().

void ruby_init_loadpath_safe ( int  safe_level)
static void ruby_init_prelude ( void  )
static

Definition at line 1114 of file ruby.c.

References Init_prelude(), rb_cObject, rb_const_remove(), and rb_intern_const.

Referenced by process_options().

void* ruby_process_options ( int  argc,
char **  argv 
)
void ruby_prog_init ( void  )
void ruby_push_include ( const char *  path,
VALUE(*)(VALUE filter 
)

Definition at line 270 of file ruby.c.

References push_include().

Referenced by ruby_incpush(), ruby_incpush_expand(), and ruby_init_loadpath_safe().

void ruby_script ( const char *  name)

Definition at line 1715 of file ruby.c.

References rb_external_str_new(), rb_progname, rb_vm_set_progname(), and strlen().

Referenced by ruby_process_options().

void ruby_set_argv ( int  argc,
char **  argv 
)

Definition at line 1796 of file ruby.c.

References arg, argc, av, i, OBJ_FREEZE, origarg, rb_argv, rb_ary_clear(), rb_ary_push(), and rb_external_str_new_cstr().

Referenced by process_options().

void ruby_sysinit ( int argc,
char ***  argv 
)

Definition at line 1868 of file ruby.c.

References argc, argv, fill_standard_fds(), origarg, and rb_w32_sysinit().

static void set_arg0 ( VALUE  val,
ID  id 
)
static
static void set_option_encoding_once ( const char *  type,
VALUE name,
const char *  e,
long  elen 
)
static
static VALUE true_value ( void  )
static

Definition at line 1145 of file ruby.c.

References Qtrue.

static void usage ( const char *  name)
static

Definition at line 125 of file ruby.c.

References NULL, and p.

Referenced by dump_option(), proc_options(), and process_options().

static VALUE uscore_get ( void  )
static

Definition at line 1154 of file ruby.c.

References NIL_P, rb_eTypeError, rb_lastline_get(), rb_obj_classname(), rb_raise(), T_STRING, and TYPE.

Referenced by rb_f_chop().

static void verbose_setter ( VALUE  val,
ID  id,
void data 
)
static

Definition at line 1751 of file ruby.c.

References data, Qtrue, RTEST, and val.

Referenced by ruby_prog_init().

Variable Documentation

VALUE int argc

Definition at line 120 of file ruby.c.

VALUE* argv

Definition at line 121 of file ruby.c.

struct { ... } origarg
VALUE rb_argv0

Definition at line 1136 of file ruby.c.

return str

Definition at line 1183 of file ruby.c.

Referenced by add_id(), allocate_converted_string(), appendline(), argf_getpartial(), argf_next_argv(), argf_read(), BigDecimal_split(), BigDecimal_to_f(), BigDecimal_to_s(), bubblebabble_str_new(), bug_str_modify(), bug_str_modify_expand(), bug_str_set_len(), cannot_be_coerced_into_BigDecimal(), constant_arg(), copy_stream_body(), date_s__strptime_internal(), date_s_httpdate(), date_s_iso8601(), date_s_jisx0301(), date_s_parse(), date_s_rfc2822(), date_s_rfc3339(), date_s_strptime(), date_s_xmlschema(), date_strftime_internal(), date_zone_to_diff(), datetime_s_httpdate(), datetime_s_iso8601(), datetime_s_jisx0301(), datetime_s_parse(), datetime_s_rfc2822(), datetime_s_rfc3339(), datetime_s_strptime(), datetime_s_xmlschema(), defined_expr(), dir_globs(), dir_inspect(), dir_s_glob(), do_writeconv(), dump_disasm_list(), econv_inspect(), econv_putback(), enc_inspect(), enc_names_i(), env_inspect(), env_key(), env_str_new(), err_append(), exc_inspect(), get_inline(), GetConfigPtr(), gzfile_error_inspect(), gzfile_newstr(), gzfile_read_more(), gzfile_read_raw_ensure(), gzfile_read_raw_partial(), gzfile_read_raw_rescue(), gzfile_read_raw_until_zero(), gzfile_reader_get_unused(), gzfile_write_raw(), gzreader_skip_linebreaks(), hexencode_str_new(), hist_push_method(), iconv_conv(), iconv_failure_inspect(), iconv_iconv(), iconv_s_conv(), infect(), insn_data_to_s_detail(), inspect2(), inspect_ary(), inspect_enumerator(), inspect_hash(), inspect_obj(), inspect_range(), inspect_struct(), io_binwrite(), io_enc_str(), io_getc(), io_getpartial(), io_read(), io_reader(), io_s_foreach(), io_shift_cbuf(), iseq_setup(), join_der(), make_inspect(), match_array(), match_at(), match_equal(), match_hash(), match_inspect(), match_to_s(), method_inspect(), mime_putc(), mktime_do(), name_err_mesg_load(), name_err_to_s(), obj_to_asn1derstr(), obj_to_asn1str(), ole_typedesc2val(), onig_match(), onig_search(), option_to_str(), ossl_asn1cons_to_der(), ossl_asn1prim_to_der(), ossl_bn_initialize(), ossl_bn_to_s(), ossl_buf2str(), ossl_cipher_final(), ossl_cipher_update(), ossl_dh_compute_key(), ossl_dh_export(), ossl_dh_to_der(), ossl_dh_to_text(), ossl_digest_finish(), ossl_dsa_export(), ossl_dsa_sign(), ossl_dsa_to_der(), ossl_dsa_to_text(), ossl_make_error(), ossl_pkcs12_to_der(), ossl_pkcs7_decrypt(), ossl_pkcs7_s_write_smime(), ossl_pkcs7_to_der(), ossl_pkcs7_to_pem(), ossl_pkey_sign(), ossl_rand_bytes(), ossl_rand_pseudo_bytes(), ossl_rand_seed(), ossl_rsa_export(), ossl_rsa_private_decrypt(), ossl_rsa_private_encrypt(), ossl_rsa_public_decrypt(), ossl_rsa_public_encrypt(), ossl_rsa_to_der(), ossl_rsa_to_text(), ossl_spki_print(), ossl_spki_set_challenge(), ossl_spki_to_der(), ossl_spki_to_pem(), ossl_ssl_read_internal(), ossl_ssl_session_to_der(), ossl_ssl_session_to_pem(), ossl_ssl_session_to_text(), ossl_sslctx_set_ciphers(), ossl_x509_get_signature_algorithm(), ossl_x509_to_der(), ossl_x509_to_pem(), ossl_x509_to_text(), ossl_x509attr_get_value(), ossl_x509attr_to_der(), ossl_x509crl_get_signature_algorithm(), ossl_x509crl_to_der(), ossl_x509crl_to_pem(), ossl_x509crl_to_text(), ossl_x509ext_to_der(), ossl_x509name_initialize(), ossl_x509name_to_der(), ossl_x509name_to_s(), ossl_x509name_to_s_old(), ossl_x509req_get_signature_algorithm(), ossl_x509req_to_der(), ossl_x509req_to_pem(), ossl_x509req_to_text(), parser_magic_comment(), parser_str_new(), path_basename(), path_dirname(), path_entries(), path_expand_path(), path_extname(), path_fnmatch(), path_initialize(), path_inspect(), path_mkdir(), path_readlink(), path_realdirpath(), path_realpath(), path_s_getwd(), path_split(), path_sub(), path_sub_ext(), path_unlink(), proc_to_s(), pst_inspect(), pst_to_s(), r_bytes0(), r_object0(), range_to_s(), rb_any_to_s(), rb_check_string_type(), rb_cstr_to_inum(), rb_digest_base_finish(), rb_digest_class_s_digest(), rb_digest_instance_digest(), rb_digest_instance_hexdigest(), rb_digest_instance_inspect(), rb_dlptr_s_to_ptr(), rb_econv_insert_output(), rb_enc_aliases_enc_i(), rb_enc_cr_str_buf_cat(), rb_enc_name_list_i(), rb_enc_str_new(), rb_enc_uint_chr(), rb_external_str_new_with_enc(), rb_f_chop(), rb_f_getenv(), rb_f_kill(), rb_find_file_ext_safe(), rb_find_file_safe(), rb_gdbm_fetch(), rb_gdbm_firstkey(), rb_gdbm_nextkey(), rb_gzfile_comment(), rb_gzfile_orig_name(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_gzreader_each(), rb_gzreader_readlines(), rb_id2str(), rb_intern3(), rb_io_each_line(), rb_io_getline_1(), rb_io_getline_fast(), rb_io_gets_m(), rb_io_putc(), rb_io_sysread(), rb_iseq_disasm(), rb_iseq_disasm_insn(), rb_obj_as_string(), rb_obj_inspect(), rb_p(), rb_proc_exec(), rb_reg_desc(), rb_reg_initialize_m(), rb_reg_match_m(), rb_reg_match_post(), rb_reg_match_pre(), rb_reg_nth_match(), rb_reg_preprocess_dregexp(), rb_reg_regcomp(), rb_reg_regsub(), rb_reg_source(), rb_reg_to_s(), rb_set_class_path(), rb_set_class_path_string(), rb_stat_inspect(), rb_str_append(), rb_str_aref(), rb_str_buf_append(), rb_str_buf_cat(), rb_str_buf_cat_ascii(), rb_str_buf_new(), rb_str_buf_new_cstr(), rb_str_capitalize(), rb_str_capitalize_bang(), rb_str_cat(), rb_str_catf(), rb_str_chomp(), rb_str_chomp_bang(), rb_str_chop_bang(), rb_str_clear(), rb_str_delete(), rb_str_delete_bang(), rb_str_downcase(), rb_str_downcase_bang(), rb_str_drop_bytes(), rb_str_each_byte(), rb_str_each_char(), rb_str_each_codepoint(), rb_str_each_line(), rb_str_ellipsize(), rb_str_encode(), rb_str_force_encoding(), rb_str_format(), rb_str_init(), rb_str_insert(), rb_str_lstrip(), rb_str_lstrip_bang(), rb_str_match_m(), rb_str_new_frozen(), rb_str_prepend(), rb_str_replace(), rb_str_resize(), rb_str_reverse_bang(), rb_str_rstrip(), rb_str_rstrip_bang(), rb_str_scan(), rb_str_squeeze(), rb_str_squeeze_bang(), rb_str_strip(), rb_str_strip_bang(), rb_str_sub(), rb_str_sub_bang(), rb_str_succ(), rb_str_succ_bang(), rb_str_swapcase(), rb_str_swapcase_bang(), rb_str_to_s(), rb_str_tr(), rb_str_tr_s(), rb_str_unlocktmp(), rb_str_upcase(), rb_str_upcase_bang(), rb_str_vcatf(), rb_syck_mktime(), rb_tainted_str_new_cstr(), rb_thread_current_status(), rb_thread_inspect(), rb_usascii_str_new(), rb_zlib_version(), read_all(), reg_match_pos(), remove_sign_bits(), rsock_s_recvfrom(), rsock_s_recvfrom_nonblock(), RUBY_ALIAS_FUNCTION(), ruby_brace_expand(), ruby_debug_print_value(), ruby_each_words(), ruby_setenv(), ruby_strtoul(), scan_digits(), set_file_encoding(), str_alloc(), str_buf_cat(), str_byte_aref(), str_encode(), str_encode_associate(), str_encode_bang(), str_gsub(), str_new(), str_replace(), str_replace_shared(), str_transcode0(), strftimev(), strio_getline(), strio_gets(), strio_read(), strio_set_encoding(), strio_substr(), strio_ungetbyte(), strscan_do_scan(), strscan_initialize(), strscan_set_string(), syck_emit_1quoted(), syck_emit_2quoted(), syck_emit_folded(), syck_emit_literal(), syck_match_implicit(), syck_out_scalar(), sycklex_bytecode_utf8(), sym_inspect(), sys_fail2(), syserr_initialize(), syslog_write(), time_dump(), time_mdump(), time_strftime(), tr_trans(), update_char_offset(), vm_check_if_namespace(), and writer().