Search Results

Search: Posts Made By: Edward114
Forum: Programming 03-27-2011
3,203
Posted By Edward114
Why must flush all line-buffered output streams?
Hi,
Mentioned in Stevens & Rago "Advanced Programming in the UNIX"


I don't understand why must flush all line-buffered output streams when (a)an unbuffered or (b)a line-buffered stream require...
3,851
Posted By Edward114
Hi Ksrivani: is that you want? while ps |...
Hi Ksrivani:
is that you want?

while ps | grep "pwctest" > /dev/null
do
sleep 30m
done

echo "The pwctest was quitted" | mail Tech
4,825
Posted By Edward114
I just found out the work of input buffer in...
I just found out the work of input buffer in glibc2.2.5.
At std input, like fgetc(), that finally call the __read() in fillbuf().

fillbuf (register FILE *fp)
{
......
if (fp->__buffer ==...
4,825
Posted By Edward114
Discussion on buffering of standard I/O library
Hi,
There are three type of buffering: Fully buffered,line buffered,and unbuffered. The goal of the buffering provided by the standard I/O library is to use the minimum number of read and write...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy