Barrelfish
|
VFS-related path manipulation. More...
Functions | |
void | vfs_path_normalise (char *path) |
Normalise the given path, in-place. More... | |
char * | vfs_path_mkabsolute (const char *cwd, const char *path) |
Generate an absolute path, given the current directory. More... | |
char * | vfs_path_mkabs (const char *path) |
Shorthand version of vfs_path_mkabsolute() that "knows" the current directory. More... | |
VFS-related path manipulation.
char* vfs_path_mkabs | ( | const char * | path | ) |
Shorthand version of vfs_path_mkabsolute() that "knows" the current directory.
char* vfs_path_mkabsolute | ( | const char * | cwd, |
const char * | path | ||
) |
Generate an absolute path, given the current directory.
This function constructs an absolute path, given the current directory and a path which may be relative or absolute (starts with '/').
void vfs_path_normalise | ( | char * | path | ) |
Normalise the given path, in-place.
Modifies the provided path, performing the following substitutions: