Ruby  2.4.2p198(2017-09-14revision59899)
Macros | Functions | Variables
pathname.c File Reference
#include "ruby.h"
#include "ruby/encoding.h"
Include dependency graph for pathname.c:

Go to the source code of this file.

Macros

#define path_birthtime   rb_f_notimplement
 

Functions

static VALUE get_strpath (VALUE obj)
 
static void set_strpath (VALUE obj, VALUE val)
 
static VALUE path_initialize (VALUE self, VALUE arg)
 
static VALUE path_freeze (VALUE self)
 
static VALUE path_taint (VALUE self)
 
static VALUE path_untaint (VALUE self)
 
static VALUE path_eq (VALUE self, VALUE other)
 
static VALUE path_cmp (VALUE self, VALUE other)
 
static VALUE path_hash (VALUE self)
 
static VALUE path_to_s (VALUE self)
 
static VALUE path_inspect (VALUE self)
 
static VALUE path_sub (int argc, VALUE *argv, VALUE self)
 
static VALUE path_sub_ext (VALUE self, VALUE repl)
 
static VALUE path_realpath (int argc, VALUE *argv, VALUE self)
 
static VALUE path_realdirpath (int argc, VALUE *argv, VALUE self)
 
static VALUE path_each_line (int argc, VALUE *argv, VALUE self)
 
static VALUE path_read (int argc, VALUE *argv, VALUE self)
 
static VALUE path_binread (int argc, VALUE *argv, VALUE self)
 
static VALUE path_write (int argc, VALUE *argv, VALUE self)
 
static VALUE path_binwrite (int argc, VALUE *argv, VALUE self)
 
static VALUE path_readlines (int argc, VALUE *argv, VALUE self)
 
static VALUE path_sysopen (int argc, VALUE *argv, VALUE self)
 
static VALUE path_atime (VALUE self)
 
static VALUE path_ctime (VALUE self)
 
static VALUE path_mtime (VALUE self)
 
static VALUE path_chmod (VALUE self, VALUE mode)
 
static VALUE path_lchmod (VALUE self, VALUE mode)
 
static VALUE path_chown (VALUE self, VALUE owner, VALUE group)
 
static VALUE path_lchown (VALUE self, VALUE owner, VALUE group)
 
static VALUE path_fnmatch (int argc, VALUE *argv, VALUE self)
 
static VALUE path_ftype (VALUE self)
 
static VALUE path_make_link (VALUE self, VALUE old)
 
static VALUE path_open (int argc, VALUE *argv, VALUE self)
 
static VALUE path_readlink (VALUE self)
 
static VALUE path_rename (VALUE self, VALUE to)
 
static VALUE path_stat (VALUE self)
 
static VALUE path_lstat (VALUE self)
 
static VALUE path_make_symlink (VALUE self, VALUE old)
 
static VALUE path_truncate (VALUE self, VALUE length)
 
static VALUE path_utime (VALUE self, VALUE atime, VALUE mtime)
 
static VALUE path_basename (int argc, VALUE *argv, VALUE self)
 
static VALUE path_dirname (VALUE self)
 
static VALUE path_extname (VALUE self)
 
static VALUE path_expand_path (int argc, VALUE *argv, VALUE self)
 
static VALUE path_split (VALUE self)
 
static VALUE path_blockdev_p (VALUE self)
 
static VALUE path_chardev_p (VALUE self)
 
static VALUE path_executable_p (VALUE self)
 
static VALUE path_executable_real_p (VALUE self)
 
static VALUE path_exist_p (VALUE self)
 
static VALUE path_grpowned_p (VALUE self)
 
static VALUE path_directory_p (VALUE self)
 
static VALUE path_file_p (VALUE self)
 
static VALUE path_pipe_p (VALUE self)
 
static VALUE path_socket_p (VALUE self)
 
static VALUE path_owned_p (VALUE self)
 
static VALUE path_readable_p (VALUE self)
 
