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:

sigstack - obsolete; use sigaltstack (NcWn21)

SIG Impacts

Problem description

The sigstack function exists on Tru64 UNIX only for compatibility reasons. This function has been declared obsolete, and will not be available in future HP-UX releases.

The sigstack function lets an application set an alternate stack for processing signals. It is not portable because it requires the application to know the direction of stack growth. Also, it does not let an application specify the size of the alternate stack.


C/C++ Functionssigstack        

See also

Solution description

Use the sigaltstack function instead.

The sigaltstack function is more portable than sigstack. It also has an extra error check: it sets errno to EPERM if the application attempts to modify an active stack. Modifying an active stack is dangerous and not supported. The Tru64 UNIX sigstack does not check for this unless the application is built with _XOPEN_SOURCE_EXTENDED defined or _XOPEN_SOURCE defined to be 420 or higher.

See also

Problem summary

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