Guardian Procedure Calls Reference Manual

SIGACTION_INIT_ Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameter
Returned Value
Considerations
Handler Considerations
Examples
Related Programming Manual
Summary
NOTE: This procedure can be called only from native processes.
The SIGACTION_INIT_ procedure establishes the caller's initial state of signal handling if default
handling is not desired.
Syntax for C Programmers
#include <tdmsig.h>
__int32_t SIGACTION_INIT_ ( void (* handler) ( int signum
,siginfo_t *
,void * ) );
CEXTDECS (through the included file TNSINTH) defines 32-bit values as the typedef
__int32_t, which for TNS and TNS/R compiles is defined as long and for TNS/E compiles
is defined as int.
Syntax for TAL Programmers
?SOURCE $SYSTEM.SYSTEM.HTDMSIG
error := SIGACTION_INIT_ ( handler ); ! i
Parameter
handler
input
PROCADDR:ref:1
specifies the action to be invoked when a signal occurs. For details, see Handler Considerations
(page 1364).
Returned Value
INT(32)
Outcome of the call:
Successful outcome.0D
An error occurred. The reason for the error is given in the errno variable. Use the ERRNO_GET_ procedure
to obtain the value of errno in a pTAL program.
-1D
1362 Guardian Procedure Calls (S)