Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: john hall <jhall@netcomuk.co.uk>
Subject: Wrappers for shared library functions?
Date: 1997/03/05	[thread overview]
Message-ID: <331D5BCE.5329@netcomuk.co.uk> (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



             reply	other threads:[~1997-03-05  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-03-05  5:00 john hall [this message]
1997-03-06  5:00 ` Wrappers for shared library functions? john hall
1997-03-06  5:00   ` Curt Smith
1997-03-11  5:00 ` Craig Neth USG
1997-03-13  5:00   ` john hall
read-only archive

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