Lines Matching refs:fd_console
231 int fd_console;
272 if ((fd_console = open("/dev/console", O_RDWR)) >= 0) {
273 if (fd_console != STDIN_FILENO)
274 while (dup2(fd_console, STDIN_FILENO) < 0 &&
277 if (fd_console != STDOUT_FILENO)
278 while (dup2(fd_console, STDOUT_FILENO) < 0 &&
281 if (fd_console != STDERR_FILENO)
282 while (dup2(fd_console, STDERR_FILENO) < 0 &&
285 if (fd_console > STDERR_FILENO)
286 (void) close(fd_console);