aboutsummaryrefslogtreecommitdiff
path: root/contrib/libxo/libxo/xo_err.3
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libxo/libxo/xo_err.3')
-rw-r--r--contrib/libxo/libxo/xo_err.323
1 files changed, 15 insertions, 8 deletions
diff --git a/contrib/libxo/libxo/xo_err.3 b/contrib/libxo/libxo/xo_err.3
index 2445aa70f652..5584309f3bf0 100644
--- a/contrib/libxo/libxo/xo_err.3
+++ b/contrib/libxo/libxo/xo_err.3
@@ -7,7 +7,7 @@
.\" # LICENSE.
.\" # Phil Shafer, July 2014
.\"
-.Dd July, 2014
+.Dd December 4, 2014
.Dt LIBXO 3
.Os
.Sh NAME
@@ -45,32 +45,38 @@ Many programs make use of the standard library functions
and
.Xr warn 3
to generate errors and warnings for the user.
-.Em libxo
+.Nm libxo
wants to
pass that information via the current output style, and provides
compatible functions to allow this.
.Pp
These functions display the program name, a colon, a formatted message
based on the arguments, and then optionally a colon and an error
-message associated with either "errno" or the "code" parameter.
+message associated with either
+.Fa errno
+or the
+.Fa code
+parameter.
.Bd -literal -offset indent
EXAMPLE:
if (open(filename, O_RDONLY) < 0)
xo_err(1, "cannot open file '%s'", filename);
.Ed
.Sh ADDITIONAL DOCUMENTATION
-.Pp
Complete documentation can be found on github:
.Bd -literal -offset indent
http://juniper.github.io/libxo/libxo-manual.html
.Ed
.Pp
-libxo lives on github as:
+.Nm libxo
+lives on github as:
.Bd -literal -offset indent
https://github.com/Juniper/libxo
.Ed
.Pp
-The latest release of libxo is available at:
+The latest release of
+.Nm libxo
+is available at:
.Bd -literal -offset indent
https://github.com/Juniper/libxo/releases
.Ed
@@ -78,7 +84,8 @@ https://github.com/Juniper/libxo/releases
.Xr xo_emit 3
.Sh HISTORY
The
-.Fa libxo
-library was added in FreeBSD 11.0.
+.Nm libxo
+library was added in
+.Fx 11.0 .
.Sh AUTHOR
Phil Shafer