Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 21 Nov 2019 18:31:02 +0000
From: y38h5z@...tonmail.com
To: "musl@...ts.openwall.com" <musl@...ts.openwall.com>
Subject: non-standard implementation of fflush()

Hello everyone,

the implementation of fflush() in musl doesn't seem to conform to the opengroup standard:

https://pubs.opengroup.org/onlinepubs/009695399/functions/fflush.html

In addition to flushing unwritten data, which is expected, musl flushes the read buffer when calling fflush(). This leads to data loss in bidirectional communication uses. Other standard libraries don't do this.

As a reference compare musl to openbsd's libc:

https://git.musl-libc.org/cgit/musl/tree/src/stdio/fflush.c
https://github.com/openbsd/src/blob/master/lib/libc/stdio/fflush.c

I think this is unexpected behavior and should be changed.

Greetings,
  Michael
Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.