6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.101 2009/11/24 10:42:43 njoly Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #include <sys/param.h>
16 #include <sys/systm.h>
17 #include <sys/signal.h>
18 #include <sys/mount.h>
19 #include <sys/syscallargs.h>
20 #include <compat/sys/time.h>
21 #include <compat/linux/common/linux_types.h>
22 #include <compat/linux/common/linux_mmap.h>
23 #include <compat/linux/common/linux_signal.h>
24 #include <compat/linux/common/linux_siginfo.h>
25 #include <compat/linux/common/linux_machdep.h>
26 #include <compat/linux/linux_syscallargs.h>
27 #endif /* _KERNEL_OPT */
29 const char *const linux_syscallnames
[] = {
48 /* 18 */ "#18 (obsolete ostat)",
55 /* 21 */ "#21 (unimplemented mount)",
56 /* 22 */ "#22 (unimplemented umount)",
57 /* 23 */ "linux_setuid16",
58 /* 24 */ "linux_getuid16",
62 /* 28 */ "#28 (obsolete ofstat)",
65 /* 31 */ "#31 (obsolete stty)",
66 /* 32 */ "#32 (obsolete gtty)",
69 /* 35 */ "#35 (obsolete ftime)",
72 /* 38 */ "__posix_rename",
78 /* 44 */ "#44 (obsolete prof)",
80 /* 46 */ "linux_setgid16",
81 /* 47 */ "linux_getgid16",
83 /* 49 */ "linux_geteuid16",
84 /* 50 */ "linux_getegid16",
86 /* 52 */ "#52 (obsolete phys)",
87 /* 53 */ "#53 (obsolete lock)",
90 /* 56 */ "#56 (obsolete mpx)",
92 /* 58 */ "#58 (obsolete ulimit)",
93 /* 59 */ "oldolduname",
96 /* 62 */ "#62 (unimplemented ustat)",
105 /* 67 */ "sigaction",
106 /* 68 */ "siggetmask",
107 /* 69 */ "sigsetmask",
108 /* 70 */ "setreuid16",
109 /* 71 */ "setregid16",
110 /* 72 */ "sigsuspend",
111 /* 73 */ "sigpending",
112 /* 74 */ "sethostname",
113 /* 75 */ "setrlimit",
114 /* 76 */ "getrlimit",
115 /* 77 */ "getrusage",
116 /* 78 */ "gettimeofday",
117 /* 79 */ "settimeofday",
118 /* 80 */ "getgroups16",
119 /* 81 */ "setgroups16",
120 /* 82 */ "oldselect",
127 /* 86 */ "#86 (unimplemented sys_uselib)",
135 /* 93 */ "ftruncate",
138 /* 96 */ "getpriority",
139 /* 97 */ "setpriority",
144 /* 102 */ "socketcall",
145 /* 103 */ "#103 (unimplemented syslog)",
146 /* 104 */ "setitimer",
147 /* 105 */ "getitimer",
151 /* 109 */ "olduname",
153 /* 111 */ "#111 (unimplemented vhangup)",
154 /* 112 */ "#112 (unimplemented idle)",
155 /* 113 */ "#113 (unimplemented vm86old)",
161 /* 119 */ "sigreturn",
163 /* 121 */ "setdomainname",
165 /* 123 */ "modify_ldt",
166 /* 124 */ "#124 (unimplemented adjtimex)",
167 /* 125 */ "mprotect",
168 /* 126 */ "sigprocmask",
169 /* 127 */ "#127 (unimplemented create_module)",
170 /* 128 */ "#128 (unimplemented init_module)",
171 /* 129 */ "#129 (unimplemented delete_module)",
172 /* 130 */ "#130 (unimplemented get_kernel_syms)",
173 /* 131 */ "#131 (unimplemented quotactl)",
176 /* 134 */ "#134 (unimplemented bdflush)",
177 /* 135 */ "#135 (unimplemented sysfs)",
178 /* 136 */ "personality",
179 /* 137 */ "#137 (unimplemented afs_syscall)",
180 /* 138 */ "linux_setfsuid16",
181 /* 139 */ "linux_setfsgid16",
183 /* 141 */ "getdents",
186 /* 144 */ "__msync13",
190 /* 148 */ "fdatasync",
191 /* 149 */ "__sysctl",
194 /* 152 */ "mlockall",
195 /* 153 */ "munlockall",
196 /* 154 */ "sched_setparam",
197 /* 155 */ "sched_getparam",
198 /* 156 */ "sched_setscheduler",
199 /* 157 */ "sched_getscheduler",
200 /* 158 */ "sched_yield",
201 /* 159 */ "sched_get_priority_max",
202 /* 160 */ "sched_get_priority_min",
203 /* 161 */ "#161 (unimplemented sys_sched_rr_get_interval)",
204 /* 162 */ "nanosleep",
206 /* 164 */ "setresuid16",
207 /* 165 */ "getresuid16",
208 /* 166 */ "#166 (unimplemented vm86)",
209 /* 167 */ "#167 (unimplemented query_module)",
211 /* 169 */ "#169 (unimplemented nfsservctl)",
212 /* 170 */ "setresgid16",
213 /* 171 */ "getresgid16",
214 /* 172 */ "#172 (unimplemented prctl)",
215 /* 173 */ "rt_sigreturn",
216 /* 174 */ "rt_sigaction",
217 /* 175 */ "rt_sigprocmask",
218 /* 176 */ "rt_sigpending",
219 /* 177 */ "#177 (unimplemented rt_sigtimedwait)",
220 /* 178 */ "rt_queueinfo",
221 /* 179 */ "rt_sigsuspend",
225 /* 183 */ "__getcwd",
226 /* 184 */ "#184 (unimplemented capget)",
227 /* 185 */ "#185 (unimplemented capset)",
228 /* 186 */ "sigaltstack",
229 /* 187 */ "#187 (unimplemented sendfile)",
230 /* 188 */ "#188 (unimplemented getpmsg)",
231 /* 189 */ "#189 (unimplemented putpmsg)",
232 /* 190 */ "__vfork14",
233 /* 191 */ "ugetrlimit",
234 #define linux_sys_mmap2_args linux_sys_mmap_args
236 /* 193 */ "truncate64",
237 /* 194 */ "ftruncate64",
241 /* 198 */ "__posix_lchown",
246 /* 203 */ "setreuid",
247 /* 204 */ "setregid",
248 /* 205 */ "getgroups",
249 /* 206 */ "setgroups",
250 /* 207 */ "__posix_fchown",
251 /* 208 */ "setresuid",
252 /* 209 */ "getresuid",
253 /* 210 */ "setresgid",
254 /* 211 */ "getresgid",
255 /* 212 */ "__posix_chown",
258 /* 215 */ "setfsuid",
259 /* 216 */ "setfsgid",
260 /* 217 */ "#217 (unimplemented pivot_root)",
263 /* 220 */ "getdents64",
265 /* 222 */ "#222 (unimplemented / * unused * /)",
266 /* 223 */ "#223 (unimplemented / * unused * /)",
270 /* 224 */ "#224 (unimplemented gettid)",
272 /* 225 */ "#225 (unimplemented readahead)",
273 /* 226 */ "setxattr",
274 /* 227 */ "lsetxattr",
275 /* 228 */ "fsetxattr",
276 /* 229 */ "getxattr",
277 /* 230 */ "lgetxattr",
278 /* 231 */ "fgetxattr",
279 /* 232 */ "listxattr",
280 /* 233 */ "llistxattr",
281 /* 234 */ "flistxattr",
282 /* 235 */ "removexattr",
283 /* 236 */ "lremovexattr",
284 /* 237 */ "fremovexattr",
288 /* 238 */ "#238 (unimplemented tkill)",
290 /* 239 */ "#239 (unimplemented sendfile64)",
293 /* 241 */ "sched_setaffinity",
294 /* 242 */ "sched_getaffinity",
296 /* 241 */ "#241 (unimplemented setaffinity)",
297 /* 242 */ "#242 (unimplemented getaffinity)",
300 /* 243 */ "set_thread_area",
301 /* 244 */ "get_thread_area",
303 /* 243 */ "#243 (unimplemented set_thread_area)",
304 /* 244 */ "#244 (unimplemented get_thread_area)",
306 /* 245 */ "#245 (unimplemented io_setup)",
307 /* 246 */ "#246 (unimplemented io_destroy)",
308 /* 247 */ "#247 (unimplemented io_getevents)",
309 /* 248 */ "#248 (unimplemented io_submit)",
310 /* 249 */ "#249 (unimplemented io_cancel)",
311 /* 250 */ "#250 (unimplemented fadvise64)",
312 /* 251 */ "#251 (unimplemented / * unused * /)",
313 /* 252 */ "exit_group",
314 /* 253 */ "#253 (unimplemented lookup_dcookie)",
315 /* 254 */ "#254 (unimplemented epoll_create)",
316 /* 255 */ "#255 (unimplemented epoll_ctl)",
317 /* 256 */ "#256 (unimplemented epoll_wait)",
318 /* 257 */ "#257 (unimplemented remap_file_pages)",
320 /* 258 */ "set_tid_address",
322 /* 258 */ "#258 (unimplemented set_tid_address)",
324 /* 259 */ "#259 (unimplemented timer_create)",
325 /* 260 */ "#260 (unimplemented timer_settime)",
326 /* 261 */ "#261 (unimplemented timer_gettime)",
327 /* 262 */ "#262 (unimplemented timer_getoverrun)",
328 /* 263 */ "#263 (unimplemented timer_delete)",
329 /* 264 */ "clock_settime",
330 /* 265 */ "clock_gettime",
331 /* 266 */ "clock_getres",
332 /* 267 */ "clock_nanosleep",
333 /* 268 */ "statfs64",
334 /* 269 */ "fstatfs64",
338 /* 270 */ "#270 (unimplemented tgkill)",
340 /* 271 */ "#271 (unimplemented utimes)",
341 /* 272 */ "#272 (unimplemented fadvise64_64)",
342 /* 273 */ "#273 (unimplemented vserver)",
343 /* 274 */ "#274 (unimplemented mbind)",
344 /* 275 */ "#275 (unimplemented get_mempolicy)",
345 /* 276 */ "#276 (unimplemented set_mempolicy)",
346 /* 277 */ "#277 (unimplemented mq_open)",
347 /* 278 */ "#278 (unimplemented mq_unlink)",
348 /* 279 */ "#279 (unimplemented mq_timedsend)",
349 /* 280 */ "#280 (unimplemented mq_timedreceive)",
350 /* 281 */ "#281 (unimplemented mq_notify)",
351 /* 282 */ "#282 (unimplemented mq_getsetattr)",
352 /* 283 */ "#283 (unimplemented sys_kexec_load)",
353 /* 284 */ "#284 (unimplemented waitid)",
354 /* 285 */ "#285 (obsolete / * XXXJDM really? * /)",
355 /* 286 */ "#286 (unimplemented add_key)",
356 /* 287 */ "#287 (unimplemented request_key)",
357 /* 288 */ "#288 (unimplemented keyctl)",
358 /* 289 */ "#289 (unimplemented ioprio_set)",
359 /* 290 */ "#290 (unimplemented ioprio_get)",
360 /* 291 */ "#291 (unimplemented inotify_init)",
361 /* 292 */ "#292 (unimplemented inotify_add_watch)",
362 /* 293 */ "#293 (unimplemented inotify_rm_watch)",
363 /* 294 */ "#294 (unimplemented migrate_pages)",
364 /* 295 */ "#295 (unimplemented openat)",
365 /* 296 */ "#296 (unimplemented mkdirat)",
366 /* 297 */ "#297 (unimplemented mknodat)",
367 /* 298 */ "#298 (unimplemented fchownat)",
368 /* 299 */ "#299 (unimplemented futimesat)",
369 /* 300 */ "#300 (unimplemented fstatat64)",
370 /* 301 */ "#301 (unimplemented unlinkat)",
371 /* 302 */ "#302 (unimplemented renameat)",
372 /* 303 */ "#303 (unimplemented linkat)",
373 /* 304 */ "#304 (unimplemented symlinkat)",
374 /* 305 */ "#305 (unimplemented readlinkat)",
375 /* 306 */ "#306 (unimplemented fchmodat)",
376 /* 307 */ "#307 (unimplemented faccessat)",
377 /* 308 */ "#308 (unimplemented pselect6)",
378 /* 309 */ "#309 (unimplemented ppoll)",
379 /* 310 */ "#310 (unimplemented unshare)",
380 /* 311 */ "set_robust_list",
381 /* 312 */ "get_robust_list",
382 /* 313 */ "#313 (unimplemented splice)",
383 /* 314 */ "#314 (unimplemented sync_file_range)",
384 /* 315 */ "#315 (unimplemented tee)",
385 /* 316 */ "#316 (unimplemented vmsplice)",