diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-19 16:18:16 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-12-19 16:18:16 +0000 |
commit | a3ba982c75719cbe4e3372ad73d3f4cee9caae59 (patch) | |
tree | 5b12aa46dc556742cc9d5b0faf351b4368be6848 /io.c | |
parent | 3f929a07431ca69c7d11abdb44ac8391ceef8706 (diff) | |
download | ruby-a3ba982c75719cbe4e3372ad73d3f4cee9caae59.tar.gz |
* io.c (Init_IO): Added O_DIRECT. This feature was propsed by Run Paint Run Run.
[Feature #4015] [ruby-core:33018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -10509,6 +10509,10 @@ Init_IO(void) /* do not change atime */ rb_file_const("NOATIME", INT2FIX(O_NOATIME)); /* Linux */ #endif +#ifdef O_DIRECT + /* Try to minimize cache effects of the I/O to and from this file. */ + rb_file_const("DIRECT", INT2FIX(O_DIRECT)); +#endif sym_mode = ID2SYM(rb_intern("mode")); sym_perm = ID2SYM(rb_intern("perm")); |