This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v3 3/3] libio: fmemopen rewrite to POSIX compliance
- From: Rich Felker <dalias at libc dot org>
- To: libc-alpha at sourceware dot org
- Date: Mon, 20 Oct 2014 19:00:41 -0400
- Subject: Re: [PATCH v3 3/3] libio: fmemopen rewrite to POSIX compliance
- Authentication-results: sourceware.org; auth=none
- References: <53B3FB30 dot 6010201 at linux dot vnet dot ibm dot com>
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