[4/6] exit.3: SYNOPSIS: Use 'noreturn' in prototypes

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

Commit Message

DJ Delorie via Libc-alpha Feb. 18, 2021, 9:23 p.m.
POSIX specifies that 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/exit.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.30.1.721.g45526154a5

Patch

diff --git a/man3/exit.3 b/man3/exit.3
index 50eec7821..3e38a32a6 100644
--- a/man3/exit.3
+++ b/man3/exit.3
@@ -33,7 +33,7 @@  exit \- cause normal process termination
 .nf
 .B #include <stdlib.h>
 .PP
-.BI "void exit(int " status );
+.BI "noreturn void exit(int " status );
 .fi
 .SH DESCRIPTION
 The