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 edm::storage {
5 
6  namespace IOFlags {
8  enum OpenMode {
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  OpenWrap = 512 /*< Wrap the file if at all possible
38  with a local file. */
39  };
40  } // namespace IOFlags
41 } // namespace edm::storage
42 #endif // STORAGE_FACTORY_IO_FLAGS_H
OpenMode
File open mode flags.
Definition: IOFlags.h:8