Home | History | Annotate | Download | only in splice

Lines Matching refs:fd_out

43 static int fd_in, fd_out;
50 fd_out = SAFE_OPEN(TESTFILE2, O_RDONLY);
51 SAFE_READ(1, fd_out, splicebuffer, TEST_BLOCK_SIZE);
63 SAFE_CLOSE(fd_out);
72 fd_out = SAFE_OPEN(TESTFILE2, O_WRONLY | O_CREAT | O_TRUNC, 0666);
79 ret = splice(pipes[0], NULL, fd_out, NULL, TEST_BLOCK_SIZE, 0);
81 tst_brk(TBROK | TERRNO, "splice(pipe, fd_out) failed");
84 SAFE_CLOSE(fd_out);
114 if (fd_out > 0)
115 SAFE_CLOSE(fd_out);