diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Mon Dec 20 01:55:03 2010 KOSAKI Motohiro <[email protected]> + + * io.c (Init_IO): Added O_DIRECT. This feature was propsed by Run Paint Run Run. + [Feature #4015] [ruby-core:33018] + Sun Dec 19 19:15:23 2010 Tanaka Akira <[email protected]> * marshal.c: parenthesize macro arguments. @@ -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")); |