Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <97ee24cd7b61a011fe198f3e5e1fe71ed13badef.1684932861.git.Jens.Gustedt@inria.fr>
Date: Wed, 19 Apr 2023 15:17:49 +0200
From: Jens Gustedt <Jens.Gustedt@...ia.fr>
To: musl@...ts.openwall.com
Subject: [C23 divers headers 08/17] C23: change the noreturn function in
 threads.h

---
 include/threads.h      | 2 +-
 src/thread/thrd_exit.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/threads.h b/include/threads.h
index 52ec3100..608ff2a3 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -41,7 +41,7 @@ enum {
 #define ONCE_FLAG_INIT 0
 
 int thrd_create(thrd_t *, thrd_start_t, void *);
-_Noreturn void thrd_exit(int);
+__noreturn void thrd_exit(int);
 
 int thrd_detach(thrd_t);
 int thrd_join(thrd_t, int *);
diff --git a/src/thread/thrd_exit.c b/src/thread/thrd_exit.c
index 9b291ae3..fd094441 100644
--- a/src/thread/thrd_exit.c
+++ b/src/thread/thrd_exit.c
@@ -2,7 +2,7 @@
 #include <pthread.h>
 #include <stdint.h>
 
-_Noreturn void thrd_exit(int result)
+__noreturn void thrd_exit(int result)
 {
 	__pthread_exit((void*)(intptr_t)result);
 }
-- 
2.34.1

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.