Options used to open a file descriptor. More...
#include <FileDescriptor.h>
Public Types | |
enum | Mode : uint8_t { Read = 0 , ReadWrite , Append , AppendRead , Write , WriteRead } |
Indicates the mode in which the file should be opened (read, write, append, etc.) More... | |
Public Member Functions | |
FileOpen (Mode mode=Read) | |
int | toPosixFlags () const |
int | toPosixAccess () const |
Public Attributes | |
Mode | mode |
Open mode (read, write, append, etc.). See FileOpen::Mode for more details. | |
bool | inheritable = false |
Set to true to make the file visible to child processes. | |
bool | blocking = true |
Set to false if file will be used for Async I/O (see Async) | |
bool | sync = false |
Set to true to open file in synchronous mode, bypassing local file system cache. | |
bool | exclusive = false |
Set to true to fail if the file already exists (like 'x' flag in fopen) | |
Options used to open a file descriptor.
enum SC::FileOpen::Mode : uint8_t |
Indicates the mode in which the file should be opened (read, write, append, etc.)
bool SC::FileOpen::blocking = true |
Set to false if file will be used for Async I/O (see Async)
bool SC::FileOpen::exclusive = false |
Set to true to fail if the file already exists (like 'x' flag in fopen)
bool SC::FileOpen::inheritable = false |
Set to true to make the file visible to child processes.
Mode SC::FileOpen::mode |
Open mode (read, write, append, etc.). See FileOpen::Mode for more details.
bool SC::FileOpen::sync = false |
Set to true to open file in synchronous mode, bypassing local file system cache.