diff options
author | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 06:26:44 +0000 |
---|---|---|
committer | glass <glass@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-08 06:26:44 +0000 |
commit | ea106748ea79788a2b831155be1e6cd52ca99ebf (patch) | |
tree | 5d01cba64fe2dece51032e71c1d5de46b9f2d8dc /file.c | |
parent | 866862b147964ca964888e0335158247d9e74d4a (diff) | |
download | ruby-ea106748ea79788a2b831155be1e6cd52ca99ebf.tar.gz |
* file.c: Add O_TMPFILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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)); |