mirror of https://github.com/mkerrisk/man-pages
_exit.2: SYNOPSIS: Use 'noreturn' in prototypes
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>
This commit is contained in:
parent
0dfa5792bc
commit
d8a9e2bbf5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue