2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Examine and/or modify the signals of a task.
8 #include <exec/execbase.h>
9 #include <aros/libcall.h>
10 #include <proto/exec.h>
12 /*****************************************************************************
16 AROS_LH2(ULONG
, SetSignal
,
19 AROS_LHA(ULONG
, newSignals
, D0
),
20 AROS_LHA(ULONG
, signalSet
, D1
),
23 struct ExecBase
*, SysBase
, 51, Exec
)
26 Change or read the set of signals sent to the current task.
29 newSignals - New values for the signals.
30 signalSet - Mask of signals affected by 'newSignals'.
42 AllocSignal(), FreeSignal(), Wait(), Signal(), SetExcept()
46 ******************************************************************************/
53 /* Protect the signal mask against access by other tasks. */
57 sig
=&SysBase
->ThisTask
->tc_SigRecvd
;
59 /* Change only the bits in 'mask' */
61 *sig
=(old
&~signalSet
)|(newSignals
&signalSet
);