News for hackers. Stuff that matters.
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It by eptcyka on Monday November 20, 2023 @11:57AM (#38350478)
There is no safe way to access the environment, even if you mark this API unsafe, what are you going to do?
Re:Setenv Is Not Thread Safe and C Doesn't Want to Fix It by bbatha on Monday November 20, 2023 @03:13PM (#38353942)
You can safely access the environment so long as you use the rust apis and don't have unsafe code that calls `setenv` without synchronization.