elvish/sys/select_linux.go

11 lines
208 B
Go
Raw Normal View History

2014-09-28 00:17:55 +08:00
// +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
}