syscall, runtime: always call XSI strerror_r
commitb6c6a3d64f2e4e9347733290aca3c75898c44b2e
authorIan Lance Taylor <iant@golang.org>
Tue, 29 Nov 2022 23:31:39 +0000 (29 15:31 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 30 Nov 2022 00:09:13 +0000 (29 16:09 -0800)
treec3f37a1483d0e780eaf20715c4c565612b883ffb
parent3832c6f7e672e76bba74a508bf3a49740ea38046
syscall, runtime: always call XSI strerror_r

This does the right thing for either glibc or musl on GNU/Linux.

Based on patch by Sören Tempel.

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/454176
gcc/go/gofrontend/MERGE
libgo/Makefile.am
libgo/Makefile.in
libgo/go/syscall/errstr.go
libgo/go/syscall/errstr_glibc.go [deleted file]
libgo/runtime/go-strerror.c [new file with mode: 0644]