summaryrefslogtreecommitdiff
path: root/hostmux
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:06 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-11 05:28:06 +0000
commit5d401f8369542fe3a8720b26cbf399c57e07e24b (patch)
tree78cf8b4470c3e36bd3c6c69548cddad9b730b6e6 /hostmux
parent8296fd7fe688a203d71c63bdd2fbc4cd098989c1 (diff)
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* mux.c (netfs_get_dirents): Use mmap instead of vm_allocate.
Diffstat (limited to 'hostmux')
-rw-r--r--hostmux/ChangeLog4
-rw-r--r--hostmux/mux.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/hostmux/ChangeLog b/hostmux/ChangeLog
index fa8d9f4c..038992a3 100644
--- a/hostmux/ChangeLog
+++ b/hostmux/ChangeLog
@@ -1,3 +1,7 @@
+1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * mux.c (netfs_get_dirents): Use mmap instead of vm_allocate.
+
Tue Feb 16 05:09:49 1999 Thomas Bushnell, BSG <tb@mit.edu>
* Makefile (MIGSTUBS): Deleted variable; neither ioServer nor
diff --git a/hostmux/mux.c b/hostmux/mux.c
index 50c8e8e1..7a44c4e8 100644
--- a/hostmux/mux.c
+++ b/hostmux/mux.c
@@ -1,6 +1,6 @@
/* Root hostmux node
- Copyright (C) 1997 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
This file is part of the GNU Hurd.
@@ -145,7 +145,9 @@ netfs_get_dirents (struct iouser *cred, struct node *dir,
break;
/* Allocate it. */
- err = vm_allocate (mach_task_self (), (vm_address_t *) data, size, 1);
+ *data = mmap (0, size, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0);
+ err = ((void *) *data == (void *) -1) ? errno : 0;
+
if (! err)
/* Copy out the result. */
{