Lines Matching refs:ev_fd
173 (*p->ev_callback)(p->ev_fd, EV_TIMEOUT, p->ev_arg); in handle_timeouts()
220 (*base->fds[i]->ev_callback)(base->fds[i]->ev_fd, in handle_select()
275 ev->ev_fd = fd; in event_set()
296 if(ev->ev_fd != -1 && ev->ev_fd >= ev->ev_base->capfd) in event_add()
298 if( (ev->ev_events&(EV_READ|EV_WRITE)) && ev->ev_fd != -1) { in event_add()
299 ev->ev_base->fds[ev->ev_fd] = ev; in event_add()
301 FD_SET(FD_SET_T ev->ev_fd, &ev->ev_base->reads); in event_add()
304 FD_SET(FD_SET_T ev->ev_fd, &ev->ev_base->writes); in event_add()
306 FD_SET(FD_SET_T ev->ev_fd, &ev->ev_base->content); in event_add()
307 FD_CLR(FD_SET_T ev->ev_fd, &ev->ev_base->ready); in event_add()
308 if(ev->ev_fd > ev->ev_base->maxfd) in event_add()
309 ev->ev_base->maxfd = ev->ev_fd; in event_add()
330 if(ev->ev_fd != -1 && ev->ev_fd >= ev->ev_base->capfd) in event_del()
334 if((ev->ev_events&(EV_READ|EV_WRITE)) && ev->ev_fd != -1) { in event_del()
335 ev->ev_base->fds[ev->ev_fd] = NULL; in event_del()
336 FD_CLR(FD_SET_T ev->ev_fd, &ev->ev_base->reads); in event_del()
337 FD_CLR(FD_SET_T ev->ev_fd, &ev->ev_base->writes); in event_del()
338 FD_CLR(FD_SET_T ev->ev_fd, &ev->ev_base->ready); in event_del()
339 FD_CLR(FD_SET_T ev->ev_fd, &ev->ev_base->content); in event_del()
340 if(ev->ev_fd == ev->ev_base->maxfd) { in event_del()
372 if(ev->ev_fd == -1 || ev->ev_fd >= MAX_SIG) in signal_add()
375 ev->ev_base->signals[ev->ev_fd] = ev; in signal_add()
377 if(signal(ev->ev_fd, sigh) == SIG_ERR) { in signal_add()
386 if(ev->ev_fd == -1 || ev->ev_fd >= MAX_SIG) in signal_del()
388 ev->ev_base->signals[ev->ev_fd] = NULL; in signal_del()