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

Go to the source code of this file.

Functions

void explain_buffer_clockid (explain_string_buffer_t *sb, int value)
int explain_parse_clockid_or_die (const char *text, const char *caption)

Variables

static const
explain_parse_bits_table_t 
table []

Function Documentation

void explain_buffer_clockid ( explain_string_buffer_t sb,
int  value 
)

The explain_buffer_clockid function may be used to print a representation of a clockid value.

Parameters:
sbThe string buffer to print into.
valueThe clockid value to be printed.

Definition at line 35 of file clockid.c.

int explain_parse_clockid_or_die ( const char *  text,
const char *  caption 
)

The explain_parse_clockid_or_die function is used to parse a text string ito a clockid value.

Parameters:
textThe text string to be parse for a timerid value.
captionadditional text for error messages
Returns:
the clockid value. Does not return on error.

Definition at line 42 of file clockid.c.


Variable Documentation

Initial value:
{
    { "CLOCK_MONOTONIC", CLOCK_MONOTONIC },
    { "CLOCK_REALTIME", CLOCK_REALTIME },
}

Definition at line 27 of file clockid.c.