adam-gui/vendor/github.com/creack/goselect/select_linux.go

11 lines
240 B
Go
Raw Normal View History

2024-04-29 19:13:50 +02:00
// +build linux
package goselect
import "syscall"
func sysSelect(n int, r, w, e *FDSet, timeout *syscall.Timeval) error {
_, err := syscall.Select(n, (*syscall.FdSet)(r), (*syscall.FdSet)(w), (*syscall.FdSet)(e), timeout)
return err
}