static VALUE path_world_readable_p (VALUE self)
 
static VALUE path_readable_real_p (VALUE self)
 
static VALUE path_setuid_p (VALUE self)
 
static VALUE path_setgid_p (VALUE self)
 
static VALUE path_size (VALUE self)
 
static VALUE path_size_p (VALUE self)
 
static VALUE path_sticky_p (VALUE self)
 
static VALUE path_symlink_p (VALUE self)
 
static VALUE path_writable_p (VALUE self)
 
static VALUE path_world_writable_p (VALUE self)
 
static VALUE path_writable_real_p (VALUE self)
 
static VALUE path_zero_p (VALUE self)
 
static VALUE path_empty_p (VALUE self)
 
static VALUE glob_i (RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass))
 
static VALUE path_s_glob (int argc, VALUE *argv, VALUE klass)
 
static VALUE path_s_getwd (VALUE klass)
 
static VALUE path_entries (VALUE self)
 
static VALUE path_mkdir (int argc, VALUE *argv, VALUE self)
 
static VALUE path_rmdir (VALUE self)
 
static VALUE path_opendir (VALUE self)
 
static VALUE each_entry_i (RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass))
 
static VALUE path_each_entry (VALUE self)
 
static VALUE unlink_body (VALUE str)
 
static VALUE unlink_rescue (VALUE str, VALUE errinfo)
 
static VALUE path_unlink (VALUE self)
 
static VALUE path_f_pathname (VALUE self, VALUE str)
 
void Init_pathname (void)
 

Variables

static VALUE rb_cPathname
 
static ID id_at_path
 
static ID id_to_path
 

Macro Definition Documentation

◆ path_birthtime

#define path_birthtime   rb_f_notimplement

Definition at line 463 of file pathname.c.

Referenced by Init_pathname(), and path_atime().

Function Documentation

◆ each_entry_i()

static VALUE each_entry_i ( RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass)  )
static

Definition at line 1148 of file pathname.c.

References rb_class_new_instance(), and rb_yield().

Referenced by path_each_entry().

◆ get_strpath()

static VALUE get_strpath ( VALUE  obj)
static

◆ glob_i()

static VALUE glob_i ( RB_BLOCK_CALL_FUNC_ARGLIST(elt, klass)  )
static

Definition at line 1010 of file pathname.c.

References rb_class_new_instance(), and rb_yield().

Referenced by path_s_glob().

◆ Init_pathname()

void Init_pathname ( void  )

Definition at line 1393 of file pathname.c.

References id_at_path, id_to_path, path_atime(), path_basename(), path_binread(), path_binwrite(), path_birthtime, path_blockdev_p(), path_chardev_p(), path_chmod(), path_chown(), path_cmp(), path_ctime(), path_directory_p(), path_dirname(), path_each_entry(), path_each_line(), path_empty_p(), path_entries(), path_eq(), path_executable_p(), path_executable_real_p(), path_exist_p(), path_expand_path(), path_extname(), path_f_pathname(), path_file_p(), path_fnmatch(), path_freeze(), path_ftype(), path_grpowned_p(), path_hash(), path_initialize(), path_inspect(), path_lchmod(), path_lchown(), path_lstat(), path_make_link(), path_make_symlink(), path_mkdir(), path_mtime(), path_open(), path_opendir(), path_owned_p(), path_pipe_p(), path_read(), path_readable_p(), path_readable_real_p(), path_readlines(), path_readlink(), path_realdirpath(), path_realpath(), path_rename(), path_rmdir(), path_s_getwd(), path_s_glob(), path_setgid_p(), path_setuid_p(), path_size(), path_size_p(), path_socket_p(), path_split(), path_stat(), path_sticky_p(), path_sub(), path_sub_ext(), path_symlink_p(), path_sysopen(), path_taint(), path_to_s(), path_truncate(), path_unlink(), path_untaint(), path_utime(), path_world_readable_p(), path_world_writable_p(), path_writable_p(), path_writable_real_p(), path_write(), path_zero_p(), rb_cObject, rb_cPathname, rb_define_class(), rb_define_global_function(), rb_define_method(), rb_define_singleton_method(), rb_intern, and rb_undef_method().

