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: fmemopen and fseek(fp, 0L, SEEK_END)


On Wed, Jun 04, 2014 at 03:06:48PM -0300, Adhemerval Zanella wrote:
> Hi Pietro,
> 
> Thanks for raising this up.  I think since was state in comments from the bz6544,
> some programs may expect current behavior.  I think for such cases the simple
> patch propose in bug report can not be used, but rather we should provide a new
> versioned symbol to change its behavior while still providing old way.
> 
> One way I see it is to create a new fmemopen_seek (or parametrize it, since it is
> static anyway) symbol with different SEEK_END logic and a tie it with the new 
> fmemopen symbol.
> 
> However since this is not POSIX compliant, we may also just correct it directly.
> I'm not sure which is the default position of GLIBC community for such cases.
> Any ideas?
> 
> 
I have a patch for that, what was missing is versioning, I will resend
it.


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