libexplain
1.4.D001
|
#include <libexplain/ac/sys/signalfd.h>
#include <libexplain/buffer/signalfd_flags.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Defines | |
#define | SFD_NONBLOCK 0 |
#define | SFD_CLOEXEC 0 |
Functions | |
void | explain_buffer_signalfd_flags (explain_string_buffer_t *sb, int flags) |
int | explain_parse_signalfd_flags_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | table [] |
#define SFD_CLOEXEC 0 |
Definition at line 30 of file signalfd_flags.c.
#define SFD_NONBLOCK 0 |
Definition at line 27 of file signalfd_flags.c.
void explain_buffer_signalfd_flags | ( | explain_string_buffer_t * | sb, |
int | data | ||
) |
The explain_buffer_signalfd_flags function may be used to print a representation of a signalfd flags argument.
sb | The string buffer to print into. |
data | The signalfd flags value to be printed. |
Definition at line 42 of file signalfd_flags.c.
int explain_parse_signalfd_flags_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_signalfd_flags_or_die function is used to parse a text representation of a signalfd flags argument.
text | The text to be parsed. |
caption | additional information for error messages |
Definition at line 49 of file signalfd_flags.c.
const explain_parse_bits_table_t table[] [static] |
{ { "SFD_NONBLOCK", SFD_NONBLOCK }, { "SFD_CLOEXEC", SFD_CLOEXEC }, }
Definition at line 34 of file signalfd_flags.c.