diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:32:24 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 05:32:24 +0000 |
commit | 405d07e1e45eb3aec2aec7149f4b9f9fa70d9843 (patch) | |
tree | 14b1854f4637c44b44e7e0aa3a2e8e641f334af4 /term/users.c | |
parent | cd19ba270757a36b05b776253391debcef50d65c (diff) | |
download | hurd-405d07e1e45eb3aec2aec7149f4b9f9fa70d9843.tar.gz hurd-405d07e1e45eb3aec2aec7149f4b9f9fa70d9843.tar.bz2 hurd-405d07e1e45eb3aec2aec7149f4b9f9fa70d9843.zip |
1999-07-09 Thomas Bushnell, BSG <tb@mit.edu>
* ptyio.c (pty_io_read): Use mmap instead of vm_allocate.
* users.c (trivfs_S_io_read): Likewise.
Diffstat (limited to 'term/users.c')
-rw-r--r-- | term/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/term/users.c b/term/users.c index 67730052..60b7825f 100644 --- a/term/users.c +++ b/term/users.c @@ -696,7 +696,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, max = (amount < avail) ? amount : avail; if (max > *datalen) - vm_allocate (mach_task_self (), (vm_address_t *)data, max, 1); + *data = mmap (0, max, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); cancel = 0; cp = *data; |