Lines Matching refs:pipefd
62 static void client(int id, int pipefd[])
71 close(pipefd[0]);
92 write(pipefd[1], &fd, 1);
97 close(pipefd[1]);
100 static void server(int id, int pipefd[])
105 close(pipefd[1]);
115 read(pipefd[0], &fd, 1);
119 close(pipefd[0]);
124 int i, status, pipefd[2];
140 if (pipe(pipefd) < 0) {
153 server(i, pipefd);
155 client(i-1, pipefd);
163 close(pipefd[0]);
164 close(pipefd[1]);