Home
last modified time | relevance | path

Searched refs:temp_fd (Results 1 – 6 of 6) sorted by relevance

/io/
A Dtst-lockf.c28 static int temp_fd; variable
34 TEST_VERIFY_EXIT (temp_fd != -1); in do_prepare()
42 TEST_COMPARE (lseek (temp_fd, 0, SEEK_SET), 0); in do_test_child_lockf()
43 TEST_COMPARE (lockf (temp_fd, F_TLOCK, 1024), -1); in do_test_child_lockf()
45 TEST_COMPARE (lockf (temp_fd, F_TEST, 1024), -1); in do_test_child_lockf()
49 TEST_COMPARE (lockf (temp_fd, F_TEST, 1024), -1); in do_test_child_lockf()
53 TEST_COMPARE (lockf (temp_fd, F_LOCK, 1024), 0); in do_test_child_lockf()
58 TEST_COMPARE (lockf64 (temp_fd, F_TEST, 1024), 0); in do_test_child_lockf()
65 TEST_COMPARE (lseek64 (temp_fd, 0, SEEK_SET), 0); in do_test_child_lockf64()
100 TEST_COMPARE (lockf (temp_fd, F_LOCK, 1024), 0); in do_test()
[all …]
A Dtst-posix_fallocate-common.c31 static int temp_fd; variable
36 temp_fd = create_temp_file ("tst-posix_fallocate.", &temp_filename); in do_prepare()
37 if (temp_fd == -1) in do_prepare()
47 if (posix_fallocate (temp_fd, offset, 768) != 0) in do_test_with_offset()
50 if (fstat (temp_fd, &st) != 0) in do_test_with_offset()
58 if (posix_fallocate (temp_fd, 0, 1024) != 0) in do_test_with_offset()
61 if (fstat (temp_fd, &st) != 0) in do_test_with_offset()
68 if (posix_fallocate (temp_fd, offset, 64) != 0) in do_test_with_offset()
71 if (fstat (temp_fd, &st) != 0) in do_test_with_offset()
A Dtst-ttyname_r.c13 static int temp_fd; variable
19 temp_fd = create_temp_file ("tst-ttyname_r.", &temp_file); in do_prepare()
20 if (temp_fd == -1) in do_prepare()
35 res = ttyname_r (temp_fd, buf, sizeof (buf)); in do_test()
A Dtst-utimensat-skeleton.c25 static int temp_fd = -1; variable
53 temp_fd = create_temp_file ("utime", &testfile); in do_prepare()
54 TEST_VERIFY_EXIT (temp_fd > 0); in do_prepare()
92 TEST_CALL (testfile, temp_fd, testlink, tests[i].v1, tests[i].v2); in do_test()
A Dtst-posix_fallocate.c26 if (fstat (temp_fd, &st) != 0) in do_test()
A Dtst-posix_fallocate64.c28 if (fstat (temp_fd, &st) != 0) in do_test()

Completed in 7 milliseconds