943N/A * Copyright (c) 1992, 2005, Oracle and/or its affiliates. All rights reserved. 530N/A * Permission is hereby granted, free of charge, to any person obtaining a 919N/A * copy of this software and associated documentation files (the "Software"), 919N/A * to deal in the Software without restriction, including without limitation 919N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense, 919N/A * and/or sell copies of the Software, and to permit persons to whom the 919N/A * Software is furnished to do so, subject to the following conditions: 919N/A * The above copyright notice and this permission notice (including the next 919N/A * paragraph) shall be included in all copies or substantial portions of the 919N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 919N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 919N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 919N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 919N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 919N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 919N/A * DEALINGS IN THE SOFTWARE. 530N/A * fbconsole - fallback console 530N/A * Default settings to use if they can't actually be obtained from a 530N/A * descriptor relevant to the application. 530N/A * XXX: These settings shouldn't be used unless absolutely necessary, since 530N/A * they're almost certain to get out of sync with the kernel's defaults 530N/A * (which is what they're intended to be). 530N/A /* control characters */ 530N/A * Returns a file descriptor which has had the console redirected to it 530N/A * This version (unused) opens a pipe and redirects the console to it. 530N/A * Opens a pty, copies tty settings into it from /dev/console, and redirects 530N/A * console output to it. Returns the master end of the pty. 530N/A * Propagate tty settings from the real console to the new console. 530N/A * If the erase character is zero, apply default settings to the new 530N/A * console. If the erase character is nonzero, leave most of the 530N/A * settings intact and apply default values only to the modes and to 530N/A * the EOF and EOL character. (Why apply defaults for EOF and EOL?) 530N/A /* redirect console output into the slave side */ 530N/A * Opens the console log file; returns a file descriptor 530N/A "fbconsole: couldn't open console log file '%s'\n",
path);
530N/A * Closes log file and exits 530N/A * The signal handler for SIGINT and SIGTERM. 530N/A * Reads a console message and writes it to the console log file 530N/A * Waits for input from the console message pipe or the xserver. 530N/A * On input from the console - logs it to the console log file. 530N/A * On any input (or EOF) from the xserver, exits 530N/A * Prints a usage message 530N/A "Couldn't open display connection %s\n",