]> xenbits.xensource.com Git - unikraft/unikraft.git/commitdiff
lib/nolibc: Adapt musl imported `signal.h` to nolibc
authorMichalis Pappas <michalis@unikraft.io>
Fri, 5 Jan 2024 19:09:32 +0000 (20:09 +0100)
committerUnikraft Bot <monkey@unikraft.io>
Mon, 17 Feb 2025 14:46:09 +0000 (14:46 +0000)
The replaced values of SIGRTMIN and SIGRTMAX are effectively
the return values of musl's __libc_current_sigrtmin() and
__libc_current_sigrtmax() defined in musl/src/signal/sigrtmin.c
and musl/src/signal/sigrtmax.c

Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1244

lib/nolibc/musl-imported/include/signal.h

index c347f8610a3f2b7956399fb660bdce2042192cda..00701ee1c865fafe667610ff7fbb2385935123ed 100644 (file)
@@ -25,7 +25,7 @@ extern "C" {
 #define __NEED_clock_t
 #define __NEED_sigset_t
 
-#include <bits/alltypes.h>
+#include <nolibc-internal/shareddefs.h>
 
 #define SIG_BLOCK     0
 #define SIG_UNBLOCK   1
@@ -204,11 +204,8 @@ struct sigevent {
 #define SIGEV_THREAD 2
 #define SIGEV_THREAD_ID 4
 
-int __libc_current_sigrtmin(void);
-int __libc_current_sigrtmax(void);
-
-#define SIGRTMIN  (__libc_current_sigrtmin())
-#define SIGRTMAX  (__libc_current_sigrtmax())
+#define SIGRTMIN  35
+#define SIGRTMAX  (_NSIG - 1)
 
 int kill(pid_t, int);