18 lines
451 B
Go
18 lines
451 B
Go
|
// Copyright 2018 The Netstack Authors. All rights reserved.
|
||
|
// Use of this source code is governed by a BSD-style
|
||
|
// license that can be found in the LICENSE file.
|
||
|
|
||
|
// +build linux,!amd64
|
||
|
|
||
|
package rawfile
|
||
|
|
||
|
import (
|
||
|
"syscall"
|
||
|
"unsafe"
|
||
|
)
|
||
|
|
||
|
func blockingPoll(fds *pollEvent, nfds int, timeout int64) (int, syscall.Errno) {
|
||
|
n, _, e := syscall.Syscall(syscall.SYS_POLL, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(timeout))
|
||
|
return int(n), e
|
||
|
}
|