Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Wrappers for shared library functions?
@ 1997-03-05  5:00 john hall
  1997-03-06  5:00 ` john hall
  1997-03-11  5:00 ` Craig Neth USG
  0 siblings, 2 replies; 5+ messages in thread
From: john hall @ 1997-03-05  5:00 UTC (permalink / raw)



I would be very grateful for any advice on how to create "wrappers" for
one or two functions in large shared libraries, such that a calling 
program will invoke the wrapper function which in turn calls the original
function to do the majority of the "work". 

The replumbing should ideally be entirely transparent both to the 
calling program and to the shared library functions at run time.

The wrapper could be used for monitoring usage and possibly "tweaking"
the parameters supplied by the calling program or the results returned
by a library function.

It seems possible that by creating a library of wrappers dependent
on the "real" shared library and with a bit of renaming that the 
wrappers could be interposed between the calling program and the "real"
functions.

However I am unclear on how to provide the calling program
with access to all the "real" shared library functions without
having to write wrappers for all (maybe lots) of them - and then, 
what about other symbols exported from the "real" library such as 
external variables which may be referenced in a main program?

Thanks for any advice on this.

john hall
jhall@netcomuk.co.uk



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1997-03-13  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-03-05  5:00 Wrappers for shared library functions? john hall
1997-03-06  5:00 ` john hall
1997-03-06  5:00   ` Curt Smith
1997-03-11  5:00 ` Craig Neth USG
1997-03-13  5:00   ` john hall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox