Crinit -- Configurable Rootfs Init
crinitIoRedir_t Struct Reference

#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...
 

Detailed Description

Type to store an IO redirection definition for a task.

Member Data Documentation

◆ fifo

bool crinitIoRedir_t::fifo

If true, the target at crinitIoRedir_t::path is treated as a FIFO special file (named pipe).

◆ mode

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.

◆ newFd

int crinitIoRedir_t::newFd

The file descriptor to redirect, called 'newFd' equivalent to the man page for dup2()

◆ oflags

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.

◆ oldFd

int crinitIoRedir_t::oldFd

The file descriptor to redirect to, called 'oldFd' equivalent to the man page for dup2()

◆ path

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.


The documentation for this struct was generated from the following file: