[comp.unix.questions] Increase serial line buffer

ycy@walt.cc.utexas.edu (Joseph Yip) (03/07/90)

Recently, I saw a question about increasing the serial line buffer
(input & output buffer). I think the default size is 256 bytes.

Can anyone tell me the way to do it?

I am using a Sun 4 (SunOs 4.0.3).

Thanks

Joseph

guy@auspex.auspex.com (Guy Harris) (03/08/90)

>Can anyone tell me the way to do it?

You get the source to ".../sys/sundev/zs_async.c", change ZSIBUFSZ from
256 to some larger value, change the indices into the software silo from
"u_char" to some data type large enough to hold the new maximum value,
and add code after the code that bumps the indices to take them modulo
ZSIBUFSZ when they overflow ZSIBUFSZ.

Is the buffer overflowing (as indicated by "zsN: ring buffer overflow"
messages)?