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.
append on each write
disable line code conversion
create file if it does not exist
Try to minimize cache effects of the I/O to and from this file.
any write operation perform synchronously except some meta data
error if CREAT and the file exists
exclusive lock. see File#flock
non-blocking lock. used with LOCK_SH or LOCK_EX. see File#flock
shared lock. see File#flock
unlock. see File#flock
do not change atime
not to make opened IO the controlling terminal device
do not follow symlinks
do not block on open or for data to become available
Name of the null device
open for reading only
open for reading and writing
any read operation perform synchronously. used with SYNC or DSYNC.
any write operation perform synchronously
truncate size to 0
open for writing only
Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.
If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.
If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.
If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.