Crinit -- Configurable Rootfs Init
|
#include <ioredir.h>
Public Attributes | |
int | newFd |
The file descriptor to redirect, called 'newFd' equivalent to the man page for dup2() More... | |
int | oldFd |
The file descriptor to redirect to, called 'oldFd' equivalent to the man page for dup2() More... | |
char * | path |
int | oflags |
mode_t | mode |
The value to use as mode in the call to open if crinitIoRedir_t::path is used, for example 0644. More... | |
bool | fifo |
If true, the target at crinitIoRedir_t::path is treated as a FIFO special file (named pipe). More... | |
Type to store an IO redirection definition for a task.
bool crinitIoRedir_t::fifo |
If true, the target at crinitIoRedir_t::path is treated as a FIFO special file (named pipe).
mode_t crinitIoRedir_t::mode |
The value to use as mode in the call to open if crinitIoRedir_t::path is used, for example 0644.
int crinitIoRedir_t::newFd |
The file descriptor to redirect, called 'newFd' equivalent to the man page for dup2()
int crinitIoRedir_t::oflags |
The value to use as oflag in the call to open if crinitIoRedir_t::path is used, for example O_APPEND.
int crinitIoRedir_t::oldFd |
The file descriptor to redirect to, called 'oldFd' equivalent to the man page for dup2()
char* crinitIoRedir_t::path |
Path to the file to redirect crinitIoRedir_t newFd to, usage of crinitIoRedir_t::oldFd and crinitIoRedir_t::path should be mutually exclusive to avoid ambiguity.