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

/bionic/tests/
H A Dfcntl_test.cpp205 int pipe1[2]; local
206 ASSERT_EQ(0, pipe(pipe1));
214 // Write /proc/version into pipe1.
215 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE);
217 close(pipe1[1]);
219 // Tee /proc/version from pipe1 into pipe2.
220 ssize_t bytes_teed = tee(pipe1[0], pipe2[1], SIZE_MAX, 0);
224 // The out fds of both pipe1 and pipe2 should now contain /proc/version.
226 FILE* fp1 = fdopen(pipe1[0], "r");

Completed in 466 milliseconds