mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
pkg/syscall: unexport Prlimit.
This syscall was inadvertently exported when fixing Getrlimit/Setrlimit on 32-bit platforms. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6458051
This commit is contained in:
parent
20d9fd3ae1
commit
36fe436cba
6 changed files with 8 additions and 8 deletions
|
|
@ -78,7 +78,7 @@ const rlimInf32 = ^uint32(0)
|
|||
const rlimInf64 = ^uint64(0)
|
||||
|
||||
func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
||||
err = Prlimit(0, resource, rlim, nil)
|
||||
err = prlimit(0, resource, rlim, nil)
|
||||
if err != ENOSYS {
|
||||
return err
|
||||
}
|
||||
|
|
@ -106,7 +106,7 @@ func Getrlimit(resource int, rlim *Rlimit) (err error) {
|
|||
//sysnb setrlimit(resource int, rlim *rlimit32) (err error) = SYS_SETRLIMIT
|
||||
|
||||
func Setrlimit(resource int, rlim *Rlimit) (err error) {
|
||||
err = Prlimit(0, resource, nil, rlim)
|
||||
err = prlimit(0, resource, nil, rlim)
|
||||
if err != ENOSYS {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue