Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
select.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Linaro Limited
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6#ifndef ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_
7#define ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_
8
10#include <zephyr/sys/fdtable.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
16#define FD_SETSIZE ZVFS_FD_SETSIZE
17
18typedef struct zvfs_fd_set fd_set;
19
20struct timeval;
21
22int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
23 const struct timespec *timeout, const void *sigmask);
24int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout);
25void FD_CLR(int fd, fd_set *fdset);
26int FD_ISSET(int fd, fd_set *fdset);
27void FD_SET(int fd, fd_set *fdset);
28void FD_ZERO(fd_set *fdset);
29
30#ifdef __cplusplus
31}
32#endif
33
34#endif /* ZEPHYR_INCLUDE_POSIX_SYS_SELECT_H_ */
void FD_CLR(int fd, fd_set *fdset)
int pselect(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const void *sigmask)
void FD_ZERO(fd_set *fdset)
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
void FD_SET(int fd, fd_set *fdset)
int FD_ISSET(int fd, fd_set *fdset)
Definition _timespec.h:22
Definition _timeval.h:22
Definition fdtable.h:226