Bug#162576: marked as done (libc6-dev: errno is a function call in non-threaded program)
Herbert Xu <herbert@gondor.apana.org.au> writes:
> Florian Weimer <Weimer@cert.uni-stuttgart.de> wrote:
>>
>> The slowdown is a price to be paid, otherwise we would need a
>> different set of almost all shared libraries for linking with
>> multi-threading programs. I think we already had this situation, and
>> it wasn't nice at all.
>
> No you don't, all you need to do is to make the errno macro
> conditional.
And if we do that, libraries which use the non-macro version will come
into existence sooner or later, and we lose.
--
Florian Weimer Weimer@CERT.Uni-Stuttgart.DE
University of Stuttgart http://CERT.Uni-Stuttgart.DE/people/fw/
RUS-CERT fax +49-711-685-5898
Reply to: