aboutsummaryrefslogtreecommitdiff
path: root/libdiskfs/console.c
Commit message (Collapse)AuthorAgeFilesLines
* Modernize code by removing use of old style definitions.Flavio Cruz2023-04-031-1/+1
| | | | | Also add -Werror=old-style-definition to enforce new code. Message-Id: <ZBZ+8xf7GHy2RT/h@jupiter.tail36e24.ts.net>
* libdiskfs: Add missing includeSamuel Thibault2022-08-301-0/+1
|
* libdiskfs: Avoid crashing when stdout/err shuts downSamuel Thibault2022-08-301-0/+4
| | | | | | stdout/err could shut down for whatever reason (killed the term on /dev/console or whatever). We should not crash just because we lost our ability to print output.
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-3/+3
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* 2001-08-20 Roland McGrath <roland@frob.com>Roland McGrath2001-08-201-4/+3
| | | | | | | | | | | | | | | * opts-std-startup.c: diskfs_boot_flags -> diskfs_boot_command_line. (OPT_BOOT_CMDLINE): Renamed from OPT_BOOTFLAGS. (startup_options): --bootflags -> --multiboot-command-line (parse_startup_opt): Parse it. * diskfs.h: diskfs_boot_flags -> diskfs_boot_command_line. (diskfs_boot_filesystem): New macro. * init-main.c (diskfs_init_main): Use it. * init-init.c (diskfs_init_diskfs): Likewise. * console.c (diskfs_console_stdio): Likewise. * boot-start.c (_diskfs_boot_privports): Likewise. (diskfs_start_bootstrap): Split boot_command_line into words and pass those arguments to init instead of diskfs_bootflags.
* 1999-05-19 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1999-05-191-8/+15
| | | | | * console.c (diskfs_console_stdio): If there is an fd 2 that appears to work, just leave it as is and dup2 it to fd 1 as well.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-1/+1
| | | | | | * boot-start.c (_diskfs_boot_privports): Renamed from diskfs_*. * priv.h: Declare it. * console.c (diskfs_console_stdio): Change caller.
* 1998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-12-271-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | * opts-std-startup.c (startup_options): Move -C above "Boot options:", give it a docstring. Docstrings for --bootflags, --boot-command. (_diskfs_boot_command): New variable. (startup_options, parse_startup_opt): New option --boot-command, consumes remaining args to set _diskfs_boot_command. * priv.h: Declare _diskfs_boot_command. * boot-start.c (diskfs_start_bootstrap): If diskfs_exec_server_task is null, assume we are running as the boot command and have a root with /servers/exec. If _diskfs_boot_command is set, start that command in place of init. If can't lookup initname, print error msg and loop to prompt. Put a newline before "Init name" prompt. After starting exec server, try to set active trans on /servers/exec. (diskfs_boot_getpriv): New function: if _hurd_host_priv is null, use fsys_getpriv on our bootstrap port. (parent_task): New static variable, set there with fsys_getpriv call. (diskfs_S_fsys_init): If diskfs_exec_server_task is null, don't do anything with it; instead register parent_task as our child and send an fsys_init to our parent on our bootstrap port. * console.c (diskfs_console_stdio): Call diskfs_boot_privports before get_privileged_ports if diskfs_boot_flags is set.
* Include <hurd.h>.Michael I. Bushnell1996-04-111-1/+2
|
* Initial revisionMiles Bader1995-10-131-0/+60