aboutsummaryrefslogtreecommitdiffstats
path: root/rwcancel/select_default.go
blob: 990de83363bcd075fa61cd3182711dfad3f6eae2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// +build !linux,!windows

/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2017-2021 WireGuard LLC. 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) error {
	_, err := unix.Select(nfd, r, w, e, timeout)
	return err
}