bug-gnulib
[Top][All Lists]
Advanced

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

Re: seekable stdin test failure on OS X


From: Eric Blake-1
Subject: Re: seekable stdin test failure on OS X
Date: Mon, 2 Apr 2007 10:15:51 -0700 (PDT)

> Even on Linux, the fflush man page doesn't mention input streams:
> 
>    http://www.die.net/doc/linux/man/man3/fflush.3.html
> 
> So it seems that using fflush(stdin) is probably the wrong thing
> to do altogether for a portable application.

On the contrary, it makes it sound like we write a gnulib module
that implements POSIX semantics of fflush, which creates a
function rpl_fflush that calls fpurge or __fpurge under the hood
when the regular fflush is broken on input streams; then portable
applications can assume POSIX semantics for fflush.

-- 
Eric Blake

-- 
View this message in context: 
http://www.nabble.com/Re%3A-seekable-stdin-test-failure-on-OS-X-tf3505729.html#a9794974
Sent from the Gnulib mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]