libexplain
1.4.D001
|
#include <libexplain/ac/sys/resource.h>
#include <libexplain/buffer/resource.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_resource (explain_string_buffer_t *sb, int resource) |
int | explain_parse_resource_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | table [] |
void explain_buffer_resource | ( | explain_string_buffer_t * | sb, |
int | value | ||
) |
The explain_buffer_resource function may be used to print the value of a getrlimit or setrlimit "resource" arument.
sb | The string buffer to print into. |
value | The value to be printed |
Definition at line 116 of file resource.c.
int explain_parse_resource_or_die | ( | const char * | text, |
const char * | caption | ||
) |
The explain_parse_resource_or_die function s isused to parse a text string into a getrlimit or setrlimit resource value. On error, printed a diagnostics and exits EXIT_FAILURE.
text | The text to be parsed |
caption | additional text for the error message, if needed |
Definition at line 129 of file resource.c.
const explain_parse_bits_table_t table[] [static] |
Definition at line 26 of file resource.c.