mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-04 10:57:50 +08:00
11 lines
208 B
Go
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
|
|
}
|