summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorangelos <angelos@openbsd.org>2001-05-14 07:07:14 +0000
committerangelos <angelos@openbsd.org>2001-05-14 07:07:14 +0000
commit83eb069d55ce7ffcd8e107d2cb42663925edbad0 (patch)
treea02462d6d6b6566b304bec6b67682c84531b1bc5
parentExternal variable disk_change. (diff)
downloadwireguard-openbsd-83eb069d55ce7ffcd8e107d2cb42663925edbad0.tar.xz
wireguard-openbsd-83eb069d55ce7ffcd8e107d2cb42663925edbad0.zip
KERN_TTY sysctl
-rw-r--r--sys/sys/tty.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/sys/tty.h b/sys/sys/tty.h
index b611311f944..10569b1493c 100644
--- a/sys/sys/tty.h
+++ b/sys/sys/tty.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.h,v 1.8 2001/03/01 20:54:35 provos Exp $ */
+/* $OpenBSD: tty.h,v 1.9 2001/05/14 07:07:14 angelos Exp $ */
/* $NetBSD: tty.h,v 1.30.4.1 1996/06/02 09:08:13 mrg Exp $ */
/*-
@@ -46,6 +46,20 @@
#include <sys/select.h> /* For struct selinfo. */
#include <sys/timeout.h>
+#define KERN_TTY_TKNIN 1 /* quad: input chars */
+#define KERN_TTY_TKNOUT 2 /* quad: output chars */
+#define KERN_TTY_TKRAWCC 3 /* quad: input chars, raw mode */
+#define KERN_TTY_TKCANCC 4 /* quad: input char, cooked mode */
+#define KERN_TTY_MAXID 5
+
+#define CTL_KERN_TTY_NAMES { \
+ { 0, 0 }, \
+ { "tk_nin", CTLTYPE_QUAD }, \
+ { "tk_nout", CTLTYPE_QUAD }, \
+ { "tk_rawcc", CTLTYPE_QUAD }, \
+ { "tk_cancc", CTLTYPE_QUAD }, \
+}
+
#ifndef REAL_CLISTS
/*
* Clists are actually ring buffers. The c_cc, c_cf, c_cl fields have
@@ -209,6 +223,8 @@ extern struct ttychars ttydefaults;
/* Symbolic sleep message strings. */
extern char ttyin[], ttyout[], ttopen[], ttclos[], ttybg[], ttybuf[];
+int sysctl_tty __P((int *, u_int, void *, size_t *, void *, size_t));
+
int b_to_q __P((u_char *cp, int cc, struct clist *q));
void catq __P((struct clist *from, struct clist *to));
void clist_init __P((void));