#include "ruby.h"#include "ruby/encoding.h"#include <sys/types.h>#include <shlobj.h>Go to the source code of this file.
| #define CSIDL_COMMON_APPDATA 35 |
Definition at line 34 of file etc.c.
Referenced by etc_sysconfdir().
Definition at line 362 of file etc.c.
References getgid(), id, NUM2GIDT, Qnil, rb_eArgError, rb_raise(), rb_scan_args(), and rb_secure().
Referenced by Init_etc().
Definition at line 395 of file etc.c.
References Qnil, rb_eArgError, rb_raise(), rb_secure(), RSTRING_PTR, and SafeStringValue.
Referenced by Init_etc().
Definition at line 51 of file etc.c.
References getenv(), getlogin(), Qnil, rb_secure(), and rb_tainted_str_new2.
Referenced by Init_etc().
Definition at line 158 of file etc.c.
References Qnil, rb_eArgError, rb_raise(), RSTRING_PTR, and SafeStringValue.
Referenced by Init_etc().
Definition at line 127 of file etc.c.
References getuid(), id, NUM2UIDT, Qnil, rb_eArgError, rb_raise(), rb_scan_args(), and rb_secure().
Referenced by Init_etc().
Definition at line 459 of file etc.c.
References Qnil, rb_block_given_p(), and rb_secure().
Referenced by Init_etc().
Definition at line 221 of file etc.c.
References Qnil, rb_block_given_p(), and rb_secure().
Referenced by Init_etc().
Definition at line 572 of file etc.c.
References CSIDL_COMMON_APPDATA, rb_filesystem_str_new_cstr(), rb_w32_special_folder(), and SYSCONFDIR.
Referenced by Init_etc().
| static VALUE etc_systmpdir | ( | void | ) | [static] |
Definition at line 585 of file etc.c.
References FL_TAINT, FL_UNSET, FL_UNTRUSTED, len, 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* getlogin | ( | ) |
| void Init_etc | ( | void | ) |
Definition at line 606 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(), HAVE_ST_GR_PASSWD, HAVE_ST_PW_GECOS, NULL, rb_define_const(), rb_define_module(), rb_define_module_function(), rb_define_singleton_method(), rb_extend_object(), rb_mEnumerable, rb_struct_define(), and sPasswd.
| VALUE rb_w32_conv_from_wchar | ( | const WCHAR * | wstr, | |
| rb_encoding * | enc | |||
| ) |
Definition at line 1864 of file win32.c.
References ECONV_UNDEF_REPLACE, NULL, Qnil, rb_ascii8bit_encoding(), rb_enc_find(), rb_enc_from_encoding(), rb_enc_str_new(), and rb_str_encode().
Referenced by etc_systmpdir(), rb_w32_conv_from_wstr(), and rb_w32_special_folder().
| VALUE rb_w32_special_folder | ( | int | type | ) |
Definition at line 490 of file win32.c.
References get_special_folder(), Qnil, rb_filesystem_encoding(), rb_w32_conv_from_wchar(), and regulate_path().
Referenced by etc_sysconfdir().
| UINT rb_w32_system_tmpdir | ( | WCHAR * | path, | |
| UINT | len | |||
| ) |
Definition at line 500 of file win32.c.
References CSIDL_LOCAL_APPDATA, get_special_folder(), get_system_directory(), numberof, and translate_wchar().
Referenced by etc_systmpdir(), and init_env().
Definition at line 26 of file etc.c.
Referenced by Init_etc().
1.6.1