From 5d401f8369542fe3a8720b26cbf399c57e07e24b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 05:28:06 +0000 Subject: 1999-07-09 Thomas Bushnell, BSG * mux.c (netfs_get_dirents): Use mmap instead of vm_allocate. --- hostmux/mux.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'hostmux/mux.c') 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 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. */ { -- cgit v1.2.3