Print this page
8527 tty buffer/queue sizes should be larger

*** 26,37 **** /* * 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. --- 26,35 ----
*** 104,115 **** static struct module_info ptem_info = { 0xabcd, "ptem", 0, ! 512, ! 512, 128 }; static struct qinit ptemrinit = { (int (*)()) ptemrput, --- 102,113 ---- static struct module_info ptem_info = { 0xabcd, "ptem", 0, ! _TTY_BUFSIZ, ! _TTY_BUFSIZ, 128 }; static struct qinit ptemrinit = { (int (*)()) ptemrput,
*** 199,209 **** } 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_lowat = 256; /* * Cross-link. */ --- 197,207 ---- } 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 = _TTY_BUFSIZ; sop->so_lowat = 256; /* * Cross-link. */
*** 480,490 **** case M_FLUSH: if (*mp->b_rptr & FLUSHW) { if ((ntp->state & IS_PTSTTY) && (*mp->b_rptr & FLUSHBAND)) ! flushband(q, *(mp->b_rptr + 1), FLUSHDATA); else flushq(q, FLUSHDATA); } putnext(q, mp); break; --- 478,489 ---- case M_FLUSH: if (*mp->b_rptr & FLUSHW) { if ((ntp->state & IS_PTSTTY) && (*mp->b_rptr & FLUSHBAND)) ! flushband(q, *(mp->b_rptr + 1), ! FLUSHDATA); else flushq(q, FLUSHDATA); } putnext(q, mp); break;