Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
sigaction(2) OSS System Calls Reference Manual
ERRORS
If any of the following conditions occurs, the sigaction() function sets errno to the correspond-
ing value and no new signal-catching function is installed:
[EFAULT] The action or o_action parameter points to a location outside of the allocated
address space of the process.
[EINVAL] One of the following conditions exists:
• The signal 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.
[ENOTOSS] The calling process was not an OSS process or a native Guardian process. The
requested operation cannot be performed from the Guardian environment by a
TNS or accelerated Guardian process.
RELATED INFORMATION
Commands: kill(1).
Functions: _exit(2), exit(3), kill(2), pause(3), pthread_sigmask(2), setjmp(3), sigaddset(3),
sigdelset(3), sigemptyset(3), sigfillset(3), sigismember(3), signal(3), sigaltstack(2), sigproc-
mask(2), sigsuspend(2), spt_sigaction(2) umask(2), wait(2).
Files: signal(4).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
• The ordering of members within the sigaction structure might not match the ordering
used in signal.h header files in other environments or on other systems.
• The values returned in the fields of the structure pointed to by the o_action parameter
when sigaction() is called and the previous action for the specified signal was esta-
blished by the signal() function are unspecified in the POSIX.1 standard. These values
should therefore not be depended upon other than to pass the address returned in
o_action as the action parameter to another sigaction() function; the result is as if the
signal() function were repeated.
• The action is ignored when the action is set to the SIG_DFL value for a signal that can-
not be caught or ignored.
This function is an extension to the XPG4 Version 2 specification.
The following are HP extensions to the XPG4 Version 2 specification:
• HP has defined several new signals, including SIGABEND. See the signal(4) reference
page for a complete list.
• The [ENOTOSS] error value is an HP extension.
• If the SIGSTK signal is delivered while the alternate signal stack is active, the default
action of terminating the process occurs.
HP does not define members of the sigaction structure following sa_flags.
HP does not define the SA_SIGINFO symbolic constant.
7−96 Hewlett-Packard Company 527186-023