This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libc question


I'm not sure if this is the right mailing list to ask this, but
hopefully someone will point me in the right direction.

I'm looking into using LD_PRELOAD to track filesystem access and I've
run into a problem.  It seems there are tons of filesystem interface
functions in glibc that do various things, however, many of them (like
mkstemp, mktemp, etc) don't seem to use open. They seem to use __open
instead, an internal function that I can't seem to over-ride in
LD_PRELOAD.  So I'm stuck having to over-ride every function on the
interface layer of glibc. It would be nice to be able to over-ride
__open so that I only have to do the tracking once rather than the
many times for all the functions that call __open internally.

If someone can help me out I would appreciate it greatly.

- David Brown


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]