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_amd64.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_amd64.go')
| -rw-r--r-- | src/pkg/syscall/zsyscall_linux_amd64.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/pkg/syscall/zsyscall_linux_amd64.go b/src/pkg/syscall/zsyscall_linux_amd64.go index 6d5c75385..0766b8318 100644 --- a/src/pkg/syscall/zsyscall_linux_amd64.go +++ b/src/pkg/syscall/zsyscall_linux_amd64.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]; } @@ -655,6 +648,13 @@ func Seek(fd int, offset int64, whence int) (off int64, 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 Setfsgid(gid int) (errno int) { r0, r1, e1 := Syscall(SYS_SETFSGID, uintptr(gid), 0, 0); errno = int(e1); |
