libexplain
1.4.D001
|
#include <libexplain/ac/sys/stat.h>
#include <libexplain/buffer/stat_mode.h>
#include <libexplain/buffer/pointer.h>
#include <libexplain/option.h>
#include <libexplain/is_efault.h>
#include <libexplain/parse_bits.h>
#include <libexplain/sizeof.h>
Go to the source code of this file.
Functions | |
void | explain_buffer_stat_mode (explain_string_buffer_t *sb, mode_t mode) |
int | explain_parse_stat_mode_or_die (const char *text, const char *caption) |
Variables | |
static const explain_parse_bits_table_t | hi_table [] |
static const explain_parse_bits_table_t | lo_table_short [] |
static const explain_parse_bits_table_t | lo_table_long [] |
static const explain_parse_bits_table_t | full_table [] |
void explain_buffer_stat_mode | ( | explain_string_buffer_t * | sb, |
mode_t | value | ||
) |
The explain_buffer_stat_mode function may be used to print a representation of a stat_mode structure.
sb | The string buffer to print into. |
value | The stat::st_mode value to be printed. |
Definition at line 95 of file stat_mode.c.
int explain_parse_stat_mode_or_die | ( | const char * | text, |
const char * | caption | ||
) |
Definition at line 199 of file stat_mode.c.
const explain_parse_bits_table_t full_table[] [static] |
Definition at line 143 of file stat_mode.c.
const explain_parse_bits_table_t hi_table[] [static] |
Definition at line 29 of file stat_mode.c.
const explain_parse_bits_table_t lo_table_long[] [static] |
{ { "S_ISUID", S_ISUID }, { "S_ISGID", S_ISGID }, { "S_ISVTX", S_ISVTX }, { "S_IRWXU", S_IRWXU }, { "S_IRUSR", S_IRUSR }, { "S_IWUSR", S_IWUSR }, { "S_IXUSR", S_IXUSR }, { "S_IRWXG", S_IRWXG }, { "S_IRGRP", S_IRGRP }, { "S_IWGRP", S_IWGRP }, { "S_IXGRP", S_IXGRP }, { "S_IRWXO", S_IRWXO }, { "S_IROTH", S_IROTH }, { "S_IWOTH", S_IWOTH }, { "S_IXOTH", S_IXOTH }, }
Definition at line 74 of file stat_mode.c.
const explain_parse_bits_table_t lo_table_short[] [static] |
{ { "S_ISUID", S_ISUID }, { "S_ISGID", S_ISGID }, { "S_ISVTX", S_ISVTX }, }
Definition at line 67 of file stat_mode.c.