fmemopen and fseek(fp, 0L, SEEK_END)

Ondřej Bílka neleai@seznam.cz
Thu Jun 5 10:41:00 GMT 2014


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.



More information about the Libc-alpha mailing list