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


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

critical impact:

getdiskbyname - different header file (CrCh199)

HDR Impacts IO Impacts

Problem description

The required header files for the getdiskbyname function on Tru64 UNIX and HP-UX are different.

The getdiskbyname function gets the disk description using a disk name.

On Tru64 UNIX, to use this function you include the following header files:

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

On HP-UX, to use this function you include the following header file:

#include <disktab.h>


C/C++ Header Filesdisklabel.h C/C++ Functionsgetdiskbyname  

See also

Solution description

Modify your code.

Replace the sys/disklabel.h header file with disktab.h. Review the applicable manpages and code for more information.

See also

Problem summary

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