diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:31:41 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:31:41 +0000 |
commit | 07ac809a3395c5776fec2f2a50e2f8eaa6be459f (patch) | |
tree | fa8d71e4a39219c963a8bf14ce02fe3e9e6720c9 /pfinet/io-ops.c | |
parent | 36764cedd63af870d7baba5a397880bb933ed136 (diff) | |
download | hurd-07ac809a3395c5776fec2f2a50e2f8eaa6be459f.tar.gz hurd-07ac809a3395c5776fec2f2a50e2f8eaa6be459f.tar.bz2 hurd-07ac809a3395c5776fec2f2a50e2f8eaa6be459f.zip |
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* io-ops.c (S_io_read): Use mmap instead of vm_allocate.
* socket-ops.c (S_socket_whatis_address): Likewise.
Diffstat (limited to 'pfinet/io-ops.c')
-rw-r--r-- | pfinet/io-ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |