[plug] kernel programming
Shayne O'Neill
shayne at guild.murdoch.edu.au
Wed Mar 24 00:14:38 WST 2004
clib stuff etc isnt available in kernel.
You can think of your codes interaction with the kernel like this.
code.c - > c lib headers - > c library - > kernel.
so the problem is , if you stick code.c in the kernel, the c lib headers
are on the wrong side of the c library!
Solution: Not use any includes!!!!! ( I know. its pretty drastic! But
thats life).
Also, I wouldnt expect any c++ to be usefull in kernel code. Its just the
wrong planet altogether :(
------------------------------------
"Must not Sleep! Must warn others!"
-Aesop.
Shayne O'Neill. Indymedia. Fun.
http://www.perthimc.asn.au
On Tue, 23 Mar 2004, Parag Nemade wrote:
> hello friends,
> i want to modify kernel source code by adding my own C
> files in net protocol stack but i found that some C
> functions are not supported by kernel include
> directory that is fopen is not found in any of header
> files. what can i do? Also while compiling my own C
> files with kernel files i got warnings that implicit
> declaration of function and function declaration isn't
> a prototype how can i solve it?
> Parag.
>
> ________________________________________________________________________
> Yahoo! India Insurance Special: Be informed on the best policies, services, tools and more.
> Go to: http://in.insurance.yahoo.com/licspecial/index.html
> _______________________________________________
> PLUG discussion list: plug at plug.linux.org.au
> http://mail.plug.linux.org.au/cgi-bin/mailman/listinfo/plug
> Committee e-mail: committee at plug.linux.org.au
>
More information about the plug
mailing list