diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 14:59:25 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-02 14:59:25 +0000 |
commit | 3a76a401967aca5a5386e980f26a7bd925da64b6 (patch) | |
tree | 9126bfc47ee662b8a7e2e47d28de217bed3fc948 /rubyio.h | |
parent | 0c767620cd00ec0739debea2b2a33f0f3e3ab65f (diff) |
* configure.in (RUBY_CHECK_IO_NEED_FLUSH): check whether fflush()
is needed.
* io.c (flush_before_seek): flush before seek if buffered data
may remain.
* io.c (rb_io_check_readable): flush if the last operation was
write.
* io.c (rb_io_check_writable): flush if the last operation was
read.
* rubyio.h (FMODE_RBUF): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r-- | rubyio.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -32,6 +32,7 @@ typedef struct OpenFile { #define FMODE_BINMODE 4 #define FMODE_SYNC 8 #define FMODE_WBUF 16 +#define FMODE_RBUF 32 #define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr) |