Print this page
8527 tty buffer/queue sizes should be larger
@@ -26,12 +26,10 @@
/*
* Copyright 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI" /* from S5R4 1.13 */
-
/*
* Description:
*
* The PTEM streams module is used as a pseudo driver emulator. Its purpose
* is to emulate the ioctl() functions of a terminal device driver.
@@ -104,12 +102,12 @@
static struct module_info ptem_info = {
0xabcd,
"ptem",
0,
- 512,
- 512,
+ _TTY_BUFSIZ,
+ _TTY_BUFSIZ,
128
};
static struct qinit ptemrinit = {
(int (*)()) ptemrput,
@@ -199,11 +197,11 @@
}
mop->b_datap->db_type = M_SETOPTS;
mop->b_wptr += sizeof (struct stroptions);
sop = (struct stroptions *)mop->b_rptr;
sop->so_flags = SO_HIWAT | SO_LOWAT | SO_ISTTY;
- sop->so_hiwat = 512;
+ sop->so_hiwat = _TTY_BUFSIZ;
sop->so_lowat = 256;
/*
* Cross-link.
*/
@@ -480,11 +478,12 @@
case M_FLUSH:
if (*mp->b_rptr & FLUSHW) {
if ((ntp->state & IS_PTSTTY) &&
(*mp->b_rptr & FLUSHBAND))
- flushband(q, *(mp->b_rptr + 1), FLUSHDATA);
+ flushband(q, *(mp->b_rptr + 1),
+ FLUSHDATA);
else
flushq(q, FLUSHDATA);
}
putnext(q, mp);
break;