summaryrefslogtreecommitdiffstats
path: root/lib/libkvm
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1994-09-24 00:08:43 +0000
committerwollman <wollman@FreeBSD.org>1994-09-24 00:08:43 +0000
commit193a8fae68d5a51a2dad17c0ee77db1a6d60cb98 (patch)
tree435e4d2e36ec5a88d5e2af12354bfba8fc5f8bf9 /lib/libkvm
parent89231ffae79ba79bfb400864fb59db987a7d58c7 (diff)
downloadFreeBSD-src-193a8fae68d5a51a2dad17c0ee77db1a6d60cb98.zip
FreeBSD-src-193a8fae68d5a51a2dad17c0ee77db1a6d60cb98.tar.gz
Get rid of _PATH_UNIX completely; use getbootfile(3) instead.
DANGER WILL ROBINSON! _PATH_UNIX is currently defined as the literal string "don't use this". I am of two minds about this myself, but wanted to get something into the tree as quickly as possible.
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm.c2
-rw-r--r--lib/libkvm/kvm_open.35
2 files changed, 3 insertions, 4 deletions
diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c
index 56ab485..b8d342b 100644
--- a/lib/libkvm/kvm.c
+++ b/lib/libkvm/kvm.c
@@ -182,7 +182,7 @@ _kvm_open(kd, uf, mf, sf, flag, errout)
kd->argv = 0;
if (uf == 0)
- uf = _PATH_UNIX;
+ uf = getbootfile();
else if (strlen(uf) >= MAXPATHLEN) {
_kvm_err(kd, kd->program, "exec file name too long");
goto failed;
diff --git a/lib/libkvm/kvm_open.3 b/lib/libkvm/kvm_open.3
index dd6895b..7e604a1 100644
--- a/lib/libkvm/kvm_open.3
+++ b/lib/libkvm/kvm_open.3
@@ -70,9 +70,8 @@ This file must contain a symbol table.
If this argument is
.Dv NULL ,
the currently running system is assumed,
-which is indicated by
-.Dv _PATH_UNIX
-in <paths.h>.
+as determined from
+.Xr getbootfile 3 .
.Pp
.Fa corefile
is the kernel memory device file. It can be either /dev/mem
OpenPOWER on IntegriCloud