#include <stdint.h>
Go to the source code of this file.
|
#define | POLLIN 1 |
|
#define | POLLOUT 4 |
|
#define | POLLNVAL 32 |
|
|
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. More...
|
|
◆ poll()
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.
- Parameters
-
fds | A set of file descriptors with events to wait. |
nfds | Number of the provided fds. |
timeout | The number of milliseconds that poll() should block waiting for a file descriptor to become ready. Negative value means an infinite timeout and zero causes poll() to return immediately. |
- Return values
-
int | 0 on success and nonzero error number on error. |