CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
}
 File open mode flags. More...
 

Enumeration Type Documentation

File open mode flags.

Enumerator
OpenRead 
OpenWrite 
OpenNonBlock 
OpenAppend 
OpenUnbuffered 
OpenCreate 
OpenExclusive 
OpenTruncate 
OpenNotCTTY 

Definition at line 7 of file IOFlags.h.

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