diff options
author | Roland McGrath <roland@gnu.org> | 1994-09-11 00:47:09 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-09-11 00:47:09 +0000 |
commit | 84c19047b6a61adc077af1b4a527ae3bb8f2f1e8 (patch) | |
tree | 6cc2d5a6cd45c0497d53d8932911fb7d01a31b26 | |
parent | 6fdcd7d400557eac86cf1648fd63a590dc3d8ae4 (diff) |
Formerly init-init.c.~18~
-rw-r--r-- | libdiskfs/init-init.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/libdiskfs/init-init.c b/libdiskfs/init-init.c index cc8d5271..cde40c17 100644 --- a/libdiskfs/init-init.c +++ b/libdiskfs/init-init.c @@ -35,19 +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; -/* XXX */ -mach_port_t _diskfs_dotdot_file = MACH_PORT_NULL; - /* Call this after arguments have been parsed to initialize the library. */ -mach_port_t -diskfs_init_diskfs (mach_port_t bootstrap) +void +diskfs_init_diskfs (void) { mach_port_t host, dev; memory_object_t obj; device_t timedev; - mach_port_t realnode; - error_t err; _libports_initialize (); /* XXX */ @@ -70,25 +65,6 @@ diskfs_init_diskfs (mach_port_t bootstrap) diskfs_default_pager = MACH_PORT_NULL; vm_set_default_memory_manager (diskfs_host_priv, &diskfs_default_pager); - if (bootstrap != MACH_PORT_NULL) - { - _diskfs_ncontrol_ports++; - err = fsys_startup (bootstrap, - ports_get_right (ports_allocate_port - (sizeof (struct port_info), - PT_CTL)), - MACH_MSG_TYPE_MAKE_SEND, - &realnode); - if (err) - { - fprintf (stderr, "Translator startup failure\n"); - exit (1); - } - mach_port_deallocate (mach_task_self (), bootstrap); - } - else - realnode = MACH_PORT_NULL; - device_open (diskfs_master_device, 0, "time", &timedev); device_map (timedev, VM_PROT_READ, 0, sizeof (mapped_time_value_t), &obj, 0); vm_map (mach_task_self (), (vm_address_t *)&diskfs_mtime, @@ -98,8 +74,6 @@ diskfs_init_diskfs (mach_port_t bootstrap) mach_port_deallocate (mach_task_self (), obj); /* diskfs_auth_server_port = getauth (); */ - - return realnode; } void |