critical impact:
time64_t APIs - not supported; temporarily available (CrUn178)
Problem description
The time64_t Application Programming Interfaces (APIs) exist only on Tru64 UNIX but not on HP-UX. However, alternative time routines (without the "64" suffix) exist on HP-UX and support the 64-bit time_t for 64-bit data model binaries. The Tru64 UNIX Migration Environment for HP-UX also provides header macros to map these APIs to their 64-bit data model counterparts on HP-UX.
The time64_t data type and time64_t APIs are Tru64 UNIX extensions that are provided to allow applications to use a 64-bit time_t data type. The Migration Environment contains Tru64 UNIX APIs, development tools, and commands and utilities to assist customers in migrating their applications from Tru64 UNIX to HP-UX. Identifiers
 ctime64 |
 gmtime64 |
 mktime64 |
 ctime64_r |
 gmtime64_r |
 settimeofday64 |
 difftime64 |
 localtime64 |
 time64 |
 gettimeofday64 |
 localtime64_r |
|
See also
Solution description
Macro mappings for the time64_t APIs are provided in the Tru64 UNIX Migration Environment for HP-UX.
Applications will be able to use these APIs from the Tru64 UNIX Migration Environment when using the 64-bit data model. Note that the Migration Environment is temporary.
For a long-term solution, because time_t is 64 bit for 64-bit data model binaries, recode your application by removing the 64 string from these APIs and compiling your ported code using the 64-bit data model (+DD64).
Also, note that the underlying time zone implementation and struct tm data structure in Tru64 UNIX and HP-UX are slightly different. Please review the impact statements on the tzset routine and tm data structures for more information. See also
Problem summary
| classifications |
source types |
OS release |
severity |
type |
| 64, DA, ME |
C, C++ |
any HP-UX 11i version |
critical |
unavailable |
|