[MPlayer-dev-eng] PATCH: disable stdin buffer when reading from stdin

D Richard Felker III dalias at aerifal.cx
Mon Apr 29 16:46:30 CEST 2002


On Mon, Apr 29, 2002 at 11:04:13AM +0200, Fredrik Kuivinen wrote:
> On Fri, Apr 26, 2002 at 04:50:36PM +0200, Arpi wrote:
> > 2. is it portable to all currently supported os? looks like lowlevel tty
> > manipulation stuff, liek in getch2.c, one of the most difficult-to-port
> > files
> 
> According to setvbuf(3) setvbuf is in ANSI C.

Yes, it's definitely portable. setvbuf only deals with the buffering
in the FILE structure used by ANSI io functions, not the POSIX stuff
(read/write/open/etc). Perhaps the latter should be used for reading
data from stdin instead anyway, though...?

Rich




More information about the MPlayer-dev-eng mailing list