This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Making getenv more multi-threading--robust?
- From: Richard Henderson <rth at twiddle dot net>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: Stephan Bergmann <sbergman at redhat dot com>, libc-alpha at sourceware dot org
- Date: Thu, 13 Sep 2012 10:15:01 -0700
- Subject: Re: Making getenv more multi-threading--robust?
- References: <5051BBEF.4080401@redhat.com> <20120913170350.E17A42C0CE@topped-with-meat.com>
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~