exportfs(2) DG/UX 4.30 exportfs(2)
NAME
exportfs - Make a directory available for mounting via NFS.
SYNOPSIS
#include <sys/export.h>
int exportfs (directory_name, export_entry_ptr)
char * directory_name;
struct export * export_entry_ptr;
PARAMETERS
directory_name The local directory or file to be made
available for mounting over NFS from NFS
clients.
export_entry_ptr
A pointer to a struct export that describes
how this entry should be exported.
DESCRIPTION
The exportfs system call makes a local directory (or file)
available for mounting via NFS by NFS clients. The way the
entry is exported is contained in the structure pointed to
by export_entry_ptr. See <sys/export.h> for details. If
directory_name has already been exported, it is logically
re-exported with a new entry constructed per
export_entry_ptr. No attempt is made to insure that either
the parent of directory_name or a child of directory_name
has been exported already. Such enforcment is left to the
invoking code.
ACCESS CONTROL
The calling process's effective user id must be superuser.
RETURN VALUE
0 Successful completion.
-1 An error occurred. Errno is set to indicate
the error.
EXCEPTIONS
Errno may be set to one of the following error codes:
EPERM The process's effective user id is not
superuser; or directory_name contains a
character not in the allowed character set.
EINVAL The ex_flags field of the structure pointed
to by export_entry_ptr was non-zero and was
not EX_RDONLY or EX_RDMOSTLY; or the ex_auth
field of the structure pointed to by
export_entry_ptr was not AUTH_UNIX; or more
Licensed material--property of copyright holder(s) Page 1
exportfs(2) DG/UX 4.30 exportfs(2)
than EXMAXROOTADDRS were indicated to be part
of this export entry or EX_RDMOSTLY was set
in the ex_flags field of the structure and
more than EXMAXADDRS were indicated to be
part of this export entry.
EFAULT Some part of the structure pointed to by
export_entry_ptr lies outside the process's
readable address space; or directory_name
does not completely reside in the process's
address space or directory_name does not
terminate in the process's address space.
EOPNOTSUPP Kernel support for NFS is not present.
ENOENT directory_name does not exist; or a non-
terminal component of directory_name does not
exist.
ENOTDIR A non-terminal component of directory_name
was not a directory or symbolic link.
ENAMETOOLONG directory_name or a component of
directory_name exceeds the length limit for
pathnames.
ENOMEM There are not enough system resources to
resolve directory_name or to expand a
symbolic link.
ELOOP The number of symbolic links encountered
during pathname resolution exceeded
MAXSYMLINKS. A symbolic link cycle is
suspected.
SEE ALSO
exportfs(1m), mount(2).
Licensed material--property of copyright holder(s) Page 2