|
PatchworkOS
966e257
A non-POSIX operating system.
|
#include <kernel/fs/file.h>#include <kernel/fs/dentry.h>#include <kernel/fs/inode.h>#include <kernel/fs/mount.h>#include <kernel/fs/path.h>#include <kernel/sync/mutex.h>#include <kernel/utils/ref.h>#include <errno.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| static void | file_free (file_t *file) |
| file_t * | file_new (const path_t *path, mode_t mode) |
| Create a new file structure. | |
| uint64_t | file_generic_seek (file_t *file, int64_t offset, seek_origin_t origin) |
| Helper function for basic seeking. | |