elvish/sys/select_bsd.go
Cheer Xiao 1d1b04eadb select_darwin.go -> select_bsd.go
It is also built on other BSD systems
2014-10-01 01:12:14 +02:00

10 lines
233 B
Go

// +build darwin dragonfly freebsd netbsd openbsd
package sys
import "syscall"
func Select(nfd int, r *FdSet, w *FdSet, e *FdSet, timeout *syscall.Timeval) (err error) {
return syscall.Select(nfd, r.s(), w.s(), e.s(), timeout)
}