Lines Matching refs:temp_fd
34 static int temp_fd; variable
42 temp_fd = create_temp_file ("tst-preadvwritev.", &temp_filename); in do_prepare()
43 if (temp_fd == -1) in do_prepare()
45 temp_fd_supports_holes = support_descriptor_supports_holes (temp_fd); in do_prepare()
62 xftruncate (temp_fd, 0); in do_test_without_offset()
64 xwrite (temp_fd, "123", 3); in do_test_without_offset()
65 xlseek (temp_fd, 2, SEEK_SET); in do_test_without_offset()
72 TEST_COMPARE (PWRITEV (temp_fd, iov, array_length (iov), -1), 7); in do_test_without_offset()
74 TEST_COMPARE (xlseek (temp_fd, 0, SEEK_CUR), 9); in do_test_without_offset()
76 xlseek (temp_fd, 1, SEEK_SET); in do_test_without_offset()
85 TEST_COMPARE (PREADV (temp_fd, iov, array_length (iov), -1), in do_test_without_offset()
89 TEST_COMPARE (xlseek (temp_fd, 0, SEEK_CUR), 6); in do_test_without_offset()
92 xftruncate (temp_fd, 0); in do_test_without_offset()
114 ret = PWRITEV (temp_fd, iov, 2, offset); in do_test_with_offset()
120 ret = PWRITEV (temp_fd, iov, 2, sizeof buf1 + sizeof buf2 + offset); in do_test_with_offset()
138 ret = PREADV (temp_fd, iov, 2, offset); in do_test_with_offset()
149 ret = PREADV (temp_fd, iov, 2, sizeof buf3 + sizeof buf4 + offset); in do_test_with_offset()