summaryrefslogtreecommitdiff
path: root/include/kvm.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:39:57 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-09-14 22:39:57 +0000
commit213b2ba7391e806ea026e45486233da58aa641e6 (patch)
tree848c9009860a309cb7bc8ffc0d54933685c9e9a2 /include/kvm.h
parent05921119d5c75ef8cfcc6703e458b03739890c40 (diff)
KVM_NO_FILES is 0x80000000, so arg 4 of kvm_openfiles() must be unsigned
int instead of int; millert ok
Diffstat (limited to 'include/kvm.h')
-rw-r--r--include/kvm.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/kvm.h b/include/kvm.h
index 1f5db078e06..0afdb2d9f1f 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.h,v 1.11 2004/01/22 21:48:02 espie Exp $ */
+/* $OpenBSD: kvm.h,v 1.12 2004/09/14 22:39:56 deraadt Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@@ -71,10 +71,9 @@ struct kinfo_proc *
struct kinfo_proc2 *
kvm_getproc2(kvm_t *, int, int, size_t, int *);
int kvm_nlist(kvm_t *, struct nlist *);
-kvm_t *kvm_open
-(const char *, const char *, const char *, int, const char *);
-kvm_t *kvm_openfiles
-(const char *, const char *, const char *, int, char *);
+kvm_t *kvm_open(const char *, const char *, const char *, int, const char *);
+kvm_t *kvm_openfiles(const char *, const char *, const char *,
+ unsigned int, char *);
ssize_t kvm_read(kvm_t *, unsigned long, void *, size_t)
__attribute__((__bounded__(__buffer__,3,4)));
ssize_t kvm_write(kvm_t *, unsigned long, const void *, size_t)