elvish/sys/select_linux.go
2014-09-28 10:29:20 +08:00

11 lines
208 B
Go

// +build linux
package sys
import "syscall"
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *syscall.Timeval) error {
_, err := syscall.Select(nfd, r.s(), w.s(), e.s(), timeout)
return err
}