2018-05-02 06:20:06 +03:00
|
|
|
#include <signal.h>
|
|
|
|
#include <syscall.h>
|
2018-12-10 04:09:27 +03:00
|
|
|
#include <syscall_nums.h>
|
2018-05-02 06:20:06 +03:00
|
|
|
|
2021-05-31 04:47:02 +03:00
|
|
|
DEFN_SYSCALL2(signal, SYS_SIGNAL, int, void *);
|
2018-05-02 06:20:06 +03:00
|
|
|
|
2018-12-10 04:09:27 +03:00
|
|
|
/* XXX This syscall interface is screwy, doesn't allow for good errno handling */
|
2018-05-02 06:20:06 +03:00
|
|
|
sighandler_t signal(int signum, sighandler_t handler) {
|
|
|
|
return (sighandler_t)syscall_signal(signum, (void *)handler);
|
|
|
|
}
|