diff options
-rw-r--r-- | sys/conf/NOTES | 3 | ||||
-rw-r--r-- | sys/conf/options | 1 | ||||
-rw-r--r-- | sys/dev/dgb/dgb.c | 1 | ||||
-rw-r--r-- | sys/dev/nmdm/nmdm.c | 2 | ||||
-rw-r--r-- | sys/dev/rc/rc.c | 2 | ||||
-rw-r--r-- | sys/dev/si/si.c | 1 | ||||
-rw-r--r-- | sys/i386/isa/istallion.c | 1 | ||||
-rw-r--r-- | sys/i386/isa/stallion.c | 1 | ||||
-rw-r--r-- | sys/kern/tty.c | 1 | ||||
-rw-r--r-- | sys/kern/tty_pty.c | 1 | ||||
-rw-r--r-- | sys/modules/nmdm/Makefile | 5 | ||||
-rw-r--r-- | sys/modules/rc/Makefile | 5 |
12 files changed, 22 insertions, 2 deletions
diff --git a/sys/conf/NOTES b/sys/conf/NOTES index c9a38ac..a6109c4 100644 --- a/sys/conf/NOTES +++ b/sys/conf/NOTES @@ -1038,6 +1038,9 @@ options LIBICONV # Size of the kernel message buffer. Should be N * pagesize. options MSGBUF_SIZE=40960 +# Maximum size of a tty or pty input buffer. +options TTYHOG=8193 + ##################################################################### # HARDWARE DEVICE CONFIGURATION diff --git a/sys/conf/options b/sys/conf/options index e097828..622bc14 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -141,6 +141,7 @@ SYSVSHM opt_sysvipc.h VFS_AIO WLCACHE opt_wavelan.h WLDEBUG opt_wavelan.h +TTYHOG opt_tty.h # POSIX kernel options _KPOSIX_PRIORITY_SCHEDULING opt_posix.h diff --git a/sys/dev/dgb/dgb.c b/sys/dev/dgb/dgb.c index e77e2f1..ef6ba67 100644 --- a/sys/dev/dgb/dgb.c +++ b/sys/dev/dgb/dgb.c @@ -58,6 +58,7 @@ #include "opt_compat.h" #include "opt_dgb.h" +#include "opt_tty.h" #include "dgb.h" diff --git a/sys/dev/nmdm/nmdm.c b/sys/dev/nmdm/nmdm.c index 8f5af46..7b5ec78 100644 --- a/sys/dev/nmdm/nmdm.c +++ b/sys/dev/nmdm/nmdm.c @@ -39,6 +39,8 @@ */ #include "opt_compat.h" +#include "opt_tty.h" + #include <sys/param.h> #include <sys/systm.h> #if defined(COMPAT_43) || defined(COMPAT_SUNOS) diff --git a/sys/dev/rc/rc.c b/sys/dev/rc/rc.c index 07c0c5b..aafb3fd 100644 --- a/sys/dev/rc/rc.c +++ b/sys/dev/rc/rc.c @@ -35,6 +35,8 @@ /*#define RCDEBUG*/ +#include "opt_tty.h" + #include <sys/param.h> #include <sys/systm.h> #include <sys/bus.h> diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c index d96266c..ed79741 100644 --- a/sys/dev/si/si.c +++ b/sys/dev/si/si.c @@ -41,6 +41,7 @@ static const char si_copyright1[] = "@(#) Copyright (C) Specialix International #include "opt_compat.h" #include "opt_debug_si.h" +#include "opt_tty.h" #include <sys/param.h> #include <sys/systm.h> diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index 9397d59..e942772 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -39,6 +39,7 @@ /*****************************************************************************/ #include "opt_compat.h" +#include "opt_tty.h" #define TTYDEFCHARS 1 diff --git a/sys/i386/isa/stallion.c b/sys/i386/isa/stallion.c index 5218547..79cd0ff 100644 --- a/sys/i386/isa/stallion.c +++ b/sys/i386/isa/stallion.c @@ -41,6 +41,7 @@ #define TTYDEFCHARS 1 #include "opt_compat.h" +#include "opt_tty.h" #include <sys/param.h> #include <sys/systm.h> diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 8cbcb65..c0ad4a2 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -76,6 +76,7 @@ */ #include "opt_compat.h" +#include "opt_tty.h" #include <sys/param.h> #include <sys/systm.h> diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index d3ba47a..da408fc 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -39,6 +39,7 @@ * (Actually two drivers, requiring two entries in 'cdevsw') */ #include "opt_compat.h" +#include "opt_tty.h" #include <sys/param.h> #include <sys/systm.h> #include <sys/lock.h> diff --git a/sys/modules/nmdm/Makefile b/sys/modules/nmdm/Makefile index d74b7d3..4982c38 100644 --- a/sys/modules/nmdm/Makefile +++ b/sys/modules/nmdm/Makefile @@ -4,9 +4,12 @@ KMOD= nmdm SRCS= nmdm.c -SRCS+= opt_compat.h vnode_if.h +SRCS+= opt_compat.h opt_tty.h vnode_if.h opt_compat.h: echo "#define COMPAT_43 1" >opt_compat.h +opt_tty.h: + echo "#define TTYHOG 8192" >opt_tty.h + .include <bsd.kmod.mk> diff --git a/sys/modules/rc/Makefile b/sys/modules/rc/Makefile index ffa6163..9cc8f03 100644 --- a/sys/modules/rc/Makefile +++ b/sys/modules/rc/Makefile @@ -3,6 +3,9 @@ .PATH: ${.CURDIR}/../../dev/rc KMOD= rc -SRCS= rc.c device_if.h bus_if.h isa_if.h +SRCS= rc.c device_if.h bus_if.h isa_if.h opt_tty.h + +opt_tty.h: + echo "#define TTYHOG 8192" >opt_tty.h .include <bsd.kmod.mk> |