Unix Programming - Re: C and C++ global variable difference(s)

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > June 2004 > Re: C and C++ global variable difference(s)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: C and C++ global variable difference(s)
Jan Engelhardt

2004-06-26, 10:10 am

>Anyhow, as in C are no constructors, there is probably no support for
>running them for global objects in kernelspace. Also, how about some
>details about when exactly the kernel freezes?


At least for GNU C, there is
void __attribute__((constructor)) run_at_startup(void) {
...
}

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com