summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/ChangeLog5
-rw-r--r--pfinet/io-ops.c17
2 files changed, 11 insertions, 11 deletions
diff --git a/pfinet/ChangeLog b/pfinet/ChangeLog
index 1ef7b2f8..bf68ffe9 100644
--- a/pfinet/ChangeLog
+++ b/pfinet/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * io-ops.c (S_io_read): Use munmap instead of vm_deallocate.
+ (S_io_reauthenticate): Likewise.
+
1999-06-13 Roland McGrath <roland@baalperazim.frob.com>
* main.c (trivfs_goaway): Exit if there are no socket ports.
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c
index b5457977..034d7e27 100644
--- a/pfinet/io-ops.c
+++ b/pfinet/io-ops.c
@@ -90,9 +90,8 @@ S_io_read (struct sock_user *user,
{
*datalen = err;
if (alloced && round_page (*datalen) < round_page (amount))
- vm_deallocate (mach_task_self (),
- (vm_address_t) *data + round_page (*datalen),
- round_page (amount) - round_page (*datalen));
+ munmap (*data + round_page (*datalen),
+ round_page (amount) - round_page (*datalen));
err = 0;
}
return err;
@@ -413,17 +412,13 @@ S_io_reauthenticate (struct sock_user *user,
ports_port_deref (newuser);
if (gubuf != gen_uids)
- vm_deallocate (mach_task_self (), (u_int) gen_uids,
- genuidlen * sizeof (uid_t));
+ munmap (gen_uids, genuidlen * sizeof (uid_t));
if (ggbuf != gen_gids)
- vm_deallocate (mach_task_self (), (u_int) gen_gids,
- gengidlen * sizeof (uid_t));
+ munmap (gen_gids, gengidlen * sizeof (uid_t));
if (aubuf != aux_uids)
- vm_deallocate (mach_task_self (), (u_int) aux_uids,
- auxuidlen * sizeof (uid_t));
+ munmap (aux_uids, auxuidlen * sizeof (uid_t));
if (agbuf != aux_gids)
- vm_deallocate (mach_task_self (), (u_int) aux_gids,
- auxgidlen * sizeof (uid_t));
+ munmap (aux_gids, auxgidlen * sizeof (uid_t));
return 0;
}