summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>1999-02-26 04:09:47 +0000
committerart <art@openbsd.org>1999-02-26 04:09:47 +0000
commit5d72cda4709d8099e3195f3c37634fd5788116ea (patch)
tree90a778b4eb7d1bbc5faf8f82a1096c824e6e097a
parentMerge from the Ericsson repository (diff)
downloadwireguard-openbsd-5d72cda4709d8099e3195f3c37634fd5788116ea.tar.xz
wireguard-openbsd-5d72cda4709d8099e3195f3c37634fd5788116ea.zip
vm_sysctl -> uvm_sysctl for uvm
-rw-r--r--sys/compat/common/kern_info_43.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/compat/common/kern_info_43.c b/sys/compat/common/kern_info_43.c
index e54026eddda..dae4b926ebf 100644
--- a/sys/compat/common/kern_info_43.c
+++ b/sys/compat/common/kern_info_43.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_info_43.c,v 1.8 1998/02/22 22:00:11 niklas Exp $ */
+/* $OpenBSD: kern_info_43.c,v 1.9 1999/02/26 04:09:47 art Exp $ */
/* $NetBSD: kern_info_43.c,v 1.5 1996/02/04 02:02:22 christos Exp $ */
/*
@@ -246,13 +246,21 @@ compat_43_sys_getkerninfo(p, v, retval)
case KINFO_METER:
name[0] = VM_METER;
error =
+#if defined(UVM)
+ uvm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p);
+#else
vm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p);
+#endif
break;
case KINFO_LOADAVG:
name[0] = VM_LOADAVG;
error =
+#if defined(UVM)
+ uvm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p);
+#else
vm_sysctl(name, 1, SCARG(uap, where), &size, NULL, 0, p);
+#endif
break;
case KINFO_CLOCKRATE: