unix: use the stat64 family and fix Stat_t on linux/sparc64 The glibc and kernel stat structures differ on sparc64, as they already do on mips64: glibc puts st_ino at offset 16 and st_nlink at 28, the kernel's struct stat64 puts them at 8 and 16. Stat_t was generated from glibc's, so the raw syscalls filled it at the wrong offsets. Updates golang/go#55000 Change-Id: Ic8b8820e6e9c9b497bce6444021c75ef9b3ae750 GitHub-Last-Rev: 9fb44b953c17001f427f5cc6e4d476ae2c6a49dc GitHub-Pull-Request: golang/sys#290 Reviewed-on: https://go-review.googlesource.com/c/sys/+/822904 Reviewed-by: Michael Pratt <mpratt@google.com> Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Kirill Kolyshkin <kolyshkin@gmail.com> Auto-Submit: Ian Lance Taylor <iant@golang.org> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Junyang Shao <shaojunyang@google.com>
This repository holds supplemental Go packages for low-level interactions with the operating system.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://go.dev/doc/contribute.
The git repository is https://go.googlesource.com/sys.
The main issue tracker for the sys repository is located at https://go.dev/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.