lkml.org 
[lkml]   [1999]   [Jul]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Idea for LD_PRELOAD (retraction)
I wrote:
> The problem with LD_PRELOAD is that it can only replace function
>definitions, rather than "wrap" additional work around functions,

I would like to thank Artur Skawina for pointing out that
this can be done with dlsym(RTLD_NEXT, "symbol") and even include
a sample program, and also Ulrich Drepper for saying that there
was a way to do it with dlsym.

Based on Artur's example, I have made a new release of logwrites
in ftp://ftp.yggdrasil.com/pub/dist/pkg/logwrites-1.21.tar.gz and I
am examining zlibc (the transparent compression intercept library) to
see about making the same stackability changes there. Thanks for the
helpful information.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.181 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site