On Wed, Dec 19, 2001 at 08:06:20PM +0100, Maxime Henrion wrote:
> Bernd Walter wrote:
> > How can I add initalisation code to a library without needing to
> > call a function in the using application?
> > What I saw is that libc does something like this but havn't found
> > the starting point of this.
> 
> There are two special functions for that : _init() which will be called
> when the object is loaded, and _fini() which will be called when it is
> released.

I can see that symbol defined in libc.so.5 but no reference in the libc
source code.
All I see are several *_init functions.
Are they all called from within an autocreated _init function?
If yes in which order?

-- 
B.Walter              COSMO-Project         http://www.cosmo-project.de
[EMAIL PROTECTED]         Usergroup           [EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to