Re: glibc question?
Michael Meskes <meskes@debian.org> writes:
> Also I wonder how do you implement function overloading with glibc 2.1? I
> have a library that implements a new unlink() call. No problem LD_PRELOADing
> this. But how do I access the real unlink() call with this setup?
Have a look at the fakeroot package. It looks like it basically does
it by saying something like:
int retval, (*fptr)(const char *);
fptr = (int (*)(const char *)) dlsym(RTLD_NEXT, "unlink");
retval = (*fptr)("filename");
--
Carey Evans http://home.clear.net.nz/pages/c.evans/
"Try explaining a syn-ack-fin-rst scan to a dialup provider abuse drone. You
can almost hear the belt slip off the brain drive shaft." - Strange in asr
Reply to: