summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2022-06-29 15:32:04 -0700
committerIan Lance Taylor <iant@golang.org>2022-06-30 12:35:08 -0700
commit762fd5e5547e464e25b4bee435db6df4eda0de90 (patch)
treed8c2430a2b961bb36db967483ee520382cbaae08 /libgo
parent4c233cabbe388a6b8957c1507e129090e9267ceb (diff)
downloadgcc-762fd5e5547e464e25b4bee435db6df4eda0de90.tar.gz
libgo: handle stat st_atim32 field and SYS_SECCOMP
Patches for musl support, from Sören Tempel. Fixes PR go/105225 Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/415294
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/mksysinfo.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/libgo/mksysinfo.sh b/libgo/mksysinfo.sh
index 5aa309155c3..ea1fa17d418 100755
--- a/libgo/mksysinfo.sh
+++ b/libgo/mksysinfo.sh
@@ -127,6 +127,7 @@ fi
# The syscall numbers. We force the names to upper case.
grep '^const _SYS_' gen-sysinfo.go | \
+ grep -v '^const _SYS_SECCOMP = ' | \
sed -e 's/const _\(SYS_[^= ]*\).*$/\1/' | \
while read sys; do
sup=`echo $sys | tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ`
@@ -506,7 +507,7 @@ fi
# For historical reasons Go uses the suffix "timespec" instead of "tim" for
# stat_t's time fields on NetBSD.
-st_times='-e s/st_atim/Atim/ -e s/st_mtim/Mtim/ -e s/st_ctim/Ctim/'
+st_times='-e s/st_atim/Atim/g -e s/st_mtim/Mtim/g -e s/st_ctim/Ctim/g'
if test "${GOOS}" = "netbsd"; then
st_times='-e s/st_atim/Atimespec/ -e s/st_mtim/Mtimespec/ -e s/st_ctim/Ctimespec/'
fi