Lines Matching refs:ev_fd

97 		if(base->items[i]->ev_fd == fd)  in find_fd()
197 (*p->ev_callback)(p->ev_fd, EV_TIMEOUT, p->ev_arg); in handle_timeouts()
226 (*ev->ev_callback)(ev->ev_fd, ev->ev_events, ev->ev_arg); in handle_signal()
257 if(base->items[i]->ev_fd == -1 && !base->items[i]->is_signal) in handle_select()
333 if(WSAEnumNetworkEvents(eventlist[i]->ev_fd, in handle_select()
375 eventlist[i]->ev_fd, in handle_select()
387 eventlist[i]->ev_fd, in handle_select()
394 eventlist[i], eventlist[i]->ev_fd, in handle_select()
408 (*eventlist[i]->ev_callback)(eventlist[i]->ev_fd, in handle_select()
414 eventlist[i]->ev_fd, in handle_select()
473 ev->ev_fd = fd; in event_set()
494 ev, ev->added, ev->ev_fd, in event_add()
501 log_assert(ev->ev_fd==-1 || find_fd(ev->ev_base, ev->ev_fd) == -1); in event_add()
506 if((ev->ev_events&(EV_READ|EV_WRITE)) && ev->ev_fd != -1) { in event_add()
521 if(getsockopt(ev->ev_fd, SOL_SOCKET, SO_TYPE, in event_add()
532 if(getsockopt(ev->ev_fd, SOL_SOCKET, SO_ACCEPTCONN, in event_add()
545 if(WSAEventSelect(ev->ev_fd, ev->hEvent, events) != 0) { in event_add()
575 ev, ev->added, ev->ev_fd, in event_del()
586 if((ev->ev_events&(EV_READ|EV_WRITE)) && ev->ev_fd != -1) { in event_del()
597 if(WSAEventSelect(ev->ev_fd, ev->hEvent, 0) != 0) in event_del()
626 if(ev->ev_fd == -1 || ev->ev_fd >= MAX_SIG) in signal_add()
629 ev->ev_base->signals[ev->ev_fd] = ev; in signal_add()
631 if(signal(ev->ev_fd, sigh) == SIG_ERR) { in signal_add()
639 if(ev->ev_fd == -1 || ev->ev_fd >= MAX_SIG) in signal_del()
641 ev->ev_base->signals[ev->ev_fd] = NULL; in signal_del()
665 ev->ev_fd = -1; in winsock_register_wsaevent()