#include "ruby.h"
#include "rubyio.h"
#include "rubysig.h"
#include "util.h"
#include "dln.h"
#include <unistd.h>
#include <sys/file.h>
#include <sys/param.h>
#include <time.h>
#include <utime.h>
#include <pwd.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
|
|
Value: do {\ long bdiff = p - buf;\ while (cond) {\ buflen *= 2;\ }\ rb_str_resize(result, buflen);\ buf = RSTRING(result)->ptr;\ p = buf + bdiff;\ pend = buf + buflen;\ } while (0) Definition at line 2434 of file file.c. Referenced by file_expand_path(). |
|
|
Value: Definition at line 2445 of file file.c. Referenced by file_expand_path(). |
|
|
|
|
|
Definition at line 3227 of file file.c. Referenced by rb_f_sprintf(), and rb_f_test(). |
|
|
Definition at line 2416 of file file.c. Referenced by file_expand_path(), rb_file_join(), rb_file_s_basename(), rb_file_s_extname(), and rmext(). |
|
|
Definition at line 3136 of file file.c. Referenced by rb_file_flock(), and rb_thread_flock(). |
|
|
|
|
|
Definition at line 3097 of file file.c. Referenced by Init_File(). |
|
|
Definition at line 3100 of file file.c. Referenced by Init_File(), and rb_thread_flock(). |
|
|
Definition at line 3094 of file file.c. Referenced by Init_File(). |
|
|
Definition at line 3103 of file file.c. Referenced by Init_File(). |
|
|
|
|
|
Definition at line 2358 of file file.c. Referenced by file_expand_path(), and rb_path_skip_prefix(). |
|
|
Referenced by group_member(). |
|
|
Referenced by rb_file_ftype(), rb_stat_b(), and test_b(). |
|
|
Referenced by random_seed(), rb_file_ftype(), rb_stat_c(), and test_c(). |
|
|
|
|
|
Definition at line 1214 of file file.c. Referenced by rb_file_ftype(), rb_stat_f(), remain_size(), test_f(), and wsplit_p(). |
|
|
Referenced by path_check_0(), rb_stat_W(), and rb_stat_w(). |
|
|
Definition at line 849 of file file.c. Referenced by eaccess(). |
|
|
Definition at line 2372 of file file.c. Referenced by file_expand_path(), rb_file_s_basename(), and rb_file_s_dirname(). |
|
|
Definition at line 2396 of file file.c. Referenced by file_expand_path(), path_check_0(), rb_file_s_basename(), rb_file_s_dirname(), and rb_file_s_extname(). |
|
|
Definition at line 2451 of file file.c. Referenced by file_expand_path(). |
|
||||||||||||||||
|
Definition at line 107 of file file.c. References args, RARRAY, SafeStringValue, StringValueCStr, and VALUE. Referenced by rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_lchown(), rb_file_s_unlink(), and rb_file_s_utime(). |
|
|
|
|
||||||||||||
|
Definition at line 1691 of file file.c. References rb_sys_fail(). |
|
||||||||||||
|
Referenced by rb_file_s_chmod(). |
|
||||||||||||
|
Definition at line 1820 of file file.c. References args, and rb_sys_fail(). |
|
||||||||||||
|
Referenced by rb_file_s_chown(). |
|
||||||||||||||||
|
Definition at line 4290 of file file.c. References name, rb_cFile, rb_define_module_function(), rb_define_singleton_method(), and rb_mFileTest. Referenced by Init_File(). |
|
||||||||||||
|
Definition at line 853 of file file.c. References group_member(), and S_IXUGO. |
|
||||||||||||||||
|
Definition at line 2457 of file file.c. References BUFCHECK, BUFINIT, CharNext, chompdirsep, free, getenv(), is_absolute_path(), isdirsep, my_getcwd, nextdirsep, NIL_P, OBJ_TAINT, OBJ_TAINTED, Qnil, rb_eArgError, rb_raise(), RSTRING, skipprefix, skiproot(), StringValuePtr, strrdirsep, TOLOWER, and VALUE. Referenced by rb_file_expand_path(). |
|
||||||||||||
|
Definition at line 2904 of file file.c. References rb_file_join(), and VALUE. Referenced by rb_file_join(). |
|
|
Definition at line 4140 of file file.c. References NULL. Referenced by rb_find_file(), and rb_find_file_ext(). |
|
|
Definition at line 4091 of file file.c. References path_check_0(), Qfalse, and rb_str_new2(). Referenced by rb_find_file(). |
|
|
|
Definition at line 819 of file file.c. References GETGROUPS_T, NGROUPS, Qfalse, and Qtrue. Referenced by eaccess(), rb_stat_R(), rb_stat_W(), and rb_stat_X(). |
|
|
|
Definition at line 4032 of file file.c. References isdirsep. Referenced by file_expand_path(), path_check_0(), rb_find_file(), and rb_find_file_ext(). |
|
|
|
|
||||||||||||
|
Definition at line 1913 of file file.c. References args, and rb_sys_fail(). |
|
||||||||||||
|
Referenced by rb_file_s_lchown(). |
|
||||||||||||
|
Definition at line 4049 of file file.c. References free, is_absolute_path(), my_getcwd, rb_str_cat2(), rb_str_new2(), rb_warn(), S_ISDIR, S_IWOTH, StringValueCStr, strrdirsep, and VALUE. Referenced by fpath_check(), and rb_path_check(). |
|
||||||||||||
|
Definition at line 3289 of file file.c. References CHECK, cmd, NUM2CHR, Qfalse, Qnil, Qtrue, rb_eArgError, rb_raise(), rb_stat(), rb_sys_fail(), rb_time_new(), RSTRING, RTEST, strchr(), test_b(), test_c(), test_d(), test_e(), test_f(), test_grpowned(), test_identical(), test_l(), test_owned(), test_p(), test_R(), test_r(), test_rowned(), test_S(), test_s(), test_sgid(), test_sticky(), test_suid(), test_W(), test_w(), test_X(), test_x(), test_z(), and VALUE. Referenced by Init_File(). |
|
|
Definition at line 1583 of file file.c. References OpenFile::f, GetOpenFile, OpenFile::path, rb_sys_fail(), rb_time_new(), and VALUE. Referenced by Init_File(). |
|
||||||||||||
|
Definition at line 1744 of file file.c. References OpenFile::f, GetOpenFile, INT2FIX, NUM2INT, OpenFile::path, Qnil, rb_secure(), rb_sys_fail(), and VALUE. Referenced by Init_File(). |
|
||||||||||||||||
|
Definition at line 1888 of file file.c. References OpenFile::f, GetOpenFile, INT2FIX, NIL_P, NUM2INT, OpenFile::path, Qnil, rb_secure(), rb_sys_fail(), and VALUE. Referenced by Init_File(). |
|
||||||||||||
|
Definition at line 4024 of file file.c. References name, rb_define_const(), rb_mFConst, and VALUE. |
|
|
Definition at line 1676 of file file.c. References OpenFile::f, GetOpenFile, OpenFile::path, rb_sys_fail(), rb_time_new(), and VALUE. Referenced by Init_File(). |
|
||||||||||||
|
Definition at line 2657 of file file.c. References file_expand_path(), MAXPATHLEN, rb_str_new(), and VALUE. Referenced by rb_file_s_expand_path(), rb_find_file(), rb_find_file_ext(), and test_identical(). |
|
||||||||||||
|
Definition at line 3169 of file file.c. References OpenFile::f, flock, FMODE_WRITABLE, GetOpenFile, GetWriteFile, INT2FIX, OpenFile::mode, NUM2INT, OpenFile::path, Qfalse, rb_secure(), rb_sys_fail(), and VALUE. Referenced by Init_File(). |
|
|
Definition at line 1480 of file file.c. References rb_str_new2(), S_ISBLK, S_ISCHR, S_ISDIR, and S_ISREG. Referenced by rb_file_s_ftype(), and rb_stat_ftype(). |
|