From 8f4b779b2d5876a1b667010f26eff76a7b3dbbae Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 16 Aug 2023 16:09:50 +0100 Subject: [chore]: Bump modernc.org/sqlite from 1.24.0 to 1.25.0 (#2114) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- vendor/modernc.org/libc/libc_linux_amd64.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'vendor/modernc.org/libc/libc_linux_amd64.go') diff --git a/vendor/modernc.org/libc/libc_linux_amd64.go b/vendor/modernc.org/libc/libc_linux_amd64.go index 23e4f853b..4d3bf1a50 100644 --- a/vendor/modernc.org/libc/libc_linux_amd64.go +++ b/vendor/modernc.org/libc/libc_linux_amd64.go @@ -465,3 +465,13 @@ func Xiswspace(t *TLS, wc wctype.Wint_t) int32 { func Xiswalnum(t *TLS, wc wctype.Wint_t) int32 { return Bool32(unicode.IsLetter(rune(wc)) || unicode.IsNumber(rune(wc))) } + +// 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 +} -- cgit v1.2.3