Lines Matching refs:pipe_fd
54 int pipe_fd[2]; variable
91 if (close(pipe_fd[1]) == -1) { in child_fn()
96 if (fcntl(pipe_fd[0], F_SETOWN, pid) == -1) { in child_fn()
100 if (fcntl(pipe_fd[0], F_SETSIG, SIGUSR1) == -1) { in child_fn()
104 if (fcntl(pipe_fd[0], F_SETFL, in child_fn()
105 fcntl(pipe_fd[0], F_GETFL) | O_ASYNC) == -1) { in child_fn()
133 if (info.si_fd == pipe_fd[0] && info.si_code == POLL_IN) in child_fn()
141 close(pipe_fd[0]); in child_fn()
146 if (close(pipe_fd[0]) == -1) { in child_fn()
155 if (write(pipe_fd[1], "test\n", 5) == -1) { in child_fn()
160 close(pipe_fd[1]); in child_fn()
186 if (pipe(pipe_fd) == -1) { in main()
207 close(pipe_fd[0]); in main()
208 close(pipe_fd[1]); in main()