Searched refs:target_fd (Results 1 – 4 of 4) sorted by relevance
400 atf_utils_redirect(const int target_fd, const char *name) in atf_utils_redirect() argument402 if (target_fd == STDOUT_FILENO) in atf_utils_redirect()404 else if (target_fd == STDERR_FILENO) in atf_utils_redirect()410 if (new_fd != target_fd) { in atf_utils_redirect()411 if (dup2(new_fd, target_fd) == -1) in atf_utils_redirect()412 err(EXIT_FAILURE, "Cannot redirect to fd %d", target_fd); in atf_utils_redirect()
74 int target_fd = FileSystem::Instance().Open(file, flags, 0666); in DupDescriptor() local76 if (target_fd == -1) in DupDescriptor()79 if (target_fd == fd) in DupDescriptor()82 if (::dup2(target_fd, fd) == -1) in DupDescriptor()85 ::close(target_fd); in DupDescriptor()
476 .target_fd = targetFd, in clone_fd_action()
1014 add_stderr_action->fd.target_fd = STDERR_FILENO; in AssumeRole()