Lines Matching refs:FD_COUNT
45 #define FD_COUNT (state->fd_count) macro
86 if (FD_COUNT >= FD_SETSIZE) return -1; in isrv_register_fd()
87 if (FD_COUNT <= fd) { in isrv_register_fd()
88 n = FD_COUNT; in isrv_register_fd()
89 FD_COUNT = fd + 1; in isrv_register_fd()
91 DPRINTF("register_fd: FD_COUNT %d", FD_COUNT); in isrv_register_fd()
93 FD2PEER = xrealloc(FD2PEER, FD_COUNT * sizeof(FD2PEER[0])); in isrv_register_fd()
113 if (fd == FD_COUNT-1) { in isrv_close_fd()
115 FD_COUNT = fd + 1; in isrv_close_fd()
117 DPRINTF("close_fd: FD_COUNT %d", FD_COUNT); in isrv_close_fd()
119 FD2PEER = xrealloc(FD2PEER, FD_COUNT * sizeof(FD2PEER[0])); in isrv_close_fd()
149 fd = FD_COUNT - 1; in remove_peer()
203 int fd_cnt = FD_COUNT; in handle_fd_set()
308 FD_COUNT, (int)tv.tv_sec); in isrv_run()
309 n = select(FD_COUNT, &rd, wrp, NULL, tv.tv_sec ? &tv : NULL); in isrv_run()