aboutsummaryrefslogtreecommitdiff
path: root/src/syscall
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2023-09-12 11:46:25 +0200
committerGopher Robot <gobot@golang.org>2023-09-13 18:29:13 +0000
commit65c407b405376efd2fc7cae243ac1df3991d35a0 (patch)
treeedd8d04aebbf1c89c773892605efb654123219d1 /src/syscall
parent105f9d51691d996c1698811ca3906b505639f49b (diff)
downloadgo-65c407b405376efd2fc7cae243ac1df3991d35a0.tar.xz
syscall: use SYS_SETRLIMIT in //sysnb setrlimit1 on linux/arm64
Otherwise the setrlimit1 wrapper would be generated using the inexistent SYS_GETRLIMIT1 syscall number. This was likely missed in CL 476097. For #476097 Change-Id: I5cfa2ebacb58aeeaddd3db3639a45cf368fbe0ab Reviewed-on: https://go-review.googlesource.com/c/go/+/527555 Reviewed-by: Bryan Mills <bcmills@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/syscall')
-rw-r--r--src/syscall/syscall_linux_arm64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syscall/syscall_linux_arm64.go b/src/syscall/syscall_linux_arm64.go
index 56b492e810..48067e22dd 100644
--- a/src/syscall/syscall_linux_arm64.go
+++ b/src/syscall/syscall_linux_arm64.go
@@ -37,7 +37,7 @@ func Fstatat(fd int, path string, stat *Stat_t, flags int) error {
//sys sendfile(outfd int, infd int, offset *int64, count int) (written int, err error)
//sys Setfsgid(gid int) (err error)
//sys Setfsuid(uid int) (err error)
-//sysnb setrlimit1(resource int, rlim *Rlimit) (err error)
+//sysnb setrlimit1(resource int, rlim *Rlimit) (err error) = SYS_SETRLIMIT
//sys Shutdown(fd int, how int) (err error)
//sys Splice(rfd int, roff *int64, wfd int, woff *int64, len int, flags int) (n int64, err error)