From: Alejandro Colomar Date: Sat, 5 Nov 2022 00:01:25 +0000 (+0100) Subject: Various pages: Replace noreturn by [[noreturn]] X-Git-Tag: man-pages-6.02~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b2f5804ee5e02b5e0b49cee9f8065fc552de215;p=thirdparty%2Fman-pages.git Various pages: Replace noreturn by [[noreturn]] ISO C23 will declare the noreturn macro and the _Noreturn function specifier as obsolescent features. They are replaced by the C++-compatible [[noreturn]] attribute. Signed-off-by: Alejandro Colomar --- diff --git a/man2/_exit.2 b/man2/_exit.2 index 2ab3c3cb1f..9e9796f439 100644 --- a/man2/_exit.2 +++ b/man2/_exit.2 @@ -16,11 +16,11 @@ Standard C library .nf .B #include .PP -.BI "noreturn void _exit(int " status ); +.BI "[[noreturn]] void _exit(int " status ); .PP .B #include .PP -.BI "noreturn void _Exit(int " status ); +.BI "[[noreturn]] void _Exit(int " status ); .fi .PP .RS -4 diff --git a/man2/exit_group.2 b/man2/exit_group.2 index b270278065..f8b56d3d62 100644 --- a/man2/exit_group.2 +++ b/man2/exit_group.2 @@ -13,7 +13,7 @@ Standard C library .BR "#include " " /* Definition of " SYS_* " constants */" .B #include .PP -.BI "noreturn void syscall(SYS_exit_group, int " status ); +.BI "[[noreturn]] void syscall(SYS_exit_group, int " status ); .fi .PP .IR Note : diff --git a/man3/abort.3 b/man3/abort.3 index db59debfd2..3393e955be 100644 --- a/man3/abort.3 +++ b/man3/abort.3 @@ -21,7 +21,7 @@ Standard C library .nf .B #include .PP -.B noreturn void abort(void); +.B [[noreturn]] void abort(void); .fi .SH DESCRIPTION The diff --git a/man3/err.3 b/man3/err.3 index 19a6b721da..9392c7bcf7 100644 --- a/man3/err.3 +++ b/man3/err.3 @@ -18,16 +18,16 @@ Standard C library .nf .B #include .PP -.BI "noreturn void err(int " eval ", const char *" fmt ", ...);" -.BI "noreturn void errx(int " eval ", const char *" fmt ", ...);" +.BI "[[noreturn]] void err(int " eval ", const char *" fmt ", ...);" +.BI "[[noreturn]] void errx(int " eval ", const char *" fmt ", ...);" .PP .BI "void warn(const char *" fmt ", ...);" .BI "void warnx(const char *" fmt ", ...);" .PP .B #include .PP -.BI "noreturn void verr(int " eval ", const char *" fmt ", va_list " args ); -.BI "noreturn void verrx(int " eval ", const char *" fmt ", va_list " args ); +.BI "[[noreturn]] void verr(int " eval ", const char *" fmt ", va_list " args ); +.BI "[[noreturn]] void verrx(int " eval ", const char *" fmt ", va_list " args ); .PP .BI "void vwarn(const char *" fmt ", va_list " args ); .BI "void vwarnx(const char *" fmt ", va_list " args ); diff --git a/man3/exit.3 b/man3/exit.3 index a086dfc9ae..7c5231205a 100644 --- a/man3/exit.3 +++ b/man3/exit.3 @@ -16,7 +16,7 @@ Standard C library .nf .B #include .PP -.BI "noreturn void exit(int " status ); +.BI "[[noreturn]] void exit(int " status ); .fi .SH DESCRIPTION The diff --git a/man3/pthread_exit.3 b/man3/pthread_exit.3 index 5d30f30fef..c1ca6d4526 100644 --- a/man3/pthread_exit.3 +++ b/man3/pthread_exit.3 @@ -13,7 +13,7 @@ POSIX threads library .nf .B #include .PP -.BI "noreturn void pthread_exit(void *" retval ); +.BI "[[noreturn]] void pthread_exit(void *" retval ); .fi .SH DESCRIPTION The diff --git a/man3/setjmp.3 b/man3/setjmp.3 index d2850a6a7c..6aa09913f0 100644 --- a/man3/setjmp.3 +++ b/man3/setjmp.3 @@ -15,8 +15,8 @@ Standard C library .BI "int setjmp(jmp_buf " env ); .BI "int sigsetjmp(sigjmp_buf " env ", int " savesigs ); .PP -.BI "noreturn void longjmp(jmp_buf " env ", int " val ); -.BI "noreturn void siglongjmp(sigjmp_buf " env ", int " val ); +.BI "[[noreturn]] void longjmp(jmp_buf " env ", int " val ); +.BI "[[noreturn]] void siglongjmp(sigjmp_buf " env ", int " val ); .fi .PP .RS -4