Re: KLD module with C++ iostreams ?

2005-04-21 Thread Dag-Erling Smørgrav
Aziz KEZZOU [EMAIL PROTECTED] writes: I am wondering if I can use c++ iostreams inside the kernel ? After all the code : cout Hello world! endl; ends accessing the stdout just like : printf(Hello world!\n); right ? There is no stdio in the kernel. So if I could compile my KLD module with

Re: KLD module with C++ iostreams ?

2005-04-21 Thread Aziz KEZZOU
David Leimbach wrote: Interesting question. People usually have to implement the C++ runtime to be usable from within the kernel. Things like exceptions and stdout may not be defined in kernel space :) I'm not terribly familiar with how it works on FreeBSD but I know it took a

KLD module with C++ iostreams ?

2005-04-20 Thread Aziz KEZZOU
Hi hackers, I am wondering if I can use c++ iostreams inside the kernel ? After all the code : cout Hello world! endl; ends accessing the stdout just like : printf(Hello world!\n); right ? So if I could compile my KLD module with static linkage to libstdc++, that should be ok, right ? Any one

Re: KLD module with C++ iostreams ?

2005-04-20 Thread David Leimbach
Interesting question. People usually have to implement the C++ runtime to be usable from within the kernel. Things like exceptions and stdout may not be defined in kernel space :) I'm not terribly familiar with how it works on FreeBSD but I know it took a special effort to get C++ support into

Re: KLD module with C++ iostreams ?

2005-04-20 Thread Chuck Robey
David Leimbach wrote: Interesting question. People usually have to implement the C++ runtime to be usable from within the kernel. Things like exceptions and stdout may not be defined in kernel space :) I'm not terribly familiar with how it works on FreeBSD but I know it took a special effort to

Re: KLD module with C++ iostreams ?

2005-04-20 Thread M. Warner Losh
In message: [EMAIL PROTECTED] Aziz KEZZOU [EMAIL PROTECTED] writes: : Hi hackers, : I am wondering if I can use c++ iostreams inside the kernel ? : After all the code : cout Hello world! endl; : ends accessing the stdout just like : printf(Hello world!\n); right ? Just like, yes.