| ... | ... | @@ -1480,3 +1480,28 @@ pub const rlimit = extern struct { |
| 1480 | 1480 | pub const SHUT_RD = 0; |
| 1481 | 1481 | pub const SHUT_WR = 1; |
| 1482 | 1482 | pub const SHUT_RDWR = 2; |
| 1483 | |
| 1484 | pub const nfds_t = u32; |
| 1485 | |
| 1486 | pub const pollfd = extern struct { |
| 1487 | fd: fd_t, |
| 1488 | events: i16, |
| 1489 | revents: i16, |
| 1490 | }; |
| 1491 | |
| 1492 | /// any readable data available. |
| 1493 | pub const POLLIN = 0x0001; |
| 1494 | /// OOB/Urgent readable data. |
| 1495 | pub const POLLPRI = 0x0002; |
| 1496 | /// file descriptor is writeable. |
| 1497 | pub const POLLOUT = 0x0004; |
| 1498 | /// non-OOB/URG data available. |
| 1499 | pub const POLLRDNORM = 0x0040; |
| 1500 | /// no write type differentiation. |
| 1501 | pub const POLLWRNORM = POLLOUT; |
| 1502 | /// OOB/Urgent readable data. |
| 1503 | pub const POLLRDBAND = 0x0080; |
| 1504 | /// OOB/Urgent data can be written. |
| 1505 | pub const POLLWRBAND = 0x0100; |
| 1506 | /// like POLLIN, except ignore EOF. |
| 1507 | pub const POLLINIGNEOF = 0x2000; |