mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-01-18 13:13:31 +08:00
Update select.c
This commit is contained in:
parent
d948dba42a
commit
c90b449dac
@ -33,6 +33,10 @@ 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))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user