diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2007-05-05 00:30:31 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:27:09 +0200 |
commit | b10112ec96516939dc3cb5d523807fda2755fb37 (patch) | |
tree | ceffab86c66397428f23266423bc0caddc5a271b /vm/vm_user.h | |
parent | 5ccc7791cd3ea06c70af61cf5a580e06b10bcc37 (diff) | |
download | gnumach-b10112ec96516939dc3cb5d523807fda2755fb37.tar.gz gnumach-b10112ec96516939dc3cb5d523807fda2755fb37.tar.bz2 gnumach-b10112ec96516939dc3cb5d523807fda2755fb37.zip |
2007-05-05 Thomas Schwinge <tschwinge@gnu.org>
We're not in the eighties anymore. List arguments in function
prototypes and definitions for a lot of symbols. Also drop some unused
prototypes. I refrain from listing every changed symbol.
* vm/memory_object.c: Do as described.
* vm/memory_object.h: Likewise.
* vm/pmap.h: Likewise.
* vm/vm_external.c: Likewise.
* vm/vm_external.h: Likewise.
* vm/vm_fault.c: Likewise.
* vm/vm_fault.h: Likewise.
* vm/vm_kern.h: Likewise.
* vm/vm_map.c: Likewise.
* vm/vm_map.h: Likewise.
* vm/vm_pageout.h: Likewise.
* vm/vm_user.h: Likewise.
* vm/memory_object.h: Include <ipc/ipc_types.h>.
* vm/pmap.h: Include <kern/thread.h>.
* vm/vm_fault.h: Include <mach/vm_prot.h>, <vm/vm_map.h> and
<vm/vm_types.h>.
* vm/vm_map.h: Include <mach/vm_attributes.h> and <vm/vm_types.h>.
(vm_map_t, VM_MAP_NULL): Remove type and definition.
* vm/vm_object.h (vm_object_t, VM_OBJECT_NULL): Remove type and
definition.
* vm/vm_page.h: Include <vm/vm_types.h>.
(vm_page_t, VM_PAGE_NULL): Remove type and definition.
* vm/vm_user.h: Include <mach/std_types.h>.
* kern/task.h: Include <vm/vm_types.h> instead of <vm/vm_map.h>.
* vm/vm_types.h: New file: the above-removed types and definitions.
Diffstat (limited to 'vm/vm_user.h')
-rw-r--r-- | vm/vm_user.h | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/vm/vm_user.h b/vm/vm_user.h index 85fc6a55..3f15e5ed 100644 --- a/vm/vm_user.h +++ b/vm/vm_user.h @@ -36,15 +36,23 @@ #define _VM_VM_USER_H_ #include <mach/kern_return.h> +#include <mach/std_types.h> -extern kern_return_t vm_allocate(); -extern kern_return_t vm_deallocate(); -extern kern_return_t vm_inherit(); -extern kern_return_t vm_protect(); -extern kern_return_t vm_statistics(); -extern kern_return_t vm_read(); -extern kern_return_t vm_write(); -extern kern_return_t vm_copy(); -extern kern_return_t vm_map(); +extern kern_return_t vm_allocate(vm_map_t, vm_offset_t *, vm_size_t, + boolean_t); +extern kern_return_t vm_deallocate(vm_map_t, vm_offset_t, vm_size_t); +extern kern_return_t vm_inherit(vm_map_t, vm_offset_t, vm_size_t, + vm_inherit_t); +extern kern_return_t vm_protect(vm_map_t, vm_offset_t, vm_size_t, boolean_t, + vm_prot_t); +extern kern_return_t vm_statistics(vm_map_t, vm_statistics_data_t *); +extern kern_return_t vm_read(vm_map_t, vm_address_t, vm_size_t, pointer_t *, + vm_size_t *); +extern kern_return_t vm_write(vm_map_t, vm_address_t, pointer_t, vm_size_t); +extern kern_return_t vm_copy(vm_map_t, vm_address_t, vm_size_t, + vm_address_t); +extern kern_return_t vm_map(vm_map_t, vm_offset_t *, vm_size_t, vm_offset_t, + boolean_t, ipc_port_t, vm_offset_t, boolean_t, + vm_prot_t, vm_prot_t, vm_inherit_t); #endif /* _VM_VM_USER_H_ */ |