bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Overriding *fprintf with an LD_PRELOAD


From: emilong
Subject: Overriding *fprintf with an LD_PRELOAD
Date: Mon, 26 Jul 2004 06:26:31 -0700
User-agent: Mutt/1.5.6i

Hi,

I'm trying to do some simple logging with an LD_PRELOAD library.  I'd like
to intercept all the reads and writes done by a program.  However,
I'm running into trouble with vfprintf -- it refuses to be overridden.
I had hoped that overriding write/write64 would take care of this case,
but I see that all the internal glibc writes are done via __write.
I tried overriding vfprintf and _IO_vfprintf, but was unsuccessful.
Can anyone point me in the right direction to intercept vfprintf?

Thank you,
Emil Ong




reply via email to

[Prev in Thread] Current Thread [Next in Thread]