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 c9a38ac0b89e3..a6109c40ee5ef 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 e097828b9336b..622bc14d99d81 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 e77e2f1ca1966..ef6ba67e87b04 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 8f5af4636df2a..7b5ec78ea5211 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 07c0c5b913c79..aafb3fda68f3b 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 d96266ce069eb..ed79741a6c3f5 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 9397d593e9cde..e94277299a2ec 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 52185478ea3c6..79cd0ff5b418a 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 8cbcb656b490b..c0ad4a293a836 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 d3ba47ab959ef..da408fc1e64ec 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 d74b7d3d6ac76..4982c382a45f3 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 ffa6163afa833..9cc8f03065522 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> |
