libexplain
1.4.D001
|
#include <libexplain/ac/sys/eventfd.h>
#include <libexplain/buffer/eventfd_flags.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Defines | |
#define | EFD_NONBLOCK 0 |
#define | EFD_CLOEXEC 0 |
Functions | |
void | explain_buffer_eventfd_flags (explain_string_buffer_t *sb, int flags) |
int | explain_parse_eventfd_flags_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | table [] |
#define EFD_CLOEXEC 0 |
Definition at line 30 of file eventfd_flags.c.
#define EFD_NONBLOCK 0 |
Definition at line 27 of file eventfd_flags.c.
void explain_buffer_eventfd_flags | ( | explain_string_buffer_t * | sb, |
int | flags | ||
) |
The explain_buffer_eventfd_flags function may be used to print an explanation of an EVENTFS_FLAGS error.
sb | The string buffer to print into. |
flags | The flags to be printed. |
Definition at line 42 of file eventfd_flags.c.
int explain_parse_eventfd_flags_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_eventfd_flags_or_die function is used to parse a text string to build an eventfs flags value.
text | The text to be parsed. |
caption | additional description for error messages |
Definition at line 49 of file eventfd_flags.c.
const explain_parse_bits_table_t table[] [static] |
{ { "EFD_NONBLOCK", EFD_NONBLOCK }, { "EFD_CLOEXEC", EFD_CLOEXEC }, }
Definition at line 34 of file eventfd_flags.c.