]> Cypherpunks repositories - gostls13.git/commit
syscall, internal/syscall/unix: fix fstatat on linux/mips64
authorDamien Neil <dneil@google.com>
Tue, 3 Dec 2024 20:22:49 +0000 (12:22 -0800)
committerDamien Neil <dneil@google.com>
Tue, 17 Dec 2024 18:04:38 +0000 (10:04 -0800)
commit4ac8f552e95521d292cc18ccc546739d41283b31
tree3d8d42ff0d95a0bee336683d20aef1d179469fef
parent236a0b4ffb79854546b9f437499092cec23a5725
syscall, internal/syscall/unix: fix fstatat on linux/mips64

On linux/mips64, the syscall.Stat_t struct does not match the
kernel version of the struct. Functions that operate on a Stat_t
translate between it and the kernel struct.

The fstatat function was not doing this translation.
Make it do so.

Export a syscall.Fstatat on mips64 for usage by
internal/syscall/unix. Perhaps we should just do this on all
architectures, but this is the smaller change for now.

Fixes #70659

Change-Id: I38e36473689be25861953b418c9abc5b270a7bcf
Reviewed-on: https://go-review.googlesource.com/c/go/+/633280
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/internal/syscall/unix/at_fstatat.go
src/internal/syscall/unix/at_fstatat2.go
src/syscall/syscall_linux_mips64x.go
src/syscall/zsyscall_linux_mips64.go
src/syscall/zsyscall_linux_mips64le.go