base: Use strerror_r instead of strerror
As noted by #24344, `strerror` is not necessarily thread-safe. Thankfully, POSIX.1-2001 has long offered `strerror_r`, which is safe to use. Fixes #24344. CLC discussion: https://github.com/haskell/core-libraries-committee/issues/249
Showing
- libraries/base/changelog.md 1 addition, 0 deletionslibraries/base/changelog.md
- libraries/ghc-internal/cbits/strerror.c 29 additions, 0 deletionslibraries/ghc-internal/cbits/strerror.c
- libraries/ghc-internal/configure.ac 6 additions, 0 deletionslibraries/ghc-internal/configure.ac
- libraries/ghc-internal/ghc-internal.cabal 1 addition, 0 deletionslibraries/ghc-internal/ghc-internal.cabal
- libraries/ghc-internal/jsbits/errno.js 1 addition, 1 deletionlibraries/ghc-internal/jsbits/errno.js
- libraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs 27 additions, 3 deletionslibraries/ghc-internal/src/GHC/Internal/Foreign/C/Error.hs
Loading
Please register or sign in to comment