/[hurd]/hurd/term/users.c
ViewVC logotype

Diff of /hurd/term/users.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.96 by marcus, Tue Mar 5 02:17:04 2002 UTC revision 1.97 by neal, Tue Mar 26 19:11:01 2002 UTC
# Line 30  Line 30 
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    
# Line 84  struct protid_hook Line 85  struct protid_hook
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);

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26