This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Making getenv more multi-threading--robust?


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]