From 885f5974cdf65b59415837ae97f5a14ef1350670 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 19:20:15 +0100 Subject: feat: add gzip and new headers --- include/signal.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'include/signal.h') diff --git a/include/signal.h b/include/signal.h index a4f41c96..6b7f2a4a 100644 --- a/include/signal.h +++ b/include/signal.h @@ -3,7 +3,9 @@ #define __BITS_SIGEVENT_H_ #include -#undef __BITS_SIGEVENT_H_ + +#define __BITS_SIGINFO_H_ +#include #define SIG_DFL ((void (*)(int))0) #define SIG_ERR ((void (*)(int)) - 1) @@ -76,18 +78,11 @@ typedef __UINT64_TYPE__ sigset_t; typedef __SIZE_TYPE__ size_t; typedef struct __thread_self pthread_t; -struct timespec; +typedef void (*sighandler_t)(int); -typedef struct { - int si_signo; - int si_code; - int si_errno; - pid_t si_pid; - uid_t si_uid; - void *si_addr; - int si_status; - union sigval si_value; -} siginfo_t; +typedef _Atomic int sig_atomic_t; + +struct timespec; typedef struct { void *ss_sp; @@ -102,6 +97,9 @@ struct sigaction { void (*sa_sigaction)(int, siginfo_t *, void *); }; +extern const char *const sys_siglist[64]; +extern const char *const sys_sigabbrev[64]; + int kill(pid_t, int); int killpg(pid_t, int); void psiginfo(const siginfo_t *, const char *); @@ -129,4 +127,6 @@ int sigwait(const sigset_t *restrict, int *restrict); int sigwaitinfo(const sigset_t *restrict, siginfo_t *restrict); int str2sig(const char *restrict, int *restrict); +sighandler_t sysv_signal(int signum, sighandler_t handler); + #endif -- cgit v1.2.3