diff options
author | dzwdz | 2023-12-25 18:36:02 +0100 |
---|---|---|
committer | dzwdz | 2023-12-25 18:36:02 +0100 |
commit | 4e1a6f1b3c543b9fbeb882a9e97551f7c58ca65a (patch) | |
tree | 8c2048c751db8b98e3033a61b6ad5bbd11a303a9 /src/libc/include/signal.h | |
parent | 64d4330810a37dd9c41a82ae6cc420850ca1e7da (diff) |
ports: curl :^)
had to do a lot of hacky stuff, but it's there.
worked on this on and off for a while now
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); |