libexplain
1.4.D001
|
Go to the source code of this file.
Data Structures | |
struct | explain_string_flags_t |
Typedefs | |
typedef struct explain_string_flags_t | explain_string_flags_t |
Functions | |
void | explain_string_flags_init (explain_string_flags_t *sf, const char *from) |
void | explain_string_flags_einval (const explain_string_flags_t *sf, explain_string_buffer_t *sb, const char *caption) |
typedef struct explain_string_flags_t explain_string_flags_t |
Definition at line 23 of file string_flags.h.
void explain_string_flags_einval | ( | const explain_string_flags_t * | sf, |
explain_string_buffer_t * | sb, | ||
const char * | caption | ||
) |
The explain_string_flags_einval function may be used to print an expanation for an EINVAL error relating to the given string flags.
sf | The string flags of interest. |
sb | The string buffer to print into. |
caption | The name of th offending system call argument. |
void explain_string_flags_init | ( | explain_string_flags_t * | sf, |
const char * | from | ||
) |
The explain_string_flags_init function may be used to translate an fopen(3) flags string argument into an open(2) flags bit field argument.
sf | The string flags to fill |
from | the string to fill the string flags from |
Definition at line 27 of file string_flags.c.