Searched refs:num_fds (Results 1 – 4 of 4) sorted by relevance
157 int num_fds; member507 gdb_notifier.num_fds++; in create_file_handler()511 (gdb_notifier.num_fds in create_file_handler()516 (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->fd = fd; in create_file_handler()517 (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->events = mask; in create_file_handler()518 (gdb_notifier.poll_fds + gdb_notifier.num_fds - 1)->revents = 0; in create_file_handler()541 if (gdb_notifier.num_fds <= fd) in create_file_handler()542 gdb_notifier.num_fds = fd + 1; in create_file_handler()582 (struct pollfd *) xmalloc ((gdb_notifier.num_fds - 1) * sizeof (struct pollfd)); in delete_file_handler()584 for (i = 0, j = 0; i < gdb_notifier.num_fds; i++) in delete_file_handler()[all …]
2394 (wait_fd): Enclose local variables "num_fds" and "i" LOSING_POLL
110 cleanup(int *fds, int num_fds) in cleanup() argument112 while (num_fds-- > 0) in cleanup()
1105 int n, num_fds; in readwrite() local1148 num_fds = poll(pfd, 4, timeout); in readwrite()1151 if (num_fds == -1) in readwrite()1155 if (num_fds == 0) in readwrite()