[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: controlling stdio buffering
From: |
Andreas Schwab |
Subject: |
Re: controlling stdio buffering |
Date: |
Tue, 21 Mar 2006 23:40:35 +0100 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
Pádraig Brady <address@hidden> writes:
> p. p.s. Note glibc changes the buffering automatically for stdout only like:
> if (isatty(fileno(stdout)) setlinebuf(stdout)
> Also it always leaves stdin buffered and stdout unbuffered.
^^^^^^
stderr
> p.p.s. setvbuf(stdin, (char*) NULL, _IOFBF, 12345) is not honoured,
> which is fair enough as buf==NULL.
> However 0 is returned indicating it was honoured?
What do you mean with "not honoured"? The size may be ignored when buf is
NULL.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."