This function can query or modify the state of the current Task's received signal mask. Setting the state of signals is considered dangerous. Reading the state of signals is safe.
INPUTS
newSignals
the new values for the signals specified in signalSet.
signalMask
the set of signals to be affected.
RESULT
oldSignals
the prior values for all signals
EXAMPLE
Get the current state of all signals:
SetSignal(0L, 0L);
Clear the CTRL-C signal:
SetSignal(0L, SIGBREAKF_CTRL_C);
Check if the CTRL-C signal was pressed:
#include <dos/dos.h>
/* Check & clear CTRL_C signal */
if (SetSignal(0L, SIGBREAKF_CTRL_C) & SIGBREAKF_CTRL_C)