/freebsd/contrib/unbound/util/ |
H A D | mini_event.c | 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() [all …]
|
H A D | winsock_event.c | 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() [all …]
|
H A D | mini_event.h | 144 int ev_fd; member
|
H A D | winsock_event.h | 179 int ev_fd; member
|
H A D | ub_event.c | 376 AS_EVENT(ev)->ev_fd = fd; in ub_event_set_fd()
|
H A D | ub_event_pluggable.c | 170 AS_MY_EVENT(ev)->ev.ev_fd = fd; in my_event_set_fd()
|
/freebsd/contrib/pf/libevent/ |
H A D | select.c | 120 assert(sop->event_r_by_fd[i]->ev_fd == i); in check_selectop() 127 assert(sop->event_w_by_fd[i]->ev_fd == i); in check_selectop() 285 if (sop->event_fds < ev->ev_fd) { in select_add() 292 (howmany(ev->ev_fd + 1, NFDBITS) * sizeof(fd_mask))) in select_add() 302 sop->event_fds = ev->ev_fd; in select_add() 306 FD_SET(ev->ev_fd, sop->event_readset_in); in select_add() 307 sop->event_r_by_fd[ev->ev_fd] = ev; in select_add() 310 FD_SET(ev->ev_fd, sop->event_writeset_in); in select_add() 311 sop->event_w_by_fd[ev->ev_fd] = ev; in select_add() 331 if (sop->event_fds < ev->ev_fd) { in select_del() [all …]
|
H A D | poll.c | 132 assert(ev->ev_fd == i); in poll_check_ok() 138 assert(ev->ev_fd == i); in poll_check_ok() 268 if (ev->ev_fd >= pop->fd_count) { in poll_add() 275 while (new_count <= ev->ev_fd) in poll_add() 289 i = pop->idxplus1_by_fd[ev->ev_fd] - 1; in poll_add() 296 pfd->fd = ev->ev_fd; in poll_add() 298 pop->idxplus1_by_fd[ev->ev_fd] = i + 1; in poll_add() 333 i = pop->idxplus1_by_fd[ev->ev_fd] - 1; in poll_del() 353 pop->idxplus1_by_fd[ev->ev_fd] = 0; in poll_del()
|
H A D | event.h | 87 int ev_fd; member 103 #define EVENT_SIGNAL(ev) (int)(ev)->ev_fd 104 #define EVENT_FD(ev) (int)(ev)->ev_fd 194 #define event_initialized(ev) ((ev)->ev_flags & EVLIST_INIT && (ev)->ev_fd != (int)INVALID_HANDLE_…
|
H A D | kqueue.c | 311 kev.ident = ev->ev_fd; in kq_add() 330 kev.ident = ev->ev_fd; in kq_add() 375 kev.ident = ev->ev_fd; in kq_del() 387 kev.ident = ev->ev_fd; in kq_del()
|
H A D | event.c | 315 (*ev->ev_callback)((int)ev->ev_fd, ev->ev_res, ev->ev_arg); in event_process_active() 517 ev->ev_fd = fd; in event_set() 787 ev, ev->ev_fd, queue); in event_queue_remove() 828 ev, ev->ev_fd, queue); in event_queue_insert()
|
/freebsd/contrib/ntp/sntp/libevent/ |
H A D | evmap.c | 282 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_add_() 337 if (evsel->add(base, ev->ev_fd, in evmap_io_add_() 365 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_del_() 403 if (evsel->del(base, ev->ev_fd, in evmap_io_del_() 468 if (evsel->add(base, ev->ev_fd, 0, EV_SIGNAL, NULL) in evmap_signal_add_() 493 if (evsel->del(base, ev->ev_fd, 0, EV_SIGNAL, NULL) == -1) in evmap_signal_del_() 964 EVUTIL_ASSERT(ev->ev_fd == fd); 994 EVUTIL_ASSERT(ev->ev_fd == signum);
|
H A D | event.c | 299 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_note_add_() 325 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_note_del_() 349 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_assert_is_setup_() 370 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_assert_not_added_() 1369 (*ev->ev_callback)(ev->ev_fd, ev->ev_res, ev->ev_arg); in event_signal_closure() 1615 evcb_fd = ev->ev_fd; in event_persist_closure() 1691 evcb_callback(ev->ev_fd, res, ev->ev_arg); in event_process_active_single_queue() 2128 ev->ev_fd = fd; in event_assign() 2426 *fd_out = event->ev_fd; in event_get_assignment() 2445 return ev->ev_fd; in event_get_fd() [all …]
|
/freebsd/contrib/libevent/ |
H A D | evmap.c | 282 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_add_() 337 if (evsel->add(base, ev->ev_fd, in evmap_io_add_() 365 EVUTIL_ASSERT(fd == ev->ev_fd); in evmap_io_del_() 403 if (evsel->del(base, ev->ev_fd, in evmap_io_del_() 468 if (evsel->add(base, ev->ev_fd, 0, EV_SIGNAL, NULL) in evmap_signal_add_() 493 if (evsel->del(base, ev->ev_fd, 0, EV_SIGNAL, NULL) == -1) in evmap_signal_del_() 964 EVUTIL_ASSERT(ev->ev_fd == fd); 994 EVUTIL_ASSERT(ev->ev_fd == signum);
|
H A D | event.c | 299 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_note_add_() 325 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_note_del_() 349 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_assert_is_setup_() 370 EV_SOCK_ARG(ev->ev_fd), ev->ev_flags); in event_debug_assert_not_added_() 1369 (*ev->ev_callback)(ev->ev_fd, ev->ev_res, ev->ev_arg); in event_signal_closure() 1615 evcb_fd = ev->ev_fd; in event_persist_closure() 1691 evcb_callback(ev->ev_fd, res, ev->ev_arg); in event_process_active_single_queue() 2128 ev->ev_fd = fd; in event_assign() 2426 *fd_out = event->ev_fd; in event_get_assignment() 2445 return ev->ev_fd; in event_get_fd() [all …]
|
/freebsd/contrib/ntp/sntp/libevent/include/event2/ |
H A D | event_struct.h | 131 evutil_socket_t ev_fd; member
|
/freebsd/contrib/libevent/include/event2/ |
H A D | event_struct.h | 131 evutil_socket_t ev_fd; member
|