Re: fflush(NULL) and mem streams (fmemopen(), open_*memstream())

2019-01-12 Thread Robert Elz
Date:Sat, 12 Jan 2019 17:42:18 +0100 From:Rhialto Message-ID: <20190112164218.gh2...@falu.nl> | When I saw this, my first reaction was "What does it even *mean* to | flush a memory stream!? They don't have a buffer, they *are* the | buffer!" That is an implemen

Re: fflush(NULL) and mem streams (fmemopen(), open_*memstream())

2019-01-12 Thread Rhialto
On Sat 12 Jan 2019 at 08:03:38 +0700, Robert Elz wrote: > An issue was recently dealt with wrt the POSIX spec, in respose to > a question whether fflush(NULL) is required to flush memory streams, > or only ones backed by files. When I saw this, my first reaction was "What does it even *mean* to fl

fflush(NULL) and mem streams (fmemopen(), open_*memstream())

2019-01-11 Thread Robert Elz
An issue was recently dealt with wrt the POSIX spec, in respose to a question whether fflush(NULL) is required to flush memory streams, or only ones backed by files. The response was to (plan to) change the wording to not require memory streams be flushed on fflush(NULL). That was until it was po