epoll_create: mofidy return value for epoll_create1
Change-Id: I422d7640c37105e1120db18b29d56547f447846f Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
d087d912ee
commit
bcf3381d06
1 changed files with 8 additions and 4 deletions
|
@ -114,7 +114,8 @@ int epoll_create1(int flags)
|
|||
|
||||
if (flags != EPOLL_CLOEXEC)
|
||||
{
|
||||
return EINVAL;
|
||||
set_errno(EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
return epoll_create(CONFIG_FS_NEPOLL_DESCRIPTORS);
|
||||
|
@ -193,7 +194,8 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev)
|
|||
}
|
||||
}
|
||||
|
||||
return -ENOENT;
|
||||
set_errno(ENOENT);
|
||||
return -1;
|
||||
}
|
||||
|
||||
case EPOLL_CTL_MOD:
|
||||
|
@ -213,11 +215,13 @@ int epoll_ctl(int epfd, int op, int fd, struct epoll_event *ev)
|
|||
}
|
||||
}
|
||||
|
||||
return -ENOENT;
|
||||
set_errno(ENOENT);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
set_errno(EINVAL);
|
||||
return -1;
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in a new issue