[Patches] Add option to set stdout to line buffering

Erik Schnetter schnetter at cct.lsu.edu
Sat May 27 23:21:04 CDT 2006


After a suggestion by Jonathan Thornburg, this patch adds a new  
command line option to select the buffering mode of stdout.  The  
option is "-b <mode>", or "-buffering=<mode>", where mode can be  
"no", "line", or "full".  This option uses the ANSI C function call  
setvbuf() to select the corresponding buffering mode.

The buffering mode can be selected only once in a portable programme,  
and it has to be selected before the first output occurs.  This means  
that it has to be implemented in the flesh.

-erik

-- 
Erik Schnetter <schnetter at cct.lsu.edu>

My email is as private as my paper mail.  I therefore support encrypting
and signing email messages.  Get my PGP key from www.keyserver.net.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: setvbuf.diff
Type: application/octet-stream
Size: 7105 bytes
Desc: not available
Url : http://www.cactuscode.org/pipermail/patches/attachments/20060527/5136d89a/attachment.obj 


More information about the Patches mailing list