Line data Source code
1 0 : /*
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 0 : typedef unsigned int nfds_t;
16 :
17 0 : #define pollfd zsock_pollfd
18 :
19 0 : #define POLLIN ZSOCK_POLLIN
20 0 : #define POLLPRI ZSOCK_POLLPRI
21 0 : #define POLLOUT ZSOCK_POLLOUT
22 0 : #define POLLERR ZSOCK_POLLERR
23 0 : #define POLLHUP ZSOCK_POLLHUP
24 0 : #define POLLNVAL ZSOCK_POLLNVAL
25 :
26 0 : int poll(struct pollfd *fds, int nfds, int timeout);
27 :
28 : #ifdef __cplusplus
29 : }
30 : #endif
31 :
32 : #endif /* ZEPHYR_INCLUDE_POSIX_POLL_H_ */
|