critical impact:
uswitch - not supported (CrUn179)
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
 uswitch |
|
|
|
|
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 |
|