summaryrefslogtreecommitdiffstats
path: root/file.c
Commit message (Collapse)AuthorAgeFilesLines
* * file.c (file_load_ok): cygwin allows to open directories.nobu2009-02-271-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_load_ok): checks if regular file, except for thenobu2009-02-271-5/+11
| | | | | | | | platform disallows to open directories, e.g. cygwin. [ruby-dev:38097], [Bug #1221] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_load_ok): checks if regular file. [ruby-dev:38097]nobu2009-02-271-16/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2009-02-241-1/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_size): new method added. [ruby-core:22088]matz2009-02-241-0/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_home_dir): checks if HAVE_PWD_H. [ruby-dev:38049] nobu2009-02-191-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_chown): use chown unless HAVE_FCHOWN.nobu2009-02-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_extname): fix for spaces before extention.nobu2009-02-181-1/+1
| | | | | | | [ruby-dev:38044] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: removed trailing spaces.nobu2009-02-181-207/+209
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): suppress a warning. named magicnobu2009-02-181-4/+10
| | | | | | | numbers. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext): should not be infected from othernobu2009-02-021-0/+1
| | | | | | | load paths. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_home_dir): needs p on DOSISH.nobu2009-02-021-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_s_home): new method. [ruby-core:21454]nobu2009-02-021-37/+49
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * symbian/README.SYMBIAN: symbian support added. great appreciatematz2009-01-151-1/+1
| | | | | | to <alexandre.zavorine at symbian.com>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_stat): need type check for non string values.matz2009-01-041-9/+20
| | | | | | | | | [ruby-dev:37673] fix: #964 * file.c (rb_file_s_size, rb_file_s_atime, rb_file_s_mtime, rb_file_s_ctime, rb_f_test): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert previous changes.naruse2008-12-291-21/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_get_path): move encoding conversion of file pathnaruse2008-12-291-1/+21
| | | | | | | | from rb_scan_open_args. * io.c (rb_scan_open_args): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_world_writable_p): should return nil for nonmatz2008-11-221-1/+1
| | | | | | world-writable files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dln.c: Ruby no longer supports MacOS 9 or before.yugui2008-10-041-19/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: ditto. * eval_intern.h: ditto. * ext/extmk.rb: ditto. * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto. * ext/tk/stubs.c: ditto. * file.c: ditto. * hash.c: ditto. * include/ruby/defines.h: ditto. * ruby.c: ditto. * signal.c: ditto. * vm_core.h: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp.yugui2008-10-041-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * djgpp/README.djgpp: ditto. * djgpp/config.hin: ditto. * djgpp/config.sed: ditto. * djgpp/configure.bat: ditto. * djgpp/mkver.sed: ditto. * ext/Setup.dj: ditto. * dln.c: removed djgpp supports. * file.c: ditto. * gc.c: ditto. * io.c: ditto. * process.c: ditto. * ruby.c: ditto. * signal.c: ditto. * util.c: ditto. * vm_core.h: ditto. * lib/fileutils.rb: ditto. * lib/mkmf.rb: ditto. * ext/socket/socket.c: ditto. * test/fileutils/test_fileutils.rb: ditto. * test/ruby/test_env.rb: ditto. * test/ruby/test_path.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_extname): preceding dots are not a part ofnobu2008-09-261-0/+1
| | | | | | | extension. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rmext): preceding dots are not a part of extension.nobu2008-09-261-2/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rdoc update.akr2008-09-071-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): applied a patch from Nobuhiro Tachinomatz2008-09-061-2/+1
| | | | | | in [ruby-dev:35948]. fix #491 git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)akr2008-09-041-1/+1
| | | | | | | | | with gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21). There is no register/memory to contain load_path. A register (r35) contains &RARRAY_PTR(load_path), (char*)load_path + 32. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/signal.h: removed.ko12008-09-031-1/+0
| | | | | | | | | | | | | | | * common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c, io.c, process.c, signal.c: vm_core.h: ditto. Some unused external global variables are also removed. (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending, rb_thread_critical) * ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c, ext/readline/readline.c, ext/socket/depend, ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h: rename RB_UBF_DFL toko12008-08-311-1/+1
| | | | | | | | | | RUBY_UBF_IO and RUBY_UBF_PROCESS. Because there is no default (universal) unblocking function. * ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_file_s_absolute_path),nobu2008-08-291-3/+1
| | | | | | | (rb_file_absolute_path): prototyped. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): check invalid access.mame2008-08-281-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_expand_path): new class method for class File.matz2008-08-281-7/+42
| | | | | | | * file.c (file_expand_path): add absolute_path handling (no ~user expansion). [ruby-core:18319] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/io.h (rb_io_t): remove path field and add pathv field.akr2008-08-231-21/+22
| | | | | | | | | | | | | | | | (MakeOpenFile): initialize pathv as Qnil. * gc.c: mark pathv field in T_FILE. * io.c: follow the rb_io_t field change. * file.c: ditto. * ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_inspect): don't raise if self is not initialized.akr2008-08-211-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sort_bang): reset to real class.nobu2008-08-051-2/+2
| | | | | | | | | * file.c (rb_find_file_ext, rb_find_file): ditto. * io.c (io_reopen): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_stat_mode): generalized st_mode mask.nobu2008-08-051-9/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext, rb_find_file): converts Windows style pathnobu2008-07-281-6/+18
| | | | | | | to Cygwin path. [ruby-dev:35647] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext, rb_find_file): not to split load path withnobu2008-07-281-55/+27
| | | | | | | path separator. [ruby-Bugs-21356] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_find_file_ext, rb_find_file): converts Windows style pathnobu2008-07-241-0/+21
| | | | | | | to Cygwin path. [ruby-dev:35647] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (insn_data_to_s_detail), file.c (rb_stat_inspect),nobu2008-07-221-8/+2
| | | | | | | | | | | | | | iseq.c (ruby_iseq_disasm_insn, ruby_iseq_disasm), process.c (pst_message), re.c (match_inspect): use rb_str_catf. * dir.c (dir_inspect), iseq.c (iseq_inspect, insn_operand_intern): use rb_sprintf. * error.c (rb_name_error, rb_raise, rb_loaderror, rb_fatal): use rb_vsprintf. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_extname): fix for file name with spaces.nobu2008-07-061-1/+1
| | | | | | | [ruby-talk:307404] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): no need to expand root path which has nonobu2008-06-141-3/+3
| | | | | | | short file name. [ruby-dev:35095] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc.nobu2008-06-091-4/+3
| | | | | | | * *.c: no cache in init functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,ko12008-06-081-9/+9
| | | | | | | | | | | | | | | | | | | enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c, io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c, string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c, vm.c, gc.c: allocated memory objects by xmalloc (ruby_xmalloc) should be freed by xfree (ruby_xfree). * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c, ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c, ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c, ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): fix for non-existent files and SFN ofnobu2008-06-031-19/+16
| | | | | | | symlinks. [ruby-talk:303736] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * suppress warnings on cygwin, mingw and mswin.nobu2008-06-011-9/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (BUFCHECK): wrong condition. [ruby-core:16921]usa2008-05-271-4/+4
| | | | | | | | * file.c (file_expand_buf): shouldn't use buflen for length of string. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (BUFCHECK): no resize if enough room.nobu2008-05-261-12/+10
| | | | | | | * file.c (file_expand_path): use BUFCHECK. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (file_expand_path): add more space for '/'.usa2008-05-261-1/+6
| | | | | | | | | * file.c (file_expand_path): should reset address of p after calling rb_str_resize(). [ruby-dev:34800] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (ntfs_tail): filename which starts with '.' is valid.usa2008-05-261-1/+2
| | | | | | | | * file.c (file_expand_path): cygwin symlink support. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e