module

File::Constants

v2_1_10 - Show latest stable

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_obj_freeze(rb_usascii_str_new2(null_device))

RDONLY = INT2FIX(O_RDONLY)

RDWR = INT2FIX(O_RDWR)

RSYNC = INT2FIX(O_RSYNC)

SYNC = INT2FIX(O_SYNC)

TRUNC = INT2FIX(O_TRUNC)

WRONLY = INT2FIX(O_WRONLY)

Files

  • file.c