nfs_getfh(2) nfs_getfh(2)NAME nfs_getfh - gets a file handle SYNOPSIS #include <rpc/types.h> #include <sys/errno.h> #include <sys/time.h> #include <nfs/nfs.h> int nfs_getfh(fildes, fhp) int fildes; fhandle_t *fhp; DESCRIPTION nfs_getfh returns the file handle associated with the file descriptor fd. This call is restricted to the superuser. STATUS MESSAGES AND VALUES 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 into the global location errno. The following errors may be returned by these calls: EPERM The caller was not the superuser. EBADF fd is not a valid open file descriptor. EFAULT The fhp parameter gave an invalid address. January 1992 1