1 Star 0 Fork 5

Mr.Zhang/cpp52

forked from cplusplus2023/cpp52 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
epoll.c 284 Bytes
一键复制 编辑 原始数据 按行查看 历史
廖正松 提交于 2023-08-24 16:45 +08:00 . 004
#include "head.h"
int epollAdd(int epfd, int fd){
struct epoll_event event;
event.events = EPOLLIN;
event.data.fd = fd;
epoll_ctl(epfd,EPOLL_CTL_ADD,fd,&event);
return 0;
}
int epollDel(int epfd, int fd){
epoll_ctl(epfd,EPOLL_CTL_DEL,fd,NULL);
return 0;
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/Zhangdata/cpp52.git
git@gitee.com:Zhangdata/cpp52.git
Zhangdata
cpp52
cpp52
master

搜索帮助