|
ginnOS
The reference: libc, the libraries and the kernel
|
Macros | |
| #define | VFS_MAX_PATH_COMPONENTS 128 |
Functions | |
| bool | vfs_resolve_path (const char *cwd, const char *input, char *output, size_t size) |
| resolve an input path against the current working directory. | |
| bool | vfs_join_path (const char *base, const char *name, char *out, size_t size) |
| join two path components into an output buffer. | |
| #define VFS_MAX_PATH_COMPONENTS 128 |
resolve an input path against the current working directory.
absolute paths are returned as-is, relative paths are prefixed with cwd.
| cwd | current working directory. |
| input | user-provided path. |
| output | destination buffer for resolved absolute path. |
| size | size of destination buffer in bytes. |
join two path components into an output buffer.
avoids duplicate separators when base already ends with '/'.
| base | base path component. |
| name | child path component. |
| out | destination buffer. |
| size | destination buffer size in bytes. |