diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:52:06 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:52:06 +0000 |
commit | 157a9dcf73718cf04690b1646995549a52cee43d (patch) | |
tree | 7f8e23a2bdff30f8d6c9fe79155f6cad48822375 /libshouldbeinlibc/portxlate.c | |
parent | d8f2d7d71da7a39b7a70866d834658b1a090eb38 (diff) |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* fsysops.c (fsys_get_readonly): Use munmap instead of vm_deallocate.
* idvec-auth.c (idvec_merge_auth): Likewise.
* portinfo.c (print_port_info): Likewise.
(print_task_ports_info): Likewise.
* portxlate.c (port_name_xlator_create): Likewise.
(port_name_xlator_free): Likewise.
* xportinfo.c (print_xlated_task_ports_info): Likewise.
Diffstat (limited to 'libshouldbeinlibc/portxlate.c')
-rw-r--r-- | libshouldbeinlibc/portxlate.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index 07b2fc03..087e0850 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -1,6 +1,6 @@ /* Translate mach port names between two tasks - Copyright (C) 1996 Free Software Foundation, Inc. + Copyright (C) 1996, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -59,12 +59,8 @@ port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, } else { - vm_deallocate (mach_task_self (), - (vm_address_t)x->to_names, - x->to_names_len * sizeof (mach_port_t)); - vm_deallocate (mach_task_self (), - (vm_address_t)x->to_types, - x->to_types_len * sizeof (mach_port_type_t)); + munmap (x->to_names, x->to_names_len * sizeof (mach_port_t)); + munmap (x->to_types, x->to_types_len * sizeof (mach_port_type_t)); err = ENOMEM; } } @@ -88,12 +84,8 @@ port_name_xlator_free (struct port_name_xlator *x) mach_port_deallocate (mach_task_self (), x->ports[i]); free (x->ports); - vm_deallocate (mach_task_self (), - (vm_address_t)x->to_names, - x->to_names_len * sizeof (mach_port_t)); - vm_deallocate (mach_task_self (), - (vm_address_t)x->to_types, - x->to_types_len * sizeof (mach_port_type_t)); + munmap (x->to_names, x->to_names_len * sizeof (mach_port_t)); + munmap (x->to_types, x->to_types_len * sizeof (mach_port_type_t)); mach_port_deallocate (mach_task_self (), x->to_task); mach_port_deallocate (mach_task_self (), x->from_task); |