◆ path_atime()

static VALUE path_atime ( VALUE  self)
static

Definition at line 442 of file pathname.c.

References get_strpath(), path_birthtime, rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_basename()

static VALUE path_basename ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_binread()

static VALUE path_binread ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 341 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_binwrite()

static VALUE path_binwrite ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 383 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_blockdev_p()

static VALUE path_blockdev_p ( VALUE  self)
static

Definition at line 781 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_chardev_p()

static VALUE path_chardev_p ( VALUE  self)
static

Definition at line 790 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_chmod()

static VALUE path_chmod ( VALUE  self,
VALUE  mode 
)
static

Definition at line 503 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_chown()

static VALUE path_chown ( VALUE  self,
VALUE  owner,
VALUE  group 
)
static

Definition at line 531 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_cmp()

static VALUE path_cmp ( VALUE  self,
VALUE  other 
)
static

Definition at line 125 of file pathname.c.

References get_strpath(), INT2FIX, Qnil, rb_cPathname, rb_obj_is_kind_of(), RSTRING_LEN, and RSTRING_PTR.

Referenced by Init_pathname().

◆ path_ctime()

static VALUE path_ctime ( VALUE  self)
static

Definition at line 475 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_directory_p()

static VALUE path_directory_p ( VALUE  self)
static

Definition at line 835 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_dirname()

static VALUE path_dirname ( VALUE  self)
static

Definition at line 722 of file pathname.c.

References get_strpath(), rb_cFile, rb_class_new_instance(), rb_funcall(), rb_intern, and rb_obj_class().

Referenced by Init_pathname().

◆ path_each_entry()

static VALUE path_each_entry ( VALUE  self)
static

Definition at line 1158 of file pathname.c.

References each_entry_i(), get_strpath(), rb_block_call(), rb_cDir, rb_intern, and rb_obj_class().

Referenced by Init_pathname().

◆ path_each_line()

static VALUE path_each_line ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 295 of file pathname.c.

