containerd/epoll/epoll.go
Michael Crosby 478f715836 Rename archutils to epoll
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
2016-09-22 14:08:41 -07:00

22 lines
536 B
Go

// +build linux,!arm64
package epoll
import (
"syscall"
)
// EpollCreate1 directly calls syscall.EpollCreate1
func EpollCreate1(flag int) (int, error) {
return syscall.EpollCreate1(flag)
}
// EpollCtl directly calls syscall.EpollCtl
func EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) error {
return syscall.EpollCtl(epfd, op, fd, event)
}
// EpollWait directly calls syscall.EpollWait
func EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error) {
return syscall.EpollWait(epfd, events, msec)
}