|
ginnOS
The reference: libc, the libraries and the kernel
|
waiting for file descriptors to become ready. More...
Go to the source code of this file.
Data Structures | |
| struct | pollfd |
Macros | |
| #define | POLLIN 0x001 |
| #define | POLLPRI 0x002 |
| #define | POLLOUT 0x004 |
| #define | POLLERR 0x008 |
| #define | POLLHUP 0x010 |
| #define | POLLNVAL 0x020 |
Typedefs | |
| typedef unsigned int | nfds_t |
Functions | |
| int | poll (struct pollfd *fds, nfds_t nfds, int timeout) |
| wait until one of a set of descriptors is ready. | |
waiting for file descriptors to become ready.
the event bits and struct pollfd are ABI and must match the kernel side in src/kernel/vfs/poll.h and sys_io.c.
| #define POLLIN 0x001 |
| #define POLLPRI 0x002 |
| #define POLLOUT 0x004 |
| #define POLLERR 0x008 |
| #define POLLHUP 0x010 |
| #define POLLNVAL 0x020 |
| typedef unsigned int nfds_t |
wait until one of a set of descriptors is ready.
| fds | the descriptors (at most 64). |
| nfds | the number of entries. |
| timeout | milliseconds to wait; negative waits without limit, 0 does not wait. |