Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jul 1996 19:24:20 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        ache@nagual.ru, bde@zeta.org.au
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-usrbin@freefall.freebsd.org, j@uriah.heep.sax.de, jmz@freefall.freebsd.org
Subject:   Re: cvs commit:  src/usr.bin/fetch main.c
Message-ID:  <199607020924.TAA03124@godzilla.zeta.org.au>

index | next in thread | raw e-mail

>> Perhaps because setvbuf() only applies to output buffering 8-).

>It work for input too, but somehow strange.

Oops.

>If you call fread(100) and use setvbuf(8192),
>it attempts to read(8192) (for empty buffer)

getc() works right.  fread() is specified as reading all the items
unless EOF or an error occurs.

Bruce


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199607020924.TAA03124>