On Mon, Jun 18, 2012 at 02:59:56AM +0200, Bruno Haible wrote: > For 2), the issue is that for a stream opened in write-only mode, > immediately after the fopen() call, gnulib expects fwriting(fp) to be > true:
Thanks. I committed a change whereby __freading now returns 1 whenever the stream is read-only or read mode is active (even if the buffer is empty), and likewise __fwriting returns 1 whenever the stream is write-only or write mode is active (even if the buffer is empty). Hopefully this covers everything gnulib cares about. Rich