summaryrefslogtreecommitdiffstats
path: root/vendor/modernc.org/libc/libc_linux_arm64.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/modernc.org/libc/libc_linux_arm64.go')
-rw-r--r--vendor/modernc.org/libc/libc_linux_arm64.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/vendor/modernc.org/libc/libc_linux_arm64.go b/vendor/modernc.org/libc/libc_linux_arm64.go
index b8607c9c..1b83364e 100644
--- a/vendor/modernc.org/libc/libc_linux_arm64.go
+++ b/vendor/modernc.org/libc/libc_linux_arm64.go
@@ -437,3 +437,13 @@ func Xutime(t *TLS, filename, times uintptr) int32 {
func Xalarm(t *TLS, seconds uint32) uint32 {
panic(todo(""))
}
+
+// int setrlimit(int resource, const struct rlimit *rlim);
+func Xsetrlimit64(t *TLS, resource int32, rlim uintptr) int32 {
+ if _, _, err := unix.Syscall(unix.SYS_SETRLIMIT, uintptr(resource), uintptr(rlim), 0); err != 0 {
+ t.setErrno(err)
+ return -1
+ }
+
+ return 0
+}