1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-04 09:09:56 +00:00

Delete the sf (swapfile) arg to an internal function that used to point to

/dev/drum but has not been used for a LONG time.
Add $FreeBSD$
This commit is contained in:
Peter Wemm 1999-10-11 05:01:17 +00:00
parent 105620eaa5
commit 8771870c76
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52117

View File

@ -36,7 +36,12 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
#if 0
static char sccsid[] = "@(#)kvm.c 8.2 (Berkeley) 2/13/94";
#else
static const char rcsid[] =
"$FreeBSD$";
#endif
#endif /* LIBC_SCCS and not lint */
#include <sys/param.h>
@ -162,11 +167,10 @@ _kvm_malloc(kd, n)
}
static kvm_t *
_kvm_open(kd, uf, mf, sf, flag, errout)
_kvm_open(kd, uf, mf, flag, errout)
register kvm_t *kd;
const char *uf;
const char *mf;
const char *sf;
int flag;
char *errout;
{
@ -193,8 +197,6 @@ _kvm_open(kd, uf, mf, sf, flag, errout)
}
if (mf == 0)
mf = _PATH_MEM;
if (sf == 0)
sf = _PATH_DRUM;
if ((kd->pmfd = open(mf, flag, 0)) < 0) {
_kvm_syserr(kd, kd->program, "%s", mf);
@ -276,7 +278,7 @@ kvm_openfiles(uf, mf, sf, flag, errout)
}
memset(kd, 0, sizeof(*kd));
kd->program = 0;
return (_kvm_open(kd, uf, mf, sf, flag, errout));
return (_kvm_open(kd, uf, mf, flag, errout));
}
kvm_t *
@ -297,7 +299,7 @@ kvm_open(uf, mf, sf, flag, errstr)
}
memset(kd, 0, sizeof(*kd));
kd->program = errstr;
return (_kvm_open(kd, uf, mf, sf, flag, NULL));
return (_kvm_open(kd, uf, mf, flag, NULL));
}
int