Enumerations | |
enum | OpenMode { OpenRead = 1, OpenWrite = 2, OpenNonBlock = 4, OpenAppend = 8, OpenUnbuffered = 16, OpenCreate = 32, OpenExclusive = 64, OpenTruncate = 128, OpenNotCTTY = 256 } |
File open mode flags. More... |
enum IOFlags::OpenMode |
File open mode flags.
OpenRead | |
OpenWrite | |
OpenNonBlock | |
OpenAppend | |
OpenUnbuffered | |
OpenCreate | |
OpenExclusive | |
OpenTruncate | |
OpenNotCTTY |
Definition at line 7 of file IOFlags.h.
{ OpenRead = 1, /*< Open for read access. */ OpenWrite = 2, /*< Open for write access. */ OpenNonBlock = 4, /*< Open in non-blocking mode. Neither the #open() nor any subsequent operation on the returned descriptor cause the process to wait. Applied to opening a named pipe (a FIFO) allows the pipe to be opened without waiting for the other end to be connected. */ OpenAppend = 8, /*< Writes to the file should always append to the end of the file. */ OpenUnbuffered = 16, /*< No write caching should be done on this file; may result in blocking the process until the data has actually been written. */ OpenCreate = 32, /*< Create the file if it does not exist. */ OpenExclusive = 64, /*< With #ModeCreate specifies that the creation should fali if the file exists. */ OpenTruncate = 128, /*< If the file exists, truncate it to zero size. */ OpenNotCTTY = 256 /*< If the specified file is a terminal device, do not make it the controlling terminal for the process even if the process does not have one yet. */ };