Zephyr Project API
3.3.0
A Scalable Open Source RTOS
poll.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_POLL_H_
7
#define ZEPHYR_INCLUDE_POSIX_POLL_H_
8
9
#include <
zephyr/net/socket.h
>
10
11
#ifdef __cplusplus
12
extern
"C"
{
13
#endif
14
15
#ifndef CONFIG_NET_SOCKETS_POSIX_NAMES
16
17
#define pollfd zsock_pollfd
18
19
#define POLLIN ZSOCK_POLLIN
20
#define POLLOUT ZSOCK_POLLOUT
21
#define POLLERR ZSOCK_POLLERR
22
#define POLLHUP ZSOCK_POLLHUP
23
#define POLLNVAL ZSOCK_POLLNVAL
24
25
static
inline
int
poll
(
struct
pollfd
*fds,
int
nfds,
int
timeout
)
26
{
27
return
zsock_poll
(fds, nfds,
timeout
);
28
}
29
30
#endif
/* CONFIG_NET_SOCKETS_POSIX_NAMES */
31
32
#ifdef __cplusplus
33
}
34
#endif
35
36
#endif
/* ZEPHYR_INCLUDE_POSIX_POLL_H_ */
timeout
ZTEST_BMEM int timeout
Definition:
main.c:31
zsock_poll
int zsock_poll(struct zsock_pollfd *fds, int nfds, int timeout)
Efficiently poll multiple sockets for events.
poll
static int poll(struct zsock_pollfd *fds, int nfds, int timeout)
Definition:
socket.h:789
pollfd
#define pollfd
Definition:
socket.h:686
socket.h
BSD Sockets compatible API definitions.
include
zephyr
posix
poll.h
Generated on Fri Jun 9 2023 14:09:43 for Zephyr Project API by
1.9.2