ruby-changes:40411
From: glass <ko1@a...>
Date: Sun, 8 Nov 2015 15:26:53 +0900 (JST)
Subject: [ruby-changes:40411] glass:r52492 (trunk): * file.c: Add O_TMPFILE.
glass 2015-11-08 15:26:44 +0900 (Sun, 08 Nov 2015) New Revision: 52492 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52492 Log: * file.c: Add O_TMPFILE. Modified files: trunk/ChangeLog trunk/file.c Index: ChangeLog =================================================================== --- ChangeLog (revision 52491) +++ ChangeLog (revision 52492) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun Nov 8 15:19:17 2015 Masaki Matsushita <glass.saga@g...> + + * file.c: Add O_TMPFILE. + Sun Nov 8 14:24:43 2015 windwiny <windwiny.ubt@g...> * method.h (METHOD_ENTRY_{VISI,BASIC,FLAGS}_SET): suppress Index: file.c =================================================================== --- file.c (revision 52491) +++ file.c (revision 52492) @@ -6082,6 +6082,10 @@ Init_File(void) https://github.com/ruby/ruby/blob/trunk/file.c#L6082 /* Try to minimize cache effects of the I/O to and from this file. */ rb_define_const(rb_mFConst, "DIRECT", INT2FIX(O_DIRECT)); #endif +#ifdef O_TMPFILE + /* Create an unnamed temporary file */ + rb_define_const(rb_mFConst, "TMPFILE", INT2FIX(O_TMPFILE)); +#endif /* shared lock. see File#flock */ rb_define_const(rb_mFConst, "LOCK_SH", INT2FIX(LOCK_SH)); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/