From 07ac809a3395c5776fec2f2a50e2f8eaa6be459f Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 05:31:41 +0000 Subject: 1999-07-09 Thomas Bushnell, BSG * io-ops.c (S_io_read): Use mmap instead of vm_allocate. * socket-ops.c (S_socket_whatis_address): Likewise. --- pfinet/io-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pfinet/io-ops.c') diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index 6da558c7..b6831c31 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -75,7 +75,7 @@ S_io_read (struct sock_user *user, allocate as much as necessary. */ if (amount > *datalen) { - vm_allocate (mach_task_self (), (vm_address_t *)data, amount, 1); + *data = mmap (0, amount, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); alloced = 1; } -- cgit v1.2.3