* file.c: Add O_TMPFILE.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
glass 2015-11-08 06:26:44 +00:00
parent 6e19fc30b1
commit 1a98b567af
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sun Nov 8 15:19:17 2015 Masaki Matsushita <glass.saga@gmail.com>
* file.c: Add O_TMPFILE.
Sun Nov 8 14:24:43 2015 windwiny <windwiny.ubt@gmail.com>
* method.h (METHOD_ENTRY_{VISI,BASIC,FLAGS}_SET): suppress

4
file.c
View File

@ -6082,6 +6082,10 @@ Init_File(void)
/* 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));