diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-15 11:53:41 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-15 11:53:41 +0000 |
commit | d6af2a2b214203da5b4bb8ef592026db3c4c1a40 (patch) | |
tree | b715d017ae6f8e479678fc4a7dc35ef5e79d9615 /internal.h | |
parent | 12a0b0c8f48f168994245198e62d1d40cab5d594 (diff) | |
download | ruby-d6af2a2b214203da5b4bb8ef592026db3c4c1a40.tar.gz |
* io.c, internal.h (rb_io_flush_raw): new function to select calling
fsync() (on Windows).
* io.c (rb_io_flush_raw): use above function.
* file.c (rb_file_truncate): use above function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index d52b2e9442..e196b23cd2 100644 --- a/internal.h +++ b/internal.h @@ -283,6 +283,7 @@ void ruby_set_inplace_mode(const char *); ssize_t rb_io_bufread(VALUE io, void *buf, size_t size); void rb_stdio_set_default_encoding(void); void rb_write_error_str(VALUE mesg); +VALUE rb_io_flush_raw(VALUE, int); /* iseq.c */ VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase); |