diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-20 20:20:44 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2009-06-20 20:20:44 +0000 |
commit | a005f0130e8155f01a706f61d4362109cd47bc21 (patch) | |
tree | e9d231ebbb7b02b67b0036fe7ba33ea730aa3e24 /lib/libkvm/kvm_private.h | |
parent | 4402975a348938d8cad34341962b18854da39d93 (diff) |
Move KREAD define to kvm_private.h
Diffstat (limited to 'lib/libkvm/kvm_private.h')
-rw-r--r-- | lib/libkvm/kvm_private.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_private.h b/lib/libkvm/kvm_private.h index d0b11ff0513..8c402320f21 100644 --- a/lib/libkvm/kvm_private.h +++ b/lib/libkvm/kvm_private.h @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm_private.h,v 1.13 2009/06/20 19:50:05 millert Exp $ */ +/* $OpenBSD: kvm_private.h,v 1.14 2009/06/20 20:20:43 millert Exp $ */ /* $NetBSD: kvm_private.h,v 1.7 1996/05/05 04:32:15 gwr Exp $ */ /*- @@ -86,6 +86,9 @@ struct __kvm { #define ISALIVE(kd) ((kd)->alive) }; +#define KREAD(kd, addr, obj) \ + (kvm_read(kd, addr, (void *)(obj), sizeof(*obj)) != sizeof(*obj)) + /* * Functions used internally by kvm, but across kvm modules. */ |