ruby-changes:18225
From: kosaki <ko1@a...>
Date: Mon, 20 Dec 2010 01:18:23 +0900 (JST)
Subject: [ruby-changes:18225] Ruby:r30247 (trunk): * io.c (Init_IO): Added O_DIRECT. This feature was propsed by Run Paint Run Run.
kosaki 2010-12-20 01:18:16 +0900 (Mon, 20 Dec 2010) New Revision: 30247 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30247 Log: * io.c (Init_IO): Added O_DIRECT. This feature was propsed by Run Paint Run Run. [Feature #4015] [ruby-core:33018] Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30246) +++ ChangeLog (revision 30247) @@ -1,3 +1,8 @@ +Mon Dec 20 01:55:03 2010 KOSAKI Motohiro <kosaki.motohiro@g...> + + * 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 <akr@f...> * marshal.c: parenthesize macro arguments. Index: io.c =================================================================== --- io.c (revision 30246) +++ io.c (revision 30247) @@ -10509,6 +10509,10 @@ /* 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")); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/