Home
last modified time | relevance | path

Searched refs:fd_count (Results 1 – 6 of 6) sorted by relevance

/NextBSD/contrib/ntp/sntp/libevent/
HDwin32select.c60 u_int fd_count; member
108 EVUTIL_ASSERT(new_num_fds >= op->readset_in->fd_count && in grow_fd_sets()
109 new_num_fds >= op->writeset_in->fd_count); in grow_fd_sets()
133 if (set->fd_count == op->num_fds_in_fd_sets) { in do_fd_set()
139 set->fd_array[set->fd_count] = s; in do_fd_set()
141 ent->read_pos_plus1 = set->fd_count+1; in do_fd_set()
143 ent->write_pos_plus1 = set->fd_count+1; in do_fd_set()
144 return (set->fd_count++); in do_fd_set()
162 if (--set->fd_count != (unsigned)i) { in do_fd_clear()
165 s2 = set->fd_array[i] = set->fd_array[set->fd_count]; in do_fd_clear()
[all …]
HDpoll.c109 for (i = 0; i < pop->fd_count; ++i) { in poll_check_ok()
/NextBSD/contrib/ntp/lib/isc/win32/include/isc/
HDnet.h159 for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \
161 while (__i < ((fd_set FAR *)(set))->fd_count-1) { \
166 ((fd_set FAR *)(set))->fd_count--; \
175 for (__i = 0; __i < ((fd_set FAR *)(set))->fd_count; __i++) { \
180 if (__i == ((fd_set FAR *)(set))->fd_count) { \
181 if (((fd_set FAR *)(set))->fd_count < FD_SETSIZE) { \
183 ((fd_set FAR *)(set))->fd_count++; \
/NextBSD/contrib/pf/libevent/
HDpoll.c62 int fd_count; /* Size of idxplus1_by_fd */ member
123 for (i = 0; i < pop->fd_count; ++i) { in poll_check_ok()
268 if (ev->ev_fd >= pop->fd_count) { in poll_add()
271 if (pop->fd_count < 32) in poll_add()
274 new_count = pop->fd_count * 2; in poll_add()
284 memset(pop->idxplus1_by_fd + pop->fd_count, in poll_add()
285 0, sizeof(int)*(new_count - pop->fd_count)); in poll_add()
286 pop->fd_count = new_count; in poll_add()
/NextBSD/lib/libnotify/
HDnotify_client.c412 globals->fd_count = 0; in _notify_fork_child()
683 for (i = 0; (i < globals->fd_count) && (x < 0); i++) in notify_retain_file_descriptor()
695 x = globals->fd_count; in notify_retain_file_descriptor()
696 globals->fd_count++; in notify_retain_file_descriptor()
706 globals->fd_clnt = (int *)reallocf(globals->fd_clnt, globals->fd_count * sizeof(int)); in notify_retain_file_descriptor()
707 globals->fd_srv = (int *)reallocf(globals->fd_srv, globals->fd_count * sizeof(int)); in notify_retain_file_descriptor()
708 globals->fd_refcount = (int *)reallocf(globals->fd_refcount, globals->fd_count * sizeof(int)); in notify_retain_file_descriptor()
716 globals->fd_count = 0; in notify_retain_file_descriptor()
739 for (i = 0; (i < globals->fd_count) && (x < 0); i++) in notify_release_file_descriptor()
752 if (globals->fd_count == 1) in notify_release_file_descriptor()
[all …]
HDnotify_internal.h61 uint32_t fd_count; member