critical impact:
getdiskbyname - different header file (CrCh199)
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>
Identifiers
 disklabel.h |
 getdiskbyname |
|
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 |
|