DragonFly kernel List (threaded) for 2008-12
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: Threading libraries
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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]