On Wed, Mar 29, 2000 at 09:53:22AM +0900, Huang Qiang wrote:
Hi Huang,
>
> 3. no "atoi" but did "ld -r -o mod.o frank_module.o -L/usr/lib -lc"
> insmod failed in sprintf call and linux down, same as before.
> why? after link standard C library, the sprintf call is diffrent
> to 1.?
>
Yes. You may use either sprintf that is exported by your kernel or
sprintf from the library. See man ksyms (display exported kernel
symbols). Kernel's sprintf is less rich e.g. it does not support
floating point format (%f) because double-s are not needed in the
kernel.
> Pavel's project that port libc-2.1.2 functions for linking with RT
> modules seem is the best solution for my problem
>
> Is there any way to do it smart?
>
Not too sure. May be impossible without good understanding of
glibc-2.1.2 functions, not easy. Anyway my ported sprintf works even
for %f.
I agreed with Phil Wilshire to put the ported glibc-2.1.2 on
www.realtimelinux.org after making it a bit more tidy in a couple of
days.
Regards,
pa
--
..........................................................................
Pavel Andris | tel: +421 7 5941 2167
Institute of Control Theory and Robotics | fax: +421 7 5477 6045
Slovak Academy of Sciences |
Dubravska cesta 9 | e-mail: [EMAIL PROTECTED]
SK - 842 37 Bratislava |
Slovakia |
..........................................................................
-- [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/