nfsgetfh(2) nfsgetfh(2)
NAME
nfs_getfh - get a file handle
SYNOPSIS
#include <rpc/types.h>
#include <sys/errno.h>
#include <sys/time.h>
#include <nfs/nfs.h>
nfs_getfh(fd, fhp)
int fd;
fhandle_t *fhp;
DESCRIPTION
nfsgetfh returns the file handle associated with the file
descriptor fd. This call is restricted to the super-user.
RETURN VALUE
If the call succeeds a value of 0 is returned. If the call
fails, then a value of -1 is returned and an error code is
placed int the global location errno.
ERRORS
The following errors may be returned by these calls:
[EPERM] The caller was not the super-user.
[EBADF] fd is not a valid open file descriptor.
[EFAULT] The fhp parameter gave an invalid address.
Page 1 (last mod. 1/14/87)