libexplain  1.4.D001
Functions
libexplain/buffer/pathconf_name.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_pathconf_name (explain_string_buffer_t *sb, int name)
int explain_parse_pathconf_name_or_die (const char *text)
int explain_valid_pathconf_name (int name)

Function Documentation

The explain_buffer_pathconf_name function may be used to translate a numeric pathconf parameter name into a synbolic name.

Parameters:
sbThe string buffer to print into.
nameThe name to be translated

Definition at line 98 of file pathconf_name.c.

int explain_parse_pathconf_name_or_die ( const char *  text)

The explain_parse_pathconf_name_or_die function is used to parse a text representation of a pathconf name into a numeric value.

Parameters:
textThe text to be parsed
Returns:
on success, the numeric value. On faulure it prints a diagnostic and exits.

Definition at line 105 of file pathconf_name.c.

int explain_valid_pathconf_name ( int  name)

The explain_valid_pathconf_name function is used determine whether or not a pathconf name is valid.

Parameters:
nameThe name to be verified.
Returns:
int (bool); non-zero (true) if name is valid, zero (false) if name is not valid.

Definition at line 112 of file pathconf_name.c.