|
libexplain
1.4.D001
|
Go to the source code of this file.
Functions | |
| void | explain_buffer_access_mode (struct explain_string_buffer_t *sb, int mode) |
| int | explain_access_mode_parse (const char *text) |
| int | explain_access_mode_parse_or_die (const char *text, const char *caption) |
| int explain_access_mode_parse | ( | const char * | text | ) |
The explain_access_mode_parse function may be used to parse a C-like expression string, into an access(2) mode argument.
| text | The text to be parsed. |
Definition at line 48 of file access_mode.c.
| int explain_access_mode_parse_or_die | ( | const char * | text, |
| const char * | caption | ||
| ) |
The explain_access_mode_parse_or_die function may be used to parse a C-like expression string, into an access(2) mode argument. If string is not valie, issues a diagnostic and exits EXIT_FAILURE.
| text | The text to be parsed. |
| caption | Caption for error message, or NULL for none. |
Definition at line 59 of file access_mode.c.
| void explain_buffer_access_mode | ( | struct explain_string_buffer_t * | sb, |
| int | mode | ||
| ) |
The explain_buffer_access_mode function may be used to emit a human readable representation of an access mode.
| sb | The string buffer to print into. |
| mode | The access(2) mode to encode. |
Definition at line 38 of file access_mode.c.
1.7.6.1