Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 Aug 2000 13:52:11 +0100
From:      Karl Pielorz <kpielorz@tdx.co.uk>
To:        Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
Cc:        hackers@FreeBSD.ORG
Subject:   Re: LD_PRELOAD odities / Documentation?
Message-ID:  <398ABC7B.8322EE58@tdx.co.uk>
References:  <39894897.79E14398@tdx.co.uk> <20000803234951.B267@frolic.no-support.loc>

next in thread | previous in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?398ABC7B.8322EE58>