|
libexplain
1.4.D001
|
#include <libexplain/ac/limits.h>#include <libexplain/ac/stdio.h>#include <libexplain/ac/stdlib.h>#include <libexplain/ac/string.h>#include <libexplain/ac/sys/param.h>#include <libexplain/ac/sys/stat.h>#include <libexplain/ac/sys/sysmacros.h>#include <libexplain/ac/unistd.h>#include <libexplain/buffer/file_type.h>#include <libexplain/buffer/gettext.h>#include <libexplain/option.h>Go to the source code of this file.
Functions | |
| void | explain_buffer_file_type (explain_string_buffer_t *sb, int mode) |
| static int | proc_devices (char *buffer, size_t buffer_size, dev_t st_rdev, int pref) |
| static int | proc_devices_blk (char *buffer, size_t buffer_size, dev_t st_rdev) |
| static int | proc_devices_chr (char *buffer, size_t buffer_size, dev_t st_rdev) |
| static int | usb_in_dev_symlink (const char *kind, dev_t st_rdev) |
| void | explain_buffer_file_type_st (explain_string_buffer_t *sb, const struct stat *st) |
| 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.
| static int proc_devices | ( | char * | buffer, |
| size_t | buffer_size, | ||
| dev_t | st_rdev, | ||
| int | pref | ||
| ) | [static] |
Definition at line 287 of file file_type.c.
| static int proc_devices_blk | ( | char * | buffer, |
| size_t | buffer_size, | ||
| dev_t | st_rdev | ||
| ) | [static] |
Definition at line 348 of file file_type.c.
| static int proc_devices_chr | ( | char * | buffer, |
| size_t | buffer_size, | ||
| dev_t | st_rdev | ||
| ) | [static] |
Definition at line 355 of file file_type.c.
| static int usb_in_dev_symlink | ( | const char * | kind, |
| dev_t | st_rdev | ||
| ) | [static] |
Definition at line 362 of file file_type.c.
1.7.6.1