fopencookie problem in glibc 2.3.5?

Arkadiusz Miskiewicz arekm@pld-linux.org
Mon Apr 11 19:10:00 GMT 2005


On Friday 08 of April 2005 15:37, Arkadiusz Miskiewicz wrote:
> Hi,
>
> On glibc 2.3.5 (Linux 2.6.11, ppc32, x86) I'm getting different behaviour
> than on 2.3.4 when using fopencookie. Example program attached.

> static int myseek(void* myhandle, fpos_t* position, int whence)
> {
>   return fseek((FILE*)myhandle, *(unsigned int*)position, whence);
> }

Of course it doesn't work even if myseek is fixed (return 0/-1 and place new 
position in position). Looks like something got broken in glibc 2.3.5.

-- 
Arkadiusz Miśkiewicz                    PLD/Linux Team
http://www.t17.ds.pwr.wroc.pl/~misiek/  http://ftp.pld-linux.org/



More information about the Libc-alpha mailing list