From 4be4929c2b4d34e3b3fe776a16b448b428012e5d Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Sat, 24 Sep 1994 00:08:43 +0000 Subject: 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. --- lib/libkvm/kvm.c | 2 +- lib/libkvm/kvm_open.3 | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/libkvm') diff --git a/lib/libkvm/kvm.c b/lib/libkvm/kvm.c index 56ab485fb364..b8d342b0e753 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 dd6895b417d4..7e604a150b92 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 . +as determined from +.Xr getbootfile 3 . .Pp .Fa corefile is the kernel memory device file. It can be either /dev/mem -- cgit v1.3