diff options
author | 2023-08-16 16:09:50 +0100 | |
---|---|---|
committer | 2023-08-16 16:09:50 +0100 | |
commit | 8f4b779b2d5876a1b667010f26eff76a7b3dbbae (patch) | |
tree | 57e98f9c604e5afd69505ce2c472bff5efe03760 /vendor/modernc.org/libc/libc_linux.go | |
parent | [feature] Add snapshot binary builds + uploads (#2119) (diff) | |
download | gotosocial-8f4b779b2d5876a1b667010f26eff76a7b3dbbae.tar.xz |
[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>
Diffstat (limited to 'vendor/modernc.org/libc/libc_linux.go')
-rw-r--r-- | vendor/modernc.org/libc/libc_linux.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/vendor/modernc.org/libc/libc_linux.go b/vendor/modernc.org/libc/libc_linux.go index bc656f877..08f67be82 100644 --- a/vendor/modernc.org/libc/libc_linux.go +++ b/vendor/modernc.org/libc/libc_linux.go @@ -637,16 +637,6 @@ func Xsetrlimit(t *TLS, resource int32, rlim uintptr) int32 { return Xsetrlimit64(t, resource, rlim) } -// 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 -} - // uid_t getuid(void); func Xgetuid(t *TLS) types.Uid_t { return types.Uid_t(os.Getuid()) |