summaryrefslogtreecommitdiff
path: root/rubyio.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-07 04:18:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-02-07 04:18:08 +0000
commit90991d9889a7b95d85c13bdea3eb246d27e466ac (patch)
tree9cdd510e243af8f9f3c4b20599dd22ae5cdbbe0a /rubyio.h
parent65806ccb721251cdae290fa000be4185ff466398 (diff)
* io.c (io_write): flag when buffered write is done.
* io.c (fptr_finalize): do not raise error on EBADF if write buffer is empty. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rubyio.h b/rubyio.h
index fb01204..2141284 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -31,6 +31,7 @@ typedef struct OpenFile {
#define FMODE_READWRITE 3
#define FMODE_BINMODE 4
#define FMODE_SYNC 8
+#define FMODE_WBUF 16
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)