[2/6] _exit.2: SYNOPSIS: Use 'noreturn' in prototypes

Message ID 20210218212358.246072-3-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 _exit() and _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>

---
 man2/_exit.2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

-- 
2.30.1.721.g45526154a5

Patch

diff --git a/man2/_exit.2 b/man2/_exit.2
index fe43f47ce..6e8e77a84 100644
--- a/man2/_exit.2
+++ b/man2/_exit.2
@@ -33,11 +33,11 @@  _exit, _Exit \- terminate the calling process
 .nf
 .B #include <unistd.h>
 .PP
-.BI "void _exit(int " status );
+.BI "noreturn void _exit(int " status );
 .PP
 .B #include <stdlib.h>
 .PP
-.BI "void _Exit(int " status );
+.BI "noreturn void _Exit(int " status );
 .fi
 .PP
 .RS -4