From f58382aaf3de10a78f1c108dfafae2278abe62f2 Mon Sep 17 00:00:00 2001 From: akr Date: Wed, 20 Aug 2008 10:16:20 +0000 Subject: [PATCH] * io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and File::NOFOLLOW. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ io.c | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3b05daef63..f7642905d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Aug 20 19:15:35 2008 Tanaka Akira + + * io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and + File::NOFOLLOW. + Wed Aug 20 18:41:11 2008 Tanaka Akira * io.c (rb_open_file): don't lookup :mode and :perm in opt. it is diff --git a/io.c b/io.c index f2c78397c9..a21ca98a1b 100644 --- a/io.c +++ b/io.c @@ -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"));