Threading libraries

Hasso Tepper hasso at
Sun Dec 14 10:31:46 PST 2008

Jonas Trollvik wrote:
> Isnt it possible to just implement dummy functions in libc_r that
> returns failure so the application using it can take care of it?

In short - no. If you think about it, it would be insane - to test whether 
platform has some api/function, to use it in the code and deal in runtime 
with the case that platform actually doesn't implement this api/function. 
It just can't work.

In reality autoconf (or something similar) is used to test whether symbol 
exist in library (or define in header etc) and in the code it's assumed 
that a feature behaves like described in standards (or as it does in 
Linux, but that's another issue ;). 

Hasso Tepper

More information about the Kernel mailing list