libexplain
1.4.D001
|
#include <libexplain/string_buffer.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_utimensat_flags (explain_string_buffer_t *sb, int value) |
int | explain_allbits_utimensat_flags (void) |
int | explain_parse_utimensat_flags (const char *text, int *result) |
int | explain_parse_utimensat_flags_or_die (const char *text, const char *caption) |
int explain_allbits_utimensat_flags | ( | void | ) |
The explain_allbits_utimensat_flags function is used to get a bit mask of the valid options. This helps in an EINVAL explanation.
Definition at line 68 of file utimensat_flags.c.
void explain_buffer_utimensat_flags | ( | explain_string_buffer_t * | sb, |
int | value | ||
) |
The explain_buffer_utimensat_flags function may be used to print a representation of a utimensat flags value.
sb | The string buffer to print into. |
value | The utimensat flags value to be printed. |
Definition at line 47 of file utimensat_flags.c.
int explain_parse_utimensat_flags | ( | const char * | text, |
int * | result | ||
) |
The explain_parse_utimensat_flags function is used to parse a text string to extract a suitable 'flags' argument for the utimensat function.
text | The text string to be parsed. |
result | where to put the result |
Definition at line 61 of file utimensat_flags.c.
int explain_parse_utimensat_flags_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_utimensat_flags function is used to
text | The text string to be parsed for a flags value. |
caption | Caption to add to start of error message, or NULL for none |
Definition at line 54 of file utimensat_flags.c.