mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-10 15:20:12 +08:00
13 lines
263 B
Go
13 lines
263 B
Go
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
|
|
}
|