提交 81382cf5 编写于 作者: O openharmony_ci 提交者: Gitee

!97 增加内核epoll系统调用适配musl接口并增加测试用例

Merge pull request !97 from wangchen/master
......@@ -48,6 +48,7 @@
#endif
#include "mqueue.h"
#include "epoll.h"
#include "fs/file.h"
/****************************************************************************
......@@ -103,6 +104,11 @@ int close(int fd)
{
return mq_close((mqd_t)fd);
}
if ((unsigned int)fd >= EPOLL_FD_OFFSET && \
(unsigned int)fd < (unsigned int)(EPOLL_FD_OFFSET + CONFIG_EPOLL_DESCRIPTORS))
{
return epoll_close(fd);
}
#endif
else
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册