Searched refs:readfds (Results 1 – 6 of 6) sorted by relevance
/Zephyr-Core-3.5.0/tests/net/socket/select/src/ |
D | main.c | 75 fd_set readfds; in ZTEST_USER() local 90 FD_ZERO(&readfds); in ZTEST_USER() 91 FD_SET(c_sock, &readfds); in ZTEST_USER() 92 FD_SET(s_sock, &readfds); in ZTEST_USER() 97 res = select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER() 106 zassert_false(FD_ISSET(c_sock, &readfds), ""); in ZTEST_USER() 107 zassert_false(FD_ISSET(s_sock, &readfds), ""); in ZTEST_USER() 110 FD_SET(c_sock, &readfds); in ZTEST_USER() 111 FD_SET(s_sock, &readfds); in ZTEST_USER() 115 res = select(s_sock + 1, &readfds, NULL, NULL, &tval); in ZTEST_USER() [all …]
|
/Zephyr-Core-3.5.0/subsys/net/lib/sockets/ |
D | sockets_select.c | 71 int z_impl_zsock_select(int nfds, zsock_fd_set *readfds, zsock_fd_set *writefds, in z_impl_zsock_select() argument 86 if (readfds != NULL) { in z_impl_zsock_select() 87 read_mask = readfds->bitset[i]; in z_impl_zsock_select() 146 if (readfds != NULL) { in z_impl_zsock_select() 147 ZSOCK_FD_ZERO(readfds); in z_impl_zsock_select() 178 if (readfds != NULL) { in z_impl_zsock_select() 179 ZSOCK_FD_SET(fd, readfds); in z_impl_zsock_select() 208 static int z_vrfy_zsock_select(int nfds, zsock_fd_set *readfds, in z_vrfy_zsock_select() argument 218 if (readfds) { in z_vrfy_zsock_select() 219 readfds_copy = z_user_alloc_from_copy((void *)readfds, in z_vrfy_zsock_select() [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/net/ |
D | socket_select.h | 45 __syscall int zsock_select(int nfds, zsock_fd_set *readfds, 114 static inline int select(int nfds, zsock_fd_set *readfds, in select() argument 118 return zsock_select(nfds, readfds, writefds, exceptfds, timeout); in select()
|
/Zephyr-Core-3.5.0/include/zephyr/posix/sys/ |
D | select.h | 27 static inline int select(int nfds, fd_set *readfds, in select() argument 31 return zsock_select(nfds, readfds, writefds, exceptfds, in select()
|
/Zephyr-Core-3.5.0/samples/net/sockets/echo_async_select/src/ |
D | socket_echo_select.c | 47 fd_set readfds; variable 80 FD_SET(fd, &readfds); in pollfds_add() 91 FD_CLR(fd, &readfds); in pollfds_del() 115 FD_ZERO(&readfds); 168 workfds = readfds;
|
/Zephyr-Core-3.5.0/drivers/serial/ |
D | uart_native_ptty_bottom.c | 47 fd_set readfds; in np_uart_stdin_poll_in_bottom() local 50 FD_ZERO(&readfds); in np_uart_stdin_poll_in_bottom() 51 FD_SET(in_f, &readfds); in np_uart_stdin_poll_in_bottom() 53 ready = select(in_f+1, &readfds, NULL, NULL, &timeout); in np_uart_stdin_poll_in_bottom()
|