Home
last modified time | relevance | path

Searched refs:pfds (Results 1 – 8 of 8) sorted by relevance

/busybox-1.35.0/networking/udhcp/
Dsignalpipe.c68 void FAST_FUNC udhcp_sp_fd_set(struct pollfd *pfds, int extra_fd) in udhcp_sp_fd_set() argument
70 pfds[0].fd = READ_FD; in udhcp_sp_fd_set()
71 pfds[0].events = POLLIN; in udhcp_sp_fd_set()
72 pfds[1].fd = -1; in udhcp_sp_fd_set()
75 pfds[1].fd = extra_fd; in udhcp_sp_fd_set()
76 pfds[1].events = POLLIN; in udhcp_sp_fd_set()
79 pfds[1].revents = 0; in udhcp_sp_fd_set()
Ddhcpd.c970 struct pollfd pfds[2]; in udhcpd_main() local
986 udhcp_sp_fd_set(pfds, server_socket); in udhcpd_main()
1001 retval = poll(pfds, 2, tv); in udhcpd_main()
1011 if (pfds[0].revents) switch (udhcp_sp_read()) { in udhcpd_main()
1024 if (!pfds[1].revents) in udhcpd_main()
Dd6_dhcpc.c1323 struct pollfd pfds[2]; in udhcpc6_main() local
1336 udhcp_sp_fd_set(pfds, client_data.sockfd); in udhcpc6_main()
1347 retval = poll(pfds, 2, timeout * 1000); in udhcpc6_main()
1563 if (!pfds[1].revents) in udhcpc6_main()
Dcommon.h370 void udhcp_sp_fd_set(struct pollfd *pfds, int extra_fd) FAST_FUNC;
Ddhcpc.c1382 struct pollfd pfds[2]; in udhcpc_main() local
1394 udhcp_sp_fd_set(pfds, client_data.sockfd); in udhcpc_main()
1405 retval = poll(pfds, 2, timeout * 1000); in udhcpc_main()
1617 if (!pfds[1].revents) in udhcpc_main()
/busybox-1.35.0/networking/
Dnc.c130 struct pollfd pfds[2]; in nc_main() local
250 pfds[0].fd = STDIN_FILENO; in nc_main()
251 pfds[0].events = POLLIN; in nc_main()
252 pfds[1].fd = cfd; in nc_main()
253 pfds[1].events = POLLIN; in nc_main()
262 if (safe_poll(pfds, 2, -1) < 0) in nc_main()
267 if (pfds[fdidx].revents) { in nc_main()
268 nread = safe_read(pfds[fdidx].fd, iobuf, COMMON_BUFSIZE); in nc_main()
278 pfds[0].fd = -1; in nc_main()
Dnc_bloaty.c599 struct pollfd pfds[2]; in readwrite() local
600 pfds[0].fd = STDIN_FILENO; in readwrite()
601 pfds[0].events = POLLIN; in readwrite()
602 pfds[1].fd = netfd; in readwrite()
603 pfds[1].events = POLLIN; in readwrite()
624 rr = poll(pfds, 2, poll_tmout_ms); in readwrite()
633 if (!pfds[0].revents) { in readwrite()
645 if (pfds[1].revents) { /* net: ding! */ in readwrite()
652 pfds[1].fd = -1; /* don't poll for netfd anymore */ in readwrite()
668 if (pfds[0].revents) { /* stdin: ding! */ in readwrite()
[all …]
Dtls.c2328 struct pollfd pfds[2]; in tls_run_copy_loop() local
2371 pfds[0].fd = STDIN_FILENO; in tls_run_copy_loop()
2372 pfds[0].events = POLLIN; in tls_run_copy_loop()
2373 pfds[1].fd = tls->ifd; in tls_run_copy_loop()
2374 pfds[1].events = POLLIN; in tls_run_copy_loop()
2380 if (safe_poll(pfds, 2, -1) < 0) in tls_run_copy_loop()
2383 if (pfds[0].revents) { in tls_run_copy_loop()
2398 pfds[0].fd = -1; in tls_run_copy_loop()
2414 if (pfds[1].revents) { in tls_run_copy_loop()