next up previous contents index
Next: 20.1.4 lookup: Translate a Up: 20.1 Introduction Previous: 20.1.2 chroot: Set the

20.1.3 chcwd: Set the current directory for relative pathname translation

 

SYNOPSIS

#include <oskit/fs/fsnamespace.h>

oskit_error_t oskit_fsnamespace_chcwd(oskit_fsnamespace_t *f, oskit_dir_t *cwd);

DESCRIPTION

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.

PARAMETERS

f
The OSKit filesysem namespace interface object.
cwd
The directory object of the new current directory.

RETURNS

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



Utah Flux Research Group