getfh(2) DG/UX 4.30 getfh(2)
NAME
getfh - Return the file handle of the export entry
containing filename.
SYNOPSIS
#include <sys/types.h>
#include <sys/nfs.h>
int getfh (filename, filehandle_ptr)
char * filename;
fhandle_t * filehandle_ptr;
PARAMETERS
filename The filename to get the filehandle of.
filehandle_ptr Where to put filehandle for the file
specified by <filename>.
DESCRIPTION
If <filename> has been exported via exportfs(2), then the
filehandle for the filesystem that is exported is returned.
This system call is normally used only by the NFS mount
daemon.
ACCESS CONTROL
The calling process's effective user id must be superuser.
RETURN VALUE
0 Successful completion. The file handle for
<descriptor> is returned in <filehandle_ptr>.
-1 An error occurred. Errno is set to indicate
the error.
EXCEPTIONS
Errno may be set to one of the following error codes:
EINVAL No export entry exists for this filename.
EFAULT Some part of the space pointed to by
<filehandle_ptr> lies outside the process's
readable address space.
EPERM The caller is not superuser.
EOPNOTSUPP Kernel support for NFS is not present.
Licensed material--property of copyright holder(s) Page 1
getfh(2) DG/UX 4.30 getfh(2)
SEE ALSO
The related manual sections: nfssvc(2), async_daemon(2),
dg_mount(2).
Licensed material--property of copyright holder(s) Page 2