This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]