summaryrefslogtreecommitdiff
path: root/src/pkg/syscall/zsyscall_linux_386.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-06-17 15:16:06 -0700
committerRuss Cox <rsc@golang.org>2009-06-17 15:16:06 -0700
commit02b354d1fd5f02eecb4f0e054119434fae3e216b (patch)
tree425631189526356ec58780259a89d10b75f71af4 /src/pkg/syscall/zsyscall_linux_386.go
parent1b51203bcc503fea301ec02715ffce08d4f04ed7 (diff)
downloadgolang-02b354d1fd5f02eecb4f0e054119434fae3e216b.tar.gz
shuffle some Linux system calls around for 386
R=r DELTA=37 (17 added, 15 deleted, 5 changed) OCL=30428 CL=30444
Diffstat (limited to 'src/pkg/syscall/zsyscall_linux_386.go')
-rw-r--r--src/pkg/syscall/zsyscall_linux_386.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/syscall/zsyscall_linux_386.go b/src/pkg/syscall/zsyscall_linux_386.go
index 6e82bbb1b..07629aa6a 100644
--- a/src/pkg/syscall/zsyscall_linux_386.go
+++ b/src/pkg/syscall/zsyscall_linux_386.go
@@ -395,13 +395,6 @@ func Rmdir(path string) (errno int) {
return;
}
-func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) {
- r0, r1, e1 := Syscall6(SYS_SELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0);
- n = int(r0);
- errno = int(e1);
- return;
-}
-
func Setdomainname(p []byte) (errno int) {
var _p0 *byte;
if len(p) > 0 { _p0 = &p[0]; }
@@ -707,5 +700,12 @@ func setgroups(n int, list *_Gid_t) (errno int) {
return;
}
+func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *Timeval) (n int, errno int) {
+ r0, r1, e1 := Syscall6(SYS__NEWSELECT, uintptr(nfd), uintptr(unsafe.Pointer(r)), uintptr(unsafe.Pointer(w)), uintptr(unsafe.Pointer(e)), uintptr(unsafe.Pointer(timeout)), 0);
+ n = int(r0);
+ errno = int(e1);
+ return;
+}
+