Lines Matching refs:pfds
166 struct pollfd *pfds; member
231 struct pollfd *pfds; member
1593 free(tp->pfds); in close_ios()
1605 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios()
1606 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios()
1610 pfd = tp->pfds; in open_ios()
1666 struct pollfd *pfd = tp->pfds; in handle_pfds_file()
1710 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient()
1744 struct pollfd *pfd = tp->pfds; in handle_pfds_entries()
1802 ndone = poll(tp->pfds, ndevs, to_val); in thread_main()
2183 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_add_connection()
2196 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_rem_connection()
2465 pfd = &ns->pfds[1]; in handle_client_data()
2482 ns->pfds[0].fd = ns->listen_fd; in net_setup_pfds()
2483 ns->pfds[0].events = POLLIN; in net_setup_pfds()
2485 pfd = &ns->pfds[1]; in net_setup_pfds()
2503 events = poll(ns->pfds, ns->connects + 1, -1); in net_server_handle_connections()
2510 if (ns->pfds[0].revents & POLLIN) { in net_server_handle_connections()
2533 ns->pfds = malloc(sizeof(struct pollfd)); in net_server()
2572 free(ns->pfds); in net_server()