Add rwcancelation to darwin

This commit is contained in:
Jason A. Donenfeld
2018-05-14 03:55:46 +02:00
parent f738c45a68
commit 5f5503afa8
4 changed files with 73 additions and 17 deletions

13
rwcancel/select_linux.go Normal file
View File

@@ -0,0 +1,13 @@
/* SPDX-License-Identifier: GPL-2.0
*
* Copyright (C) 2017-2018 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
*/
package rwcancel
import "golang.org/x/sys/unix"
func unixSelect(nfd int, r *unix.FdSet, w *unix.FdSet, e *unix.FdSet, timeout *unix.Timeval) (err error) {
_, err = unix.Select(nfd, r, w, e, timeout)
return
}