next up previous contents index
Next: 20.1.3 chcwd: Set the Up: 20.1 Introduction Previous: 20.1.1 oskit_create_fsnamespace: Create a

20.1.2 chroot: Set the root directory for absolute pathname translation

 

SYNOPSIS

#include <oskit/fs/fsnamespace.h>

oskit_error_t oskit_fsnamespace_chroot(oskit_fsnamespace_t *f, const char *name);

DESCRIPTION

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.

PARAMETERS

f
The OSKit filesysem namespace interface object.
name
The pathname of the new root directory.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



Utah Flux Research Group