]> git.ipfire.org Git - thirdparty/man-pages.git/blobdiff - man3/err.3
user_namespaces.7: Minor rewordings of recently added text
[thirdparty/man-pages.git] / man3 / err.3
index e8ccc865dc8e97ed4a3e25b8abcf57b0a27d5a6f..d163b64920fabc0e11b32a8f57a820310c91a20e 100644 (file)
 .\"
 .\" 2011-09-10, mtk, Converted from mdoc to man macros
 .\"
-.TH ERR 3 2015-05-07 "Linux" "Linux Programmer's Manual"
+.TH ERR 3 2017-09-15 "Linux" "Linux Programmer's Manual"
 .SH NAME
 err, verr, errx, verrx, warn, vwarn, warnx, vwarnx \- formatted error messages
 .SH SYNOPSIS
 .nf
 .B #include <err.h>
-.sp
+.PP
 .BI "void err(int " eval ", const char *" fmt ", ...);"
-.sp
+.PP
 .BI "void errx(int " eval ", const char *" fmt ", ...);"
-.sp
+.PP
 .BI "void warn(const char *" fmt ", ...);"
-.sp
+.PP
 .BI "void warnx(const char *" fmt ", ...);"
-.sp
+
 .B #include <stdarg.h>
-.sp
+.PP
 .BI "void verr(int " eval ", const char *" fmt ", va_list " args );
-.sp
+.PP
 .BI "void verrx(int " eval ", const char *" fmt ", va_list " args );
-.sp
+.PP
 .BI "void vwarn(const char *" fmt ", va_list " args );
-.sp
+.PP
 .BI "void vwarnx(const char *" fmt ", va_list " args );
 .fi
 .SH DESCRIPTION
@@ -128,7 +128,7 @@ T{
 .BR vwarnx ()
 T}     Thread safety   MT-Safe locale
 .TE
-
+.sp 1
 .SH CONFORMING TO
 These functions are nonstandard BSD extensions.
 .\" .SH HISTORY
@@ -142,31 +142,31 @@ These functions are nonstandard BSD extensions.
 Display the current
 .I errno
 information string and exit:
+.PP
 .in +4n
-.nf
-
+.EX
 p = malloc(size);
 if (p == NULL)
     err(1, NULL);
 fd = open(file_name, O_RDONLY, 0);
 if (fd == \-1)
     err(1, "%s", file_name);
-.fi
+.EE
 .in
 .PP
 Display an error message and exit:
+.PP
 .in +4n
-.nf
-
+.EX
 if (tm.tm_hour < START_TIME)
     errx(1, "too early, wait until %s", start_time_string);
-.fi
+.EE
 .in
 .PP
 Warn of an error:
+.PP
 .in +4n
-.nf
-
+.EX
 fd = open(raw_device, O_RDONLY, 0);
 if (fd == \-1)
     warnx("%s: %s: trying the block device",
@@ -174,7 +174,7 @@ if (fd == \-1)
 fd = open(block_device, O_RDONLY, 0);
 if (fd == \-1)
     err(1, "%s", block_device);
-.fi
+.EE
 .in
 .SH SEE ALSO
 .BR error (3),