diff options
Diffstat (limited to 'src/libc/include/signal.h')
-rw-r--r-- | src/libc/include/signal.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/libc/include/signal.h b/src/libc/include/signal.h index 012481e..b01aef3 100644 --- a/src/libc/include/signal.h +++ b/src/libc/include/signal.h @@ -26,14 +26,15 @@ #define NSIG 32 -#define SIG_DFL 0 -#define SIG_ERR 0 -#define SIG_IGN 0 +#define SIG_DFL ((void*)0) +#define SIG_ERR ((void*)0) +#define SIG_IGN ((void*)0) #define SIG_SETMASK 0 typedef int sig_atomic_t; typedef struct {} sigset_t; typedef struct {} siginfo_t; +typedef void (*sighandler_t)(int); extern const char *const sys_siglist[]; struct sigaction { @@ -49,6 +50,6 @@ int sigemptyset(sigset_t *set); int sigfillset(sigset_t *set); int sigprocmask(int how, const sigset_t *set, const sigset_t *oldset); int sigsuspend(const sigset_t *mask); -int signal(int sig, void (*func)(int)); +sighandler_t signal(int sig, void (*func)(int)); int kill(pid_t pid, int sig); int raise(int sig); |