Lines Matching refs:file_fd
78 static int file_fd; variable
277 len = lseek(file_fd, 0, SEEK_SET); in send_test()
282 if (fstat(file_fd, &st) < 0) in send_test()
313 if (sendfile(file_fd, connect_socket, test.offset, test.length, in send_test()
323 if (fstat(file_fd, &sb) == 0) in send_test()
346 if (ftruncate(file_fd, file_size) != 0) in write_test_file()
357 len = write(file_fd, page_buffer, file_size); in write_test_file()
361 len = lseek(file_fd, 0, SEEK_SET); in write_test_file()
465 file_fd = mkstemp(path); in main()
466 if (file_fd == -1) in main()
470 file_fd = open(path, O_CREAT | O_TRUNC | O_RDWR, 0600); in main()
471 if (file_fd == -1) in main()