File::Constants
File::Constants provides file-related constants. All possible file constants are listed in the documentation but they may not all be present on your platform.
If the underlying platform doesn’t define a constant the corresponding Ruby constant is not defined.
Your platform documentations (e.g. man open(2)) may describe more detailed information.
Constants
APPEND = INT2FIX(O_APPEND)
BINARY = INT2FIX(O_BINARY)
CREAT = INT2FIX(O_CREAT)
DIRECT = INT2FIX(O_DIRECT)
DSYNC = INT2FIX(O_DSYNC)
EXCL = INT2FIX(O_EXCL)
LOCK_EX = INT2FIX(LOCK_EX)
LOCK_NB = INT2FIX(LOCK_NB)
LOCK_SH = INT2FIX(LOCK_SH)
LOCK_UN = INT2FIX(LOCK_UN)
NOATIME = INT2FIX(O_NOATIME)
NOCTTY = INT2FIX(O_NOCTTY)
NOFOLLOW = INT2FIX(O_NOFOLLOW)
NONBLOCK = INT2FIX(O_NONBLOCK)
NULL = rb_fstring_cstr(null_device)
RDONLY = INT2FIX(O_RDONLY)
RDWR = INT2FIX(O_RDWR)
RSYNC = INT2FIX(O_RSYNC)
SHARE_DELETE = INT2FIX(O_SHARE_DELETE)
SYNC = INT2FIX(O_SYNC)
TMPFILE = INT2FIX(O_TMPFILE)
TRUNC = INT2FIX(O_TRUNC)
WRONLY = INT2FIX(O_WRONLY)
Files
- file.c