diff options
author | Russ Cox <rsc@golang.org> | 2009-06-17 15:16:06 -0700 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2009-06-17 15:16:06 -0700 |
commit | 02b354d1fd5f02eecb4f0e054119434fae3e216b (patch) | |
tree | 425631189526356ec58780259a89d10b75f71af4 /src/pkg/syscall/zsyscall_linux_386.go | |
parent | 1b51203bcc503fea301ec02715ffce08d4f04ed7 (diff) | |
download | golang-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.go | 14 |
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; +} + |