Making getenv more multi-threading--robust?

Richard Henderson rth@twiddle.net
Thu Sep 13 17:15:00 GMT 2012


On 09/13/2012 10:03 AM, Roland McGrath wrote:
> Put the definition of the lock in getenv.c, so that when linking
> statically, using getenv does not force setenv to be linked in.

Also, make sure that the declaration of the lock is marked hidden,
so that you don't incur an extra got entry.


r~



More information about the Libc-alpha mailing list