313db3df26
On arm64, the default build flag is the same as the one from `go env` which is arm64. So we should use arm64 instead of aarch64 for both build flag and file name. Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
19 lines
398 B
Go
19 lines
398 B
Go
// +build linux,!arm64
|
|
|
|
package archutils
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func EpollCreate1(flag int) (int, error) {
|
|
return syscall.EpollCreate1(flag)
|
|
}
|
|
|
|
func EpollCtl(epfd int, op int, fd int, event *syscall.EpollEvent) error {
|
|
return syscall.EpollCtl(epfd, op, fd, event)
|
|
}
|
|
|
|
func EpollWait(epfd int, events []syscall.EpollEvent, msec int) (int, error) {
|
|
return syscall.EpollWait(epfd, events, msec)
|
|
}
|