mailing list of musl libc
 help / color / mirror / code / Atom feed
* getenv_r
@ 2015-03-04 23:09 William Ahern
  2015-03-05  0:41 ` getenv_r Szabolcs Nagy
  0 siblings, 1 reply; 5+ messages in thread
From: William Ahern @ 2015-03-04 23:09 UTC (permalink / raw)
  To: musl

I noticed that getenv is not thread-safe. Would there be any interest in
accepting a patch to implement getenv_r (a NetBSD function) and internal
locking? Other than leaving getenv, setenv, and putenv unsafe in threaded
environments, the only other alternative is the ugliness that glibc,
Solaris, and some others implement, which is basically to leak environ
memory.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-03-05  8:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-04 23:09 getenv_r William Ahern
2015-03-05  0:41 ` getenv_r Szabolcs Nagy
2015-03-05  1:34   ` getenv_r William Ahern
2015-03-05  2:44     ` getenv_r Rich Felker
2015-03-05  8:59     ` getenv_r Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).