DragonFly BSD
DragonFly commits List (threaded) for 2004-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: cvs commit: src/bin/cat


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 7 Nov 2004 15:39:04 -0800 (PST)

: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@xxxxxxxxxxxxx>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]