libexplain  1.4.D001
Defines | Functions | Variables
libexplain/buffer/eventfd_flags.c File Reference
#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 Documentation

#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.


Function Documentation

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.

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

Parameters:
textThe text to be parsed.
captionadditional description for error messages
Returns:
The flags value. Does not return on error.

Definition at line 49 of file eventfd_flags.c.


Variable Documentation

Initial value:
{
    { "EFD_NONBLOCK", EFD_NONBLOCK },
    { "EFD_CLOEXEC", EFD_CLOEXEC },
}

Definition at line 34 of file eventfd_flags.c.