summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-08 23:35:36 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2002-06-08 23:35:36 +0000
commitd29f1a3602686e269e65510be34d2b65609891a0 (patch)
treee0e4c28720003ebf47afde6a87a48d7fb9baa89e
parente669f0cb2e92a795a334ade722ce11f7e0f5b3c2 (diff)
TTYCOUNT and NUMVNODES.
-rw-r--r--sys/kern/kern_sysctl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index cb8eb0613ee..092e8c88b65 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.67 2002/06/08 23:17:22 angelos Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.68 2002/06/08 23:35:35 angelos Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -88,6 +88,7 @@ extern struct nchstats nchstats;
extern int nselcoll, fscale;
extern struct disklist_head disklist;
extern fixpt_t ccpu;
+extern long numvnodes;
int sysctl_diskinit(int, struct proc *);
int sysctl_proc_args(int *, u_int, void *, size_t *, struct proc *);
@@ -278,6 +279,10 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
return (sysctl_int(oldp, oldlenp, newp, newlen, &maxfiles));
case KERN_NFILES:
return (sysctl_rdint(oldp, oldlenp, newp, nfiles));
+ case KERN_TTYCOUNT:
+ return (sysctl_rdint(oldp, oldlenp, newp, tty_count));
+ case KERN_NUMVNODES:
+ return (sysctl_rdint(oldp, oldlenp, newp, numvnodes));
case KERN_ARGMAX:
return (sysctl_rdint(oldp, oldlenp, newp, ARG_MAX));
case KERN_NSELCOLL: