4.4BSD snapshot (revision 8.1); add 1993 to copyright
[unix-history] / usr / src / usr.bin / systat / fetch.c
/*-
* Copyright (c) 1980, 1992, 1993
* The Regents of the University of California. All rights reserved.
*
* %sccs.include.redist.c%
*/
#ifndef lint
static char sccsid[] = "@(#)fetch.c 8.1 (Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#include "systat.h"
#include "extern.h"
int
kvm_ckread(a, b, l)
void *a, *b;
int l;
{
if (kvm_read(kd, (u_long)a, b, l) != l) {
if (verbose)
error("error reading kmem at %x\n", a);
return (0);
}
else
return (1);
}