github.com/docker/containerd@v0.2.9-0.20170509230648-8ef7df579710/archutils/epoll.go (about)

     1  // +build linux,!arm64
     2  
     3  package archutils
     4  
     5  import (
     6  	"syscall"
     7  )
     8  
     9  // EpollCreate1 directly calls syscall.EpollCreate1
    10  func EpollCreate1(flag int) (int, error) {
    11  	return syscall.EpollCreate1(flag)
    12  }
    13  
    14  // EpollCtl directly calls syscall.EpollCtl
    15  func EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) error {
    16  	return syscall.EpollCtl(epfd, op, fd, event)
    17  }
    18  
    19  // EpollWait directly calls syscall.EpollWait
    20  func EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error) {
    21  	return syscall.EpollWait(epfd, events, msec)
    22  }