diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-20 10:16:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-20 10:16:20 +0000 |
commit | 3edc51c1292a55f152110735d7de59a841f1aecf (patch) | |
tree | dae2bd844120b433abad140e0245bedd9f355044 | |
parent | 605fd936f5f808d50b6a48e028a0313b3f3c3962 (diff) | |
download | ruby-3edc51c1292a55f152110735d7de59a841f1aecf.tar.gz ruby-3edc51c1292a55f152110735d7de59a841f1aecf.tar.xz ruby-3edc51c1292a55f152110735d7de59a841f1aecf.zip |
* io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and
File::NOFOLLOW.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 9 |
2 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Aug 20 19:15:35 2008 Tanaka Akira <akr@fsij.org> + + * io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and + File::NOFOLLOW. + Wed Aug 20 18:41:11 2008 Tanaka Akira <akr@fsij.org> * io.c (rb_open_file): don't lookup :mode and :perm in opt. it is @@ -8220,6 +8220,15 @@ Init_IO(void) #ifdef O_SYNC rb_file_const("SYNC", INT2FIX(O_SYNC)); #endif +#ifdef O_DSYNC + rb_file_const("DSYNC", INT2FIX(O_DSYNC)); +#endif +#ifdef O_RSYNC + rb_file_const("RSYNC", INT2FIX(O_RSYNC)); +#endif +#ifdef O_NOFOLLOW + rb_file_const("NOFOLLOW", INT2FIX(O_NOFOLLOW)); /* FreeBSD, Linux */ +#endif sym_mode = ID2SYM(rb_intern("mode")); sym_perm = ID2SYM(rb_intern("perm")); |