"Chris Gerhard" <Chris.Gerhard@remove_this.sun.com> wrote in message
news:ctqaov$p2q$1@new-usenet.uk.sun.com...
> Dan Koren wrote:
> > I would like to find out if there is a
> > mechanism that would allow a shared
> > library to initialize itself upon
> > loading (not upon first call to
> > one of its ebtry points).
>
> > Any advice or pointers would be
> > greatly appreciated.
>
> You are after the initialization routine. See:
>
> http://docs.sun.com/app/docs/doc/817...chapter2-48195
>
Thanks for the pointer.
This does not seem to be what I'm looking for however.
The examples on the page you pointed me to illustrate
init and fini routines that are invoked as a result of
running a program. What I'm looking for is a method of
loading and initializing a shared library upon loading,
regardless of any program being run that might use it
(and not waiting for this to happen).
Thx,
dk