#include <oskit/fs/fsnamespace.h>oskit_error_t oskit_fsnamespace_chcwd(oskit_fsnamespace_t *f, oskit_dir_t *cwd);
Set the current working directory for subsequent relative pathname translation (lookup). By default, the current working directory is established when the filesystem namespace object is created (oskit_create_fsnamespace), and is typically the root directory of the root filesystem. An application may then change the current working directory so that subsequent translation of pathnames not starting with ', start at the new directory.
- f
- The OSKit filesysem namespace interface object.
- cwd
- The directory object of the new current directory.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.