summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2013-08-14 08:39:24 +0000
committerjmc <jmc@openbsd.org>2013-08-14 08:39:24 +0000
commit720a7a94e09f2fa9b3979870e0f199a15d3a66d3 (patch)
tree5567e8f2aba2c28a136428138dfd3a19c60604e1 /lib/libkvm
parentno longer any need to quote macro lines with >9 args; (diff)
downloadwireguard-openbsd-720a7a94e09f2fa9b3979870e0f199a15d3a66d3.tar.xz
wireguard-openbsd-720a7a94e09f2fa9b3979870e0f199a15d3a66d3.zip
some Bx/Ox conversion;
From: Jan Stary
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm.312
-rw-r--r--lib/libkvm/kvm_open.312
2 files changed, 16 insertions, 8 deletions
diff --git a/lib/libkvm/kvm.3 b/lib/libkvm/kvm.3
index dfeffec876a..c101f72721b 100644
--- a/lib/libkvm/kvm.3
+++ b/lib/libkvm/kvm.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kvm.3,v 1.8 2011/08/18 13:01:26 jmc Exp $
+.\" $OpenBSD: kvm.3,v 1.9 2013/08/14 08:39:25 jmc Exp $
.\" $NetBSD: kvm.3,v 1.2 1996/03/18 22:33:11 thorpej Exp $
.\"
.\" Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
.\"
.\" @(#)kvm.3 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: August 18 2011 $
+.Dd $Mdocdate: August 14 2013 $
.Dt KVM 3
.Os
.Sh NAME
@@ -81,7 +81,9 @@ Accordingly, the generic portion of the interface (i.e.,
.Fn kvm_write ,
and
.Fn kvm_nlist )
-has been incorporated into the BSD interface.
+has been incorporated into the
+.Bx
+interface.
Indeed, many kvm
applications (i.e., debuggers and statistical monitors) use only
this subset of the interface.
@@ -95,7 +97,9 @@ Finally, the Sun kvm error reporting semantics are poorly defined.
The library can be configured either to print errors to stderr automatically,
or to print no error messages at all.
In the latter case, the nature of the error cannot be determined.
-To overcome this, the BSD interface includes a
+To overcome this, the
+.Bx
+interface includes a
routine,
.Xr kvm_geterr 3 ,
to return (not print out) the error message
diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3
index 0309847df4c..b597eca9849 100644
--- a/lib/libkvm/kvm_open.3
+++ b/lib/libkvm/kvm_open.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: kvm_open.3,v 1.15 2013/06/05 03:40:26 tedu Exp $
+.\" $OpenBSD: kvm_open.3,v 1.16 2013/08/14 08:39:25 jmc Exp $
.\" $NetBSD: kvm_open.3,v 1.2 1996/03/18 22:33:52 thorpej Exp $
.\"
.\" Copyright (c) 1992, 1993
@@ -34,7 +34,7 @@
.\"
.\" @(#)kvm_open.3 8.3 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: June 5 2013 $
+.Dd $Mdocdate: August 14 2013 $
.Dt KVM_OPEN 3
.Os
.Sh NAME
@@ -142,7 +142,9 @@ call.
.Pp
The
.Fn kvm_openfiles
-function provides BSD style error reporting.
+function provides
+.Bx
+style error reporting.
Here, error messages are not printed out by the library.
Instead, the application obtains the error message
corresponding to the most recent kvm library call using
@@ -195,4 +197,6 @@ function returns 0 on success and \-1 on failure.
.Sh BUGS
There should not be two open calls.
The ill-defined error semantics of the Sun library and the desire to have
-a backward-compatible library for BSD left little choice.
+a backward-compatible library for
+.Bx
+left little choice.