On Monday 11 June 2001 17:50, Jan Albiez wrote:
> Hello !
>
> Up to now it had never been a problem using some maths in RT space. I alwas
> just linked libm.a statical to my kernel mod and that was it. Since I don't
> use very komplex math, only sine, cosine, exp, arc* I never made a fuss
> about it. My glibc version 2.1.3 now wnats to do a standard error output
> for some functions where a reange check is performed (like asin). Now I am
> in big trouble since insmod cries for unresolved function, fputs and
> stderr.
>
> My question is: Has anybody found out how to turn the default output to
> stderr from libm of ?? I really don't need this facillity since I avery
> carefully check all operands before calling this function !
If you're worried about performance, you should probably compile a version of
libm without the error output, and preferably without the checking, as you're
already doing it yourself. You may have to hack the libm source to do that;
not sure. (There could be some useful build options...)
Another solution could be to just provide dummies for fputs() and stderr.
Unless you're linking in other code that uses stderr, your dummy fputs()
should be the only function to ever do anything with the "global" (to your
module; make it "static" to avoid polluting the kernel symbol table) stderr
handle/pointer/<whatever>, so you may use it for anything you find useful, or
just ignore it's value.
//David Olofson --- Programmer, Reologica Instruments AB
.- M A I A -------------------------------------------------.
| Multimedia Application Integration Architecture |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
----- End of forwarded message from [EMAIL PROTECTED] -----
-- [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/