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

Message ID 20210218212358.246072-6-alx.manpages@gmail.com
State New
Headers show
Series
  • man[23]: SYNOPSIS: Use 'noreturn' in prototypes.
Related show

Commit Message

André Almeida via Libc-alpha Feb. 18, 2021, 9:23 p.m.
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(-)

-- 
2.30.1.721.g45526154a5

Patch

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
 .nf
 .B #include <pthread.h>
 .PP
-.BI "void pthread_exit(void *" retval );
+.BI "noreturn void pthread_exit(void *" retval );
 .PP
 Compile and link with \fI\-pthread\fP.
 .fi