On Thursday 21 February 2002 05:55 am, you wrote: > Hi, > > I'm having problems compiling RTLinux modules, when I use some functions. > I have no problems when just use typical rtl functions, like related to > threads, timers, etc. However, when I try to use other functions, like for > example 'socket' (including sys/socket.h) it does not compile and give me > some errors in the included .h files. > I've tried to remove all references to the rtl in the code and remove in > the Makefile the 'include rtl.mk' file, and all functions compile with no > problems. > Hi Carlos,
I believe the reason for your problem is simple: you cannot use most of the "normal" C library or system calls within RTLinux, because you are within the kernel, and not in user space. This is a topic that comes up periodically, and there are ways to bring in functions you need, but only some of them. If you go to the linux source tree and type "make psdocs" or "make pdfdocs" in the Documentation directory, you should end up with a bunch of docbooks, including kernel-api.pdf. This will give you (very short) manpages for the functions available within the kernel. More generally, you need to do only the absolute minimum of work inside the kernel, and let your user-space code do as much work as possible. You transfer data to user-space via fifos or shared memory. Good luck, Pablo Alvarez -- [rtl] --- To unsubscribe: echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED] -- For more information on Real-Time Linux see: http://www.rtlinux.org/