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:

fcntl - some functional differences (CrCh195)

IO Impacts

Problem description

The fcntl routine on Tru64 UNIX and HP-UX are compatible with the exception of some AdvFS-specific and other miscellaneous request parameters.

The following are the request parameters specific to Tru64 UNIX:

  • F_GETTIMES retrieves the current times for the file identified by filedes.

  • F_SETTIMES sets the current times for the file identified by filedes.

For the F_GETTIMES and F_SETTIMES requests, the function's third argument is a pointer to the attr_timbuf structure that is not defined on HP-UX and that contains the file's atime (access time), mtime (modification time), and ctime (file attribute change time) values.

The following AdvFS file system request parameters are specific to Tru64 UNIX:

  • F_ADVFS_OP performs AdvFS-specific operations on AdvFS files. The value expects that the argument parameter is a pointer to a advfs_opT structure that is not defined on HP-UX.

  • F_GETCACHEPOLICY gets the cache policy for the file, which is either direct I/O or caching.

  • F_GETMAP gets the sparseness map of the file referred to by the fildes parameter. The argument parameter, taken as a pointer to type struct extentmap (not defined on HP-UX), is filled in with data that describes the extent map of the file.

  • F_RSETLK and F_RSETLKW is reserved for use by the network lock daemon (rpc.lockd(8)) on NFS servers to acquire locks requested by F_SETLK on NFS clients.

  • F_RGETLK is reserved for use by the network lock daemon (rpc.lockd(8)) on NFS servers to acquire locks requested by F_SETLK on NFS clients.

  • F_CNVT is used by the network lock daemon (rpc.lockd(8)) to communicate with the NFS server kernel to handle locks on the NFS files.

Identifiers

C/C++ Misc. IdentifiersF_ADVFS_OP C/C++ Misc. IdentifiersF_GETMAP C/C++ Misc. IdentifiersF_RSETLK
C/C++ Misc. IdentifiersF_CNVT C/C++ Misc. IdentifiersF_GETTIMES C/C++ Misc. IdentifiersF_RSETLKW
C/C++ Misc. IdentifiersF_GETCACHEPOLICY C/C++ Misc. IdentifiersF_RGETLK C/C++ Misc. IdentifiersF_SETTIMES

See also

Solution description

You might use the fstat function to replace F_GETTIMES and use the utimes function for F_SETTIMES as a temporary solution. Comment out all of the AdvFS-specific code.

F_RSETLK, F_CNVT, F_RGETLK, and F_RSETLKW are meant for internal use only, and the locks are remote. You should change any use of these if they are in your code.

See also


Problem summary

classifications source types OS release severity type
IO 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.