libexplain
1.4.D001
|
Go to the source code of this file.
Defines | |
#define | FILE_TYPE_BUFFER_SIZE_MIN 100 |
Functions | |
void | explain_buffer_file_type (struct explain_string_buffer_t *sb, int mode) |
void | explain_buffer_file_type_st (struct explain_string_buffer_t *sb, const struct stat *st) |
#define FILE_TYPE_BUFFER_SIZE_MIN 100 |
Definition at line 25 of file file_type.h.
void explain_buffer_file_type | ( | struct explain_string_buffer_t * | sb, |
int | mode | ||
) |
The explain_buffer_file_type function may be used to turn a file type from struct stat::st_mode into a human readable string.
sb | The string buffer to write the file type name to. |
mode | The file type, exactly as seen in struct stat::st_mode. |
Definition at line 35 of file file_type.c.
void explain_buffer_file_type_st | ( | struct explain_string_buffer_t * | sb, |
const struct stat * | st | ||
) |
The explain_buffer_file_type function may be used to turn a file type from struct stat::st_mode into a human readable string.
sb | The string buffer to write the file type name to. |
st | The file meta-data, exactly as returned by stat(2) et al. |
Definition at line 386 of file file_type.c.