Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

spt_signal(2) OSS System Calls Reference Manual
NOTES
To use this function in a threaded application that uses the Standard POSIX Threads library on
systems running J06.10 or later RVUs or H06.21 or later RVUs, you must perform all of the fol-
lowing tasks:
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_signal() function returns the value of the previous signal
action. Otherwise, the value SIG_ERR is retuned and errno is set indicate the error.
NOTE: SIG_ERR is not a valid value for a signal-catching function.
ERRORS
If any of these conditions occur, errno is set to the corresponding value:
[EINVAL] The value of the sig argument is not a valid signal number, or an attempt was
made to ignore or supply a signal-catching function for the SIGKILL, SIGSTOP,
or SIGABEND signal.
RELATED INFORMATION
Functions: pthread_kill(2), pthread_sigmask(2), signal(3), spt_pause(2), spt_sigaction(2),
spt_sigsuspend(2).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 Version 2 specification. Interfaces documented on this
reference page conform to the following industry standards:
IEEE Std 1003.1c-1995, POSIX System Application Program Interface
The use of the header file spthread.h is an HP exception to the POSIX standard.
7418 Hewlett-Packard Company 527186-023