| /* |
| * Copyright (c) 2019 Linaro Limited |
| * |
| * SPDX-License-Identifier: Apache-2.0 |
| */ |
| #ifndef ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ |
| #define ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ |
| |
| #include <zephyr/net/socket_types.h> |
| #include <zephyr/net/socket_select.h> |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #undef fd_set |
| #define fd_set zsock_fd_set |
| |
| #define FD_SETSIZE ZVFS_FD_SETSIZE |
| |
| struct timeval; |
| |
| int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, |
| const struct timespec *timeout, const void *sigmask); |
| int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout); |
| void FD_CLR(int fd, fd_set *fdset); |
| int FD_ISSET(int fd, fd_set *fdset); |
| void FD_SET(int fd, fd_set *fdset); |
| void FD_ZERO(fd_set *fdset); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif /* ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ */ |