CMS 3D CMS Logo

Enumerations
IOFlags Namespace Reference

Enumerations

enum  OpenMode {
  OpenRead = 1, OpenWrite = 2, OpenNonBlock = 4, OpenAppend = 8,
  OpenUnbuffered = 16, OpenCreate = 32, OpenExclusive = 64, OpenTruncate = 128,
  OpenNotCTTY = 256, OpenWrap = 512
}
 File open mode flags. More...
 

Enumeration Type Documentation

◆ OpenMode

File open mode flags.

Enumerator
OpenRead 
OpenWrite 
OpenNonBlock 
OpenAppend 
OpenUnbuffered 
OpenCreate 
OpenExclusive 
OpenTruncate 
OpenNotCTTY 
OpenWrap 

Definition at line 6 of file IOFlags.h.

6  {
7  OpenRead = 1, /*< Open for read access. */
8  OpenWrite = 2, /*< Open for write access. */
9  OpenNonBlock = 4, /*< Open in non-blocking mode.
10  Neither the #open() nor any
11  subsequent operation on the
12  returned descriptor cause the
13  process to wait. Applied to
14  opening a named pipe (a FIFO)
15  allows the pipe to be opened
16  without waiting for the other end
17  to be connected. */
18  OpenAppend = 8, /*< Writes to the file should always
19  append to the end of the file. */
20  OpenUnbuffered = 16, /*< No write caching should be done on
21  this file; may result in blocking
22  the process until the data has
23  actually been written. */
24  OpenCreate = 32, /*< Create the file if it does not exist. */
25  OpenExclusive = 64, /*< With #ModeCreate specifies that
26  the creation should fali if the
27  file exists. */
28  OpenTruncate = 128, /*< If the file exists, truncate it to
29  zero size. */
30  OpenNotCTTY = 256, /*< If the specified file is a
31  terminal device, do not make it
32  the controlling terminal for the
33  process even if the process does
34  not have one yet. */
35  OpenWrap = 512 /*< Wrap the file if at all possible
36  with a local file. */
37  };
IOFlags::OpenNonBlock
Definition: IOFlags.h:9
IOFlags::OpenWrap
Definition: IOFlags.h:35
IOFlags::OpenTruncate
Definition: IOFlags.h:28
IOFlags::OpenWrite
Definition: IOFlags.h:8
IOFlags::OpenRead
Definition: IOFlags.h:7
IOFlags::OpenNotCTTY
Definition: IOFlags.h:30
IOFlags::OpenExclusive
Definition: IOFlags.h:25
IOFlags::OpenCreate
Definition: IOFlags.h:24
IOFlags::OpenAppend
Definition: IOFlags.h:18
IOFlags::OpenUnbuffered
Definition: IOFlags.h:20