Home
last modified time | relevance | path

Searched refs:pipefd (Results 1 – 4 of 4) sorted by relevance

/systemd-251/src/import/
Dimport-common.c27 _cleanup_close_pair_ int pipefd[2] = { -1, -1 }; in import_fork_tar_x() local
35 if (pipe2(pipefd, O_CLOEXEC) < 0) in import_fork_tar_x()
66 pipefd[1] = safe_close(pipefd[1]); in import_fork_tar_x()
68 r = rearrange_stdio(TAKE_FD(pipefd[0]), -1, STDERR_FILENO); in import_fork_tar_x()
96 return TAKE_FD(pipefd[1]); in import_fork_tar_x()
100 _cleanup_close_pair_ int pipefd[2] = { -1, -1 }; in import_fork_tar_c() local
108 if (pipe2(pipefd, O_CLOEXEC) < 0) in import_fork_tar_c()
132 pipefd[0] = safe_close(pipefd[0]); in import_fork_tar_c()
134 r = rearrange_stdio(-1, TAKE_FD(pipefd[1]), STDERR_FILENO); in import_fork_tar_c()
156 return TAKE_FD(pipefd[0]); in import_fork_tar_c()
Dimportd.c359 _cleanup_close_pair_ int pipefd[2] = { -1, -1 }; in transfer_start() local
365 if (pipe2(pipefd, O_CLOEXEC) < 0) in transfer_start()
390 pipefd[0] = safe_close(pipefd[0]); in transfer_start()
393 t->stdout_fd < 0 ? pipefd[1] : TAKE_FD(t->stdout_fd), in transfer_start()
394 pipefd[1]); in transfer_start()
395 TAKE_FD(pipefd[1]); in transfer_start()
489 pipefd[1] = safe_close(pipefd[1]); in transfer_start()
490 t->log_fd = TAKE_FD(pipefd[0]); in transfer_start()
/systemd-251/src/test/
Dtest-copy.c191 _cleanup_close_pair_ int pipefd[2] = {-1, -1}; in TEST() local
201 assert_se(pipe2(pipefd, O_CLOEXEC) == 0); in TEST()
203 r = copy_bytes(infd, pipefd[1], UINT64_MAX, 0); in TEST()
206 r = read(pipefd[0], buf, sizeof(buf)); in TEST()
216 r = copy_bytes(pipefd[0], pipefd[0], 1, 0); in TEST()
219 r = copy_bytes(pipefd[1], pipefd[1], 1, 0); in TEST()
222 r = copy_bytes(pipefd[1], infd, 1, 0); in TEST()
/systemd-251/src/shared/linux/
Dauto_dev-ioctl.h50 __s32 pipefd; member