Use flag for aarch64 EpollCreate1
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
389483d83f
commit
e419be223f
1 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ package archutils
|
||||||
// #include <sys/epoll.h>
|
// #include <sys/epoll.h>
|
||||||
/*
|
/*
|
||||||
int EpollCreate1(int flag) {
|
int EpollCreate1(int flag) {
|
||||||
return epoll_create1(0);
|
return epoll_create1(flag);
|
||||||
}
|
}
|
||||||
|
|
||||||
int EpollCtl(int efd, int op, int sfd, int Events, int Fd) {
|
int EpollCtl(int efd, int op, int sfd, int Events, int Fd) {
|
||||||
|
@ -41,7 +41,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func EpollCreate1(flag int) (int, error) {
|
func EpollCreate1(flag int) (int, error) {
|
||||||
fd := int(C.EpollCreate1(0))
|
fd := int(C.EpollCreate1(C.int(flag)))
|
||||||
if fd < 0 {
|
if fd < 0 {
|
||||||
return fd, fmt.Errorf("failed to create epoll, errno is %d", fd)
|
return fd, fmt.Errorf("failed to create epoll, errno is %d", fd)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue