Lines Matching refs:pfds
166 struct pollfd *pfds; member
231 struct pollfd *pfds; member
1648 free(tp->pfds); in close_ios()
1660 tp->pfds = calloc(ndevs, sizeof(struct pollfd)); in open_ios()
1661 memset(tp->pfds, 0, ndevs * sizeof(struct pollfd)); in open_ios()
1665 pfd = tp->pfds; in open_ios()
1721 struct pollfd *pfd = tp->pfds; in handle_pfds_file()
1764 struct pollfd *pfd = tp->pfds; in handle_pfds_netclient()
1798 struct pollfd *pfd = tp->pfds; in handle_pfds_entries()
1856 ndone = poll(tp->pfds, ndevs, to_val); in thread_main()
2285 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_add_connection()
2298 ns->pfds = realloc(ns->pfds, (ns->connects+1) * sizeof(struct pollfd)); in ch_rem_connection()
2567 pfd = &ns->pfds[1]; in handle_client_data()
2584 ns->pfds[0].fd = ns->listen_fd; in net_setup_pfds()
2585 ns->pfds[0].events = POLLIN; in net_setup_pfds()
2587 pfd = &ns->pfds[1]; in net_setup_pfds()
2605 events = poll(ns->pfds, ns->connects + 1, -1); in net_server_handle_connections()
2612 if (ns->pfds[0].revents & POLLIN) { in net_server_handle_connections()
2635 ns->pfds = malloc(sizeof(struct pollfd)); in net_server()
2674 free(ns->pfds); in net_server()