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... |
File open mode flags.
OpenRead | |
OpenWrite | |
OpenNonBlock | |
OpenAppend | |
OpenUnbuffered | |
OpenCreate | |
OpenExclusive | |
OpenTruncate | |
OpenNotCTTY |
Definition at line 16 of file IOFlags.h.
00017 { 00018 OpenRead = 1, /*< Open for read access. */ 00019 OpenWrite = 2, /*< Open for write access. */ 00020 OpenNonBlock = 4, /*< Open in non-blocking mode. 00021 Neither the #open() nor any 00022 subsequent operation on the 00023 returned descriptor cause the 00024 process to wait. Applied to 00025 opening a named pipe (a FIFO) 00026 allows the pipe to be opened 00027 without waiting for the other end 00028 to be connected. */ 00029 OpenAppend = 8, /*< Writes to the file should always 00030 append to the end of the file. */ 00031 OpenUnbuffered = 16, /*< No write caching should be done on 00032 this file; may result in blocking 00033 the process until the data has 00034 actually been written. */ 00035 OpenCreate = 32, /*< Create the file if it does not exist. */ 00036 OpenExclusive = 64, /*< With #ModeCreate specifies that 00037 the creation should fali if the 00038 file exists. */ 00039 OpenTruncate = 128, /*< If the file exists, truncate it to 00040 zero size. */ 00041 OpenNotCTTY = 256 /*< If the specified file is a 00042 terminal device, do not make it 00043 the controlling terminal for the 00044 process even if the process does 00045 not have one yet. */ 00046 00047 // FIXME: Binary/Text -- these should be at higher stream 00048 // abstraction level. 00049 };