summaryrefslogtreecommitdiff
path: root/software/vendor/github.com/creack/goselect/select_windows.go
blob: 0fb70d5d244126f8b9b5887770f08f272972646d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// +build windows

package goselect

import "syscall"

//sys _select(nfds int, readfds *FDSet, writefds *FDSet, exceptfds *FDSet, timeout *syscall.Timeval) (total int, err error) = ws2_32.select
//sys __WSAFDIsSet(handle syscall.Handle, fdset *FDSet) (isset int, err error) = ws2_32.__WSAFDIsSet

func sysSelect(n int, r, w, e *FDSet, timeout *syscall.Timeval) error {
	_, err := _select(n, r, w, e, timeout)
	return err
}