|
Crinit -- Configurable Rootfs Init
|
#include <ioredir.h>
Data Fields | |
| int | newFd |
| The file descriptor to redirect, called 'newFd' equivalent to the man page for dup2() | |
| int | oldFd |
| The file descriptor to redirect to, called 'oldFd' equivalent to the man page for dup2() | |
| 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. | |
| bool | fifo |
| If true, the target at crinitIoRedir_t::path is treated as a FIFO special file (named pipe). | |
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.