Ruby
2.0.0p594(2014-10-27revision48167)
|
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "ruby/util.h"
#include "dln.h"
#include "internal.h"
#include <ctype.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
Go to the source code of this file.
Data Structures | |
struct | chown_args |
struct | utime_args |
struct | utimbuf |
Variables | |
VALUE | rb_cFile |
VALUE | rb_mFileTest |
VALUE | rb_cStat |
static const rb_data_type_t | stat_data_type |
static VALUE | separator |
VALUE | rb_mFConst |
static const char | null_device [] |
#define BUFCHECK | ( | cond | ) |
Definition at line 2872 of file file.c.
Referenced by rb_file_expand_path_internal().
#define BUFINIT | ( | ) |
Definition at line 2883 of file file.c.
Referenced by rb_file_expand_path_internal().
#define CHECK | ( | n | ) | test_check((n), argc, argv) |
Definition at line 4317 of file file.c.
Referenced by rb_f_test().
#define check_expand_path_args | ( | fname, | |
dname | |||
) |
Definition at line 3314 of file file.c.
Referenced by rb_file_absolute_path(), and rb_file_expand_path().
Definition at line 367 of file file.c.
Referenced by rb_stat_dev(), rb_stat_rdev(), rb_stat_rdev_major(), and rb_stat_rdev_minor().
#define expand_path | ( | fname, | |
dname, | |||
abs_mode, | |||
long_name, | |||
result | |||
) | str_shrink(rb_file_expand_path_internal(fname, dname, abs_mode, long_name, result)) |
Definition at line 3311 of file file.c.
Referenced by rb_file_absolute_path(), rb_file_expand_path(), and rb_file_expand_path_fast().
#define EXPAND_PATH_BUFFER | ( | ) | rb_usascii_str_new(0, MAXPATHLEN + 2) |
Definition at line 3302 of file file.c.
Referenced by file_expand_path_1(), rb_file_absolute_path(), rb_file_expand_path(), and rb_file_expand_path_fast().
#define fncomp strncmp |
Referenced by rmext().
#define fpath_check | ( | path | ) | path_check_0((path), FALSE) |
Definition at line 5233 of file file.c.
Referenced by rb_find_file_ext_safe(), and rb_find_file_safe().
Definition at line 2684 of file file.c.
Referenced by chompdirsep(), rb_enc_path_last_separator(), rb_enc_path_next(), rb_file_expand_path_internal(), rb_home_dir(), rb_realpath_internal(), ruby_enc_find_basename(), and ruby_enc_find_extname().
Definition at line 142 of file file.c.
Referenced by rb_get_path_check_convert(), and rb_get_path_check_to_string().
#define isdirsep | ( | x | ) | ((x) == '/') |
Definition at line 2666 of file file.c.
Referenced by chompdirsep(), is_explicit_relative(), rb_enc_path_end(), rb_enc_path_last_separator(), rb_enc_path_next(), rb_enc_path_skip_prefix(), rb_file_dirname(), rb_file_expand_path_internal(), rb_file_join(), rb_is_absolute_path(), realpath_rec(), ruby_enc_find_basename(), ruby_enc_find_extname(), skipprefixroot(), and skiproot().
#define istrailinggarbage | ( | x | ) | 0 |
Definition at line 2680 of file file.c.
Referenced by rb_file_expand_path_internal(), and ruby_enc_find_extname().
#define LOCK_EX 2 |
Definition at line 4184 of file file.c.
Referenced by flock_winnt(), and Init_File().
#define LOCK_NB 4 |
Definition at line 4187 of file file.c.
Referenced by flock_winnt(), Init_File(), and rb_file_flock().
#define LOCK_SH 1 |
Definition at line 4181 of file file.c.
Referenced by flock_winnt(), and Init_File().
#define LOCK_UN 8 |
Definition at line 4190 of file file.c.
Referenced by flock_winnt(), and Init_File().
#define MAXPATHLEN 1024 |
Definition at line 43 of file file.c.
Referenced by rb_file_expand_path_internal(), rb_find_file_ext_safe(), rb_find_file_safe(), and sys_fail2().
#define nextdirsep rb_enc_path_next |
Definition at line 2757 of file file.c.
Referenced by rb_file_expand_path_internal().
Definition at line 364 of file file.c.
Referenced by rb_stat_inspect().
#define O_BINARY 0 |
Referenced by Init_File().
#define PRI_DEVT_PREFIX "" |
Definition at line 370 of file file.c.
Referenced by rb_stat_inspect().
#define rb_file_s_lchmod rb_f_notimplement |
Definition at line 2132 of file file.c.
Referenced by Init_File().
#define rb_file_s_lchown rb_f_notimplement |
Definition at line 2276 of file file.c.
Referenced by Init_File().
#define rb_file_s_link rb_f_notimplement |
Definition at line 2462 of file file.c.
Referenced by Init_File().
#define rb_file_s_readlink rb_f_notimplement |
Definition at line 2545 of file file.c.
Referenced by Init_File().
#define rb_file_s_symlink rb_f_notimplement |
Definition at line 2493 of file file.c.
Referenced by Init_File().
#define rb_file_s_truncate rb_f_notimplement |
Definition at line 4136 of file file.c.
Referenced by Init_File().
#define rb_file_truncate rb_f_notimplement |
Definition at line 4177 of file file.c.
Referenced by Init_File().
#define rb_sys_fail_path | ( | path | ) | rb_sys_fail_str(path) |
Definition at line 109 of file file.c.
Referenced by chmod_internal(), chown_internal(), rb_f_test(), rb_file_atime(), rb_file_chmod(), rb_file_chown(), rb_file_ctime(), rb_file_flock(), rb_file_lstat(), rb_file_mtime(), rb_file_s_atime(), rb_file_s_ctime(), rb_file_s_ftype(), rb_file_s_lstat(), rb_file_s_mtime(), rb_file_s_size(), rb_file_s_stat(), rb_file_size(), rb_io_stat(), rb_stat_init(), realpath_rec(), sys_fail2(), and unlink_internal().
Definition at line 1367 of file file.c.
Referenced by rb_file_world_readable_p(), rb_file_world_writable_p(), rb_stat_wr(), and rb_stat_ww().
#define S_ISBLK | ( | m | ) | (0) /* anytime false */ |
Referenced by rb_file_blockdev_p(), rb_file_ftype(), and rb_stat_b().
Referenced by fill_random_seed(), rb_file_chardev_p(), rb_file_ftype(), and rb_stat_c().
Referenced by path_check_0(), rb_file_directory_p(), rb_file_ftype(), and rb_stat_d().
Definition at line 1507 of file file.c.
Referenced by rb_file_file_p(), rb_file_ftype(), rb_file_load_ok(), and rb_stat_f().
#define S_IWOTH 002 |
Referenced by path_check_0(), rb_file_world_writable_p(), rb_stat_w(), rb_stat_W(), rb_stat_ww(), rb_w32_fstat(), rb_w32_fstati64(), and wstati64().
Definition at line 1371 of file file.c.
Referenced by rb_file_world_readable_p(), rb_file_world_writable_p(), rb_stat_wr(), and rb_stat_ww().
Definition at line 1070 of file file.c.
Referenced by eaccess(), rb_file_world_readable_p(), rb_file_world_writable_p(), rb_stat_wr(), rb_stat_ww(), rb_stat_x(), and rb_stat_X().
Definition at line 2770 of file file.c.
Referenced by rb_file_dirname(), rb_file_expand_path_internal(), ruby_enc_find_basename(), and skipprefixroot().
Definition at line 361 of file file.c.
Referenced by rb_stat_mode().
Definition at line 106 of file file.c.
Referenced by eaccess(), path_check_0(), rb_stat(), and rb_stat_init().
#define strrdirsep rb_enc_path_last_separator |
Definition at line 2805 of file file.c.
Referenced by path_check_0(), rb_file_dirname(), rb_file_expand_path_internal(), realpath_rec(), ruby_enc_find_basename(), and ruby_enc_find_extname().
#define utime_failed | ( | path, | |
tsp, | |||
atime, | |||
mtime | |||
) | rb_sys_fail_path(path) |
Definition at line 2319 of file file.c.
Referenced by utime_internal().
|
static |
Definition at line 2936 of file file.c.
References buf, memcpy(), NIL_P(), Qnil, rb_enc_associate(), rb_enc_check(), rb_enc_str_new(), rb_str_capacity(), rb_str_conv_enc(), rb_str_resize(), RSTRING_GETMEM, RSTRING_PTR, strlen(), and xfree.
Referenced by rb_file_expand_path_internal().
|
static |
Definition at line 249 of file file.c.
References arg, i, path, RARRAY_LEN, RARRAY_PTR(), rb_get_path(), rb_secure(), rb_str_encode_ospath(), RSTRING_PTR, and s.
Referenced by rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_unlink(), and rb_file_s_utime().
|
static |
Definition at line 164 of file file.c.
References enc, PRIsVALUE, rb_eEncCompatError, rb_enc_asciicompat, rb_enc_get(), rb_enc_name, rb_raise(), and rb_str_inspect().
Referenced by rb_file_join(), rb_file_s_basename(), and rb_get_path_check_convert().
Definition at line 2025 of file file.c.
References rb_sys_fail_path.
Referenced by rb_file_s_chmod().
|
static |
Definition at line 2825 of file file.c.
References Inc, isdirsep, last, and path.
Referenced by rb_enc_path_end(), rb_file_expand_path_internal(), rb_file_join(), rb_realpath_internal(), and ruby_enc_find_basename().
Definition at line 2141 of file file.c.
References arg, args, chown(), chown_args::group, chown_args::owner, and rb_sys_fail_path.
Referenced by rb_file_s_chown().
Definition at line 5298 of file file.c.
References OBJ_FREEZE, path, rb_obj_class(), RBASIC, and str_shrink().
Referenced by rb_find_file_ext_safe(), and rb_find_file_safe().
Definition at line 5448 of file file.c.
References func, rb_define_module_function(), and rb_define_singleton_method().
Referenced by Init_File().
Definition at line 1079 of file file.c.
References access, geteuid(), rb_group_member(), S_IXUGO, STAT, stat, and X_OK.
Referenced by dln_find_1(), rb_file_executable_p(), rb_file_readable_p(), and rb_file_writable_p().
Definition at line 3319 of file file.c.
References EXPAND_PATH_BUFFER, Qnil, and rb_file_expand_path_internal().
Referenced by rb_find_file_ext_safe(), and rb_find_file_safe().
Definition at line 3990 of file file.c.
References rb_eArgError, rb_file_join(), and rb_raise().
Referenced by rb_file_join().
Definition at line 145 of file file.c.
References ENCODING_GET, name, NULL, rb_ascii8bit_encoding(), rb_default_internal_encoding(), rb_enc_from_index(), rb_enc_str_asciionly_p(), rb_filesystem_encoding(), rb_str_conv_enc(), and rb_usascii_encoding().
Referenced by rb_get_path_check_convert().
Definition at line 319 of file file.c.
References rb_eTypeError, rb_raise(), st, stat, stat_data_type, and TypedData_Get_Struct.
Referenced by rb_stat_atime(), rb_stat_b(), rb_stat_blksize(), rb_stat_blocks(), rb_stat_c(), rb_stat_cmp(), rb_stat_ctime(), rb_stat_d(), rb_stat_dev(), rb_stat_dev_major(), rb_stat_dev_minor(), rb_stat_f(), rb_stat_ftype(), rb_stat_gid(), rb_stat_grpowned(), rb_stat_ino(), rb_stat_l(), rb_stat_mode(), rb_stat_mtime(), rb_stat_nlink(), rb_stat_owned(), rb_stat_p(), rb_stat_r(), rb_stat_R(), rb_stat_rdev(), rb_stat_rdev_major(), rb_stat_rdev_minor(), rb_stat_rowned(), rb_stat_S(), rb_stat_s(), rb_stat_sgid(), rb_stat_size(), rb_stat_sticky(), rb_stat_suid(), rb_stat_uid(), rb_stat_w(), rb_stat_W(), rb_stat_wr(), rb_stat_ww(), rb_stat_x(), rb_stat_X(), and rb_stat_z().
Definition at line 5499 of file file.c.
References define_filetest_function(), INT2FIX, LOCK_EX, LOCK_NB, LOCK_SH, LOCK_UN, O_BINARY, O_NONBLOCK, PATH_SEP, Qnil, rb_cIO, rb_cObject, rb_define_alloc_func(), rb_define_class(), rb_define_class_under(), rb_define_const(), rb_define_global_function(), rb_define_method(), rb_define_module(), rb_define_module_under(), rb_define_singleton_method(), rb_f_test(), rb_file_atime(), rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_chmod(), rb_file_chown(), rb_file_ctime(), rb_file_directory_p(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_exist_p(), rb_file_file_p(), rb_file_flock(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_lstat(), rb_file_mtime(), rb_file_owned_p(), rb_file_path(), rb_file_pipe_p(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_s_absolute_path(), rb_file_s_atime(), rb_file_s_basename(), rb_file_s_chmod(), rb_file_s_chown(), rb_file_s_ctime(), rb_file_s_dirname(), rb_file_s_expand_path(), rb_file_s_extname(), rb_file_s_ftype(), rb_file_s_join(), rb_file_s_lchmod, rb_file_s_lchown, rb_file_s_link, rb_file_s_lstat(), rb_file_s_mtime(), rb_file_s_path(), rb_file_s_readlink, rb_file_s_realdirpath(), rb_file_s_realpath(), rb_file_s_rename(), rb_file_s_size(), rb_file_s_split(), rb_file_s_stat(), rb_file_s_symlink, rb_file_s_truncate, rb_file_s_umask(), rb_file_s_unlink(), rb_file_s_utime(), rb_file_sgid_p(), rb_file_size(), rb_file_size_p(), rb_file_socket_p(), rb_file_sticky_p(), rb_file_suid_p(), rb_file_symlink_p(), rb_file_truncate, rb_file_world_readable_p(), rb_file_world_writable_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_file_zero_p(), rb_include_module(), rb_io_stat(), rb_mComparable, rb_obj_freeze(), rb_stat_atime(), rb_stat_b(), rb_stat_blksize(), rb_stat_blocks(), rb_stat_c(), rb_stat_cmp(), rb_stat_ctime(), rb_stat_d(), rb_stat_dev(), rb_stat_dev_major(), rb_stat_dev_minor(), rb_stat_f(), rb_stat_ftype(), rb_stat_gid(), rb_stat_grpowned(), rb_stat_init(), rb_stat_init_copy(), rb_stat_ino(), rb_stat_inspect(), rb_stat_l(), rb_stat_mode(), rb_stat_mtime(), rb_stat_nlink(), rb_stat_owned(), rb_stat_p(), rb_stat_r(), rb_stat_R(), rb_stat_rdev(), rb_stat_rdev_major(), rb_stat_rdev_minor(), rb_stat_S(), rb_stat_s(), rb_stat_s_alloc(), rb_stat_sgid(), rb_stat_size(), rb_stat_sticky(), rb_stat_suid(), rb_stat_uid(), rb_stat_w(), rb_stat_W(), rb_stat_wr(), rb_stat_ww(), rb_stat_x(), rb_stat_X(), rb_stat_z(), rb_str_new2, rb_usascii_str_new2, and rb_w32_init_file().
Referenced by Init_IO().
Definition at line 5290 of file file.c.
References isdirsep.
Referenced by rb_find_file_ext_safe(), and rb_find_file_safe().
NORETURN | ( | static void | sys_fail2VALUE, VALUE | ) |
Definition at line 5184 of file file.c.
References access, enc, my_getcwd, p, rb_enc_get(), RB_GC_GUARD, rb_is_absolute_path(), rb_str_cat2(), rb_str_new2, rb_warn(), RSTRING_LEN, RSTRING_PTR, s, S_ISDIR, S_IWOTH, STAT, stat, StringValueCStr, strrdirsep, W_OK, and xfree.
Referenced by rb_path_check().
char* rb_enc_path_end | ( | const char * | path, |
const char * | end, | ||
rb_encoding * | enc | ||
) |
Definition at line 2841 of file file.c.
References chompdirsep(), and isdirsep.
Referenced by check_dirname().
char* rb_enc_path_last_separator | ( | const char * | path, |
const char * | end, | ||
rb_encoding * | enc | ||
) |
char* rb_enc_path_next | ( | const char * | s, |
const char * | e, | ||
rb_encoding * | enc | ||
) |
Definition at line 2759 of file file.c.
References Inc, isdirsep, and s.
Referenced by rb_enc_path_skip_prefix(), and realpath_rec().
char* rb_enc_path_skip_prefix | ( | const char * | path, |
const char * | end, | ||
rb_encoding * | enc | ||
) |
Definition at line 2773 of file file.c.
References isdirsep, path, and rb_enc_path_next().
Referenced by check_dirname(), and ruby_glob0().
Definition at line 4378 of file file.c.
References CHECK, cmd, FilePathValue, ISPRINT, NUM2CHR, Qfalse, Qtrue, rb_check_arity, rb_eArgError, rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_directory_p(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_exist_p(), rb_file_file_p(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_owned_p(), rb_file_pipe_p(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_rowned_p(), rb_file_sgid_p(), rb_file_size_p(), rb_file_socket_p(), rb_file_sticky_p(), rb_file_suid_p(), rb_file_symlink_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_file_zero_p(), rb_raise(), rb_stat(), rb_sys_fail_path, stat, stat_atime(), stat_ctime(), stat_mtime(), and strchr().
Referenced by Init_File().
Definition at line 3368 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_f_require_relative(), and rb_file_s_absolute_path().
Definition at line 1885 of file file.c.
References rb_io_t::fd, fstat, GetOpenFile, rb_io_t::pathv, rb_sys_fail_path, stat, and stat_atime().
Referenced by Init_File().
Definition at line 1266 of file file.c.
References Qfalse, Qtrue, rb_stat(), S_ISBLK, and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 1295 of file file.c.
References Qfalse, Qtrue, rb_stat(), S_ISCHR, and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 2074 of file file.c.
References rb_io_t::fd, GetOpenFile, INT2FIX, mode, NIL_P(), NUM2INT, path, rb_io_t::pathv, Qnil, rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, and RSTRING_PTR.
Referenced by Init_File().
Definition at line 2205 of file file.c.
References chown(), rb_io_t::fd, GetOpenFile, INT2FIX, NIL_P(), NUM2INT, path, rb_io_t::pathv, Qnil, rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, and RSTRING_PTR.
Referenced by Init_File().
Definition at line 1986 of file file.c.
References rb_io_t::fd, fstat, GetOpenFile, rb_io_t::pathv, rb_sys_fail_path, stat, and stat_ctime().
Referenced by Init_File().
Definition at line 1144 of file file.c.
References Qfalse, Qtrue, rb_stat(), S_ISDIR, and stat.
Referenced by Init_Dir(), Init_File(), and rb_f_test().
Definition at line 3803 of file file.c.
References enc, end, FilePathStringValue, isdirsep, name, OBJ_INFECT, p, rb_enc_copy(), rb_enc_get(), rb_str_cat(), rb_str_new(), rb_usascii_str_new2, RSTRING_LEN, skipprefix, skiproot(), StringValueCStr, strrdirsep, and top.
Referenced by f_current_dirname(), rb_f_require_relative(), and rb_file_s_dirname().
Definition at line 1479 of file file.c.
References eaccess(), FilePathValue, Qfalse, Qtrue, rb_secure(), rb_str_encode_ospath(), StringValueCStr, and X_OK.
Referenced by Init_File(), and rb_f_test().
Definition at line 1497 of file file.c.
References access, FilePathValue, Qfalse, Qtrue, rb_secure(), rb_str_encode_ospath(), StringValueCStr, and X_OK.
Referenced by Init_File(), and rb_f_test().
Definition at line 1322 of file file.c.
References Qfalse, Qtrue, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 3325 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by expand_include_path(), rb_file_identical_p(), and rb_file_s_expand_path().
Definition at line 3332 of file file.c.
References expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_construct_expanded_load_path(), and rb_feature_provided().
Definition at line 1521 of file file.c.
References Qfalse, Qtrue, rb_stat(), S_ISREG, and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 4259 of file file.c.
References errno, EWOULDBLOCK, rb_io_t::fd, FMODE_WRITABLE, GetOpenFile, INT2FIX, LOCK_NB, rb_io_t::mode, NUM2INT, rb_io_t::pathv, Qfalse, rb_io_check_closed(), rb_io_flush(), rb_secure(), rb_sys_fail_path, rb_thread_flock(), rb_thread_io_blocking_region(), rb_thread_wait_for(), timeval::tv_sec, and timeval::tv_usec.
Referenced by Init_File().
Definition at line 1779 of file file.c.
References rb_usascii_str_new2, S_ISBLK, S_ISCHR, S_ISDIR, S_ISLNK, S_ISREG, and t.
Referenced by rb_file_s_ftype(), and rb_stat_ftype().
Definition at line 1613 of file file.c.
References Qfalse, Qtrue, rb_group_member(), rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 1710 of file file.c.
References access, FilePathValue, Qfalse, Qnil, Qtrue, rb_file_expand_path(), rb_memcicmp(), rb_secure(), rb_stat(), rb_str_encode_ospath(), rb_str_new4, RSTRING_LEN, RSTRING_PTR, and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 3998 of file file.c.
References check_path_encoding(), chompdirsep(), enc, FALSE, file_inspect_join(), FilePathStringValue, i, isdirsep, len, name, NIL_P(), OBJ_INFECT, RARRAY_LEN, RARRAY_PTR(), rb_cString, rb_eArgError, rb_enc_associate(), rb_enc_check(), rb_enc_copy(), rb_enc_get(), rb_exec_recursive(), rb_raise(), rb_str_buf_append(), rb_str_buf_new(), rb_str_new(), rb_str_set_len(), RB_TYPE_P, RBASIC, result, RSTRING_GETMEM, RSTRING_LEN, RSTRING_PTR, StringValue, StringValueCStr, T_ARRAY, T_STRING, tail, tmp, TRUE, and TYPE.
Referenced by file_inspect_join(), and rb_file_s_join().
Definition at line 1002 of file file.c.
References GetOpenFile, lstat, NIL_P(), path, rb_io_t::pathv, Qnil, rb_io_stat(), rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, RSTRING_PTR, stat, and stat_new().
Referenced by Init_File().
Definition at line 1932 of file file.c.
References rb_io_t::fd, fstat, GetOpenFile, rb_io_t::pathv, rb_sys_fail_path, stat, and stat_mtime().
Referenced by Init_File().
Definition at line 1582 of file file.c.
References geteuid(), Qfalse, Qtrue, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 279 of file file.c.
References NIL_P(), rb_io_t::pathv, Qnil, rb_io_check_initialized(), rb_io_taint_check(), rb_obj_taint(), rb_str_dup(), and RFILE.
Referenced by Init_File().
Definition at line 1167 of file file.c.
References Qfalse, Qtrue, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 1339 of file file.c.
References eaccess(), FilePathValue, Qfalse, Qtrue, R_OK, rb_secure(), rb_str_encode_ospath(), and StringValueCStr.
Referenced by Init_File(), and rb_f_test().
Definition at line 1357 of file file.c.
References access, FilePathValue, Qfalse, Qtrue, R_OK, rb_secure(), rb_str_encode_ospath(), and StringValueCStr.
Referenced by Init_File(), and rb_f_test().
Definition at line 3388 of file file.c.
References Qnil, rb_file_absolute_path(), and rb_scan_args().
Referenced by Init_File().
Definition at line 1862 of file file.c.
References FilePathValue, rb_stat(), rb_sys_fail_path, stat, and stat_atime().
Referenced by Init_File().
Definition at line 3743 of file file.c.
References check_path_encoding(), enc, f, FilePathStringValue, n, name, NIL_P(), OBJ_INFECT, p, Qnil, rb_enc_compatible(), rb_enc_copy(), rb_enc_get(), RB_GC_GUARD, rb_scan_args(), rb_str_new(), rb_str_new_shared(), rmext(), RSTRING_LEN, RSTRING_PTR, ruby_enc_find_basename(), StringValue, and StringValueCStr.
Referenced by Init_File(), and rb_file_s_split().
Definition at line 2045 of file file.c.
References apply2files(), chmod_internal(), LONG2FIX, mode, n, NUM2INT, rb_scan_args(), and rb_secure().
Referenced by Init_File().
Definition at line 2164 of file file.c.
References apply2files(), chown_internal(), chown_args::group, LONG2FIX, n, NIL_P(), NUM2GIDT, NUM2UIDT, chown_args::owner, rb_scan_args(), and rb_secure().
Referenced by Init_File().
Definition at line 1961 of file file.c.
References FilePathValue, rb_stat(), rb_sys_fail_path, stat, and stat_ctime().
Referenced by Init_File().
Definition at line 3797 of file file.c.
References rb_file_dirname().
Referenced by Init_File(), and rb_file_s_split().
Definition at line 3355 of file file.c.
References Qnil, rb_file_expand_path(), and rb_scan_args().
Referenced by Init_File().
Definition at line 3933 of file file.c.
References e, FilePathStringValue, len, name, OBJ_INFECT, rb_enc_get(), rb_str_new(), rb_str_subseq(), RSTRING_LEN, ruby_enc_find_extname(), and StringValueCStr.
Referenced by Init_File().
Definition at line 1835 of file file.c.
References FilePathValue, lstat, rb_file_ftype(), rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, stat, and StringValueCStr.
Referenced by Init_File().
Definition at line 970 of file file.c.
References FilePathValue, lstat, rb_file_s_stat(), rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, stat, stat_new(), and StringValueCStr.
Referenced by Init_File().
Definition at line 1910 of file file.c.
References FilePathValue, rb_stat(), rb_sys_fail_path, stat, and stat_mtime().
Referenced by Init_File().
Definition at line 3621 of file file.c.
References path, rb_realpath_internal(), and rb_scan_args().
Referenced by Init_File().
Definition at line 3601 of file file.c.
References path, rb_realpath_internal(), and rb_scan_args().
Referenced by Init_File().
Definition at line 2586 of file file.c.
References dst, errno, f, FilePathValue, INT2FIX, rb_secure(), rb_str_encode_ospath(), src, StringValueCStr, sys_fail2(), and t.
Referenced by Init_File().
Definition at line 1767 of file file.c.
References FilePathValue, OFFT2NUM, rb_stat(), rb_sys_fail_path, and stat.
Referenced by Init_File().
Definition at line 3979 of file file.c.
References FilePathStringValue, Qnil, rb_assoc_new(), rb_file_s_basename(), and rb_file_s_dirname().
Referenced by Init_File().
Definition at line 915 of file file.c.
References FilePathValue, rb_secure(), rb_stat(), rb_sys_fail_path, stat, and stat_new().
Referenced by Init_File(), and rb_file_s_lstat().
Definition at line 2636 of file file.c.
References INT2FIX, NUM2INT, rb_check_arity, rb_secure(), and umask().
Referenced by Init_File().
Definition at line 2566 of file file.c.
References apply2files(), LONG2FIX, n, rb_secure(), and unlink_internal().
Referenced by Init_File().
Definition at line 2394 of file file.c.
References apply2files(), utime_args::atime, LONG2FIX, utime_args::mtime, n, NIL_P(), NULL, rb_scan_args(), rb_secure(), rb_time_timespec(), utime_args::tsp, and utime_internal().
Referenced by Init_File().
Definition at line 1664 of file file.c.
References Qfalse.
Referenced by Init_File(), and rb_f_test().
Definition at line 2009 of file file.c.
References rb_io_t::fd, FMODE_WRITABLE, fstat, GetOpenFile, rb_io_t::mode, OFFT2NUM, rb_io_t::pathv, rb_io_flush(), rb_sys_fail_path, and stat.
Referenced by Init_File().
Definition at line 1561 of file file.c.
References OFFT2NUM, Qnil, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 1230 of file file.c.
References Qfalse, Qtrue, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 1681 of file file.c.
References Qnil.
Referenced by Init_File(), and rb_f_test().
Definition at line 1647 of file file.c.
References Qfalse.
Referenced by Init_File(), and rb_f_test().
Definition at line 1191 of file file.c.
References FilePathValue, lstat, Qfalse, Qtrue, rb_secure(), rb_str_encode_ospath(), S_ISLNK, stat, and StringValueCStr.
Referenced by Init_File(), and rb_f_test().
Definition at line 1413 of file file.c.
References eaccess(), FilePathValue, Qfalse, Qtrue, rb_secure(), rb_str_encode_ospath(), StringValueCStr, and W_OK.
Referenced by Init_File(), and rb_f_test().
Definition at line 1431 of file file.c.
References access, FilePathValue, Qfalse, Qtrue, rb_secure(), rb_str_encode_ospath(), StringValueCStr, and W_OK.
Referenced by Init_File(), and rb_f_test().
Definition at line 1541 of file file.c.
References Qfalse, Qtrue, rb_stat(), and stat.
Referenced by Init_File(), and rb_f_test().
Definition at line 5382 of file file.c.
References rb_find_file_safe(), and rb_safe_level.
Referenced by rb_f_load(), and rb_load().
Definition at line 5307 of file file.c.
References rb_find_file_ext_safe(), and rb_safe_level.
Definition at line 5313 of file file.c.
References copy_path_class(), file_expand_path_1(), FL_TAINT, FL_UNSET, FL_UNTRUSTED, fpath_check, i, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, RARRAY_LEN, RARRAY_PTR(), rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_cat2(), rb_str_dup(), rb_str_set_len(), rb_str_tmp_new(), rb_usascii_encindex(), RBASIC, RSTRING_LEN, RSTRING_PTR, str, StringValueCStr, and tmp.
Referenced by rb_find_file_ext(), and search_required().
Definition at line 5388 of file file.c.
References copy_path_class(), file_expand_path_1(), fpath_check, i, is_explicit_relative(), MAXPATHLEN, OBJ_TAINTED, path, RARRAY_LEN, RARRAY_PTR(), rb_enc_associate_index(), rb_eSecurityError, rb_file_expand_path_internal(), rb_file_load_ok(), RB_GC_GUARD, rb_get_expanded_load_path(), rb_get_path_check(), rb_is_absolute_path(), rb_raise(), rb_str_tmp_new(), rb_usascii_encindex(), RSTRING_LEN, RSTRING_PTR, str, StringValueCStr, and tmp.
Referenced by rb_find_file(), and search_required().
Definition at line 224 of file file.c.
References rb_get_path_check(), and rb_safe_level.
Referenced by apply2files(), rb_feature_provided(), and rb_file_s_path().
Definition at line 211 of file file.c.
References rb_get_path_check_convert(), rb_get_path_check_to_string(), and tmp.
Referenced by rb_find_file_ext_safe(), rb_find_file_safe(), rb_get_path(), and rb_get_path_no_checksafe().
Definition at line 197 of file file.c.
References check_path_encoding(), file_path_convert(), insecure_obj_p, rb_insecure_operation(), rb_str_new4, and StringValueCStr.
Referenced by rb_construct_expanded_load_path(), and rb_get_path_check().
Definition at line 175 of file file.c.
References CONST_ID, insecure_obj_p, obj, Qundef, rb_check_funcall(), rb_insecure_operation(), RB_TYPE_P, StringValue, T_STRING, and tmp.
Referenced by rb_construct_expanded_load_path(), and rb_get_path_check().
Definition at line 218 of file file.c.
References rb_get_path_check().
|
static |
Definition at line 1023 of file file.c.
References ALLOCV_END, ALLOCV_N, FALSE, getegid(), getgid(), RB_MAX_GROUPS, and TRUE.
Referenced by eaccess(), rb_file_grpowned_p(), rb_stat_grpowned(), rb_stat_R(), rb_stat_W(), and rb_stat_X().
Definition at line 2889 of file file.c.
References buf, enc, getenv(), Inc, memcpy(), p, Qnil, rb_eArgError, rb_enc_associate(), rb_filesystem_encoding(), rb_raise(), rb_str_resize(), result, RSTRING_PTR, and strlen().
Referenced by dir_s_home(), and rb_file_expand_path_internal().
Definition at line 943 of file file.c.
References rb_io_t::fd, fstat, GetOpenFile, rb_io_t::pathv, rb_sys_fail_path, stat, and stat_new().
Referenced by Init_File(), and rb_file_lstat().
Definition at line 5160 of file file.c.
References isdirsep.
Referenced by path_check_0(), rb_construct_expanded_load_path(), rb_file_expand_path_internal(), rb_find_file_ext_safe(), and rb_find_file_safe().
Definition at line 5239 of file file.c.
References p, path, path_check_0(), PATH_SEP_CHAR, rb_str_new(), strchr(), strlen(), and TRUE.
Referenced by path_tainted_p().
Definition at line 3513 of file file.c.
References chompdirsep(), enc, FilePathValue, Inc, len, NIL_P(), NULL, OBJ_TAINT, ptr, Qnil, rb_dir_getwd(), rb_enc_get(), rb_hash_new(), rb_secure(), rb_str_dup_frozen, rb_str_set_len(), rb_str_subseq(), realpath_rec(), RSTRING_GETMEM, and skipprefixroot().
Referenced by iseq_s_compile_file(), process_options(), rb_file_s_realdirpath(), rb_file_s_realpath(), rb_load_internal(), and ruby_init_loadpath_safe().
Definition at line 844 of file file.c.
References rb_io_t::fd, FilePathValue, fstat, GetOpenFile, NIL_P(), rb_check_convert_type(), rb_secure(), rb_str_encode_ospath(), STAT, StringValueCStr, T_FILE, and tmp.
Referenced by rb_f_test(), rb_file_blockdev_p(), rb_file_chardev_p(), rb_file_directory_p(), rb_file_exist_p(), rb_file_file_p(), rb_file_grpowned_p(), rb_file_identical_p(), rb_file_owned_p(), rb_file_pipe_p(), rb_file_rowned_p(), rb_file_s_atime(), rb_file_s_ctime(), rb_file_s_mtime(), rb_file_s_size(), rb_file_s_stat(), rb_file_size_p(), rb_file_socket_p(), rb_file_world_readable_p(), rb_file_world_writable_p(), and rb_file_zero_p().
Definition at line 729 of file file.c.
References get_stat(), and stat_atime().
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4705 of file file.c.
References get_stat(), Qfalse, Qtrue, and S_ISBLK.
Referenced by Init_File().
Definition at line 611 of file file.c.
References get_stat(), Qnil, and ULONG2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 632 of file file.c.
References get_stat(), Qnil, and ULONG2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4727 of file file.c.
References get_stat(), Qfalse, Qtrue, and S_ISCHR.
Referenced by Init_File().
Definition at line 345 of file file.c.
References get_stat(), INT2FIX, Qnil, rb_obj_class(), rb_obj_is_kind_of(), stat_mtimespec(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by Init_File().
Definition at line 765 of file file.c.
References get_stat(), and stat_ctime().
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4619 of file file.c.
References get_stat(), Qfalse, Qtrue, and S_ISDIR.
Referenced by Init_File().
Definition at line 384 of file file.c.
References DEVT2NUM, and get_stat().
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 401 of file file.c.
References get_stat(), INT2NUM, major, and Qnil.
Referenced by Init_File().
Definition at line 422 of file file.c.
References get_stat(), INT2NUM, minor, and Qnil.
Referenced by Init_File().
Definition at line 5046 of file file.c.
References get_stat(), Qfalse, Qtrue, and S_ISREG.
Referenced by Init_File().
Definition at line 4602 of file file.c.
References get_stat(), and rb_file_ftype().
Referenced by Init_File().
Definition at line 515 of file file.c.
References get_stat(), and GIDT2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4773 of file file.c.
References get_stat(), Qfalse, Qtrue, and rb_group_member().
Referenced by Init_File(), rb_stat_r(), rb_stat_w(), and rb_stat_x().
Definition at line 4546 of file file.c.
References ALLOC, DATA_PTR(), FilePathValue, NULL, Qnil, rb_secure(), rb_str_encode_ospath(), rb_sys_fail_path, st, STAT, stat, StringValueCStr, and xfree.
Referenced by Init_File().
Definition at line 4569 of file file.c.
References ALLOC, DATA_PTR(), OBJ_INIT_COPY, stat, and xfree.
Referenced by Init_File().
Definition at line 442 of file file.c.
References get_stat(), and ULONG2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 785 of file file.c.
References func, i, name, NUM2DEVT, NUM2ULONG, OBJ_INFECT, PRI_DEVT_PREFIX, rb_inspect(), rb_obj_classname(), rb_sprintf(), rb_stat_atime(), rb_stat_blksize(), rb_stat_blocks(), rb_stat_ctime(), rb_stat_dev(), rb_stat_gid(), rb_stat_ino(), rb_stat_mode(), rb_stat_mtime(), rb_stat_nlink(), rb_stat_rdev(), rb_stat_size(), rb_stat_uid(), rb_str_append(), rb_str_buf_cat2(), rb_str_buf_new2, rb_str_catf(), st, stat, stat_data_type, str, TypedData_Get_Struct, and v.
Referenced by Init_File().
Definition at line 4661 of file file.c.
References get_stat(), Qfalse, Qtrue, and S_ISLNK.
Referenced by Init_File().
Definition at line 465 of file file.c.
References get_stat(), ST2UINT, and UINT2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 745 of file file.c.
References get_stat(), and stat_mtime().
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 483 of file file.c.
References get_stat(), and UINT2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4747 of file file.c.
References get_stat(), geteuid(), Qfalse, and Qtrue.
Referenced by Init_File(), rb_stat_r(), rb_stat_w(), and rb_stat_x().
Definition at line 4634 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 4793 of file file.c.
References get_stat(), geteuid(), Qfalse, Qtrue, rb_stat_grpowned(), rb_stat_owned(), S_IRGRP, S_IROTH, S_IRUSR, and stat.
Referenced by Init_File().
Definition at line 4826 of file file.c.
References get_stat(), getuid(), Qfalse, Qtrue, rb_group_member(), rb_stat_rowned(), S_IRGRP, S_IROTH, S_IRUSR, and stat.
Referenced by Init_File().
Definition at line 533 of file file.c.
References DEVT2NUM, get_stat(), and Qnil.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 554 of file file.c.
References DEVT2NUM, get_stat(), major, and Qnil.
Referenced by Init_File().
Definition at line 575 of file file.c.
References DEVT2NUM, get_stat(), minor, and Qnil.
Referenced by Init_File().
Definition at line 4754 of file file.c.
References get_stat(), getuid(), Qfalse, and Qtrue.
Referenced by rb_stat_R(), rb_stat_W(), and rb_stat_X().
Definition at line 4682 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 5081 of file file.c.
References get_stat(), off_t, OFFT2NUM, and Qnil.
Referenced by Init_File().
Definition at line 5122 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 594 of file file.c.
References get_stat(), and OFFT2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 5143 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 5101 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 499 of file file.c.
References get_stat(), and UIDT2NUM.
Referenced by Init_File(), and rb_stat_inspect().
Definition at line 4885 of file file.c.
References get_stat(), geteuid(), Qfalse, Qtrue, rb_stat_grpowned(), rb_stat_owned(), S_IWGRP, S_IWOTH, S_IWUSR, and stat.
Referenced by Init_File().
Definition at line 4918 of file file.c.
References get_stat(), getuid(), Qfalse, Qtrue, rb_group_member(), rb_stat_rowned(), S_IWGRP, S_IWOTH, S_IWUSR, and stat.
Referenced by Init_File().
Definition at line 4861 of file file.c.
References get_stat(), Qnil, S_IROTH, S_IRUGO, S_IWUGO, S_IXUGO, and UINT2NUM.
Referenced by Init_File().
Definition at line 4953 of file file.c.
References get_stat(), Qnil, S_IRUGO, S_IWOTH, S_IWUGO, S_IXUGO, and UINT2NUM.
Referenced by Init_File().
Definition at line 4979 of file file.c.
References get_stat(), geteuid(), Qfalse, Qtrue, rb_stat_grpowned(), rb_stat_owned(), S_IXGRP, S_IXOTH, S_IXUGO, S_IXUSR, and stat.
Referenced by Init_File().
Definition at line 5011 of file file.c.
References get_stat(), getuid(), Qfalse, Qtrue, rb_group_member(), rb_stat_rowned(), S_IXGRP, S_IXOTH, S_IXUGO, S_IXUSR, and stat.
Referenced by Init_File().
Definition at line 5064 of file file.c.
References get_stat(), Qfalse, and Qtrue.
Referenced by Init_File().
Definition at line 230 of file file.c.
References enc, path, Qnil, rb_ascii8bit_encoding(), rb_enc_associate(), rb_enc_from_encoding(), rb_enc_get(), rb_filesystem_encoding(), rb_str_dup(), rb_str_encode(), rb_utf8_encoding(), and RSTRING_LEN.
Referenced by apply2files(), check_dirname(), dir_initialize(), dir_s_chdir(), do_opendir(), load_file_internal(), rb_file_chmod(), rb_file_chown(), rb_file_executable_p(), rb_file_executable_real_p(), rb_file_expand_path_internal(), rb_file_identical_p(), rb_file_lstat(), rb_file_readable_p(), rb_file_readable_real_p(), rb_file_s_ftype(), rb_file_s_lstat(), rb_file_s_rename(), rb_file_symlink_p(), rb_file_writable_p(), rb_file_writable_real_p(), rb_stat(), rb_stat_init(), rb_sysopen(), and realpath_rec().
|
static |
Definition at line 3401 of file file.c.
References CONST_ID, ELOOP, enc, errno, ID2SYM, isdirsep, link(), lstat, NIL_P(), Qnil, rb_enc_check(), rb_enc_get(), rb_enc_left_char_head, rb_enc_path_next(), RB_GC_GUARD, rb_hash_aref(), rb_hash_aset(), rb_str_cat(), rb_str_cat2(), rb_str_conv_enc(), rb_str_dup(), rb_str_dup_frozen, rb_str_encode_ospath(), rb_str_resize(), rb_str_subseq(), rb_sys_fail_path, ret, RSTRING_LEN, RSTRING_PTR, S_ISLNK, skipprefixroot(), stat, strlen(), and strrdirsep.
Referenced by rb_realpath_internal().
|
static |
Definition at line 3629 of file file.c.
References c, e, fncomp, last, p, rb_enc_ascget(), rb_enc_codepoint_len(), rb_enc_left_char_head, and s.
Referenced by rb_file_s_basename().
const char* ruby_enc_find_basename | ( | const char * | name, |
long * | baselen, | ||
long * | alllen, | ||
rb_encoding * | enc | ||
) |
Definition at line 3665 of file file.c.
References chompdirsep(), e, end, f, Inc, isdirsep, n, name, p, q, skipprefix, strlen(), and strrdirsep.
Referenced by rb_file_s_basename().
const char* ruby_enc_find_extname | ( | const char * | name, |
long * | len, | ||
rb_encoding * | enc | ||
) |
Definition at line 3858 of file file.c.
References e, Inc, isdirsep, istrailinggarbage, last, name, p, strlen(), and strrdirsep.
Referenced by path_sub_ext(), and rb_file_s_extname().
|
inlinestatic |
Definition at line 2794 of file file.c.
References isdirsep, p, skipprefix, and skiproot().
Referenced by rb_realpath_internal(), and realpath_rec().
|
inlinestatic |
Definition at line 2748 of file file.c.
References isdirsep, and path.
Referenced by rb_file_dirname(), rb_file_expand_path_internal(), and skipprefixroot().
Definition at line 663 of file file.c.
References rb_time_nano_new(), stat_atimespec(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by rb_f_test(), rb_file_atime(), rb_file_s_atime(), and rb_stat_atime().
Definition at line 646 of file file.c.
References st, timespec::tv_nsec, and timespec::tv_sec.
Referenced by stat_atime().
Definition at line 711 of file file.c.
References rb_time_nano_new(), stat_ctimespec(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by rb_f_test(), rb_file_ctime(), rb_file_s_ctime(), and rb_stat_ctime().
Definition at line 694 of file file.c.
References st, timespec::tv_nsec, and timespec::tv_sec.
Referenced by stat_ctime().
Definition at line 687 of file file.c.
References rb_time_nano_new(), stat_mtimespec(), timespec::tv_nsec, and timespec::tv_sec.
Referenced by rb_f_test(), rb_file_mtime(), rb_file_s_mtime(), and rb_stat_mtime().
Definition at line 670 of file file.c.
References st, timespec::tv_nsec, and timespec::tv_sec.
Referenced by rb_stat_cmp(), and stat_mtime().
Definition at line 313 of file file.c.
References stat_new_0().
Referenced by rb_file_lstat(), rb_file_s_lstat(), rb_file_s_stat(), and rb_io_stat().
Definition at line 301 of file file.c.
References ALLOC, st, stat, stat_data_type, and TypedData_Wrap_Struct.
Referenced by rb_stat_s_alloc(), and stat_new().
Definition at line 3305 of file file.c.
References rb_str_resize(), RSTRING_LEN, and str.
Referenced by copy_path_class().
Definition at line 2417 of file file.c.
References MAXPATHLEN, rb_str_append(), rb_str_cat2(), rb_str_ellipsize(), rb_str_new_cstr(), rb_sys_fail_path, and str.
Referenced by rb_file_s_rename().
Definition at line 4303 of file file.c.
References FilePathValue, i, n, rb_check_arity, rb_secure(), RB_TYPE_P, and T_FILE.
Definition at line 2549 of file file.c.
References rb_sys_fail_path.
Referenced by rb_file_s_unlink().
Definition at line 2368 of file file.c.
References utimbuf::actime, arg, utime_args::atime, utimbuf::modtime, utime_args::mtime, NULL, utime_args::tsp, timespec::tv_sec, utime(), and utime_failed.
Referenced by rb_file_s_utime().
|
static |
Definition at line 3985 of file file.c.
Referenced by chunk_ii().
|
static |
Definition at line 295 of file file.c.
Referenced by get_stat(), rb_stat_inspect(), and stat_new_0().