]> Cypherpunks repositories - gostls13.git/commit
syscall: wrap fstatat only once on linux/{arm64,riscv64}
authorTobias Klauser <tklauser@distanz.ch>
Tue, 9 Aug 2022 08:18:51 +0000 (10:18 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 9 Aug 2022 12:06:26 +0000 (12:06 +0000)
commitdcf354512a25c1aea3d20efb7c8e3977e70479b6
tree5843de0c8dd4a177c18594ed90b07f7abdfe9d18
parent0f8dffd0aa71ed996d32e77701ac5ec0bc7cde01
syscall: wrap fstatat only once on linux/{arm64,riscv64}

Currently the linux/arm64 and linux/riscv64 ports wrap the fstatat
syscall twice, once in func fstatat and once in func Fstatat. Change the
latter to be a simple wrapper around the former to deduplicate some
code.

Change-Id: I82ec9374e2bcfe116eabf01f021eed1ee810ec15
Reviewed-on: https://go-review.googlesource.com/c/go/+/412934
Reviewed-by: Ian Lance Taylor <iant@google.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/syscall/syscall_linux_arm64.go
src/syscall/syscall_linux_riscv64.go
src/syscall/zsyscall_linux_arm64.go
src/syscall/zsyscall_linux_riscv64.go