Sync usage with man page.
[netbsd-mini2440.git] / sys / compat / mach / mach_syscall.h
blob4ac0292527ffae88250e931005d50bd92a685b32
1 /* $NetBSD$ */
3 /*
4 * System call numbers.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.10 2009/01/13 22:27:43 pooka Exp
8 */
10 #ifndef _MACH_SYS_SYSCALL_H_
11 #define _MACH_SYS_SYSCALL_H_
13 #define MACH_SYS_MAXSYSARGS 9
15 /* syscall: "reply_port" ret: "mach_port_name_t" args: */
16 #define MACH_SYS_reply_port 26
18 /* syscall: "thread_self_trap" ret: "mach_port_name_t" args: */
19 #define MACH_SYS_thread_self_trap 27
21 /* syscall: "task_self_trap" ret: "mach_port_name_t" args: */
22 #define MACH_SYS_task_self_trap 28
24 /* syscall: "host_self_trap" ret: "mach_port_name_t" args: */
25 #define MACH_SYS_host_self_trap 29
27 /* syscall: "msg_trap" ret: "mach_msg_return_t" args: "mach_msg_header_t *" "mach_msg_option_t" "mach_msg_size_t" "mach_msg_size_t" "mach_port_name_t" "mach_msg_timeout_t" "mach_port_name_t" */
28 #define MACH_SYS_msg_trap 31
30 /* syscall: "msg_overwrite_trap" ret: "mach_kern_return_t" args: "mach_msg_header_t *" "mach_msg_option_t" "mach_msg_size_t" "mach_msg_size_t" "mach_port_name_t" "mach_msg_timeout_t" "mach_port_name_t" "mach_msg_header_t *" "mach_msg_size_t" */
31 #define MACH_SYS_msg_overwrite_trap 32
33 /* syscall: "semaphore_signal_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" */
34 #define MACH_SYS_semaphore_signal_trap 33
36 /* syscall: "semaphore_signal_all_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" */
37 #define MACH_SYS_semaphore_signal_all_trap 34
39 /* syscall: "semaphore_signal_thread_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_port_name_t" */
40 #define MACH_SYS_semaphore_signal_thread_trap 35
42 /* syscall: "semaphore_wait_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" */
43 #define MACH_SYS_semaphore_wait_trap 36
45 /* syscall: "semaphore_wait_signal_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_port_name_t" */
46 #define MACH_SYS_semaphore_wait_signal_trap 37
48 /* syscall: "semaphore_timedwait_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" "unsigned int" "mach_clock_res_t" */
49 #define MACH_SYS_semaphore_timedwait_trap 38
51 /* syscall: "semaphore_timedwait_signal_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_port_name_t" "unsigned int" "mach_clock_res_t" */
52 #define MACH_SYS_semaphore_timedwait_signal_trap 39
54 /* syscall: "init_process" ret: "mach_kern_return_t" args: */
55 #define MACH_SYS_init_process 41
57 /* syscall: "map_fd" ret: "mach_kern_return_t" args: "int" "mach_vm_offset_t" "mach_vm_offset_t *" "mach_boolean_t" "mach_vm_size_t" */
58 #define MACH_SYS_map_fd 43
60 /* syscall: "task_for_pid" ret: "mach_kern_return_t" args: "mach_port_t" "int" "mach_port_t *" */
61 #define MACH_SYS_task_for_pid 45
63 /* syscall: "pid_for_task" ret: "mach_kern_return_t" args: "mach_port_t" "int *" */
64 #define MACH_SYS_pid_for_task 46
66 /* syscall: "macx_swapon" ret: "mach_kern_return_t" args: "char *" "int" "int" "int" */
67 #define MACH_SYS_macx_swapon 48
69 /* syscall: "macx_swapoff" ret: "mach_kern_return_t" args: "char *" "int" */
70 #define MACH_SYS_macx_swapoff 49
72 /* syscall: "macx_triggers" ret: "mach_kern_return_t" args: "int" "int" "int" "mach_port_t" */
73 #define MACH_SYS_macx_triggers 51
75 /* syscall: "swtch_pri" ret: "mach_kern_return_t" args: "int" */
76 #define MACH_SYS_swtch_pri 59
78 /* syscall: "swtch" ret: "mach_kern_return_t" args: */
79 #define MACH_SYS_swtch 60
81 /* syscall: "syscall_thread_switch" ret: "mach_kern_return_t" args: "mach_port_name_t" "int" "mach_msg_timeout_t" */
82 #define MACH_SYS_syscall_thread_switch 61
84 /* syscall: "clock_sleep_trap" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_sleep_type_t" "int" "int" "mach_timespec_t *" */
85 #define MACH_SYS_clock_sleep_trap 62
87 /* syscall: "timebase_info" ret: "mach_kern_return_t" args: "mach_timebase_info_t" */
88 #define MACH_SYS_timebase_info 89
90 /* syscall: "wait_until" ret: "mach_kern_return_t" args: "u_int64_t" */
91 #define MACH_SYS_wait_until 90
93 /* syscall: "timer_create" ret: "mach_port_name_t" args: */
94 #define MACH_SYS_timer_create 91
96 /* syscall: "timer_destroy" ret: "mach_kern_return_t" args: "mach_port_name_t" */
97 #define MACH_SYS_timer_destroy 92
99 /* syscall: "timer_arm" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_absolute_time_t" */
100 #define MACH_SYS_timer_arm 93
102 /* syscall: "timer_cancel" ret: "mach_kern_return_t" args: "mach_port_name_t" "mach_absolute_time_t *" */
103 #define MACH_SYS_timer_cancel 94
105 /* syscall: "get_time_base_info" ret: "mach_kern_return_t" args: */
106 #define MACH_SYS_get_time_base_info 95
108 #define MACH_SYS_MAXSYSCALL 128
109 #define MACH_SYS_NSYSENT 128
110 #endif /* _MACH_SYS_SYSCALL_H_ */