[PATCH v3 3/3] libio: fmemopen rewrite to POSIX compliance

Rich Felker dalias@libc.org
Mon Oct 20 23:00:00 GMT 2014


On Wed, Jul 02, 2014 at 09:29:36AM -0300, Adhemerval Zanella wrote:
> Hi,
> 
> This is a small update on the previous fmemopen patch I have sent [1].
> the change is basically:
> 
> * 'w' mode does not truncate the buffer, only 'w+'
> 
> I also rebased against master to adjust NEWS file.

Are you aware of the issues raised here?

http://www.austingroupbugs.net/view.php?id=657

While you're changing the behavior, it would be nice to resolve this
issue too. POSIX currently specifies some nonsense with regard to how
null termination happens for "w" mode, and it doesn't match the
current glibc behavior.

Rich



More information about the Libc-alpha mailing list