mirror of
https://github.com/rwinkhart/sys.git
synced 2026-08-31 22:36:44 -04:00
unix: make Prlimit public
glibc has a wrapper for it, so why shouldn't we? Change-Id: I5c6e24c8e567e0198ea679f0be33e2eff056d5ed Reviewed-on: https://go-review.googlesource.com/c/sys/+/332029 Reviewed-by: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Ian Lance Taylor <iant@golang.org> Trust: Michael Knyszek <mknyszek@google.com>
This commit is contained in:
committed by
Brad Fitzpatrick
parent
d867a43fc9
commit
30e4713e60
@@ -171,7 +171,7 @@ func Pipe2(p []int, flags int) (err error) {
|
||||
|
||||
// Getrlimit prefers the prlimit64 system call. See issue 38604.
|
||||
func Getrlimit(resource int, rlim *Rlimit) error {
|
||||
err := prlimit(0, resource, nil, rlim)
|
||||
err := Prlimit(0, resource, nil, rlim)
|
||||
if err != ENOSYS {
|
||||
return err
|
||||
}
|
||||
@@ -180,7 +180,7 @@ func Getrlimit(resource int, rlim *Rlimit) error {
|
||||
|
||||
// Setrlimit prefers the prlimit64 system call. See issue 38604.
|
||||
func Setrlimit(resource int, rlim *Rlimit) error {
|
||||
err := prlimit(0, resource, rlim, nil)
|
||||
err := Prlimit(0, resource, rlim, nil)
|
||||
if err != ENOSYS {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user