Lines Matching defs:pfds
62 static int pfds[2];
337 if (write(pfds[1], &rv, sizeof (int)) != sizeof (int)) {
340 (void) close(pfds[1]);
343 (void) close(pfds[1]);
350 (void) close(pfds[1]);
440 * Keep the pfds fd open, close other fds.
446 if (fd != pfds[1])
457 if (pipe(pfds) < 0) {
468 (void) close(pfds[1]);
471 * Read the child process's return value from the pfds.
474 if (read(pfds[0], &rv, sizeof (int)) != sizeof (int)) {
479 (void) close(pfds[0]);
484 (void) close(pfds[0]);
488 * Close all files except pfds[1].