Home
last modified time | relevance | path

Searched refs:fdOut (Results 1 - 3 of 3) sorted by relevance

/test/xts/hats/kernel/syscalls/fileio/copyfilerange/
H A DCopyFileRangeApiTest.cpp67 * @tc.desc : copy_file_range copy TEST_DATA in fdOut with specify length from fdIn success.
83 int fdOut = open(TEST_DES_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F() local
84 EXPECT_TRUE(fdOut > 0); in HWTEST_F()
86 size = copy_file_range(fdIn, &offIn, fdOut, &offOut, strlen(TEST_DATA), 0); in HWTEST_F()
88 ret = read(fdOut, buffer, strlen(TEST_DATA)); in HWTEST_F()
93 close(fdOut); in HWTEST_F()
144 int fdOut = open(TEST_DES_FILE, O_RDWR | O_CREAT | O_TRUNC, MODE_0644); in HWTEST_F() local
145 EXPECT_TRUE(fdOut > 0); in HWTEST_F()
148 size = copy_file_range(fdIn, &offIn, fdOut, &offOut, strlen(TEST_DATA), 1); in HWTEST_F()
153 close(fdOut); in HWTEST_F()
176 int fdOut = open(TEST_DES_FILE, O_RDONLY | O_CREAT, MODE_0644); HWTEST_F() local
223 int fdOut = open(TEST_DES_DIR, O_RDONLY | O_DIRECTORY); HWTEST_F() local
[all...]
/test/xts/hats/kernel/syscalls/fileio/splice/
H A DSpliceApiTest.cpp111 int fdOut = open(TEST_WRITE_FILE, O_RDWR | O_CREAT, 0644); in HWTEST_F() local
112 EXPECT_TRUE(fdOut > 0); in HWTEST_F()
120 ret = splice(pipeFd[0], nullptr, fdOut, &offset, TEST_DATA_LEN, SPLICE_F_MOVE | SPLICE_F_MORE); in HWTEST_F()
123 off_t pos = lseek(fdOut, 0, SEEK_SET); in HWTEST_F()
126 size = read(fdOut, buffer, MAX_LEN); in HWTEST_F()
130 close(fdOut); in HWTEST_F()
154 // fdOut is invalid fd, failed in HWTEST_F()
184 int fdOut = open(TEST_WRITE_FILE, O_RDWR | O_TRUNC | O_CREAT, 0644); in HWTEST_F() local
185 EXPECT_TRUE(fdOut > 0); in HWTEST_F()
187 ret = splice(fdIn, &offset, fdOut, in HWTEST_F()
[all...]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dunistdndk.cpp1840 int fdOut = PARAM_0; in Copy_file_range() local
1843 fdOut = open(path_out, O_RDWR | O_CREAT, TEST_MODE); in Copy_file_range()
1846 backParam = copy_file_range(fd_in, nullptr, fdOut, nullptr, wlen, PARAM_0); in Copy_file_range()
1851 close(fdOut); in Copy_file_range()

Completed in 6 milliseconds