6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.34 2009/11/24 10:42:43 njoly Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #if defined(_KERNEL_OPT)
16 #include "opt_compat_43.h"
17 #include "opt_compat_netbsd.h"
19 #include <sys/param.h>
21 #include <sys/systm.h>
22 #include <sys/signal.h>
23 #include <sys/mount.h>
24 #include <sys/syscallargs.h>
26 #include <compat/sys/time.h>
27 #include <compat/linux/common/linux_types.h>
28 #include <compat/linux/common/linux_mmap.h>
29 #include <compat/linux/common/linux_ipc.h>
30 #include <compat/linux/common/linux_msg.h>
31 #include <compat/linux/common/linux_sem.h>
32 #include <compat/linux/common/linux_shm.h>
33 #include <compat/linux/common/linux_signal.h>
34 #include <compat/linux/common/linux_siginfo.h>
35 #include <compat/linux/common/linux_machdep.h>
36 #include <compat/linux/linux_syscallargs.h>
37 #endif /* _KERNEL_OPT */
39 const char *const linux_syscallnames
[] = {
53 /* 13 */ "rt_sigaction",
54 /* 14 */ "rt_sigprocmask",
55 /* 15 */ "rt_sigreturn",
64 /* 24 */ "sched_yield",
74 /* 29 */ "#29 (unimplemented shmget)",
75 /* 30 */ "#30 (unimplemented shmat)",
76 /* 31 */ "#31 (unimplemented shmctl)",
86 /* 40 */ "#40 (unimplemented sendfile)",
97 /* 51 */ "getsockname",
98 /* 52 */ "getpeername",
99 /* 53 */ "socketpair",
100 /* 54 */ "setsockopt",
101 /* 55 */ "getsockopt",
104 /* 58 */ "__vfork14",
115 /* 64 */ "#64 (unimplemented semget)",
116 /* 65 */ "#65 (unimplemented semop)",
117 /* 66 */ "#66 (unimplemented semctl)",
122 /* 67 */ "#67 (unimplemented shmdt)",
130 /* 68 */ "#68 (unimplemented msgget)",
131 /* 69 */ "#69 (unimplemented msgsnd)",
132 /* 70 */ "#70 (unimplemented msgrcv)",
133 /* 71 */ "#71 (unimplemented msgctl)",
138 /* 75 */ "fdatasync",
139 /* 76 */ "truncate64",
140 /* 77 */ "ftruncate64",
145 /* 82 */ "__posix_rename",
155 /* 92 */ "__posix_chown",
156 /* 93 */ "__posix_fchown",
157 /* 94 */ "__posix_lchown",
159 /* 96 */ "gettimeofday",
160 /* 97 */ "getrlimit",
161 /* 98 */ "getrusage",
166 /* 103 */ "#103 (unimplemented syslog)",
176 /* 113 */ "setreuid",
177 /* 114 */ "setregid",
178 /* 115 */ "getgroups",
179 /* 116 */ "setgroups",
180 /* 117 */ "setresuid",
181 /* 118 */ "getresuid",
182 /* 119 */ "setresgid",
183 /* 120 */ "getresgid",
185 /* 122 */ "setfsuid",
186 /* 123 */ "setfsgid",
188 /* 125 */ "#125 (unimplemented capget)",
189 /* 126 */ "#126 (unimplemented capset)",
190 /* 127 */ "rt_sigpending",
191 /* 128 */ "#128 (unimplemented rt_sigtimedwait)",
192 /* 129 */ "rt_queueinfo",
193 /* 130 */ "rt_sigsuspend",
194 /* 131 */ "sigaltstack",
200 /* 134 */ "#134 (unimplemented sys_uselib)",
202 /* 135 */ "personality",
203 /* 136 */ "#136 (unimplemented ustat)",
206 /* 139 */ "#139 (unimplemented sysfs)",
207 /* 140 */ "getpriority",
208 /* 141 */ "setpriority",
209 /* 142 */ "sched_setparam",
210 /* 143 */ "sched_getparam",
211 /* 144 */ "sched_setscheduler",
212 /* 145 */ "sched_getscheduler",
213 /* 146 */ "sched_get_priority_max",
214 /* 147 */ "sched_get_priority_min",
215 /* 148 */ "#148 (unimplemented sys_sched_rr_get_interval)",
218 /* 151 */ "mlockall",
219 /* 152 */ "munlockall",
220 /* 153 */ "#153 (unimplemented vhangup)",
221 /* 154 */ "modify_ldt",
222 /* 155 */ "#155 (unimplemented pivot_root)",
223 /* 156 */ "__sysctl",
224 /* 157 */ "#157 (unimplemented prctl)",
225 /* 158 */ "arch_prctl",
226 /* 159 */ "#159 (unimplemented adjtimex)",
227 /* 160 */ "setrlimit",
231 /* 164 */ "settimeofday",
232 /* 165 */ "#165 (unimplemented mount)",
233 /* 166 */ "#166 (unimplemented umount2)",
237 /* 170 */ "sethostname",
238 /* 171 */ "setdomainname",
241 /* 174 */ "#174 (unimplemented create_module)",
242 /* 175 */ "#175 (unimplemented init_module)",
243 /* 176 */ "#176 (unimplemented delete_module)",
244 /* 177 */ "#177 (unimplemented get_kernel_syms)",
245 /* 178 */ "#178 (unimplemented query_module)",
246 /* 179 */ "#179 (unimplemented quotactl)",
247 /* 180 */ "#180 (unimplemented nfsservctl)",
248 /* 181 */ "#181 (unimplemented getpmsg)",
249 /* 182 */ "#182 (unimplemented putpmsg)",
250 /* 183 */ "#183 (unimplemented afs_syscall)",
251 /* 184 */ "#184 (unimplemented tuxcall)",
252 /* 185 */ "#185 (unimplemented security)",
254 /* 187 */ "#187 (unimplemented readahead)",
255 /* 188 */ "setxattr",
256 /* 189 */ "lsetxattr",
257 /* 190 */ "fsetxattr",
258 /* 191 */ "getxattr",
259 /* 192 */ "lgetxattr",
260 /* 193 */ "fgetxattr",
261 /* 194 */ "listxattr",
262 /* 195 */ "llistxattr",
263 /* 196 */ "flistxattr",
264 /* 197 */ "removexattr",
265 /* 198 */ "lremovexattr",
266 /* 199 */ "fremovexattr",
270 /* 203 */ "sched_setaffinity",
271 /* 204 */ "sched_getaffinity",
272 /* 205 */ "#205 (unimplemented set_thread_area)",
273 /* 206 */ "#206 (unimplemented io_setup)",
274 /* 207 */ "#207 (unimplemented io_destroy)",
275 /* 208 */ "#208 (unimplemented io_getevents)",
276 /* 209 */ "#209 (unimplemented io_submit)",
277 /* 210 */ "#210 (unimplemented io_cancel)",
278 /* 211 */ "#211 (unimplemented get_thread_area)",
279 /* 212 */ "#212 (unimplemented lookup_dcookie)",
280 /* 213 */ "#213 (unimplemented epoll_create)",
281 /* 214 */ "#214 (unimplemented epoll_ctl_old)",
282 /* 215 */ "#215 (unimplemented epoll_wait_old)",
283 /* 216 */ "#216 (unimplemented remap_file_pages)",
284 /* 217 */ "getdents64",
285 /* 218 */ "set_tid_address",
286 /* 219 */ "#219 (unimplemented restart_syscall)",
287 /* 220 */ "#220 (unimplemented semtimedop)",
288 /* 221 */ "#221 (unimplemented fadvise64)",
289 /* 222 */ "#222 (unimplemented timer_create)",
290 /* 223 */ "#223 (unimplemented timer_settime)",
291 /* 224 */ "#224 (unimplemented timer_gettime)",
292 /* 225 */ "#225 (unimplemented timer_getoverrun)",
293 /* 226 */ "#226 (unimplemented timer_delete)",
294 /* 227 */ "clock_settime",
295 /* 228 */ "clock_gettime",
296 /* 229 */ "clock_getres",
297 /* 230 */ "clock_nanosleep",
298 /* 231 */ "exit_group",
299 /* 232 */ "#232 (unimplemented epoll_wait)",
300 /* 233 */ "#233 (unimplemented epoll_ctl)",
302 /* 235 */ "#235 (unimplemented utimes)",
303 /* 236 */ "#236 (unimplemented vserver)",
304 /* 237 */ "#237 (unimplemented mbind)",
305 /* 238 */ "#238 (unimplemented set_mempolicy)",
306 /* 239 */ "#239 (unimplemented get_mempolicy)",
307 /* 240 */ "#240 (unimplemented mq_open)",
308 /* 241 */ "#241 (unimplemented mq_unlink)",
309 /* 242 */ "#242 (unimplemented mq_timedsend)",
310 /* 243 */ "#243 (unimplemented mq_timedreceive)",
311 /* 244 */ "#244 (unimplemented mq_notify)",
312 /* 245 */ "#245 (unimplemented mq_getsetattr)",
313 /* 246 */ "#246 (unimplemented kexec_load)",
314 /* 247 */ "#247 (unimplemented waitid)",
315 /* 248 */ "#248 (unimplemented add_key)",
316 /* 249 */ "#249 (unimplemented request_key)",
317 /* 250 */ "#250 (unimplemented keyctl)",
318 /* 251 */ "#251 (unimplemented ioprio_set)",
319 /* 252 */ "#252 (unimplemented ioprio_get)",
320 /* 253 */ "#253 (unimplemented inotify_init)",
321 /* 254 */ "#254 (unimplemented inotify_add_watch)",
322 /* 255 */ "#255 (unimplemented inotify_rm_watch)",
323 /* 256 */ "#256 (unimplemented migrate_pages)",
324 /* 257 */ "#257 (unimplemented openat)",
325 /* 258 */ "#258 (unimplemented mkdirat)",
326 /* 259 */ "#259 (unimplemented mknodat)",
327 /* 260 */ "#260 (unimplemented fchownat)",
328 /* 261 */ "#261 (unimplemented futimesat)",
329 /* 262 */ "#262 (unimplemented newfstatat)",
330 /* 263 */ "#263 (unimplemented unlinkat)",
331 /* 264 */ "#264 (unimplemented renameat)",
332 /* 265 */ "#265 (unimplemented linkat)",
333 /* 266 */ "#266 (unimplemented symlinkat)",
334 /* 267 */ "#267 (unimplemented readlinkat)",
335 /* 268 */ "#268 (unimplemented fchmodat)",
336 /* 269 */ "#269 (unimplemented faccessat)",
337 /* 270 */ "#270 (unimplemented pselect6)",
338 /* 271 */ "#271 (unimplemented ppoll)",
339 /* 272 */ "#272 (unimplemented unshare)",
340 /* 273 */ "set_robust_list",
341 /* 274 */ "get_robust_list",
342 /* 275 */ "#275 (unimplemented splice)",
343 /* 276 */ "#276 (unimplemented tee)",
344 /* 277 */ "#277 (unimplemented sync_file_range)",
345 /* 278 */ "#278 (unimplemented vmsplice)",
346 /* 279 */ "#279 (unimplemented move_pages)",
347 /* 280 */ "#280 (unimplemented utimensat)",
348 /* 281 */ "#281 (unimplemented epoll_pwait)",
349 /* 282 */ "#282 (unimplemented signalfd)",
350 /* 283 */ "#283 (unimplemented timerfd_create)",
351 /* 284 */ "#284 (unimplemented eventfd)",
352 /* 285 */ "#285 (unimplemented fallocate)",