mirror of
https://github.com/impact-eintr/netstack.git
synced 2025-10-09 14:50:09 +08:00
这个仓库代码量太大了 以读为主 不写了
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user