From 169daa11155988a210fac949297381743f3cb400 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 23:14:53 +0100 Subject: feat: clang-tidy fixes --- lib/libc/stdlib/abort.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'lib/libc/stdlib/abort.c') diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c index 3d022e70..99001570 100644 --- a/lib/libc/stdlib/abort.c +++ b/lib/libc/stdlib/abort.c @@ -1,11 +1,11 @@ -#include -#include -#include -#include -#include -#include -#include -#include +#include <__thread.h> // for __thread_self +#include // for LIBC_LOCK +#include // for (anonymous struct)::(anonymous), (anonymous) +#include // for SIGABRT, sigaction, SIGKILL, SIG_DFL +#include // for abort +#include // for __syscall, __syscall_2, __syscall_4 +#include // for thrd_current +#include // for _exit int raise(int); @@ -18,8 +18,9 @@ _Noreturn void abort(void) LIBC_LOCK(libc.lock.abort); sa.sa_handler = SIG_DFL; - __syscall(rt_sigaction, SIGABRT, &sa, NULL, _NSIG / 8); - __syscall(tkill, thrd_current()->tid, SIGABRT); + __syscall(rt_sigaction, SIGABRT, &sa, 0, 64 / 8); + __syscall(tkill, ((struct __thread_self *)thrd_current())->tid, + SIGABRT); // This point should never be reached raise(SIGKILL); -- cgit v1.2.3