Lines Matching refs:fds
212 int fds[MULTICONN_NFDS]; in test_stream_multiconn_client() local
216 fds[i] = vsock_stream_connect(opts->peer_cid, 1234); in test_stream_multiconn_client()
217 if (fds[i] < 0) { in test_stream_multiconn_client()
225 recv_byte(fds[i], 1, 0); in test_stream_multiconn_client()
227 send_byte(fds[i], 1, 0); in test_stream_multiconn_client()
231 close(fds[i]); in test_stream_multiconn_client()
236 int fds[MULTICONN_NFDS]; in test_stream_multiconn_server() local
240 fds[i] = vsock_stream_accept(VMADDR_CID_ANY, 1234, NULL); in test_stream_multiconn_server()
241 if (fds[i] < 0) { in test_stream_multiconn_server()
249 send_byte(fds[i], 1, 0); in test_stream_multiconn_server()
251 recv_byte(fds[i], 1, 0); in test_stream_multiconn_server()
255 close(fds[i]); in test_stream_multiconn_server()
634 struct pollfd fds; in test_stream_poll_rcvlowat_client() local
654 fds.fd = fd; in test_stream_poll_rcvlowat_client()
656 fds.events = poll_flags; in test_stream_poll_rcvlowat_client()
659 if (poll(&fds, 1, 1000) < 0) { in test_stream_poll_rcvlowat_client()
665 if (fds.revents) { in test_stream_poll_rcvlowat_client()
667 fds.revents); in test_stream_poll_rcvlowat_client()
675 if (poll(&fds, 1, 10000) < 0) { in test_stream_poll_rcvlowat_client()
681 if (fds.revents != poll_flags) { in test_stream_poll_rcvlowat_client()
683 fds.revents); in test_stream_poll_rcvlowat_client()