Lines Matching refs:connect_socket
92 static int new_test_socket(int *connect_socket);
95 static int send_test(int connect_socket, struct sendfile_test);
234 new_test_socket(int *connect_socket) in new_test_socket() argument
239 *connect_socket = socket(PF_INET, SOCK_STREAM, 0); in new_test_socket()
240 if (*connect_socket < 0) in new_test_socket()
249 if (connect(*connect_socket, (struct sockaddr *)&sin, sizeof(sin)) < 0) in new_test_socket()
269 send_test(int connect_socket, struct sendfile_test test) in send_test() argument
292 len = write(connect_socket, &th, sizeof(th)); in send_test()
315 if (sendfile(file_fd, connect_socket, test.offset, test.length, in send_test()
377 int connect_socket; in run_parent() local
425 if (new_test_socket(&connect_socket) != 0) { in run_parent()
428 close(connect_socket); in run_parent()
432 if (send_test(connect_socket, tests[test_num-1]) != 0) { in run_parent()
435 close(connect_socket); in run_parent()
439 close(connect_socket); in run_parent()