Skip to content

Commit 19e2552

Browse files
committed
Add comment describing FMODE_* constants.
1 parent 184db4e commit 19e2552

File tree

1 file changed

+3
-0
lines changed
  • src/main/ruby/truffleruby/core

1 file changed

+3
-0
lines changed

src/main/ruby/truffleruby/core/file.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ module Constants
5656
F_DUPFD_CLOEXEC = Truffle::Config['platform.fcntl.F_DUPFD_CLOEXEC']
5757
FD_CLOEXEC = Truffle::Config['platform.fcntl.FD_CLOEXEC']
5858

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.
5962
FMODE_READABLE = 0x00000001
6063
FMODE_WRITABLE = 0x00000002
6164
FMODE_READWRITE = (FMODE_READABLE|FMODE_WRITABLE)

0 commit comments

Comments
 (0)