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
» 

DSPP Home

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

critical impact:

uswitch - not supported (CrUn179)

KN Impacts

Problem description

The uswitch function exists on Tru64 UNIX, but not on HP-UX.

The uswitch function gets or sets compatibility environment-specific behavior for a calling process through the uswitch value. The uswitch function is not needed on HP-UX if you are passing USW_NULLP because HP-UX does not generate a segmentation fault on NULL pointers.

Identifiers

C/C++ Functionsuswitch        

See also

Solution description

Remove any references to the uswitch function and the sys/uswitch.h header file.

By default, HP-UX allows null pointer dereferencing (similar to the USW_NULLP uswitch setting in Tru64 UNIX). To disable null pointer dereferencing, use the -z command line option when compiling and linking the application.

Note that the enhanced core file naming feature is not supported in HP-UX.


Problem summary

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