next up previous contents index
Next: 11.3.2 gethostnamesethostname: Get Up: 11.3 C Library Environment Previous: 11.3 C Library Environment

11.3.1 getfsnamespace, setfsnamespace: Get and Set the filesystem namespace

 

SYNOPSIS

#include <oskit/com/libcenv.h>

oskit_error_t oskit_libcenv_getfsnamespace(oskit_libcenv_t *c, oskit_fsnamespace_t **out_fsn);
oskit_error_t oskit_libcenv_setfsnamespace(oskit_libcenv_t *c, oskit_fsnamespace_t *fsn);

DESCRIPTION

Get (or set) the oskit_fsnamespace COM object from the oskit_libcenv COM object. The application initialization code will typically set the oskit_fsnamespace object when it initializes the root filesystem (see oskit_clientos_setfsnamespace above). The POSIX library then requests a reference to namespace object when the application first tries to use one of the filesystem interface calls in the POSIX library.

PARAMETERS

c
The oskit_libcenv object to operate on.
out_fsn
The oskit_fsnamespace object to return.
fsn
The oskit_fsnamespace object to set.

RETURNS

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



Utah Flux Research Group