mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-24 12:33:35 +08:00
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
This commit is contained in:
@@ -27,6 +27,8 @@
|
|||||||
|
|
||||||
#ifdef RT_USING_LWIP
|
#ifdef RT_USING_LWIP
|
||||||
|
|
||||||
|
#include "dfs_lwip.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
||||||
struct timeval *timeout)
|
struct timeval *timeout)
|
||||||
@@ -70,7 +72,7 @@ select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
|
|||||||
if (maxfd == 0) return -EBADF;
|
if (maxfd == 0) return -EBADF;
|
||||||
maxfd += 1;
|
maxfd += 1;
|
||||||
|
|
||||||
result = lwip_selscan(maxfd, &sock_readset, &sock_writeset, &sock_exceptset, timeout);
|
result = lwip_select(maxfd, &sock_readset, &sock_writeset, &sock_exceptset, timeout);
|
||||||
|
|
||||||
if (readset) FD_ZERO(readset);
|
if (readset) FD_ZERO(readset);
|
||||||
if (writeset) FD_ZERO(writeset);
|
if (writeset) FD_ZERO(writeset);
|
||||||
|
|||||||
Reference in New Issue
Block a user