| ... | ... | @@ -1209,3 +1209,23 @@ pub const rlimit = extern struct { |
| 1209 | 1209 | pub const SHUT_RD = 0; |
| 1210 | 1210 | pub const SHUT_WR = 1; |
| 1211 | 1211 | pub const SHUT_RDWR = 2; |
| 1212 | |
| 1213 | pub const nfds_t = c_uint; |
| 1214 | |
| 1215 | pub const pollfd = extern struct { |
| 1216 | fd: fd_t, |
| 1217 | events: c_short, |
| 1218 | revents: c_short, |
| 1219 | }; |
| 1220 | |
| 1221 | pub const POLLIN = 0x0001; |
| 1222 | pub const POLLPRI = 0x0002; |
| 1223 | pub const POLLOUT = 0x0004; |
| 1224 | pub const POLLERR = 0x0008; |
| 1225 | pub const POLLHUP = 0x0010; |
| 1226 | pub const POLLNVAL = 0x0020; |
| 1227 | pub const POLLRDNORM = 0x0040; |
| 1228 | pub const POLLNORM = POLLRDNORM; |
| 1229 | pub const POLLWRNORM = POLLOUT; |
| 1230 | pub const POLLRDBAND = 0x0080; |
| 1231 | pub const POLLWRBAND = 0x0100; |