summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-05-09 21:31:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-05-09 21:31:29 +0000
commitd6d6272b9e04bfc9f49870a3fe60f0e50ec35646 (patch)
tree9277983edbbd797620a8a29824b4a4a4e5e3cbe0 /init/init.c
parent70dc742b8992aaa9c704bed7e8cfab560810ca6c (diff)
Formerly init.c.~19~
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c27
1 files changed, 6 insertions, 21 deletions
diff --git a/init/init.c b/init/init.c
index b075cf14..c17e78f0 100644
--- a/init/init.c
+++ b/init/init.c
@@ -88,6 +88,8 @@ mach_port_t bootport;
/* The tasks of auth and proc and the bootstrap filesystem. */
task_t authtask, proctask, fstask;
+char *init_version = "0.0 pre-alpha";
+
mach_port_t default_ports[INIT_PORT_MAX];
mach_port_t default_dtable[3];
@@ -417,16 +419,16 @@ launch_system (void)
/* Give the library our auth and proc server ports. */
_hurd_port_set (&_hurd_ports[INIT_PORT_AUTH], authserver);
_hurd_port_set (&_hurd_ports[INIT_PORT_PROC], procserver);
- _hurd_proc_init ((char **) 0);
+ _hurd_proc_init (global_argv);
default_ports[INIT_PORT_AUTH] = authserver;
- /* Tell the proc server our msgport and where our args and
- environment are. */
+ /* Tell the proc server our msgport */
proc_setmsgport (procserver, startup, &old);
if (old)
mach_port_deallocate (mach_task_self (), old);
- proc_setprocargs (procserver, (int) global_argv, (int) environ);
+ proc_register_version (procserver, host_priv, "init", HURD_RELEASE,
+ init_version);
/* Give the bootstrap FS its proc and auth ports. */
proc_task2proc (procserver, fstask, &fsproc);
@@ -602,23 +604,6 @@ S_startup_reboot (mach_port_t server,
for (;;);
}
-kern_return_t
-S_startup_register_version (mach_port_t server,
- mach_port_t credential,
- char *name,
- char *release,
- char *version)
-{
- return EOPNOTSUPP;
-}
-
-kern_return_t
-S_startup_uname (mach_port_t server,
- struct utsname *uname)
-{
- return EOPNOTSUPP;
-}
-
kern_return_t
do_mach_notify_port_destroyed (mach_port_t notify,
mach_port_t rights)