critical impact:
getfh - different header file; incompatible parameters (CrCh200)
Problem description
The required header files for the getfh function on Tru64 UNIX and HP-UX are different. In addition, the first (fd) and third (exp_fd) parameters used by getfh on Tru64 UNIX are incompatible with the parameters on HP-UX.
The getfh function gets a file handle.
On Tru64 UNIX, to use this function you include the following header files:
#include <sys/types.h>
#include <sys/mount.h>
On HP-UX, to use this function you include the following header files:
#include <errno.h>
#include <time.h>
#include <nfs/nfs.h>
#include <rpc/rpc.h>
On Tru64 UNIX, the getfh function prototype is as follows:
int getfh(int fd, fhandle_t *fhp, int exp_fd);
On HP-UX, the getfh function prototype is as follows:
int getfh(char *path, fhandle_t *fhp); Identifiers
 getfh |
 mount.h |
|
|
|
See also
Solution description
Review the applicable manpages and code.
Add the header files errno.h, time.h, nfs/nfs.h, and rpc/rpc.h. Note that this call should be used only by commands supplied by HP, and is not recommended for use by programs not supplied by HP. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| HDR, IO, KN |
C, C++ |
any HP-UX 11i version |
critical |
changed |
|