Lines Matching refs:devnull
2683 int devnull, ret = 0;
2685 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2690 if ((do_stdin && dup2(devnull, STDIN_FILENO) == -1) ||
2691 (do_stdout && dup2(devnull, STDOUT_FILENO) == -1) ||
2692 (do_stderr && dup2(devnull, STDERR_FILENO) == -1)) {
2696 if (devnull > STDERR_FILENO)
2697 close(devnull);
2717 int fd, devnull, p[2], i;
2802 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2807 if (dup2(devnull, STDIN_FILENO) == -1) {
2817 fd = devnull;