2 Copyright © 2004-2012, The AROS Development Team. All rights reserved.
8 /*****************************************************************************
14 __sighandler_t
*signal(
18 __sighandler_t
*handler
)
21 Set signal handler for a signal.
24 signum - the signal number to register a handler for
25 handler - the signal handler; can be SIG_IGN, SIG_DFL or a function
26 pointer that will handle the signal
29 The old handler that was replaced by the new handler.
32 Implemented but no interrupts will be generated like when pressing
33 Ctrl-C; signal handlers can for now only be called by raise() in the
44 ******************************************************************************/
46 struct signal_func_data
*sigfuncdata
= __sig_getfuncdata(signum
);
51 __sighandler_t
*ret
= sigfuncdata
->sigfunc
;
52 sigfuncdata
->sigfunc
= handler
;