summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-12-27 10:11:53 +0000
committerRoland McGrath <roland@gnu.org>1998-12-27 10:11:53 +0000
commit1764a4cd92f259e5c6e5a851bb1d5f09ca41a8e3 (patch)
tree4c9bb4b456caa6ca7e903cfc9734e6e412734f7b
parent58d43a69c90a6527f133d19bd4e0cd4b60094124 (diff)
1998-12-27 Roland McGrath <roland@baalperazim.frob.com>
* boot-start.c (_diskfs_boot_privports): Renamed from diskfs_*. * priv.h: Declare it. * console.c (diskfs_console_stdio): Change caller.
-rw-r--r--libdiskfs/boot-start.c2
-rw-r--r--libdiskfs/console.c2
-rw-r--r--libdiskfs/priv.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/boot-start.c b/libdiskfs/boot-start.c
index 725addaa..7d92aceb 100644
--- a/libdiskfs/boot-start.c
+++ b/libdiskfs/boot-start.c
@@ -67,7 +67,7 @@ get_console ()
/* Make sure we have the privileged ports. */
void
-diskfs_boot_privports (void)
+_diskfs_boot_privports (void)
{
assert (diskfs_boot_flags);
if (_hurd_host_priv == MACH_PORT_NULL)
diff --git a/libdiskfs/console.c b/libdiskfs/console.c
index 8271b799..5c6dd4be 100644
--- a/libdiskfs/console.c
+++ b/libdiskfs/console.c
@@ -52,7 +52,7 @@ diskfs_console_stdio ()
mach_port_t dev, cons;
error_t err;
if (diskfs_boot_flags)
- diskfs_boot_privports ();
+ _diskfs_boot_privports ();
err = get_privileged_ports (NULL, &dev);
assert_perror (err);
err = device_open (dev, D_READ|D_WRITE, "console", &cons);
diff --git a/libdiskfs/priv.h b/libdiskfs/priv.h
index b5c9b98d..11cbe534 100644
--- a/libdiskfs/priv.h
+++ b/libdiskfs/priv.h
@@ -79,6 +79,9 @@ error_t _diskfs_rdwr_internal (struct node *np, char *data, off_t offset,
and auth ports). */
void _diskfs_init_completed (void);
+/* Called in a bootstrap filesystem only, to get the privileged ports. */
+void _diskfs_boot_privports (void);
+
/* Clean routine for control port. */
void _diskfs_control_clean (void *);