* John Baldwin <[EMAIL PROTECTED]> [010125 12:09] wrote:
>
> 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.
I've got a pretty good idea of how it could be done in C++. Have
a global list that each object adds itself to in sorted order (via
static constructor), the manipulation should be serialized, but
this still isn't a solution for C.
--
-Alfred Perlstein - [[EMAIL PROTECTED]|[EMAIL PROTECTED]]
"I have the heart of a child; I keep it in a jar on my desk."
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message