提交 df46ed0f 编写于 作者: L lnlan

fix: 增加内核epoll系统调用

【背景】增加内核epoll系统调用适配musl接口并增加测试用例

【修改方案】
1,删除musl仓的porting
2,内核实现epoll对应接口及注册系统调用
3,testsuit目录添加对应的用例

【影响】
对现有的产品编译不会有影响。

re #I4FXPT
Signed-off-by: Nwangchen <253227059@qq.com>
Change-Id: I2805efcff9cc7ad379a34ca18ef584aee69750c4
上级 f69b529a
......@@ -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.
先完成此消息的编辑!
想要评论请 注册