Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_sigaction(2) OSS System Calls Reference Manual
• Include the spthread.h header file in the application.
• Compile the application using the _SPT_MODEL_ feature test macro or equivalent
compiler command option in addition to any other feature test macros in use.
• Link the application to the zsptdll library (/G/system/zdllnnn/zsptdll).
RETURN VALUES
Upon successful completion, the spt_sigaction() function returns the value 0 (zero). Otherwise,
the value -1 is returned, no new signal handler is installed, and errno is set to indicate the error.
ERRORS
If one of these conditions occurs, the spt_sigaction() function sets errno to [EINVAL]:
[EINVAL] One of the following conditions exists:
• The sig parameter is not a valid signal number.
• An attempt was made to ignore or supply a signal-catching function for
the SIGKILL, SIGSTOP,orSIGABEND signal.
• The signal is not supported in pthreads.
RELATED INFORMATION
Functions: pthread_kill(2), pthread_sigmask(2), sigaction(2), spt_pause(2), spt_signal(2),
spt_sigsuspend(2).
STANDARDS CONFORMANCE
The spthread.h header file is an HP extension and an HP exception to the IEEE Std 1003.1c-
1995, POSIX System Application Program Interface.
7−416 Hewlett-Packard Company 527186-023