nfsmount(2)
_________________________________________________________________
nfsmount System Call
Mount a remote file system.
_________________________________________________________________
SYNTAX
#include <sys/types.h>
#include <sys/nfs.h>
#include <sys/socket.h>
int nfsmount (sock_addr_ptr,
file_handle_ptr,
directory,
rwflag,
hard)
struct sockaddr * sock_addr_ptr;
fhandle_t * file_handle_ptr;
char * directory;
int rwflag;
int hard;
PARAMETERS
sock_addr_ptr Pointer to the socket for the remote host.
file_handle_ptr
Pointer to the file handle of the directory to
mount.
directory Address of a pathname of a directory to mount
upon.
rwflag Indicates 'read-only' or 'read-write' file system
device. If 0, the filesystem is mounted read-
write; a non-zero value causes the filesystem to
be mounted read.
hard If non-zero, the remote filesystem is hard
mounted. If zero, the remote filesystem is soft
mounted.
DESCRIPTION
DG/UX 4.00 Page 1
Licensed material--property of copyright holder(s)
nfsmount(2)
Nfsmount mounts NFS filesystem on the directory indicated by
<directory>. <Sock_addr_ptr> is the UPP address of the server
that owns the filesystem to mount. <*File_handle_ptr> is a file
handle obtained from the server that identifies the the directory
that is being mounted.
If the filesystem is being soft-mounted, an error is returned
when a remote access times out; hard mounts cause the access to
retry until the server responds.
ACCESS CONTROL
The effective user id of the calling process must be superuser.
RETURN VALUE
0 Completed successfully.
-1 An error occurred. Errno is set to indicate the
error.
EXCEPTIONS
Errno may be set to one of the following error codes:
ENOTDIR <Directory> is not a directory.
EPERM Permission to mount a file system device is denied
to the calling process.
EOPNOTSUPP Kernel support for NFS is not present.
Any of the pathname resolution errors.
SEE ALSO
The related system call: mount(2), getfh(2),
mountd(1m), umount(2).
DG/UX 4.00 Page 2
Licensed material--property of copyright holder(s)