Home
last modified time | relevance | path

Searched refs:fd_src (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/copy_file_range/
Dcopy_file_range03.c18 static int fd_src; variable
39 TEST(sys_copy_file_range(fd_src, &offset, in verify_copy_file_range_timestamp()
59 if (fd_src > 0) in cleanup()
60 SAFE_CLOSE(fd_src); in cleanup()
68 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in setup()
69 SAFE_WRITE(1, fd_src, CONTENT, CONTSIZE); in setup()
70 SAFE_CLOSE(fd_src); in setup()
71 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDONLY); in setup()
Dcopy_file_range02.c40 static int fd_src; variable
135 TEST(sys_copy_file_range(fd_src, 0, *tc->copy_to_fd, in verify_copy_file_range()
164 if (fd_src > 0) in cleanup()
165 SAFE_CLOSE(fd_src); in cleanup()
205 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in setup()
223 SAFE_WRITE(1, fd_src, CONTENT, CONTSIZE); in setup()
224 close(fd_src); in setup()
225 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDONLY, 0664); in setup()
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl08.c34 static int fd_src; variable
55 fd_src = SAFE_OPEN(FILE_SRC_PATH, O_RDWR | O_CREAT, 0664); in verify_ioctl()
58 SAFE_WRITE(1, fd_src, tc->src_fcontents, strlen(tc->src_fcontents)); in verify_ioctl()
68 TEST(ioctl(fd_src, FIDEDUPERANGE, fdr)); in verify_ioctl()
96 SAFE_CLOSE(fd_src); in verify_ioctl()
103 if (fd_src > 0) in cleanup()
104 SAFE_CLOSE(fd_src); in cleanup()