30 |
#include <stdio.h> |
#include <stdio.h> |
31 |
#include <hurd/iohelp.h> |
#include <hurd/iohelp.h> |
32 |
#include <hurd/fshelp.h> |
#include <hurd/fshelp.h> |
33 |
|
#include <error.h> |
34 |
#include "ourmsg_U.h" |
#include "ourmsg_U.h" |
35 |
|
|
36 |
|
|
85 |
void |
void |
86 |
init_users () |
init_users () |
87 |
{ |
{ |
88 |
errno = ports_create_port (cttyid_class, term_bucket, |
error_t err; |
89 |
sizeof (struct port_info), &cttyid); |
|
90 |
if (errno) |
err = ports_create_port (cttyid_class, term_bucket, |
91 |
{ |
sizeof (struct port_info), &cttyid); |
92 |
perror ("Allocating cttyid"); |
if (err) |
93 |
exit (1); |
error (1, err, "Allocating cttyid"); |
|
} |
|
94 |
|
|
95 |
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, |
mach_port_allocate (mach_task_self (), MACH_PORT_RIGHT_RECEIVE, |
96 |
&async_icky_id); |
&async_icky_id); |