Hi Raul,

You can't use these standard functions.  Even though they are
subroutines, they may need to trap to the kernel to call malloc, read
etc.  This will not work reliably within the realtime environment.

Your best bet is to look at the kernel stdio type functions, and
re-write them to be rt safe (e.g no kernel service calls that can
block).

Regards, Stuart

Raul wrote:
> 
> hi there
> I have noticed that some of functions from the header
> file stdio.h need to be renamed in order to use them
> within the rtl kernel. Thus, printf() becomes
> rtl_printf() and so on.  But what about the rest?. I
> cannot load a module that uses for instance sscanf()
> and fprintf(). As far as I have seen there is no
> equivalent of these functions for rtl.
> Is there a way I could get around this problem? Could
> I somehow load those functions on the kernel and
> afterwards load my program?
> thanks a lot for your help
> RAul
> 
> ____________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
> -- [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/rtlinux/
-- [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/rtlinux/

Reply via email to