We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glide code - package: golang.org/x/sys - package: golang.org/x/sys/unix package main import ( "golang.org/x/sys/unix" "log" "net" "reflect" "sync" "syscall" ) func NewEventPoll () (*EventPoll, error) { fd, err := unix.EpollCreate1(0) if err != nil { return nil, err } return &EventPoll{ fd: fd, mu: &sync.RWMutex{}, connects: make(map[int]net.Conn), }, nil }
go env
$ go env processor/epoller.go:21:13: undefined: unix.EpollCreate1 processor/epoller.go:36:9: undefined: unix.EpollCtl processor/epoller.go:36:30: undefined: syscall.EPOLL_CTL_ADD processor/epoller.go:36:58: undefined: unix.EpollEvent processor/epoller.go:54:9: undefined: unix.EpollCtl processor/epoller.go:54:30: undefined: syscall.EPOLL_CTL_DEL processor/epoller.go:67:19: undefined: unix.EpollEvent processor/epoller.go:68:12: undefined: unix.EpollWait
processor/epoller.go:21:13: undefined: unix.EpollCreate1 processor/epoller.go:36:9: undefined: unix.EpollCtl processor/epoller.go:36:30: undefined: syscall.EPOLL_CTL_ADD processor/epoller.go:36:58: undefined: unix.EpollEvent processor/epoller.go:54:9: undefined: unix.EpollCtl processor/epoller.go:54:30: undefined: syscall.EPOLL_CTL_DEL processor/epoller.go:67:19: undefined: unix.EpollEvent processor/epoller.go:68:12: undefined: unix.EpollWait
The text was updated successfully, but these errors were encountered:
macOS does not provide the EpollCreate1 syscall, it is only available on Linux.
EpollCreate1
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
macos version 10.14.3
go version go1.12 darwin/amd64
go env
OutputThe text was updated successfully, but these errors were encountered: