> 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.