|
Message-Id: <f326a1c41feb480526da9a92b7629918ca2e13aa.1685522953.git.Jens.Gustedt@inria.fr> Date: Wed, 31 May 2023 11:22:54 +0200 From: Jens Gustedt <Jens.Gustedt@...ia.fr> To: musl@...ts.openwall.com Subject: [C23 divers headers 07/17] C23: change the noreturn functions in stdlib.h --- include/stdlib.h | 8 ++++---- src/exit/_Exit.c | 2 +- src/exit/abort.c | 2 +- src/exit/exit.c | 2 +- src/exit/quick_exit.c | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/stdlib.h b/include/stdlib.h index 0e66f84a..037e4dc4 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -43,12 +43,12 @@ void *realloc (void *, size_t); void free (void *); void *aligned_alloc(size_t, size_t); -_Noreturn void abort (void); +__noreturn void abort (void); int atexit (void (*) (void)); -_Noreturn void exit (int); -_Noreturn void _Exit (int); +__noreturn void exit (int); +__noreturn void _Exit (int); int at_quick_exit (void (*) (void)); -_Noreturn void quick_exit (int); +__noreturn void quick_exit (int); char *getenv (const char *); diff --git a/src/exit/_Exit.c b/src/exit/_Exit.c index 7a6115c7..344e0194 100644 --- a/src/exit/_Exit.c +++ b/src/exit/_Exit.c @@ -1,7 +1,7 @@ #include <stdlib.h> #include "syscall.h" -_Noreturn void _Exit(int ec) +__noreturn void _Exit(int ec) { __syscall(SYS_exit_group, ec); for (;;) __syscall(SYS_exit, ec); diff --git a/src/exit/abort.c b/src/exit/abort.c index f21f458e..276eb754 100644 --- a/src/exit/abort.c +++ b/src/exit/abort.c @@ -6,7 +6,7 @@ #include "lock.h" #include "ksigaction.h" -_Noreturn void abort(void) +__noreturn void abort(void) { raise(SIGABRT); diff --git a/src/exit/exit.c b/src/exit/exit.c index a6869b37..6ceb4f6d 100644 --- a/src/exit/exit.c +++ b/src/exit/exit.c @@ -24,7 +24,7 @@ static void libc_exit_fini(void) weak_alias(libc_exit_fini, __libc_exit_fini); -_Noreturn void exit(int code) +__noreturn void exit(int code) { __funcs_on_exit(); __libc_exit_fini(); diff --git a/src/exit/quick_exit.c b/src/exit/quick_exit.c index ada91348..e4167836 100644 --- a/src/exit/quick_exit.c +++ b/src/exit/quick_exit.c @@ -4,7 +4,7 @@ static void dummy() { } weak_alias(dummy, __funcs_on_quick_exit); -_Noreturn void quick_exit(int code) +__noreturn void quick_exit(int code) { __funcs_on_quick_exit(); _Exit(code); -- 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.