未验证 提交 c90b449d 编写于 作者: H heyuanjie87 提交者: GitHub

Update select.c

上级 d948dba4
......@@ -32,7 +32,11 @@ static void fdzero(fd_set *set, int nfds)
{
fd_mask *m;
int n;
/*
The 'sizeof(fd_set)' of the system space may differ from user space,
so the actual size of the 'fd_set' is determined here with the parameter 'nfds'
*/
m = (fd_mask*)set;
for (n = 0; n < nfds; n += (sizeof(fd_mask) * 8))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册