diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 10:51:52 +0000 |
commit | 4ad94864781f48b1a4b77f9cfb934622bf756ba1 (patch) | |
tree | 3900955c1886e6d2570fea7125ee1f01bafe876d /upstream/debian-unstable/man3/err.3 | |
parent | Adding upstream version 4.22.0. (diff) | |
download | manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.tar.xz manpages-l10n-4ad94864781f48b1a4b77f9cfb934622bf756ba1.zip |
Adding upstream version 4.23.0.upstream/4.23.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'upstream/debian-unstable/man3/err.3')
-rw-r--r-- | upstream/debian-unstable/man3/err.3 | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/upstream/debian-unstable/man3/err.3 b/upstream/debian-unstable/man3/err.3 index 87f45a32..ef1ae408 100644 --- a/upstream/debian-unstable/man3/err.3 +++ b/upstream/debian-unstable/man3/err.3 @@ -9,7 +9,7 @@ .\" .\" 2011-09-10, mtk, Converted from mdoc to man macros .\" -.TH err 3 2023-07-20 "Linux man-pages 6.05.01" +.TH err 3 2024-05-02 "Linux man-pages 6.8" .SH NAME err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages .SH LIBRARY @@ -18,18 +18,18 @@ Standard C library .SH SYNOPSIS .nf .B #include <err.h> -.PP +.P .BI "[[noreturn]] void err(int " eval ", const char *" fmt ", ...);" .BI "[[noreturn]] void errx(int " eval ", const char *" fmt ", ...);" -.PP +.P .BI "void warn(const char *" fmt ", ...);" .BI "void warnx(const char *" fmt ", ...);" -.PP +.P .B #include <stdarg.h> -.PP +.P .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 +.P .BI "void vwarn(const char *" fmt ", va_list " args ); .BI "void vwarnx(const char *" fmt ", va_list " args ); .fi @@ -48,7 +48,7 @@ argument is not NULL, the .BR printf (3)-like formatted error message is output. The output is terminated by a newline character. -.PP +.P The .BR err (), .BR verr (), @@ -63,13 +63,13 @@ preceded by another colon and space unless the .I fmt argument is NULL. -.PP +.P The .BR errx () and .BR warnx () functions do not append an error message. -.PP +.P The .BR err (), .BR verr (), @@ -99,7 +99,6 @@ T{ .BR vwarnx () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS BSD. .SH HISTORY @@ -112,7 +111,7 @@ BSD. Display the current .I errno information string and exit: -.PP +.P .in +4n .EX p = malloc(size); @@ -123,9 +122,9 @@ if (fd == \-1) err(EXIT_FAILURE, "%s", file_name); .EE .in -.PP +.P Display an error message and exit: -.PP +.P .in +4n .EX if (tm.tm_hour < START_TIME) @@ -133,9 +132,9 @@ if (tm.tm_hour < START_TIME) start_time_string); .EE .in -.PP +.P Warn of an error: -.PP +.P .in +4n .EX fd = open(raw_device, O_RDONLY, 0); |