err.3: SYNOPSIS: Use 'noreturn' in prototypes

Glibc uses __attribute__((__noreturn__)) for [v]err[x]().
These functions never return.
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:56 +01:00 committed by Michael Kerrisk
parent d8a9e2bbf5
commit 9ca4896771
1 changed files with 4 additions and 4 deletions

View File

@ -43,16 +43,16 @@ err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages
.nf
.B #include <err.h>
.PP
.BI "void err(int " eval ", const char *" fmt ", ...);"
.BI "void errx(int " eval ", const char *" fmt ", ...);"
.BI "noreturn void err(int " eval ", const char *" fmt ", ...);"
.BI "noreturn void errx(int " eval ", const char *" fmt ", ...);"
.PP
.BI "void warn(const char *" fmt ", ...);"
.BI "void warnx(const char *" fmt ", ...);"
.PP
.B #include <stdarg.h>
.PP
.BI "void verr(int " eval ", const char *" fmt ", va_list " args );
.BI "void verrx(int " eval ", const char *" fmt ", va_list " args );
.BI "noreturn void verr(int " eval ", const char *" fmt ", va_list " args );
.BI "noreturn void verrx(int " eval ", const char *" fmt ", va_list " args );
.PP
.BI "void vwarn(const char *" fmt ", va_list " args );
.BI "void vwarnx(const char *" fmt ", va_list " args );