Bjoern Fischer wrote:
 
> To wrap libc functions you have to use dlsym() with the special
> handle RTLD_NEXT to get the next incarnation of your function.
> E.g. you want to wrap fchmod(), so write your own fchmod() and
> after you `corrected' the params you may have to call the `real'
> fchmod(). You will get this with dlsym(RTLD_NEXT, "fchmod").

Thanks! - That fixed it... Linux doesn't have such a handle (and seems to work
fine without it)... I hadn't strayed enough through the man page for dlsym to
notice the difference...

Regards,

Karl


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to