Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jan 2001 12:07:54 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.ORG>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        hackers@FreeBSD.ORG
Subject:   RE: SYSINIT for userland?
Message-ID:  <XFMail.010125120754.jhb@FreeBSD.org>
In-Reply-To: <20010125115253.T26076@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help

On 25-Jan-01 Alfred Perlstein wrote:
> Has anyone done any work for FreeBSD or GNU C that allows for
> SYSINITs in userland, meaning just having to specify a function
> and arg to be called at a certain time during program startup?
> 
> I know you can do some evil magic with overloading special shared
> object symbols, but it is evil magic. :)
> 
> Anyone know of another OS that supports this?  Any standards for
> it on the way?

Use C++ with static instances of classes that have constructors.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.Baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.010125120754.jhb>