Lines Matching refs:console
26 * fbconsole - fallback console
85 * Returns a file descriptor which has had the console redirected to it
87 * This version (unused) opens a pipe and redirects the console to it.
96 fprintf(stderr,"Couldn't open console pipes\n");
101 if ((fdcons = open("/dev/console", O_RDONLY)) == -1) {
102 fprintf(stderr,"Couldn't open /dev/console\n");
108 fprintf(stderr,"Couldn't redirect console to console pipe\n");
120 * Opens a pty, copies tty settings into it from /dev/console, and redirects
121 * console output to it. Returns the master end of the pty.
126 int console;
132 if ((console = open("/dev/console", O_RDONLY | O_NOCTTY, 0)) == -1) {
133 perror("fbconsole: open /dev/console");
177 * Propagate tty settings from the real console to the new console.
179 * console. If the erase character is nonzero, leave most of the
186 if (tcgetattr(console, &termios) == -1) {
207 /* redirect console output into the slave side */
209 if (ioctl(console, SRIOCSREDIR, slave) == -1) {
220 * Opens the console log file; returns a file descriptor
260 "fbconsole: couldn't open console log file '%s'\n",path);
322 * Reads a console message and writes it to the console log file
326 int console,
332 rcount = read(console, buf, 1024);
342 * Waits for input from the console message pipe or the xserver.
343 * On input from the console - logs it to the console log file.
349 int console,
359 fds[CONSOLE_FD].fd = console;
375 LogConsole(console,log);
400 int console;
436 console = OpenConsole();
446 InputLoop(dpy, console, log);