Hi all,
is there an init handler for .so’s. I need to initialize something, if a
process first touches my library.
-Michael
Hi all,
is there an init handler for .so’s. I need to initialize something, if a
process first touches my library.
-Michael
You should be able to use _init() and _fini() to control what happens when
dlopen() and dlclose() are called. Is that what you were looking for?
There’s a very good tutorial on shared libs at
http://www.linux-mag.com/2002-04/compile_01.html
Regards,
David Kuechenmeister
“Michael Tasche” <michael.tasche@esd-electronics.com> wrote in message
news:opru6cbaa5x7hvef@news…
Hi all,
is there an init handler for .so’s. I need to initialize something, if a
process first touches my library.-Michael
On Wed, 10 Sep 2003 13:05:13 -0400, David Kuechenmeister
<david.kuechenmeister@viasat.com> wrote:
You should be able to use _init() and _fini() to control what happens
when
dlopen() and dlclose() are called. Is that what you were looking for?
Yes, if this entries work, when a ddl is loaded implicit without dlopen.
Regards
Michael
There’s a very good tutorial on shared libs at
http://www.linux-mag.com/2002-04/compile_01.htmlRegards,
David Kuechenmeister
“Michael Tasche” <> michael.tasche@esd-electronics.com> > wrote in message
news:opru6cbaa5x7hvef@news…
Hi all,is there an init handler for .so’s. I need to initialize something, if a
process first touches my library.-Michael