1 /* 2 * Copyright (c) 1980 Regents of the University of California. 3 * All rights reserved. The Berkeley software License Agreement 4 * specifies the terms and conditions for redistribution. 5 */ 6 7 #ifndef lint 8 static char sccsid[] = "@(#)fetch.c 5.5 (Berkeley) 06/26/91"; 9 #endif not lint 10 11 #include "systat.h" 12 13 kvm_ckread(a, b, l) 14 void *a, *b; 15 int l; 16 { 17 extern int verbose; 18 19 if (kvm_read(a, b, l) != l) { 20 if (verbose) 21 error("error reading kmem at %x\n", a); 22 return (0); 23 } 24 else 25 return (1); 26 } 27