Commit | Line | Data |
---|---|---|
07ed1e09 KM |
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 | ||
be172dde | 7 | #ifndef lint |
142cb8a1 | 8 | static char sccsid[] = "@(#)fetch.c 5.5 (Berkeley) %G%"; |
07ed1e09 | 9 | #endif not lint |
be172dde SL |
10 | |
11 | #include "systat.h" | |
12 | ||
142cb8a1 MT |
13 | kvm_ckread(a, b, l) |
14 | void *a, *b; | |
15 | int l; | |
be172dde | 16 | { |
142cb8a1 MT |
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); | |
be172dde | 26 | } |