Jump to content
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

Transition Impacts

Tru64 UNIX Software Transition Kit
» 

DSPP Home

» HP STK home
Tru64 UNIX STK
» Home
» Overview
» Tools
» Documentation
» Transition impacts
» Identifier types
» Impact list
» Porting to HP-UX
» FAQ
» Glossary
» Help
» Send us feedback
Site maps
» Tru64 UNIX STK
» DSPP
Content starts here

critical impact:

getfh - different header file; incompatible parameters (CrCh200)

HDR Impacts IO Impacts KN Impacts

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

C/C++ Functionsgetfh C/C++ Header Filesmount.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
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.