cvs commit: src/bin/cat

Matthew Dillon dillon at apollo.backplane.com
Sun Nov 7 15:39:23 PST 2004


:But there is only one descriptor to stat -- stdout. Cat always writes to 
:  stdout, and as per POSIX stdout is never closed and reopened. 
:Shouldn't fstat therefore always return the same value? Or, do you mean 
:you want to optimize the code for the input buffer instead of the output 
:buffer?
:
:- Jason

    Sorry, I wasn't clear.  I meant that we really should be fstat()ing
    rfd as well as stdout and base the blocksize calculation on both.
    Right, stdout only needs to be fstat'd once.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list