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

non-critical impact:

time - different errno (NcWn28)

DA Impacts

Problem description

The Tru64 UNIX and HP-UX errno return values for the time function are different.

The time function gets the current time in seconds since the Epoch. On Tru64 UNIX, an application might crash with a segmentation fault if the input parameter is not valid. In this case, the time function does not return an errno value.


C/C++ Functionstime              

See also

Solution description

Review applicable manpages and code.

On HP-UX, the time routine might return -1 with an errno of EFAULT if the input argument points to an invalid address. As a returned value of -1 is a valid time_t value, referring to 11:59:59 Dec 31 1969 UTC, applications using time might have to start checking errno if a value of -1 is returned.

See also

Problem summary

classifications source types OS release severity type
DA C, C++ any HP-UX 11i version non-critical warning
Printable version
Privacy statement Using this site means you accept its terms Feedback to DSPP
© 2007 Hewlett-Packard Development Company, L.P.