Date: Tue, 2 Jul 1996 12:15:31 +0400 (MSD) From: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) <ache@nagual.ru> To: bde@zeta.org.au (Bruce Evans) Cc: j@uriah.heep.sax.de, jmz@freefall.freebsd.org, CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org Subject: Re: cvs commit: src/usr.bin/fetch main.c Message-ID: <199607020815.MAA00507@nagual.ru> In-Reply-To: <199607020726.RAA31605@godzilla.zeta.org.au> from "Bruce Evans" at "Jul 2, 96 05:26:22 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> >If all your concern is avoiding input buffering, why have you never > >considered doing The Right Thing and using setvbuf(3)? > > Perhaps because setvbuf() only applies to output buffering 8-). It work for input too, but somehow strange. If you call fread(100) and use setvbuf(8192), it attempts to read(8192) (for empty buffer) which can cause strange effect (input waiting on the net) even if you know read length exactly. -- Andrey A. Chernov <ache@nagual.ru> http://www.nagual.ru/~ache/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607020815.MAA00507>
