libexplain  1.4.D001
Functions | Variables
libexplain/buffer/utimensat_flags.c File Reference
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/utimensat_flags.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>

Go to the source code of this file.

Functions

void explain_buffer_utimensat_flags (explain_string_buffer_t *sb, int value)
int explain_parse_utimensat_flags_or_die (const char *text, const char *caption)
int explain_parse_utimensat_flags (const char *text, int *result)
int explain_allbits_utimensat_flags (void)

Variables

static const
explain_parse_bits_table_t 
table []

Function Documentation

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.

The explain_buffer_utimensat_flags function may be used to print a representation of a utimensat flags value.

Parameters:
sbThe string buffer to print into.
valueThe 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.

Parameters:
textThe text string to be parsed.
resultwhere to put the result
Returns:
0 on success, < 0 on failure

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

Parameters:
textThe text string to be parsed for a flags value.
captionCaption to add to start of error message, or NULL for none
Returns:
The value of the expression. Does not return on error, but prints diagnostic and exits EXIT_FAILURE.
Note:
this function is not thread safe

Definition at line 54 of file utimensat_flags.c.


Variable Documentation

Initial value:
{















}

Definition at line 26 of file utimensat_flags.c.