CMS 3D CMS Logo

IOFlags.h
Go to the documentation of this file.
1 #ifndef STORAGE_FACTORY_IO_FLAGS_H
2 #define STORAGE_FACTORY_IO_FLAGS_H
3 
4 namespace IOFlags {
6  enum OpenMode {
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  };
38 } // namespace IOFlags
39 
40 #endif // STORAGE_FACTORY_IO_FLAGS_H
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::OpenMode
OpenMode
File open mode flags.
Definition: IOFlags.h:6
IOFlags
Definition: IOFlags.h:4
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