[JDEV] Scripting/Modules/Rant
Anders Qvist
quest at netg.se
Mon Aug 16 17:22:02 CDT 1999
On Fri, 13 Aug 1999 arh14 at cornell.edu wrote:
> On Thu, 12 Aug 1999, Jon A. Cruz wrote:
>
> > arh14 at cornell.edu wrote:
> >
> > > On Wed, 11 Aug 1999, Aaron Brady (insomnike) wrote:
> > >
> > > > And example of how procedures are run from a .so file:
> > > >
> > > > void main(void) {
> > > > void *phoe = dlopen ("mod_filetrans.so", RTLD_LAZY);
> > > > int (*funk)(int) = dlsym(phoe, "handle_prefs");
> > > > printf ("[%d]\n", (*funk)(1));
> > > > dlclose(phoe);
> > > > }
[snip]
Can you use the *function* handle after closing handle to .so?
Anders "Quest" Qvist
NetGuide Scandinavia
And we who listen to the sky, or walk the dusty grade,
Or break the very atoms down, to see how they are made,
Or study cells, or living things, seek truth with open hand;
The profoundest act of worship is to try to understand.
-- Catherine Faber, "The Word of God"
More information about the JDev
mailing list