#include <oskit/fs/fsnamespace.h>oskit_error_t oskit_fsnamespace_chroot(oskit_fsnamespace_t *f, const char *name);
Set the root directory for subsequent absolute pathname translation (lookup). By default, the root 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 root directory so that subsequent translation of pathnames starting with 'śtart at the new directory.
- f
- The OSKit filesysem namespace interface object.
- name
- The pathname of the new root directory.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.