summaryrefslogtreecommitdiff
path: root/libpager/pager-memcpy.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:51:02 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:51:02 +0000
commitf3e41afcc2e04bad2016382f70c4f4c066dc9ded (patch)
treebdcdc49f25b84f84648561873ffcd6866ceee6e7 /libpager/pager-memcpy.c
parent9453e9c4b42441016d4cb7c9830750a5bd5d84ad (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* data-return.c (_pager_do_write_request): Use munmap instead of vm_deallocate. * object-terminate.c (_pager_free_structure): Likewise. * pagemap.c (_pager_pagemap_resize): Likewise. * pager-memcpy.c (pager_memcpy): Likewise. * pager.h (pager_write_page): Doc adjustment.
Diffstat (limited to 'libpager/pager-memcpy.c')
-rw-r--r--libpager/pager-memcpy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpager/pager-memcpy.c b/libpager/pager-memcpy.c
index fe9876de..9e53f7d6 100644
--- a/libpager/pager-memcpy.c
+++ b/libpager/pager-memcpy.c
@@ -1,5 +1,5 @@
/* Fault-safe copy into or out of pager-backed memory.
- Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
Written by Roland McGrath.
This program is free software; you can redistribute it and/or
@@ -46,7 +46,7 @@ pager_memcpy (struct pager *pager, memory_object_t memobj,
if (window)
/* Deallocate the old window. */
- vm_deallocate (mach_task_self (), window, windowsize);
+ munmap ((caddr_t) window, windowsize);
/* Map in and copy a standard-sized window, unless that is
more than the total left to be copied. */
@@ -93,7 +93,7 @@ pager_memcpy (struct pager *pager, memory_object_t memobj,
&copy, (sighandler_t) &fault);
if (window)
- vm_deallocate (mach_task_self (), window, windowsize);
+ munmap ((caddr_t) window, windowsize);
*size -= to_copy;