References get_strpath(), rb_block_call(), rb_block_given_p(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_empty_p()

static VALUE path_empty_p ( VALUE  self)
static

Definition at line 999 of file pathname.c.

References get_strpath(), rb_cDir, rb_funcall(), rb_intern, rb_mFileTest, and RTEST.

Referenced by Init_pathname().

◆ path_entries()

static VALUE path_entries ( VALUE  self)
static

◆ path_eq()

static VALUE path_eq ( VALUE  self,
VALUE  other 
)
static

Definition at line 103 of file pathname.c.

References get_strpath(), Qfalse, rb_cPathname, rb_obj_is_kind_of(), and rb_str_equal().

Referenced by Init_pathname().

◆ path_executable_p()

static VALUE path_executable_p ( VALUE  self)
static

Definition at line 799 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_executable_real_p()

static VALUE path_executable_real_p ( VALUE  self)
static

Definition at line 808 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_exist_p()

static VALUE path_exist_p ( VALUE  self)
static

Definition at line 817 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_expand_path()

static VALUE path_expand_path ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_extname()

static VALUE path_extname ( VALUE  self)
static

Definition at line 735 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_f_pathname()

static VALUE path_f_pathname ( VALUE  self,
VALUE  str 
)
static

Definition at line 1207 of file pathname.c.

References rb_class_new_instance(), and rb_cPathname.

Referenced by Init_pathname().

◆ path_file_p()

static VALUE path_file_p ( VALUE  self)
static

Definition at line 844 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_fnmatch()

static VALUE path_fnmatch ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 560 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_freeze()

static VALUE path_freeze ( VALUE  self)
static

Definition at line 58 of file pathname.c.

References get_strpath(), rb_call_super(), and rb_str_freeze().

Referenced by Init_pathname().

◆ path_ftype()

static VALUE path_ftype ( VALUE  self)
static

Definition at line 579 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_grpowned_p()

static VALUE path_grpowned_p ( VALUE  self)
static

Definition at line 826 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_hash()

static VALUE path_hash ( VALUE  self)
static

Definition at line 164 of file pathname.c.

References get_strpath(), rb_str_hash(), and ST2FIX.

Referenced by Init_pathname().

◆ path_initialize()

static VALUE path_initialize ( VALUE  self,
VALUE  arg 
)
static

◆ path_inspect()

static VALUE path_inspect ( VALUE  self)
static

Definition at line 186 of file pathname.c.

References get_strpath(), PRIsVALUE, rb_obj_classname(), and rb_sprintf().

Referenced by Init_pathname().

◆ path_lchmod()

static VALUE path_lchmod ( VALUE  self,
VALUE  mode 
)
static

Definition at line 517 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_lchown()

static VALUE path_lchown ( VALUE  self,
VALUE  owner,
VALUE  group 
)
static

Definition at line 545 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_lstat()

static VALUE path_lstat ( VALUE  self)
static

Definition at line 658 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_make_link()

static VALUE path_make_link ( VALUE  self,
VALUE  old 
)
static

Definition at line 593 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_make_symlink()

static VALUE path_make_symlink ( VALUE  self,
VALUE  old 
)
static

Definition at line 672 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_mkdir()

static VALUE path_mkdir ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 1112 of file pathname.c.

References get_strpath(), rb_cDir, rb_funcall(), rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_mtime()

static VALUE path_mtime ( VALUE  self)
static

Definition at line 489 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_open()

static VALUE path_open ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_opendir()

static VALUE path_opendir ( VALUE  self)
static

Definition at line 1139 of file pathname.c.

References get_strpath(), rb_block_call(), rb_cDir, and rb_intern.

Referenced by Init_pathname().

◆ path_owned_p()

static VALUE path_owned_p ( VALUE  self)
static

Definition at line 871 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_pipe_p()

static VALUE path_pipe_p ( VALUE  self)
static

Definition at line 853 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_read()

static VALUE path_read ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 321 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_readable_p()

static VALUE path_readable_p ( VALUE  self)
static

Definition at line 880 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_readable_real_p()

static VALUE path_readable_real_p ( VALUE  self)
static

Definition at line 898 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_readlines()

static VALUE path_readlines ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 405 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_readlink()

static VALUE path_readlink ( VALUE  self)
static

Definition at line 625 of file pathname.c.

References get_strpath(), rb_cFile, rb_class_new_instance(), rb_funcall(), rb_intern, and rb_obj_class().

Referenced by Init_pathname().

◆ path_realdirpath()

static VALUE path_realdirpath ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_realpath()

static VALUE path_realpath ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_rename()

static VALUE path_rename ( VALUE  self,
VALUE  to 
)
static

Definition at line 638 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_rmdir()

static VALUE path_rmdir ( VALUE  self)
static

Definition at line 1128 of file pathname.c.

References get_strpath(), rb_cDir, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_s_getwd()

static VALUE path_s_getwd ( VALUE  klass)
static

Definition at line 1056 of file pathname.c.

References rb_cDir, rb_class_new_instance(), rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_s_glob()

static VALUE path_s_glob ( int  argc,
VALUE argv,
VALUE  klass 
)
static

◆ path_setgid_p()

static VALUE path_setgid_p ( VALUE  self)
static

Definition at line 916 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_setuid_p()

static VALUE path_setuid_p ( VALUE  self)
static

Definition at line 907 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_size()

static VALUE path_size ( VALUE  self)
static

Definition at line 925 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_size_p()

static VALUE path_size_p ( VALUE  self)
static

Definition at line 934 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_socket_p()

static VALUE path_socket_p ( VALUE  self)
static

Definition at line 862 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_split()

static VALUE path_split ( VALUE  self)
static

◆ path_stat()

static VALUE path_stat ( VALUE  self)
static

Definition at line 649 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_sticky_p()

static VALUE path_sticky_p ( VALUE  self)
static

Definition at line 943 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_sub()

static VALUE path_sub ( int  argc,
VALUE argv,
VALUE  self 
)
static

◆ path_sub_ext()

static VALUE path_sub_ext ( VALUE  self,
VALUE  repl 
)
static

◆ path_symlink_p()

static VALUE path_symlink_p ( VALUE  self)
static

Definition at line 952 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_sysopen()

static VALUE path_sysopen ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 423 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_taint()

static VALUE path_taint ( VALUE  self)
static

Definition at line 74 of file pathname.c.

References get_strpath(), rb_call_super(), and rb_obj_taint().

Referenced by Init_pathname().

◆ path_to_s()

static VALUE path_to_s ( VALUE  self)
static

Definition at line 179 of file pathname.c.

References get_strpath(), and rb_obj_dup().

Referenced by Init_pathname().

◆ path_truncate()

static VALUE path_truncate ( VALUE  self,
VALUE  length 
)
static

Definition at line 683 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_unlink()

static VALUE path_unlink ( VALUE  self)
static

◆ path_untaint()

static VALUE path_untaint ( VALUE  self)
static

Definition at line 90 of file pathname.c.

References get_strpath(), rb_call_super(), and rb_obj_untaint().

Referenced by Init_pathname().

◆ path_utime()

static VALUE path_utime ( VALUE  self,
VALUE  atime,
VALUE  mtime 
)
static

Definition at line 694 of file pathname.c.

References get_strpath(), rb_cFile, rb_funcall(), and rb_intern.

Referenced by Init_pathname().

◆ path_world_readable_p()

static VALUE path_world_readable_p ( VALUE  self)
static

Definition at line 889 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_world_writable_p()

static VALUE path_world_writable_p ( VALUE  self)
static

Definition at line 970 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_writable_p()

static VALUE path_writable_p ( VALUE  self)
static

Definition at line 961 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_writable_real_p()

static VALUE path_writable_real_p ( VALUE  self)
static

Definition at line 979 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ path_write()

static VALUE path_write ( int  argc,
VALUE argv,
VALUE  self 
)
static

Definition at line 362 of file pathname.c.

References get_strpath(), rb_cIO, rb_funcallv, rb_intern, and rb_scan_args().

Referenced by Init_pathname().

◆ path_zero_p()

static VALUE path_zero_p ( VALUE  self)
static

Definition at line 988 of file pathname.c.

References get_strpath(), rb_funcall(), rb_intern, and rb_mFileTest.

Referenced by Init_pathname().

◆ set_strpath()

static void set_strpath ( VALUE  obj,
VALUE  val 
)
static

Definition at line 18 of file pathname.c.

References id_at_path, and rb_ivar_set().

Referenced by path_initialize().

◆ unlink_body()

static VALUE unlink_body ( VALUE  str)
static

Definition at line 1167 of file pathname.c.

References rb_cDir, rb_funcall(), and rb_intern.

Referenced by path_unlink().

◆ unlink_rescue()

static VALUE unlink_rescue ( VALUE  str,
VALUE  errinfo 
)
static

Definition at line 1173 of file pathname.c.

References rb_cFile, rb_funcall(), and rb_intern.

Referenced by path_unlink().

Variable Documentation

◆ id_at_path

ID id_at_path
static

Definition at line 5 of file pathname.c.

Referenced by get_strpath(), Init_pathname(), and set_strpath().

◆ id_to_path

ID id_to_path
static

Definition at line 5 of file pathname.c.

Referenced by Init_pathname(), and path_initialize().

◆ rb_cPathname

VALUE rb_cPathname
static

Definition at line 4 of file pathname.c.

Referenced by Init_pathname(), path_cmp(), path_eq(), and path_f_pathname().