Lines Matching refs:pipe_fd
53 int pipe_fd[2]; variable
90 if (close(pipe_fd[1]) == -1) { in child_fn()
95 if (fcntl(pipe_fd[0], F_SETOWN, pid) == -1) { in child_fn()
99 if (fcntl(pipe_fd[0], F_SETSIG, SIGUSR1) == -1) { in child_fn()
103 if (fcntl(pipe_fd[0], F_SETFL, in child_fn()
104 fcntl(pipe_fd[0], F_GETFL) | O_ASYNC) == -1) { in child_fn()
132 if (info.si_fd == pipe_fd[0] && info.si_code == POLL_IN) in child_fn()
140 close(pipe_fd[0]); in child_fn()
145 if (close(pipe_fd[0]) == -1) { in child_fn()
154 if (write(pipe_fd[1], "test\n", 5) == -1) { in child_fn()
159 close(pipe_fd[1]); in child_fn()
184 if (pipe(pipe_fd) == -1) { in main()
198 close(pipe_fd[0]); in main()
199 close(pipe_fd[1]); in main()