epoll.go 398 B

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