Posted By: Xofon (Xof) on 'CZunix'
Title: Re: buffer stdout streamu
Date: Sun Sep 30 18:34:34 2007
> asked Perl explicitly to flush after each write). STDOUT will
> typically be line buffered if output is to the terminal and
> block buffered otherwise...
Bych si jen dovolil misto nejakeho perlu nabidnout autoritativnejsi
zdroj, dokumentaci glibc. (Ktera teda rika vicemene totez.)
There are three different kinds of buffering strategies:
* Characters written to or read from an "unbuffered" stream are
transmitted individually to or from the file as soon as possible.
* Characters written to a "line buffered" stream are transmitted to
the file in blocks when a newline character is encountered.
* Characters written to or read from a "fully buffered" stream are
transmitted to or from the file in blocks of arbitrary size.
Newly opened streams are normally fully buffered, with one
exception: a stream connected to an interactive device such as a
terminal is initially line buffered.
> snake
Xof
:wq