#include "ruby.h"#include "ruby/encoding.h"#include <sys/types.h>Go to the source code of this file.
Defines | |
| #define | numberof(array) (sizeof(array) / sizeof(*(array))) |
Functions | |
| char * | getenv () |
| char * | getlogin () |
| static VALUE | etc_getlogin (VALUE obj) |
| static VALUE | etc_getpwuid (int argc, VALUE *argv, VALUE obj) |
| static VALUE | etc_getpwnam (VALUE obj, VALUE nam) |
| static VALUE | etc_passwd (VALUE obj) |
| static VALUE | etc_each_passwd (VALUE obj) |
| static VALUE | etc_setpwent (VALUE obj) |
| static VALUE | etc_endpwent (VALUE obj) |
| static VALUE | etc_getpwent (VALUE obj) |
| static VALUE | etc_getgrgid (int argc, VALUE *argv, VALUE obj) |
| static VALUE | etc_getgrnam (VALUE obj, VALUE nam) |
| static VALUE | etc_group (VALUE obj) |
| static VALUE | etc_setgrent (VALUE obj) |
| static VALUE | etc_endgrent (VALUE obj) |
| static VALUE | etc_getgrent (VALUE obj) |
| static VALUE | etc_sysconfdir (VALUE obj) |
| static VALUE | etc_systmpdir (void) |
| void | Init_etc (void) |
Variables | |
| static VALUE | sPasswd |
| #define numberof | ( | array | ) | (sizeof(array) / sizeof(*(array))) |
Definition at line 602 of file etc.c.
Referenced by absint_numwords_generic(), big_shift2(), compile_massign_opt(), constat_parse(), dupfd(), etc_systmpdir(), features_index_add_single(), init_env(), Init_ossl_ssl(), Init_RandomSeed(), inject_op_i(), int_pair_to_real_inclusive(), mark_current_machine_context(), math_gamma(), mt_state(), new_size(), numeric_getaddrinfo(), ossl_pkcs7_sym2typeid(), ossl_sslctx_initialize(), ossl_sslctx_set_ssl_version(), parser_magic_comment(), poll_child_status(), rand_init(), random_copy(), random_load(), rb_absint_singlebit_p(), rb_absint_size(), rb_ary_sample(), rb_big_bit_length(), rb_binding_add_dynavars(), rb_builtin_type_name(), rb_exec_fillarg(), rb_f_select(), rb_feature_p(), rb_gc_mark_symbols(), rb_insns_name_array(), rb_integer_pack(), rb_integer_unpack(), rb_io_each_codepoint(), rb_iseq_defined_string(), rb_str_upto(), rb_struct_new(), rb_w32_system_tmpdir(), ruby_cleanup(), select_end(), and usage().
| static VALUE etc_each_passwd | ( | VALUE | obj | ) | [static] |
| static VALUE etc_endgrent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_endpwent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_getgrent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_getgrgid | ( | int | argc, | |
| VALUE * | argv, | |||
| VALUE | obj | |||
| ) | [static] |
Definition at line 405 of file etc.c.
References getgid(), id, NUM2GIDT, Qnil, rb_eArgError, rb_raise(), and rb_scan_args().
Referenced by Init_etc().
| static VALUE etc_getgrnam | ( | VALUE | obj, | |
| VALUE | nam | |||
| ) | [static] |
Definition at line 443 of file etc.c.
References PRIsVALUE, Qnil, rb_eArgError, rb_raise(), RSTRING_PTR, and SafeStringValue.
Referenced by Init_etc().
| static VALUE etc_getlogin | ( | VALUE | obj | ) | [static] |
Definition at line 59 of file etc.c.
References getenv, getlogin(), Qnil, rb_external_str_new_with_enc(), rb_locale_encoding(), rb_utf8_encoding(), and strlen().
Referenced by Init_etc().
| static VALUE etc_getpwent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_getpwnam | ( | VALUE | obj, | |
| VALUE | nam | |||
| ) | [static] |
Definition at line 200 of file etc.c.
References PRIsVALUE, Qnil, rb_eArgError, rb_raise(), RSTRING_PTR, and SafeStringValue.
Referenced by Init_etc().
| static VALUE etc_getpwuid | ( | int | argc, | |
| VALUE * | argv, | |||
| VALUE | obj | |||
| ) | [static] |
Definition at line 163 of file etc.c.
References getuid(), id, NUM2UIDT, Qnil, rb_eArgError, rb_raise(), and rb_scan_args().
Referenced by Init_etc().
| static VALUE etc_group | ( | VALUE | obj | ) | [static] |
Definition at line 508 of file etc.c.
References Qnil, and rb_block_given_p().
Referenced by Init_etc().
| static VALUE etc_passwd | ( | VALUE | obj | ) | [static] |
Definition at line 268 of file etc.c.
References Qnil, and rb_block_given_p().
Referenced by Init_etc().
| static VALUE etc_setgrent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_setpwent | ( | VALUE | obj | ) | [static] |
| static VALUE etc_sysconfdir | ( | VALUE | obj | ) | [static] |
Definition at line 618 of file etc.c.
References CSIDL_COMMON_APPDATA, rb_filesystem_str_new_cstr(), and rb_w32_special_folder().
Referenced by Init_etc().
| static VALUE etc_systmpdir | ( | void | ) | [static] |
Definition at line 631 of file etc.c.
References FL_TAINT, FL_UNSET, numberof, Qnil, rb_filesystem_encoding(), rb_filesystem_str_new_cstr(), rb_w32_conv_from_wchar(), and rb_w32_system_tmpdir().
Referenced by Init_etc().
| char* getenv | ( | ) |
| char* getlogin | ( | ) |
| void Init_etc | ( | void | ) |
Definition at line 673 of file etc.c.
References etc_each_passwd(), etc_endgrent(), etc_endpwent(), etc_getgrent(), etc_getgrgid(), etc_getgrnam(), etc_getlogin(), etc_getpwent(), etc_getpwnam(), etc_getpwuid(), etc_group(), etc_passwd(), etc_setgrent(), etc_setpwent(), etc_sysconfdir(), etc_systmpdir(), NULL, rb_cStruct, rb_define_const(), rb_define_module(), rb_define_module_function(), rb_define_singleton_method(), rb_extend_object(), rb_mEnumerable, rb_struct_define_under(), and sPasswd.
VALUE sPasswd [static] |
Definition at line 26 of file etc.c.
Referenced by Init_etc().
1.6.1