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:

getpw - not available; use getpwuid (CrUn203)

SEC Impacts

Problem description

The getpw function exists on Tru64 UNIX, but not on HP-UX. However, a replacement technology exists in getpwuid.

The getpw function gets name from UID.


C/C++ Functionsgetpw            

See also

Solution description

Use getpwuid to achieve similar results.

The correct way for applications to get name from UID is to use getpwuid. Note that getpwuid may not behave exactly the same as getpw. Review your code and applicable manpages for more information on getpwuid.

See also

Problem summary

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