Tenok
A Linux-like Real-Time Operating System for Robotics and Internet of Things
poll.h
Go to the documentation of this file.
1 
4 #ifndef __POLL_H__
5 #define __POLL_H__
6 
7 #include <stdint.h>
8 
9 #define POLLIN 1
10 #define POLLOUT 4
11 #define POLLNVAL 32
12 
13 typedef uint32_t nfds_t;
14 
15 struct pollfd {
16  int fd; /* File descriptor number */
17  short events; /* Requested events */
18  short revents; /* Returned events */
19 };
20 
31 int poll(struct pollfd *fds, nfds_t nfds, int timeout);
32 
33 #endif
Definition: poll.h:15
int poll(struct pollfd *fds, nfds_t nfds, int timeout)
Wait for one of a set of file descriptors to become ready to perform I/O.
Definition: file.c:115