Crinit -- Configurable Rootfs Init
|
Header related to IO redirection types and functions. More...
#include "confparse.h"
Go to the source code of this file.
Classes | |
struct | crinitIoRedir_t |
Typedefs | |
typedef struct crinitIoRedir_t | crinitIoRedir_t |
Functions | |
void | crinitDestroyIoRedir (crinitIoRedir_t *ior) |
int | crinitIoRedirCpy (crinitIoRedir_t *dest, const crinitIoRedir_t *src) |
Header related to IO redirection types and functions.
typedef struct crinitIoRedir_t crinitIoRedir_t |
Type to store an IO redirection definition for a task.
void crinitDestroyIoRedir | ( | crinitIoRedir_t * | ior | ) |
Frees memory associated with an initialized instance of crinitIoRedir_t.
ior | The instance whose associated memory shall be freed. |
int crinitIoRedirCpy | ( | crinitIoRedir_t * | dest, |
const crinitIoRedir_t * | src | ||
) |
Initializes an instance of crinitIoRedir_t from an already initialized other instance.
The resulting instance will contain equal values to the original. If the original instance contains dynamically allocated elements, equivalent memory will be allocated in the new instance and all contents copied.
The function may allocate memory inside the crinitIoRedir_t struct which must be freed using crinitDestroyIoRedir().
dest | The crinitIoRedir_t instance to initialize. |
src | The source/original instance to copy data from. |