[PATCH v2] libio: Fix open_memstream fflush (NULL) (BZ#21735)

Adhemerval Zanella adhemerval.zanella@linaro.org
Tue Aug 8 20:47:00 GMT 2017



On 08/08/2017 11:59, Florian Weimer wrote:
> On 08/08/2017 03:43 PM, Adhemerval Zanella wrote:
>> POSIX specifies that the state and size after a fflush on a stream
>> opened by open_memstream should be updated and current implementation
>> does not act accordingly on a fflush (NULL) (meant to act on all opened
>> streams).  This patch fixes it for open_{w}memstream.
> 
> I would like to suggest to wait until this Austin Groups issue has been
> resolved:
> 
>   http://austingroupbugs.net/view.php?id=1156
> 
> Thanks,
> Florian
> 

Fair enough, although the proposed behaviour is what major libc is
following (BSDs and musl, Solaris seems to not have support for
open_memstream).



More information about the Libc-alpha mailing list