Module: File::Constants
| Relationships & Source Files | |
| Extension / Inclusion / Inheritance Descendants | |
| Included In: | |
| Defined in: | file.c | 
Overview
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.
Constant Summary
- 
    APPEND =
    # File 'file.c', line 6037append on each write INT2FIX(O_APPEND) 
- 
    BINARY =
    # File 'file.c', line 6059disable line code conversion INT2FIX(O_BINARY) 
- 
    CREAT =
    # File 'file.c', line 6039create file if it does not exist INT2FIX(O_CREAT) 
- 
    DIRECT =
    # File 'file.c', line 6087Try to minimize cache effects of the I/O to and from this file. INT2FIX(O_DIRECT) 
- 
    DSYNC =
    # File 'file.c', line 6071any write operation perform synchronously except some meta data INT2FIX(O_DSYNC) 
- 
    EXCL =
    # File 'file.c', line 6041error if CREAT and the file exists INT2FIX(O_EXCL) 
- 
    LOCK_EX =
    # File 'file.c', line 6097exclusive lock. see File#flock INT2FIX(LOCK_EX) 
- 
    LOCK_NB =
    # File 'file.c', line 6101non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock INT2FIX(LOCK_NB) 
- 
    LOCK_SH =
    # File 'file.c', line 6095shared lock. see File#flock INT2FIX(LOCK_SH) 
- 
    LOCK_UN =
    # File 'file.c', line 6099unlock. see File#flock INT2FIX(LOCK_UN) 
- 
    NOATIME =
    # File 'file.c', line 6083Linux INT2FIX(O_NOATIME) 
- 
    NOCTTY =
    # File 'file.c', line 6053not to make opened ::IO the controlling terminal device INT2FIX(O_NOCTTY) 
- 
    NOFOLLOW =
    # File 'file.c', line 6079FreeBSD, Linux INT2FIX(O_NOFOLLOW) 
- 
    NONBLOCK =
    # File 'file.c', line 6047do not block on open or for data to become available INT2FIX(O_NONBLOCK) 
- 
    NULL =
    # File 'file.c', line 6104Name of the null device rb_obj_freeze(rb_usascii_str_new2(null_device)) 
- 
    RDONLY =
    # File 'file.c', line 6031open for reading only INT2FIX(O_RDONLY) 
- 
    RDWR =
    # File 'file.c', line 6035open for reading and writing INT2FIX(O_RDWR) 
- 
    RSYNC =
    
    # File 'file.c', line 6075    INT2FIX(O_RSYNC) 
- 
    SHARE_DELETE =
    # File 'file.c', line 6064can delete opened file INT2FIX(O_SHARE_DELETE) 
- 
    SYNC =
    # File 'file.c', line 6067any write operation perform synchronously INT2FIX(O_SYNC) 
- 
    TMPFILE =
    # File 'file.c', line 6091Create an unnamed temporary file INT2FIX(O_TMPFILE) 
- 
    TRUNC =
    # File 'file.c', line 6050truncate size to 0 INT2FIX(O_TRUNC) 
- 
    WRONLY =
    # File 'file.c', line 6033open for writing only INT2FIX(O_WRONLY)