Re:C stdlib isn't threadsafe and even safe Rust didn't save us
by throwaway2037 on Thursday January 23, 2025 @05:22AM
(#42802611)
Someone above mentioned getenv_r(). I needed to Google about it. It is not impl'd by GNU GLibC (that I know). I do see it on NetBSD: https://man.netbsd.org/getenv_r.3
It looks useful.