summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/sysctl.323
-rw-r--r--sbin/sysctl/sysctl.85
2 files changed, 24 insertions, 4 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 619ae73da11..e73708369f7 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.130 2004/02/01 18:24:57 jmc Exp $
+.\" $OpenBSD: sysctl.3,v 1.131 2004/02/10 20:23:49 millert Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -842,12 +842,15 @@ privileges may change the value.
.It Dv KERN_TTY_TKNIN No " int64_t no"
.It Dv KERN_TTY_TKNOUT No " int64_t no"
.It Dv KERN_TTY_TKRAWCC No " int64_t no"
+.It Dv KERN_TTY_INFO No " struct itty no"
+.It Dv KERN_TTY_MAXPYTS No " integer yes"
+.It Dv KERN_TTY_NPYTS No " integer yes"
.El
.Pp
The variables are as follows:
.Bl -tag -width "123456"
.It Dv KERN_TTY_TKCANCC
-Return the number of input characters in canonical mode.
+Returns the number of input characters in canonical mode.
.It Dv KERN_TTY_TKNIN
Returns the number of input characters from a
.Xr tty 4 .
@@ -855,7 +858,21 @@ Returns the number of input characters from a
Returns the number of output characters on a
.Xr tty 4 .
.It Dv KERN_TTY_TKRAWCC
-Return the number of input characters in raw mode.
+Returns the number of input characters in raw mode.
+.It Dv KERN_TTY_INFO
+Returns an array of
+.Li struct itty
+structures containing tty statistics.
+.It Dv KERN_TTY_MAXPTYS
+The maximum number of
+.Xr pty 4
+devices supported by the kernel.
+This is the upper bound on
+.Dv KERN_TTY_NPTYS .
+.It Dv KERN_TTY_NPTYS
+The current number of
+.Xr pty 4
+devices allocated by the kernel.
.El
.It Dv KERN_TTYCOUNT
Number of available
diff --git a/sbin/sysctl/sysctl.8 b/sbin/sysctl/sysctl.8
index 21c7cb2784b..9a2e828629c 100644
--- a/sbin/sysctl/sysctl.8
+++ b/sbin/sysctl/sysctl.8
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.8,v 1.116 2004/02/02 05:25:56 jmc Exp $
+.\" $OpenBSD: sysctl.8,v 1.117 2004/02/10 20:23:48 millert Exp $
.\" $NetBSD: sysctl.8,v 1.4 1995/09/30 07:12:49 thorpej Exp $
.\"
.\" Copyright (c) 1993
@@ -142,6 +142,9 @@ privilege can change the value.
.It kern.tty.tk_nout int64_t no
.It kern.tty.tk_rawcc int64_t no
.It kern.tty.tk_cancc int64_t no
+.It kern.tty.ttyinfo struct no
+.It kern.tty.maxptys integer yes
+.It kern.tty.nptys integer yes
.It kern.ccpu u_int no
.It kern.fscale integer no
.It kern.nprocs integer no