summaryrefslogtreecommitdiffstats
path: root/include/kvm.h
diff options
context:
space:
mode:
authoravsm <avsm@openbsd.org>2003-08-01 17:38:33 +0000
committeravsm <avsm@openbsd.org>2003-08-01 17:38:33 +0000
commit89b95c1c6ce2753bf90589b3c2c7f8be8010fad2 (patch)
tree1bd89fd6b221da04e42bebc98d6b5cc15cd8e9ea /include/kvm.h
parentwhen the -R option (read-only) is specified, there is no need to print (diff)
downloadwireguard-openbsd-89b95c1c6ce2753bf90589b3c2c7f8be8010fad2.tar.xz
wireguard-openbsd-89b95c1c6ce2753bf90589b3c2c7f8be8010fad2.zip
add __bounded__ attributes for userland headers; enabled with -Wbounded
ok deraadt@
Diffstat (limited to 'include/kvm.h')
-rw-r--r--include/kvm.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/kvm.h b/include/kvm.h
index e31923069b2..4f729d50d8a 100644
--- a/include/kvm.h
+++ b/include/kvm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm.h,v 1.8 2003/06/26 19:34:17 avsm Exp $ */
+/* $OpenBSD: kvm.h,v 1.9 2003/08/01 17:38:33 avsm Exp $ */
/* $NetBSD: kvm.h,v 1.7 1996/04/19 12:02:50 leo Exp $ */
/*-
@@ -70,8 +70,10 @@ 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 *);
-ssize_t kvm_read(kvm_t *, u_long, void *, size_t);
-ssize_t kvm_write(kvm_t *, u_long, const void *, size_t);
+ssize_t kvm_read(kvm_t *, u_long, void *, size_t)
+ __attribute__((__bounded__(__buffer__,3,4)));
+ssize_t kvm_write(kvm_t *, u_long, const void *, size_t)
+ __attribute__((__bounded__(__buffer__,3,4)));
__END_DECLS