diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 10:30:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 10:30:50 +0000 |
commit | 5b10c170e52d53e570b6335590552a12b002c361 (patch) | |
tree | ffec97bfd4f7b79df514ef156bc7fcba8b5872ad /file.c | |
parent | 793c649f651945c995b4b95383d26495e6cacb7d (diff) |
* file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t):
renamed from OpenFile.
* ext/dl/cptr.c, ext/io/wait/wait.c, ext/openssl/ossl.h,
ext/openssl/ossl_bio.c, ext/openssl/ossl_ssl.c, ext/pty/pty.c,
ext/readline/readline.c, ext/socket/socket.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -151,7 +151,7 @@ apply2files(void (*func)(const char *, void *), VALUE vargs, void *arg) static VALUE rb_file_path(VALUE obj) { - OpenFile *fptr; + rb_io_t *fptr; fptr = RFILE(rb_io_taint_check(obj))->fptr; rb_io_check_initialized(fptr); @@ -627,7 +627,7 @@ rb_stat(VALUE file, struct stat *st) rb_secure(2); tmp = rb_check_convert_type(file, T_FILE, "IO", "to_io"); if (!NIL_P(tmp)) { - OpenFile *fptr; + rb_io_t *fptr; GetOpenFile(tmp, fptr); return fstat(fptr->fd, st); @@ -645,7 +645,7 @@ w32_io_info(VALUE *file, BY_HANDLE_FILE_INFORMATION *st) tmp = rb_check_convert_type(*file, T_FILE, "IO", "to_io"); if (!NIL_P(tmp)) { - OpenFile *fptr; + rb_io_t *fptr; GetOpenFile(tmp, fptr); f = (HANDLE)rb_w32_get_osfhandle(fptr->fd); @@ -710,7 +710,7 @@ rb_file_s_stat(VALUE klass, VALUE fname) static VALUE rb_io_stat(VALUE obj) { - OpenFile *fptr; + rb_io_t *fptr; struct stat st; GetOpenFile(obj, fptr); @@ -770,7 +770,7 @@ static VALUE rb_file_lstat(VALUE obj) { #ifdef HAVE_LSTAT - OpenFile *fptr; + rb_io_t *fptr; struct stat st; rb_secure(2); @@ -1609,7 +1609,7 @@ rb_file_s_atime(VALUE klass, VALUE fname) static VALUE rb_file_atime(VALUE obj) { - OpenFile *fptr; + rb_io_t *fptr; struct stat st; GetOpenFile(obj, fptr); @@ -1652,7 +1652,7 @@ rb_file_s_mtime(VALUE klass, VALUE fname) static VALUE rb_file_mtime(VALUE obj) { - OpenFile *fptr; + rb_io_t *fptr; struct stat st; GetOpenFile(obj, fptr); @@ -1698,7 +1698,7 @@ rb_file_s_ctime(VALUE klass, VALUE fname) static VALUE rb_file_ctime(VALUE obj) { - OpenFile *fptr; + rb_io_t *fptr; struct stat st; GetOpenFile(obj, fptr); @@ -1760,7 +1760,7 @@ rb_file_s_chmod(int argc, VALUE *argv) static VALUE rb_file_chmod(VALUE obj, VALUE vmode) { - OpenFile *fptr; + rb_io_t *fptr; int mode; rb_secure(2); @@ -1891,7 +1891,7 @@ rb_file_s_chown(int argc, VALUE *argv) static VALUE rb_file_chown(VALUE obj, VALUE owner, VALUE group) { - OpenFile *fptr; + rb_io_t *fptr; int o, g; rb_secure(2); @@ -3043,7 +3043,7 @@ rb_file_s_truncate(VALUE klass, VALUE path, VALUE len) static VALUE rb_file_truncate(VALUE obj, VALUE len) { - OpenFile *fptr; + rb_io_t *fptr; off_t pos; rb_secure(2); @@ -3134,7 +3134,7 @@ static VALUE rb_file_flock(VALUE obj, VALUE operation) { #ifndef __CHECKER__ - OpenFile *fptr; + rb_io_t *fptr; int op[2]; rb_secure(2); |