Home
last modified time | relevance | path

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

/sysdeps/unix/sysv/linux/
A Dtst-fallocate-common.c36 static int temp_fd; variable
41 temp_fd = create_temp_file ("tst-fallocate.", &temp_filename); in do_prepare()
42 if (temp_fd == -1) in do_prepare()
44 if (!support_descriptor_supports_holes (temp_fd)) in do_prepare()
61 ret = fallocate (temp_fd, 0, offset, BLK_SIZE); in do_test_with_offset()
71 ret = fstat (temp_fd, &finfo); in do_test_with_offset()
79 if (lseek (temp_fd, offset, SEEK_SET) == (off_t) -1) in do_test_with_offset()
82 if (write (temp_fd, bwrite, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
85 if (lseek (temp_fd, offset, SEEK_SET) == (off_t) -1) in do_test_with_offset()
88 if (read (temp_fd, bread, BLK_SIZE) != BLK_SIZE) in do_test_with_offset()
A Dtst-sync_file_range.c35 static int temp_fd; variable
43 temp_fd = create_temp_file ("tst-file_sync_range.", &temp_filename); in do_prepare()
44 if (temp_fd == -1) in do_prepare()
89 if ((ret = sync_file_range (temp_fd, 0, 0, -1)) != -1) in do_test()
97 if ((ret = sync_file_range (temp_fd, -1, 1, 0)) != -1) in do_test()
105 if ((ret = sync_file_range (temp_fd, 1024, -2048, 0)) != -1) in do_test()
113 if ((ret = sync_file_range (temp_fd, -1024, 1024, 0)) != -1) in do_test()
121 if ((ret = sync_file_range (temp_fd, 0, 1024, 0)) == -1) in do_test()
126 if ((ret = sync_file_range (temp_fd, large_offset, 1024, 0)) == -1) in do_test()
A Dtst-ofdlocks-compat.c31 static int temp_fd; variable
36 temp_fd = create_temp_file ("tst-ofdlocks-compat.", &temp_filename); in do_prepare()
37 TEST_VERIFY_EXIT (temp_fd != -1); in do_prepare()
64 int ret = fcntl (temp_fd, F_OFD_SETLKW, &lck64); in do_test()
A Dtst-ofdlocks.c27 static int temp_fd; variable
32 temp_fd = create_temp_file ("tst-ofdlocks.", &temp_filename); in do_prepare()
33 TEST_VERIFY_EXIT (temp_fd != -1); in do_prepare()
49 int ret = fcntl64 (temp_fd, F_OFD_SETLKW, &lck64); in do_test()
A Dtst-fallocate64.c37 if (fstat (temp_fd, &st) == -1) in do_test()

Completed in 5 milliseconds