2016-04-29 11:42:41 +00:00
|
|
|
// +build linux,!arm64
|
2016-04-13 19:29:20 +10:00
|
|
|
|
2016-04-05 23:17:30 -04:00
|
|
|
package archutils
|
|
|
|
|
|
|
|
import (
|
|
|
|
"syscall"
|
|
|
|
)
|
|
|
|
|
2016-06-03 15:00:49 -07:00
|
|
|
// EpollCreate1 directly calls syscall.EpollCreate1
|
2016-04-05 23:17:30 -04:00
|
|
|
func EpollCreate1(flag int) (int, error) {
|
|
|
|
return syscall.EpollCreate1(flag)
|
|
|
|
}
|
|
|
|
|
2016-06-03 15:00:49 -07:00
|
|
|
// EpollCtl directly calls syscall.EpollCtl
|
2016-04-05 23:17:30 -04:00
|
|
|
func EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) error {
|
|
|
|
return syscall.EpollCtl(epfd, op, fd, event)
|
|
|
|
}
|
|
|
|
|
2016-06-03 15:00:49 -07:00
|
|
|
// EpollWait directly calls syscall.EpollWait
|
2016-04-05 23:17:30 -04:00
|
|
|
func EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error) {
|
|
|
|
return syscall.EpollWait(epfd, events, msec)
|
|
|
|
}
|