Lines Matching defs:rpipe
45 static int channel(int rpipe[2], int wpipe[2]);
62 int pflag, rpipe[2], wpipe[2];
121 * parent's viewpoint, meaning the screen reads from rpipe[0] and
123 * writes to rpipe[1].
125 if (channel(rpipe, wpipe) == -1)
127 ipvi->ifd = rpipe[0];
135 arg_format(execp, &argc, &argv, wpipe[0], rpipe[1]);
143 (void)close(rpipe[0]);
166 (void)close(rpipe[1]);
187 channel(int rpipe[2], int wpipe[2])
190 if ((x = pipe(rpipe) == -1) || pipe(wpipe) == -1) {
194 close(rpipe[0]);
195 close(rpipe[1]);
201 rpipe[0] = sockets[0];
203 if (((rpipe[1] = dup(sockets[1])) == -1) ||
207 if (rpipe[1] != -1)
208 close(rpipe[1]);