summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-09 19:45:06 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-09 19:45:06 +0000
commit5ed885d95885e09793c002456a1a5a7276bd7a66 (patch)
treecb7cb3b708268c2d49404ab5861ef841f5b9eb3b /libdiskfs
parent24722422c61931bafcf5d725331833a6e555be6c (diff)
(diskfs_protid_class, diskfs_transboot_class, diskfs_control_class,
diskfs_initboot_class, diskfs_execboot_class, diskfs_port_bucket): New vars. (diskfs_init_diskfs) Initialize all those new vars. Don't call _libports_initialize.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/init-init.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c
index 72dd93ee..5f1d2901 100644
--- a/libdiskfs/init-init.c
+++ b/libdiskfs/init-init.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This file is part of the GNU Hurd.
@@ -35,6 +35,14 @@ spin_lock_t diskfs_node_refcnt_lock = SPIN_LOCK_INITIALIZER;
spin_lock_t _diskfs_control_lock = SPIN_LOCK_INITIALIZER;
int _diskfs_ncontrol_ports = 0;
+struct port_class *diskfs_protid_class;
+struct port_class *diskfs_transboot_class;
+struct port_class *diskfs_control_class;
+struct port_class *diskfs_initboot_class;
+struct port_class *diskfs_execboot_class;
+
+struct port_bucket *diskfs_port_bucket;
+
/* Call this after arguments have been parsed to initialize the
library. */
void
@@ -44,8 +52,6 @@ diskfs_init_diskfs (void)
memory_object_t obj;
device_t timedev;
- _libports_initialize (); /* XXX */
-
if (diskfs_host_priv == MACH_PORT_NULL
|| diskfs_master_device == MACH_PORT_NULL)
{
@@ -74,6 +80,13 @@ diskfs_init_diskfs (void)
mach_port_deallocate (mach_task_self (), obj);
diskfs_auth_server_port = getauth ();
+
+ diskfs_protid_class = ports_create_class (diskfs_protid_rele);
+ diskfs_transboot_class = ports_create_class (fshelp_transboot_clean);
+ diskfs_control_class = ports_create_class (_diskfs_control_clean);
+ diskfs_initboot_class = ports_create_class (0);
+ diskfs_execboot_class = ports_create_class (0);
+ diskfs_port_bucket = ports_create_bucket ();
}
void