]> Cypherpunks.ru repositories - gostls13.git/commitdiff
syscall: use SYS_SETRLIMIT in //sysnb setrlimit1 on linux/arm64
authorTobias Klauser <tklauser@distanz.ch>
Tue, 12 Sep 2023 09:46:25 +0000 (11:46 +0200)
committerGopher Robot <gobot@golang.org>
Wed, 13 Sep 2023 18:29:13 +0000 (18:29 +0000)
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>
src/syscall/syscall_linux_arm64.go

index 56b492e810bff0c3966e47eb0f989966b866fcb1..48067e22ddcb9104da5a5bc4d53574ded6881c0e 100644 (file)
@@ -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)