4 ms·
https://musl.libc.org/ https://musl.libc.org/
by cookiengineer 3y ago
https://musl.libc.org/ https://musl.libc.org/
- krackers 3y agoDoesn't musl have the same issue? https://github.com/JuliaLang/julia/issues/34726#issuecomment-584608976 https://github.com/JuliaLang/julia/issues/34726#issuecomment... I also wonder about OSX's libc. Newer versions seem to have some sort of locking https://github.com/apple-open-source-mirror/Libc/blob/master/stdlib/FreeBSD/setenv.c https://github.com/apple-open-source-mirror/Libc/blob/master... but they free pointers so it's not safe from a potential use-after-free client side. but older versions (from 10.9) don't even have any locking: https://github.com/apple-oss-distributions/Libc/blob/Libc-997.90.3/stdlib/FreeBSD/setenv.c https://github.com/apple-oss-distributions/Libc/blob/Libc-99...
- cryptonector 3y agoSolaris/Illumos also has a very nice C library with lots more thread-safety than others, including `getenv()` being thread-safe.