From: Run Paint Run Run Date: 2010-11-03T07:56:01+09:00 Subject: [ruby-core:33023] [Ruby 1.9-Feature#4015] File::DIRECT Constant for O_DIRECT Issue #4015 has been updated by Run Paint Run Run. >> A couple of the `open(2)` flags on Linux don't have corresponding File:: constants: >> >> * O_DIRECT >> * O_DIRECTORY > We haven't made up a policy for platform specific constants. Opinions > are welcome. I find this surprising given that platform-specific constants are defined elsewhere. Consider the Linux-specific Process::RLIMIT_MSGQUEUE, Process::RLIMIT_SIGPENDING, and Process::RLIMIT_NICE, for just a few examples. Defining them for all platforms would be fine, also, especially because they often enhance the operation rather than changing its semantics. >> * O_CLOEXEC > Is this really needed? IMO, yes. As explained in #1291, it was introduced to avoid a race condition. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4015 ---------------------------------------- http://redmine.ruby-lang.org