Lines Matching refs:devnull
2728 int devnull, ret = 0;
2730 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2735 if ((do_stdin && dup2(devnull, STDIN_FILENO) == -1) ||
2736 (do_stdout && dup2(devnull, STDOUT_FILENO) == -1) ||
2737 (do_stderr && dup2(devnull, STDERR_FILENO) == -1)) {
2741 if (devnull > STDERR_FILENO)
2742 close(devnull);
2762 int fd, devnull, p[2], i;
2847 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2852 if (dup2(devnull, STDIN_FILENO) == -1) {
2862 fd = devnull;