update golang.org/x dependencies

This commit is contained in:
Mechiel Lukkien
2023-04-20 15:05:26 +02:00
parent 6eff832d09
commit dae73eb32d
86 changed files with 261 additions and 668 deletions

View File

@ -587,3 +587,10 @@ func emptyIovecs(iov []Iovec) bool {
}
return true
}
// Setrlimit sets a resource limit.
func Setrlimit(resource int, rlim *Rlimit) error {
// Just call the syscall version, because as of Go 1.21
// it will affect starting a new process.
return syscall.Setrlimit(resource, (*syscall.Rlimit)(rlim))
}