Ruby 3.0.5p211 (2022-11-24 revision ba5cf0f7c52d4d35cc6a173c89eda98ceffa2dcf)
Functions | Variables
file.h File Reference

Internal header for File. More...

#include "ruby/ruby.h"
#include "ruby/encoding.h"

Go to the source code of this file.

Functions

VALUE rb_home_dir_of (VALUE user, VALUE result)
 
VALUE rb_default_home_dir (VALUE result)
 
VALUE rb_realpath_internal (VALUE basedir, VALUE path, int strict)
 
VALUE rb_check_realpath (VALUE basedir, VALUE path, rb_encoding *origenc)
 
void rb_file_const (const char *, VALUE)
 
int rb_file_load_ok (const char *)
 
VALUE rb_file_expand_path_fast (VALUE, VALUE)
 
VALUE rb_file_expand_path_internal (VALUE, VALUE, int, int, VALUE)
 
VALUE rb_get_path_check_to_string (VALUE)
 
VALUE rb_get_path_check_convert (VALUE)
 
int ruby_is_fd_loadable (int fd)
 

Variables

const char ruby_null_device []
 

Detailed Description

Internal header for File.

Author
Ruby developers ruby-.nosp@m.core.nosp@m.@ruby.nosp@m.-lan.nosp@m.g.org

Definition in file file.h.

Function Documentation

◆ rb_check_realpath()

VALUE rb_check_realpath ( VALUE  basedir,
VALUE  path,
rb_encoding origenc 
)

Definition at line 4504 of file file.c.

References RB_REALPATH_CHECK.

◆ rb_default_home_dir()

VALUE rb_default_home_dir ( VALUE  result)

◆ rb_file_const()

void rb_file_const ( const char *  name,
VALUE  value 
)

Definition at line 6171 of file file.c.

References name, and rb_define_const().

Referenced by Init_Dir().

◆ rb_file_expand_path_fast()

VALUE rb_file_expand_path_fast ( VALUE  fname,
VALUE  dname 
)

Definition at line 4110 of file file.c.

References expand_path, and EXPAND_PATH_BUFFER.

Referenced by rb_feature_provided().

◆ rb_file_expand_path_internal()

VALUE rb_file_expand_path_internal ( VALUE  fname,
VALUE  dname,
int  abs_mode,
int  long_name,
VALUE  result 
)

◆ rb_file_load_ok()

int rb_file_load_ok ( const char *  path)

◆ rb_get_path_check_convert()

VALUE rb_get_path_check_convert ( VALUE  obj)

Definition at line 226 of file file.c.

References rb_eArgError, rb_raise(), rb_str_new4, and rb_str_to_cstr().

Referenced by rb_get_path().

◆ rb_get_path_check_to_string()

VALUE rb_get_path_check_to_string ( VALUE  obj)

Definition at line 211 of file file.c.

References CONST_ID, rb_check_funcall_default(), StringValue, and T_STRING.

Referenced by rb_get_path().

◆ rb_home_dir_of()

VALUE rb_home_dir_of ( VALUE  user,
VALUE  result 
)

◆ rb_realpath_internal()

VALUE rb_realpath_internal ( VALUE  basedir,
VALUE  path,
int  strict 
)

Definition at line 4496 of file file.c.

References rb_enc_get(), RB_REALPATH_DIR, and RB_REALPATH_STRICT.

◆ ruby_is_fd_loadable()

int ruby_is_fd_loadable ( int  fd)

Definition at line 6277 of file file.c.

References fstat, S_ISCHR, S_ISDIR, S_ISREG, and stat.

Referenced by rb_file_load_ok().

Variable Documentation

◆ ruby_null_device

const char ruby_null_device[]
extern

Definition at line 6457 of file file.c.

Referenced by Init_File().