summaryrefslogtreecommitdiffstats
path: root/rwcancel/poll_unix.go
blob: 37e96861e479d593d3ef4af3be4f6a5a57463972 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build !windows && !linux
// +build !windows,!linux

/* SPDX-License-Identifier: MIT
 *
 * Copyright (C) 2017-2021 WireGuard LLC. All Rights Reserved.
 */

package rwcancel

import "golang.org/x/sys/unix"

func poll(fds []unix.PollFd, timeout int) (n int, err error) {
	return unix.Poll(fds, timeout)
}