4 ms·
Agree. We have strerror_r -- why not add getenv_r?
by theamk 10y ago
Agree. We have strerror_r -- why not add getenv_r?
- quotemstr 10y agoI'd go write a getenv_r myself right now, but my gut feeling is that the glibc people would reject the patch on the basis that POSIX says that getenv is unsafe, we get along without a getenv_r, and therefore we don't need a getenv_r. This is why we can't have nice things.
- alyandon 10y agoI don't know why you are getting downvotes. Someone tried to propose a getenv_r implementation for glibc in 2007 and even submitted a patch - which was rejected by a certain someone that is pretty famous for not wanting "bsd crap" in glibc. https://sourceware.org/bugzilla/show_bug.cgi?id=4350 https://sourceware.org/bugzilla/show_bug.cgi?id=4350