libexplain  1.4.D001
Functions
libexplain/buffer/waitpid_options.h File Reference

Go to the source code of this file.

Functions

void explain_buffer_waitpid_options (struct explain_string_buffer_t *sb, int options)
int explain_parse_waitpid_options_or_die (const char *text, const char *caption)

Function Documentation

void explain_buffer_waitpid_options ( struct explain_string_buffer_t sb,
int  options 
)

The explain_buffer_waitpid_options function may be used to decode and print waitpid(2) options.

Parameters:
sbThe string buffer to print into
optionsThe options to be decoded

Definition at line 37 of file waitpid_options.c.

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

The explain_parse_waitpid_options function is used to parse text containing waitpid options into a numeric value.

Parameters:
textThe string to be parsed
captionadditional text to be added to theh start of error messages
Returns:
the flags value

Definition at line 44 of file waitpid_options.c.