1 $NetBSD: syscalls.master,v 1.9 2007/02/09 21:55:22 ad Exp $
3 ; @(#)syscalls.master 8.1 (Berkeley) 7/19/93
5 ; NetBSD COMPAT_MACH system call name/number "master" file.
6 ; This is used for the negative mach syscalls.
7 ; (See syscalls.conf to see what it is processed into.)
9 ; Fields: number type [type-dependent ...]
10 ; number system call number, must be in order
11 ; type one of STD, OBSOL, UNIMPL, NODEF, NOARGS, or one of
12 ; the compatibility options defined in syscalls.conf.
16 ; OBSOL obsolete, not included in system
17 ; UNIMPL unimplemented, not included in system
18 ; NODEF included, but don't define the syscall number
19 ; NOARGS included, but don't define the syscall args structure
21 ; The compat options are defined in the syscalls.conf file, and the
22 ; compat option name is prefixed to the syscall name. Other than
23 ; that, they're like NODEF (for 'compat' options), or STD (for
24 ; 'libcompat' options).
26 ; The type-dependent arguments are as follows:
27 ; For STD, NODEF, NOARGS, and compat syscalls:
28 ; { pseudo-proto } [alias]
32 ; #ifdef's, etc. may be included, and are copied to the output files.
33 ; #include's are copied to the syscall names and switch definition files only.
35 #if defined(_KERNEL_OPT)
40 #include <sys/param.h>
41 #include <sys/systm.h>
42 #include <sys/signal.h>
43 #include <sys/mount.h>
45 #include <sys/syscallargs.h>
47 #include <compat/mach/mach_types.h>
48 #include <compat/mach/mach_message.h>
49 #include <compat/mach/mach_clock.h>
50 #include <compat/mach/mach_syscallargs.h>
79 26 STD { mach_port_name_t|mach_sys||reply_port(void); }
80 27 STD { mach_port_name_t|mach_sys||thread_self_trap(void); }
81 28 STD { mach_port_name_t|mach_sys||task_self_trap(void); }
82 29 STD { mach_port_name_t|mach_sys||host_self_trap(void); }
84 31 STD { mach_msg_return_t|mach_sys||msg_trap( \
85 mach_msg_header_t *msg, \
86 mach_msg_option_t option, \
87 mach_msg_size_t send_size, \
88 mach_msg_size_t rcv_size, \
89 mach_port_name_t rcv_name, \
90 mach_msg_timeout_t timeout, \
91 mach_port_name_t notify); }
92 32 STD { mach_kern_return_t|mach_sys||msg_overwrite_trap( \
93 mach_msg_header_t *msg, \
94 mach_msg_option_t option, \
95 mach_msg_size_t send_size, \
96 mach_msg_size_t rcv_size, \
97 mach_port_name_t rcv_name, \
98 mach_msg_timeout_t timeout, \
99 mach_port_name_t notify, \
100 mach_msg_header_t *rcv_msg, \
101 mach_msg_size_t scatter_list_size); }
102 33 STD { mach_kern_return_t|\
103 mach_sys||semaphore_signal_trap( \
104 mach_port_name_t signal_name); }
105 34 STD { mach_kern_return_t|\
106 mach_sys||semaphore_signal_all_trap( \
107 mach_port_name_t signal_name); }
108 35 STD { mach_kern_return_t|\
109 mach_sys||semaphore_signal_thread_trap( \
110 mach_port_name_t signal_name, \
111 mach_port_name_t thread); }
112 36 STD { mach_kern_return_t|\
113 mach_sys||semaphore_wait_trap( \
114 mach_port_name_t wait_name); }
115 37 STD { mach_kern_return_t|\
116 mach_sys||semaphore_wait_signal_trap( \
117 mach_port_name_t wait_name, \
118 mach_port_name_t signal_name); }
119 38 STD { mach_kern_return_t|\
120 mach_sys||semaphore_timedwait_trap( \
121 mach_port_name_t wait_name, \
123 mach_clock_res_t nsec); }
124 39 STD { mach_kern_return_t|\
125 mach_sys||semaphore_timedwait_signal_trap( \
126 mach_port_name_t wait_name, \
127 mach_port_name_t signal_name, \
129 mach_clock_res_t nsec); }
131 41 STD { mach_kern_return_t|mach_sys||init_process(void); }
133 43 STD { mach_kern_return_t|mach_sys||map_fd(int fd, \
134 mach_vm_offset_t offset, mach_vm_offset_t *va, \
135 mach_boolean_t findspace, mach_vm_size_t size); }
137 45 STD { mach_kern_return_t|mach_sys||task_for_pid( \
138 mach_port_t target_tport, int pid, \
140 46 STD { mach_kern_return_t|mach_sys||pid_for_task( \
141 mach_port_t t, int *x); }
143 48 STD { mach_kern_return_t|mach_sys||macx_swapon( \
144 char *name, int flags, int size, int priority); }
145 49 STD { mach_kern_return_t|mach_sys||macx_swapoff( \
146 char *name, int flags); }
148 51 STD { mach_kern_return_t|mach_sys||macx_triggers( \
149 int hi_water, int low_water, int flags, \
150 mach_port_t alert_port); }
158 59 STD { mach_kern_return_t|mach_sys||swtch_pri( \
160 60 STD { mach_kern_return_t|mach_sys||swtch(void); }
161 61 STD { mach_kern_return_t|mach_sys||syscall_thread_switch( \
162 mach_port_name_t thread_name, \
164 mach_msg_timeout_t option_time); }
165 62 STD { mach_kern_return_t|mach_sys||clock_sleep_trap( \
166 mach_port_name_t clock_name, \
167 mach_sleep_type_t sleep_type, \
168 int sleep_sec, int sleep_nsec, \
169 mach_timespec_t *wakeup_time); }
196 89 STD { mach_kern_return_t|mach_sys||timebase_info( \
197 mach_timebase_info_t info); }
198 90 STD { mach_kern_return_t|mach_sys||wait_until( \
199 u_int64_t deadline); }
200 91 STD { mach_port_name_t|mach_sys||timer_create(void); }
201 92 STD { mach_kern_return_t|mach_sys||timer_destroy( \
202 mach_port_name_t name); }
203 93 STD { mach_kern_return_t|mach_sys||timer_arm( \
204 mach_port_name_t name, \
205 mach_absolute_time_t expire_time); }
206 94 STD { mach_kern_return_t|mach_sys||timer_cancel( \
207 mach_port_name_t name, \
208 mach_absolute_time_t *result_time); }
209 95 STD { mach_kern_return_t|mach_sys||get_time_base_info(void); }