We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
FMODE_*
1 parent 184db4e commit 19e2552Copy full SHA for 19e2552
src/main/ruby/truffleruby/core/file.rb
@@ -56,6 +56,9 @@ module Constants
56
F_DUPFD_CLOEXEC = Truffle::Config['platform.fcntl.F_DUPFD_CLOEXEC']
57
FD_CLOEXEC = Truffle::Config['platform.fcntl.FD_CLOEXEC']
58
59
+ # These constants are copied from lib/cext/include/ruby/io.h and
60
+ # are used to help ensure that the flags set in IO modes in C and
61
+ # Ruby use the same values.
62
FMODE_READABLE = 0x00000001
63
FMODE_WRITABLE = 0x00000002
64
FMODE_READWRITE = (FMODE_READABLE|FMODE_WRITABLE)
0 commit comments