summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-06-03 04:37:58 +0000
committerangelos <angelos@openbsd.org>2001-06-03 04:37:58 +0000
commit97cdfcba116802f732542e0910d4271697795d31 (patch)
treec63427731f45139103de101a37e720965ba38aec
parentUse sysctl to get process information, if kvm has not been initialized (diff)
downloadwireguard-openbsd-97cdfcba116802f732542e0910d4271697795d31.tar.xz
wireguard-openbsd-97cdfcba116802f732542e0910d4271697795d31.zip
KERN_NPROCS
-rw-r--r--sys/sys/sysctl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h
index fab71a52cda..c4ad6959c2b 100644
--- a/sys/sys/sysctl.h
+++ b/sys/sys/sysctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sysctl.h,v 1.38 2001/06/03 03:52:12 angelos Exp $ */
+/* $OpenBSD: sysctl.h,v 1.39 2001/06/03 04:37:58 angelos Exp $ */
/* $NetBSD: sysctl.h,v 1.16 1996/04/09 20:55:36 cgd Exp $ */
/*
@@ -160,7 +160,8 @@ struct ctlname {
#define KERN_TTY 44 /* node: tty information */
#define KERN_CCPU 45 /* int: ccpu */
#define KERN_FSCALE 46 /* int: fscale */
-#define KERN_MAXID 47 /* number of valid kern ids */
+#define KERN_NPROCS 47 /* int: number of processes */
+#define KERN_MAXID 48 /* number of valid kern ids */
#define CTL_KERN_NAMES { \
{ 0, 0 }, \
@@ -210,6 +211,7 @@ struct ctlname {
{ "tty", CTLTYPE_NODE }, \
{ "ccpu", CTLTYPE_INT }, \
{ "fscale", CTLTYPE_INT }, \
+ { "nprocs", CTLTYPE_INT }, \
}
/*