156 } |
156 } |
157 |
157 |
158 int ev_pollout(event_handler_t *h, int fd, event_t *event) { |
158 int ev_pollout(event_handler_t *h, int fd, event_t *event) { |
159 event->object = (intptr_t)fd; |
159 event->object = (intptr_t)fd; |
160 event->events = POLLOUT; |
160 event->events = POLLOUT; |
161 event->poll EVENT_POLLOUT; |
161 event->poll = EVENT_POLLOUT; |
162 return port_associate( |
162 return port_associate( |
163 ev_get_port(h), |
163 ev_get_port(h), |
164 PORT_SOURCE_FD, |
164 PORT_SOURCE_FD, |
165 (uintptr_t)fd, |
165 (uintptr_t)fd, |
166 POLLOUT, |
166 POLLOUT, |