/[hurd]/hurd/libshouldbeinlibc/portxlate.c
ViewVC logotype

Diff of /hurd/libshouldbeinlibc/portxlate.c

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

revision 1.5 by tb, Sun Jul 11 08:06:07 1999 UTC revision 1.6 by roland, Wed May 8 09:24:16 2002 UTC
# Line 1  Line 1 
1  /* Translate mach port names between two tasks  /* Translate mach port names between two tasks
2    
3     Copyright (C) 1996, 1999 Free Software Foundation, Inc.     Copyright (C) 1996,99,2002 Free Software Foundation, Inc.
4       Written by Miles Bader <miles@gnu.org>
    Written by Miles Bader <miles@gnu.ai.mit.edu>  
5    
6     This program is free software; you can redistribute it and/or     This program is free software; you can redistribute it and/or
7     modify it under the terms of the GNU General Public License as     modify it under the terms of the GNU General Public License as
# Line 61  port_name_xlator_create (mach_port_t fro Line 60  port_name_xlator_create (mach_port_t fro
60          }          }
61        else        else
62          {          {
63            munmap ((caddr_t) x->to_names,            munmap ((caddr_t) x->to_names,
64                    x->to_names_len * sizeof (mach_port_t));                    x->to_names_len * sizeof (mach_port_t));
65            munmap ((caddr_t) x->to_types,            munmap ((caddr_t) x->to_types,
66                    x->to_types_len * sizeof (mach_port_type_t));                    x->to_types_len * sizeof (mach_port_type_t));
67            err = ENOMEM;            err = ENOMEM;
68          }          }
# Line 108  port_name_xlator_xlate (struct port_name Line 107  port_name_xlator_xlate (struct port_name
107    error_t err;    error_t err;
108    mach_port_t port;    mach_port_t port;
109    mach_msg_type_number_t i;    mach_msg_type_number_t i;
110    mach_port_type_t aquired_type;    mach_msg_type_name_t aquired_type;
111    mach_port_type_t valid_to_types;    mach_msg_type_name_t valid_to_types;
112    
113    if (from_type == 0)    if (from_type == 0)
114      {      {

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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