diff mbox series

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

Message ID 20210218212358.246072-5-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 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(-)
diff mbox series


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
 .B #include <stdlib.h>
-.BI "void exit(int " status );
+.BI "noreturn void exit(int " status );