diff mbox series

[5/6] pthread_exit.3: SYNOPSIS: Use 'noreturn' in prototypes

Message ID 20210218212358.246072-6-alx.manpages@gmail.com
State Not Applicable
Headers show
Series man[23]: SYNOPSIS: Use 'noreturn' in prototypes. | expand

Commit Message

Alejandro Colomar \(man-pages\) Feb. 18, 2021, 9:23 p.m. UTC
POSIX specifies that pthread_exit() shall not return.
Glibc uses __attribute__((__noreturn__)).
Let's use standard C11 'noreturn' in the manual page.

Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
 man3/pthread_exit.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/man3/pthread_exit.3 b/man3/pthread_exit.3
index 60879f07c..de9f9abcf 100644
--- a/man3/pthread_exit.3
+++ b/man3/pthread_exit.3
@@ -30,7 +30,7 @@  pthread_exit \- terminate calling thread
 .B #include <pthread.h>
-.BI "void pthread_exit(void *" retval );
+.BI "noreturn void pthread_exit(void *" retval );
 Compile and link with \fI\-pthread\fP.