]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
_exit.2: SYNOPSIS: Use 'noreturn' in prototypes
authorAlejandro Colomar <alx.manpages@gmail.com>
Thu, 18 Feb 2021 21:23:55 +0000 (22:23 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Fri, 19 Feb 2021 12:29:34 +0000 (13:29 +0100)
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>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/_exit.2

index fe43f47cee00d1577accaa72970e5c0f8ecf2990..6e8e77a84373c114f11aeff11c025f9d9eef6a42 100644 (file)
@@ -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