Ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a25176072e02db9254f0e0c84c805cd)
|
#include "id.h"
#include "ruby/encoding.h"
#include "ruby/io.h"
#include "ruby/util.h"
#include "ruby/thread.h"
#include "internal.h"
#include "dln.h"
#include "encindex.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 | apply_filename |
struct | apply_arg |
struct | no_gvl_stat_data |
struct | access_arg |
struct | chown_args |
struct | utime_args |
struct | utimbuf |
struct | rename_args |
Typedefs | |
typedef struct no_gvl_stat_data | no_gvl_stat_data |
Enumerations | |
enum | rb_realpath_mode { RB_REALPATH_CHECK , RB_REALPATH_DIR , RB_REALPATH_STRICT , RB_REALPATH_MODE_MAX } |
Variables | |
VALUE | rb_cFile |
VALUE | rb_mFileTest |
VALUE | rb_cStat |
const char | ruby_null_device [] |
#define apply2args | ( | n | ) | (rb_check_arity(argc, n, UNLIMITED_ARGUMENTS), argc-=n) |
#define BUFCHECK | ( | cond | ) |
#define BUFCOPY | ( | srcptr, | |
srclen | |||
) |
#define BUFINIT | ( | ) |
#define check_expand_path_args | ( | fname, | |
dname | |||
) |
#define endpwent | ( | ) | ((void)0) |
#define expand_path | ( | fname, | |
dname, | |||
abs_mode, | |||
long_name, | |||
result | |||
) | str_shrink(rb_file_expand_path_internal(fname, dname, abs_mode, long_name, result)) |
#define EXPAND_PATH_BUFFER | ( | ) | rb_usascii_str_new(0, MAXPATHLEN + 2) |
#define fncomp strncmp |
#define Next | ( | p, | |
e, | |||
enc | |||
) | ((p) + rb_enc_mbclen((p), (e), (enc))) |
#define nextdirsep rb_enc_path_next |
#define O_BINARY 0 |
#define O_SHARE_DELETE 0 |
#define rb_file_birthtime rb_f_notimplement |
#define rb_file_s_birthtime rb_f_notimplement |
#define rb_file_s_lchmod rb_f_notimplement |
#define rb_file_s_lchown rb_f_notimplement |
#define rb_file_s_link rb_f_notimplement |
#define rb_file_s_lutime rb_f_notimplement |
#define rb_file_s_mkfifo rb_f_notimplement |
#define rb_file_s_readlink rb_f_notimplement |
#define rb_file_s_symlink rb_f_notimplement |
#define rb_file_s_truncate rb_f_notimplement |
#define rb_file_truncate rb_f_notimplement |
#define rb_stat_birthtime rb_f_notimplement |
#define S_ISBLK | ( | m | ) | (0) /* anytime false */ |
#define S_IWOTH 002 |
#define ST2UINT | ( | val | ) | ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1))) |
#define strrdirsep rb_enc_path_last_separator |
#define WITH_ROOTDIFF | ( | stmt | ) |
typedef struct no_gvl_stat_data no_gvl_stat_data |
enum rb_realpath_mode |
Definition at line 125 of file flock.c.
References rb_notimplement().
Definition at line 6456 of file file.c.
References rb_cFile, rb_cIO, rb_define_class(), rb_define_module(), and rb_mFileTest.
NORETURN | ( | static void | syserr_fail2_inconst char *, int, VALUE, VALUE | ) |
VALUE rb_check_realpath | ( | VALUE | basedir, |
VALUE | path, | ||
rb_encoding * | enc | ||
) |
Definition at line 3358 of file file.c.
Referenced by rb_enc_path_skip_prefix().
Definition at line 3372 of file file.c.
References isdirsep, path, and rb_enc_path_next().
Definition at line 4093 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 6104 of file file.c.
References rb_define_const().
Definition at line 4666 of file file.c.
References FilePathStringValue, name, rb_enc_get(), RSTRING_LEN, and StringValueCStr.
Referenced by rb_f_require_relative().
Definition at line 4039 of file file.c.
References check_expand_path_args, expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_file_s_expand_path().
Definition at line 4046 of file file.c.
References expand_path, and EXPAND_PATH_BUFFER.
Referenced by rb_feature_provided().
Definition at line 4100 of file file.c.
References argc, argv, Qnil, rb_check_arity, and rb_file_absolute_path().
Definition at line 4052 of file file.c.
References argc, argv, Qnil, rb_check_arity, and rb_file_expand_path().
Definition at line 6357 of file file.c.
References f, path, and StringValueCStr.
Referenced by rb_find_file_safe(), and rb_load().
Definition at line 6291 of file file.c.
References f, i, and StringValueCStr.
Referenced by rb_find_file_ext_safe().
Definition at line 6284 of file file.c.
References rb_find_file_ext(), and rb_warn().
Definition at line 6350 of file file.c.
References path, rb_find_file(), and rb_warn().
Definition at line 230 of file file.c.
References obj, rb_get_path_check_convert(), and rb_get_path_check_to_string().
Referenced by rb_feature_provided(), rb_get_path_no_checksafe(), and rb_resolve_feature_path().
Definition at line 196 of file file.c.
References CONST_ID, obj, rb_check_funcall_default(), RB_TYPE_P, StringValue(), and T_STRING.
Referenced by rb_get_path().
Definition at line 224 of file file.c.
References obj, and rb_get_path().
Definition at line 4430 of file file.c.
References RB_REALPATH_DIR, and RB_REALPATH_STRICT.
Definition at line 236 of file file.c.
References ENCINDEX_ASCII, ENCINDEX_UTF_8, ENCODING_GET, path, rb_enc_from_index(), rb_filesystem_encindex(), rb_str_conv_enc(), and rb_utf8_encoding().
Referenced by rb_resolve_feature_path().
const char * ruby_enc_find_basename | ( | const char * | name, |
long * | baselen, | ||
long * | alllen, | ||
rb_encoding * | enc | ||
) |
Definition at line 4523 of file file.c.
References f, isdirsep, n, name, skipprefix, strlen(), and strrdirsep.
VALUE rb_cFile |
Definition at line 159 of file file.c.
Referenced by Init_File().
VALUE rb_mFileTest |
Definition at line 160 of file file.c.
Referenced by Init_File().