summaryrefslogtreecommitdiff
path: root/kern/syscall_emulation.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2011-09-01 20:24:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2011-09-02 20:21:57 +0200
commitdd48e23f43730038df4bb191e7acc47a4ab73c69 (patch)
tree79ddda1f404f2057ac916fc70514f6933ad1f626 /kern/syscall_emulation.c
parent729f452a4ff186ae6990c6a3abd1705f42731343 (diff)
Remove long obsolete RPC routines
* kern/compat_xxx_defs.h: Remove file. * Makefrag.am (libkernel_a_SOURCES): Remove `kern/compat_xxx_defs.h'. * include/mach/mach_types.defs (xxx_emulation_vector_t): Remove type. * device/device.srv: Do not simport <kern/compat_xxx_defs.h>. * kern/mach.srv: Likewise. * kern/mach_host.srv: Likewise. * include/device/device.defs [MACH_KERNEL]: Do not simport <kern/compat_xxx_defs.h>. (xxx_device_set_status, xxx_device_get_status) (xxx_device_set_filter): Replace routine declarations with skip directives. * include/mach/mach.defs [MACH_KERNEL]: Do not simport <kern/compat_xxx_defs.h>. (xxx_memory_object_lock_request, xxx_task_get_emulation_vector) (xxx_task_set_emulation_vector, xxx_host_info, xxx_slot_info) (xxx_cpu_control, xxx_task_info, xxx_thread_get_state) (xxx_thread_set_state, xxx_thread_info): Replace routine declarations with skip directive. * include/mach/mach_host.defs [MACH_KERNEL]: Do not simport <kern/compat_xxx_defs.h>. (yyy_host_info, yyy_processor_info, yyy_processor_control) (xxx_processor_set_default_priv, yyy_processor_set_info): Replace routine declarations with skip directive. * kern/ipc_host.c (xxx_processor_set_default_priv): Remove function. * kern/machine.c (xxx_host_info, xxx_slot_info) (xxx_cpu_control): Likewise. * kern/syscall_emulation.c (xxx_task_set_emulation_vector) (xxx_task_get_emulation_vector): Likewise. * vm/memory_object.c (xxx_memory_object_lock_request): Likewise.
Diffstat (limited to 'kern/syscall_emulation.c')
-rw-r--r--kern/syscall_emulation.c65
1 files changed, 0 insertions, 65 deletions
diff --git a/kern/syscall_emulation.c b/kern/syscall_emulation.c
index 06781d5..c1c3096 100644
--- a/kern/syscall_emulation.c
+++ b/kern/syscall_emulation.c
@@ -336,24 +336,6 @@ task_set_emulation_vector(task, vector_start, emulation_vector,
}
/*
- * Compatibility entry. Vector is passed inline.
- */
-kern_return_t
-xxx_task_set_emulation_vector(task, vector_start, emulation_vector,
- emulation_vector_count)
- task_t task;
- int vector_start;
- emulation_vector_t emulation_vector;
- unsigned int emulation_vector_count;
-{
- return task_set_emulation_vector_internal(
- task,
- vector_start,
- emulation_vector,
- emulation_vector_count);
-}
-
-/*
* task_get_emulation_vector: [Server Entry]
*
* Get the list of emulated system calls for this task.
@@ -460,53 +442,6 @@ task_get_emulation_vector(task, vector_start, emulation_vector,
}
/*
- * xxx_task_get_emulation: [Server Entry]
- * get the list of emulated system calls for this task.
- * Compatibility code: return list in-line.
- */
-kern_return_t
-xxx_task_get_emulation_vector(task, vector_start, emulation_vector,
- emulation_vector_count)
- task_t task;
- int *vector_start;
- emulation_vector_t emulation_vector; /* pointer to OUT array */
- unsigned int *emulation_vector_count; /*IN/OUT*/
-{
- register eml_dispatch_t eml;
-
- if (task == TASK_NULL)
- return( EML_BAD_TASK );
-
- task_lock(task);
-
- eml = task->eml_dispatch;
- if (eml == EML_DISPATCH_NULL) {
- task_unlock(task);
- *vector_start = 0;
- *emulation_vector_count = 0;
- return( KERN_SUCCESS );
- }
-
- simple_lock(&eml->lock);
-
- if (*emulation_vector_count < eml->disp_count) {
- simple_unlock(&eml->lock);
- task_unlock(task);
- return( EML_BAD_CNT );
- }
-
- *vector_start = eml->disp_min;
- *emulation_vector_count = eml->disp_count;
- memcpy(emulation_vector, eml->disp_vector,
- *emulation_vector_count * sizeof(vm_offset_t));
- simple_unlock(&eml->lock);
-
- task_unlock(task);
-
- return( KERN_SUCCESS );
-}
-
-/*
* task_set_emulation: [Server Entry]
* set up for user space emulation of syscalls within this task.
*/