summaryrefslogtreecommitdiff
path: root/rubyio.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-18 01:00:23 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-18 01:00:23 +0000
commit8c2e1ce91cfd5561028d54e537c8173971f33338 (patch)
treed602619c9baea7bba562a542d8854168ee862663 /rubyio.h
parentc065b233c6020e9a63e5f941f8254d7f8d2d0c8a (diff)
* rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
* io.c (wsplit_p): new function. (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in multi-threaded mode. (io_fwrite): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rubyio.h')
-rw-r--r--rubyio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rubyio.h b/rubyio.h
index a041d90ebc..cdfd8c797f 100644
--- a/rubyio.h
+++ b/rubyio.h
@@ -48,6 +48,8 @@ typedef struct OpenFile {
#define FMODE_SYNC 8
#define FMODE_TTY 16
#define FMODE_DUPLEX 32
+#define FMODE_WSPLIT 0x200
+#define FMODE_WSPLIT_INITIALIZED 0x400
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)