… | |
… | |
73 | if (eventcnt < 0) |
73 | if (eventcnt < 0) |
74 | return; |
74 | return; |
75 | |
75 | |
76 | for (i = 0; i < eventcnt; ++i) |
76 | for (i = 0; i < eventcnt; ++i) |
77 | fd_event ( |
77 | fd_event ( |
78 | events [i].data.fd, |
78 | events [i].data.u64, |
79 | (events [i].events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) |
79 | (events [i].events & (EPOLLOUT | EPOLLERR | EPOLLHUP) ? EV_WRITE : 0) |
80 | | (events [i].events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0) |
80 | | (events [i].events & (EPOLLIN | EPOLLERR | EPOLLHUP) ? EV_READ : 0) |
81 | ); |
81 | ); |
82 | |
82 | |
83 | /* if the receive array was full, increase its size */ |
83 | /* if the receive array was full, increase its size */ |