]> Cypherpunks repositories - gostls13.git/commitdiff
pkg/syscall: unexport Prlimit.
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 30 Jul 2012 22:21:24 +0000 (08:21 +1000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 30 Jul 2012 22:21:24 +0000 (08:21 +1000)
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

src/pkg/syscall/syscall_linux.go
src/pkg/syscall/syscall_linux_386.go
src/pkg/syscall/syscall_linux_arm.go
src/pkg/syscall/zsyscall_linux_386.go
src/pkg/syscall/zsyscall_linux_amd64.go
src/pkg/syscall/zsyscall_linux_arm.go

index 9aaa04971f6392cb4b39304e172c195ca4db9399..205dd3c26fbf866b027ec448739d73ce35d57f69 100644 (file)
@@ -839,7 +839,7 @@ func Mount(source string, target string, fstype string, flags uintptr, data stri
 //sys  Nanosleep(time *Timespec, leftover *Timespec) (err error)
 //sys  Pause() (err error)
 //sys  PivotRoot(newroot string, putold string) (err error) = SYS_PIVOT_ROOT
-//sysnb Prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) = SYS_PRLIMIT64
+//sysnb prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) = SYS_PRLIMIT64
 //sys  Read(fd int, p []byte) (n int, err error)
 //sys  Readlink(path string, buf []byte) (n int, err error)
 //sys  Rename(oldpath string, newpath string) (err error)
index f8c9a54cc6cdc4d4b536d7bfe3ab0de9fafc572b..a4466d2af42cb5dc802351be6b13959457142ef7 100644 (file)
@@ -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
        }
index cd9662072afe8b2b26b2ed8ecc5a3682ac6254b5..fbf5818e59ea24534e324a50750d84eaa0083de6 100644 (file)
@@ -98,7 +98,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
        }
@@ -126,7 +126,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
        }
index 973c48541f99bf405e8bcbea3e483efd6a25d66d..75bf5eaf6b7927941f4bcba27b515b806e822c45 100644 (file)
@@ -598,7 +598,7 @@ func PivotRoot(newroot string, putold string) (err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func Prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
+func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
        _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
        if e1 != 0 {
                err = e1
index aa172689faf0a06aeb693769a41aa9efb3c4b2c7..dfa47f2f6e9f9f1e2c43eefbf911cff865498ed1 100644 (file)
@@ -598,7 +598,7 @@ func PivotRoot(newroot string, putold string) (err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func Prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
+func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
        _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
        if e1 != 0 {
                err = e1
index 56d6c58d5fe8977d7a904a6e9c9305d51cfce795..63aca1c7356b5106890796fc3ae1e8b840254a23 100644 (file)
@@ -598,7 +598,7 @@ func PivotRoot(newroot string, putold string) (err error) {
 
 // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
 
-func Prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
+func prlimit(pid int, resource int, old *Rlimit, newlimit *Rlimit) (err error) {
        _, _, e1 := RawSyscall6(SYS_PRLIMIT64, uintptr(pid), uintptr(resource), uintptr(unsafe.Pointer(old)), uintptr(unsafe.Pointer(newlimit)), 0, 0)
        if e1 != 0 {
                err = e1