aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlejandro Colomar <alx@kernel.org>2022-11-05 01:01:25 +0100
committerAlejandro Colomar <alx@kernel.org>2022-11-05 01:01:27 +0100
commit9b2f5804ee5e02b5e0b49cee9f8065fc552de215 (patch)
treedc444437c05b99934b070c565d99588a28fe716b
parent575cb01ef603f75ce585c57f1f724afddfcd4c36 (diff)
downloadman-pages-9b2f5804ee5e02b5e0b49cee9f8065fc552de215.tar.gz
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 <alx@kernel.org>
-rw-r--r--man2/_exit.24
-rw-r--r--man2/exit_group.22
-rw-r--r--man3/abort.32
-rw-r--r--man3/err.38
-rw-r--r--man3/exit.32
-rw-r--r--man3/pthread_exit.32
-rw-r--r--man3/setjmp.34
7 files changed, 12 insertions, 12 deletions
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 <unistd.h>
.PP
-.BI "noreturn void _exit(int " status );
+.BI "[[noreturn]] void _exit(int " status );
.PP
.B #include <stdlib.h>
.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 <sys/syscall.h>" " /* Definition of " SYS_* " constants */"
.B #include <unistd.h>
.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 <stdlib.h>
.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 <err.h>
.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 <stdarg.h>
.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 <stdlib.h>
.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 <pthread.h>
.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