From 34918f3816982301834a313f655e13804d6b8ac5 Mon Sep 17 00:00:00 2001 From: Marin Ramesa Date: Fri, 29 Nov 2013 22:54:06 +0100 Subject: kern/syscall_sw.c: remove forward declarations * kern/eventcount.h (evc_wait_clear): Add prototype. * kern/ipc_mig.h: Include device/device_types.h. (syscall_vm_map, syscall_vm_allocate, syscall_vm_deallocate, syscall_task_create, syscall_task_terminate, syscall_task_suspend, syscall_task_set_special_port, syscall_mach_port_allocate, syscall_mach_port_deallocate, syscall_mach_port_insert_right, syscall_mach_port_allocate_name, syscall_thread_depress_abort, syscall_device_write_request, syscall_device_writev_request): Add prototypes. * kern/syscall_sw.c (syscall_vm_map, syscall_vm_allocate, syscall_vm_deallocate, syscall_task_create, syscall_task_terminate, syscall_task_suspend, syscall_task_set_special_port, syscall_mach_port_allocate, syscall_mach_port_deallocate, syscall_mach_port_insert_right, syscall_mach_port_allocate_name, syscall_thread_depress_abort, evc_wait, evc_wait_clear, syscall_device_write_request, syscall_device_writev_request): Remove forward declarations. Include kern/ipc_mig.h. Include kern/eventcount.h. --- kern/syscall_sw.c | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) (limited to 'kern/syscall_sw.c') diff --git a/kern/syscall_sw.c b/kern/syscall_sw.c index 607d843..9397441 100644 --- a/kern/syscall_sw.c +++ b/kern/syscall_sw.c @@ -36,6 +36,8 @@ #include #include #include +#include +#include #include @@ -70,27 +72,6 @@ kern_return_t kern_invalid() return(KERN_INVALID_ARGUMENT); } -extern kern_return_t syscall_vm_map(); -extern kern_return_t syscall_vm_allocate(); -extern kern_return_t syscall_vm_deallocate(); - -extern kern_return_t syscall_task_create(); -extern kern_return_t syscall_task_terminate(); -extern kern_return_t syscall_task_suspend(); -extern kern_return_t syscall_task_set_special_port(); - -extern kern_return_t syscall_mach_port_allocate(); -extern kern_return_t syscall_mach_port_deallocate(); -extern kern_return_t syscall_mach_port_insert_right(); -extern kern_return_t syscall_mach_port_allocate_name(); - -extern kern_return_t syscall_thread_depress_abort(); -extern kern_return_t evc_wait(); -extern kern_return_t evc_wait_clear(); - -extern kern_return_t syscall_device_write_request(); -extern kern_return_t syscall_device_writev_request(); - mach_trap_t mach_trap_table[] = { MACH_TRAP(kern_invalid, 0), /* 0 */ /* Unix */ MACH_TRAP(kern_invalid, 0), /* 1 */ /* Unix */ -- cgit v1.2.3