*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> getfh (2)              
Title
Content
Arch
Section
 

getfh(2)

Contents


NAME    [Toc]    [Back]

       getfh - Get a file handle

SYNOPSIS    [Toc]    [Back]

       #include <sys/types.h> #include <sys/mount.h>

       int getfh(
               int fd,
               fhandle_t *fhp,
               int exp_fd );

PARAMETERS    [Toc]    [Back]

       Specifies  the file descriptor of the path to be exported.
       Points to  a  fhandle_t  structure.   Specifies  the  file
       descriptor  of  the  exported  path  to  use when applying
       export options.

DESCRIPTION    [Toc]    [Back]

       The getfh() function returns a file handle for the  specified
  file  or  directory in the file handle pointed to by
       the fhp parameter. This function is restricted to the root
       user.

RETURN VALUES    [Toc]    [Back]

       Upon  successful  completion,  a  value  of  0  (zero)  is
       returned. Otherwise, -1 is returned and errno  is  set  to
       indicate the error.

ERRORS    [Toc]    [Back]

       If  the getfh() function fails, errno may be set to one of
       the following values: One of the file  descriptor  parameters
  is  not  a valid file descriptor.  The fhp parameter
       points to an invalid address.  The  calling  process  does
       not have appropriate privilege.  The file system specified
       is not exportable.



                                                         getfh(2)
[ Back ]
 Similar pages
Name OS Title
st_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_file Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_line Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_addr_to_proc Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_data_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
st_text_addr_to_sym Tru64 convert an address in an object to a file handle, procedure handle, line number, or symbol handle an...
getfh HP-UX return file handle for file on remote node
getfh NetBSD get file handle
getfh FreeBSD get file handle
getfh OpenBSD get file handle
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service