coan 4.2.4
|
Go to the source code of this file.
Defines | |
#define | fs_absolute_path(pathtype) (((pathtype) & FS_ABS_PATH) == FS_ABS_PATH) |
#define | fs_unix_path(pathtype) (((pathtype) & FS_UNIX_PATH) == FS_UNIX_PATH) |
#define | fs_windows_path(pathtype) (((pathtype) & FS_WIN_PATH) == FS_WIN_PATH) |
#define | fs_dangling_path(pathtype) (((pathtype) & FS_DANGLING_PATH) == FS_DANGLING_PATH) |
#define | fs_root_path(pathtype) (((pathtype) & FS_ROOT_PATH) == FS_ROOT_PATH) |
#define | FS_IS_FILE(objtype) (((objtype) & FS_OBJ_FILE) != 0) |
#define | FS_IS_DIR(objtype) (((objtype) & FS_OBJ_DIR) != 0) |
#define | FS_IS_SLINK(objtype) (((objtype) & FS_OBJ_SLINK) != 0) |
Typedefs | |
typedef void * | fs_dir_t |
Enumerations | |
enum | fs_obj_type_t { FS_OBJ_NONE, FS_OBJ_SLINK = 1, FS_OBJ_FILE = 2, FS_OBJ_DIR = 4 } |
enum | fs_path_type_t { FS_ABS_PATH = 1, FS_UNIX_PATH = 2, FS_WIN_PATH = 6, FS_DANGLING_PATH = 8, FS_ROOT_PATH = 16 } |
Functions | |
fs_obj_type_t | fs_obj_type (char const *name) |
fs_obj_type_t | fs_file_or_dir (char const *name) |
fs_dir_t | fs_open_dir (char const *dirname, fs_dir_t const parent) |
void | fs_close_dir (fs_dir_t dir) |
char const * | fs_read_dir (fs_dir_t dir, char const **fullname) |
fs_dir_t | fs_get_parent (fs_dir_t dir) |
heap_str | fs_compose_filename (char const *path, char const *leafname) |
heap_str | fs_split_filename (char const *path, char **leafname) |
heap_str | fs_real_path (char const *relname, size_t *namelen) |
char const * | fs_cur_dir_entry (fs_dir_t dir, char const **entry) |
fs_path_type_t | fs_path_type (char const *filename) |
char * | fs_tempname (char *template) |
char const * | fs_path_comp (char const *first, char const *second, size_t *sharedlen) |
This file provides the Filesystem component interface
Definition in file filesys.h.