_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:
Alejandro Colomar 2021-02-18 22:23:55 +01:00 committed by Michael Kerrisk
parent 0dfa5792bc
commit d8a9e2bbf5
1 changed files with 2 additions and 2 deletions

View 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