|
Kintsugi OS 0.5.0
x86 Monolithic OS
|
Macros | |
| #define | RESOLVE(path) |
Functions | |
| void | vfs_mount (const vfs_ops_t *ops) |
| const char * | vfs_getcwd (void) |
| int | vfs_open (const char *path, vfs_file_t *file) |
| int | vfs_file_read (vfs_file_t *file, void *buffer, u32 capacity) |
| int | vfs_file_write (vfs_file_t *file, const void *buffer, u32 size) |
| int | vfs_seek (vfs_file_t *file, u32 offset) |
| void | vfs_close (vfs_file_t *file) |
| int | vfs_normalize (const char *path, char out[VFS_PATH_MAX]) |
| int | vfs_stat (const char *path, vfs_stat_t *stat) |
| int | vfs_chdir (const char *path) |
| int | vfs_read (const char *path, u32 offset, void *buffer, u32 capacity) |
| int | vfs_replace (const char *path, const void *data, u32 size) |
| static int | modify (const char *path, u32 offset, const void *data, u32 size, int truncate, int append) |
| int | vfs_write (const char *p, u32 o, const void *d, u32 n) |
| int | vfs_append (const char *p, const void *d, u32 n) |
| int | vfs_truncate (const char *p, u32 n) |
| int | vfs_create (const char *path) |
| int | vfs_mkdir (const char *path) |
| static int | ancestor (const char *parent, const char *child) |
| int | vfs_unlink (const char *path) |
| int | vfs_rmdir (const char *path) |
| int | vfs_rename (const char *source, const char *destination) |
| int | vfs_readdir (const char *path, u32 *cursor, vfs_dirent_t *entry) |
| int | vfs_copy (const char *source, const char *destination) |
| const char * | vfs_error (int e) |
Variables | |
| static const vfs_ops_t * | backend |
| static u32 | generation |
| static char | cwd [VFS_PATH_MAX] = "/" |
| #define RESOLVE | ( | path | ) |
|
static |
|
static |
| int vfs_append | ( | const char * | p, |
| const void * | d, | ||
| u32 | n | ||
| ) |
| int vfs_chdir | ( | const char * | path | ) |
| void vfs_close | ( | vfs_file_t * | file | ) |
| int vfs_copy | ( | const char * | source, |
| const char * | destination | ||
| ) |
| int vfs_create | ( | const char * | path | ) |
| const char * vfs_error | ( | int | e | ) |
| int vfs_file_read | ( | vfs_file_t * | file, |
| void * | buffer, | ||
| u32 | capacity | ||
| ) |
| int vfs_file_write | ( | vfs_file_t * | file, |
| const void * | buffer, | ||
| u32 | size | ||
| ) |
| const char * vfs_getcwd | ( | void | ) |
| int vfs_mkdir | ( | const char * | path | ) |
| void vfs_mount | ( | const vfs_ops_t * | ops | ) |
| int vfs_normalize | ( | const char * | path, |
| char | out[VFS_PATH_MAX] | ||
| ) |
| int vfs_open | ( | const char * | path, |
| vfs_file_t * | file | ||
| ) |
| int vfs_readdir | ( | const char * | path, |
| u32 * | cursor, | ||
| vfs_dirent_t * | entry | ||
| ) |
| int vfs_rename | ( | const char * | source, |
| const char * | destination | ||
| ) |
| int vfs_replace | ( | const char * | path, |
| const void * | data, | ||
| u32 | size | ||
| ) |
| int vfs_rmdir | ( | const char * | path | ) |
| int vfs_seek | ( | vfs_file_t * | file, |
| u32 | offset | ||
| ) |
| int vfs_stat | ( | const char * | path, |
| vfs_stat_t * | stat | ||
| ) |
| int vfs_truncate | ( | const char * | p, |
| u32 | n | ||
| ) |
| int vfs_unlink | ( | const char * | path | ) |
|
static |
|
static |
|
static |