#include <cfg.h> int cfg_mount( const char *file, const char *cfgpath, log_facility_t notification, );
A successful call to cfg_mount()
returns a value of zero
and an unsuccessful call returns the errno
.
file
argument does not exist
NAME_MAX
characters,
or an entire path name exceed PATH_MAX
characters while
_POSIX_NO_TRUNC
is in effect.
cfgpath
does not exist.
file
path prefix is not a directory.
file
is already mounted.
The cfg_mount()
function maps a configuration space defined
by the file identified by the the file
argument. The
distinguished node of the mapped configuration space is
mounted in the active space at the point identified by the
cfgpath
configuration pathname.
The notification
argument specifies how changes to the
mapped configuration space are communicated to the application.
If the notification
argument is NULL, no notification will be
be performed for the mapped configuration space. If the Event
Logging option is defined, the notification argument defines the
facility to which changes in the mapped configuration space are
logged. Otherwise, the notification
argument specifies
an implementation defined method of notifying the application
of changes to the mapped configuration space.
The _POSIX_CFG
feature flag is defined to indicate
this service is available.
Copyright © 1988-2004 OAR Corporation