Lines Matching refs:devnull
2731 int devnull, ret = 0;
2733 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2738 if ((do_stdin && dup2(devnull, STDIN_FILENO) == -1) ||
2739 (do_stdout && dup2(devnull, STDOUT_FILENO) == -1) ||
2740 (do_stderr && dup2(devnull, STDERR_FILENO) == -1)) {
2744 if (devnull > STDERR_FILENO)
2745 close(devnull);
2765 int fd, devnull, p[2], i;
2850 if ((devnull = open(_PATH_DEVNULL, O_RDWR)) == -1) {
2855 if (dup2(devnull, STDIN_FILENO) == -1) {
2865 fd = devnull;