6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.43 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>
21 #include <compat/sys/time.h>
22 #include <compat/linux/common/linux_types.h>
23 #include <compat/linux/common/linux_mmap.h>
24 #include <compat/linux/common/linux_signal.h>
25 #include <compat/linux/common/linux_siginfo.h>
26 #include <compat/linux/common/linux_machdep.h>
27 #include <compat/linux/linux_syscallargs.h>
28 #endif /* _KERNEL_OPT */
30 const char *const linux_syscallnames
[] = {
48 /* 17 */ "#17 (obsolete break)",
49 /* 18 */ "#18 (obsolete ostat)",
52 /* 21 */ "#21 (unimplemented mount)",
53 /* 22 */ "#22 (obsolete umount)",
59 /* 28 */ "#28 (obsolete ofstat)",
62 /* 31 */ "#31 (obsolete stty)",
63 /* 32 */ "#32 (obsolete gtty)",
66 /* 35 */ "#35 (obsolete ftime)",
69 /* 38 */ "__posix_rename",
75 /* 44 */ "#44 (obsolete prof)",
83 /* 52 */ "#52 (unimplemented umount)",
84 /* 53 */ "#53 (obsolete lock)",
87 /* 56 */ "#56 (obsolete mpx)",
89 /* 58 */ "#58 (obsolete ulimit)",
90 /* 59 */ "oldolduname",
93 /* 62 */ "#62 (unimplemented ustat)",
99 /* 68 */ "siggetmask",
100 /* 69 */ "sigsetmask",
101 /* 70 */ "setreuid16",
102 /* 71 */ "setregid16",
103 /* 72 */ "sigsuspend",
104 /* 73 */ "sigpending",
105 /* 74 */ "sethostname",
106 /* 75 */ "setrlimit",
107 /* 76 */ "getrlimit",
108 /* 77 */ "getrusage",
109 /* 78 */ "gettimeofday",
110 /* 79 */ "settimeofday",
111 /* 80 */ "getgroups16",
112 /* 81 */ "setgroups16",
113 /* 82 */ "oldselect",
120 /* 86 */ "#86 (excluded uselib)",
128 /* 93 */ "ftruncate",
131 /* 96 */ "getpriority",
132 /* 97 */ "setpriority",
136 /* 101 */ "#101 (unimplemented)",
137 /* 102 */ "socketcall",
138 /* 103 */ "#103 (unimplemented syslog)",
139 /* 104 */ "setitimer",
140 /* 105 */ "getitimer",
144 /* 109 */ "olduname",
145 /* 110 */ "#110 (unimplemented)",
146 /* 111 */ "#111 (unimplemented vhangup)",
147 /* 112 */ "#112 (unimplemented idle)",
148 /* 113 */ "#113 (unimplemented syscall)",
154 /* 119 */ "sigreturn",
156 /* 121 */ "setdomainname",
158 /* 123 */ "#123 (unimplemented modify_ldt)",
159 /* 124 */ "#124 (unimplemented adjtimex)",
160 /* 125 */ "mprotect",
161 /* 126 */ "sigprocmask",
162 /* 127 */ "#127 (unimplemented create_module)",
163 /* 128 */ "#128 (unimplemented init_module)",
164 /* 129 */ "#129 (unimplemented delete_module)",
165 /* 130 */ "#130 (unimplemented get_kernel_syms)",
166 /* 131 */ "#131 (unimplemented quotactl)",
169 /* 134 */ "#134 (unimplemented bdflush)",
170 /* 135 */ "#135 (unimplemented sysfs)",
171 /* 136 */ "personality",
172 /* 137 */ "#137 (unimplemented afs_syscall)",
173 /* 138 */ "setfsuid",
174 /* 139 */ "setfsgid",
176 /* 141 */ "getdents",
179 /* 144 */ "__msync13",
183 /* 148 */ "fdatasync",
184 /* 149 */ "__sysctl",
187 /* 152 */ "mlockall",
188 /* 153 */ "munlockall",
189 /* 154 */ "sched_setparam",
190 /* 155 */ "sched_getparam",
191 /* 156 */ "sched_setscheduler",
192 /* 157 */ "sched_getscheduler",
193 /* 158 */ "sched_yield",
194 /* 159 */ "sched_get_priority_max",
195 /* 160 */ "sched_get_priority_min",
196 /* 161 */ "#161 (unimplemented sched_rr_get_interval)",
197 /* 162 */ "nanosleep",
199 /* 164 */ "setresuid16",
200 /* 165 */ "getresuid16",
201 /* 166 */ "#166 (unimplemented)",
202 /* 167 */ "#167 (unimplemented query_module)",
204 /* 169 */ "#169 (unimplemented nfsservctl)",
205 /* 170 */ "setresgid16",
206 /* 171 */ "getresgid16",
207 /* 172 */ "#172 (unimplemented prctl)",
208 /* 173 */ "#173 (unimplemented rt_sigreturn)",
209 /* 174 */ "rt_sigaction",
210 /* 175 */ "rt_sigprocmask",
211 /* 176 */ "rt_sigpending",
212 /* 177 */ "#177 (unimplemented rt_sigtimedwait)",
213 /* 178 */ "rt_queueinfo",
214 /* 179 */ "rt_sigsuspend",
218 /* 183 */ "__getcwd",
219 /* 184 */ "#184 (unimplemented capget)",
220 /* 185 */ "#185 (unimplemented capset)",
221 /* 186 */ "sigaltstack",
222 /* 187 */ "#187 (unimplemented sendfile)",
223 /* 188 */ "#188 (unimplemented getpmsg)",
224 /* 189 */ "#189 (unimplemented putpmsg)",
226 /* 191 */ "ugetrlimit",
227 #define linux_sys_mmap2_args linux_sys_mmap_args
229 /* 193 */ "truncate64",
230 /* 194 */ "ftruncate64",
234 /* 198 */ "__posix_lchown",
235 /* 199 */ "getuid32",
236 /* 200 */ "getgid32",
237 /* 201 */ "geteuid32",
238 /* 202 */ "getegid32",
239 /* 203 */ "setreuid32",
240 /* 204 */ "setregid32",
241 /* 205 */ "getgroups32",
242 /* 206 */ "setgroups32",
243 /* 207 */ "fchown32",
244 /* 208 */ "setresuid32",
245 /* 209 */ "getresuid32",
246 /* 210 */ "setresgid32",
247 /* 211 */ "getresgid32",
249 /* 213 */ "setuid32",
250 /* 214 */ "setgid32",
251 /* 215 */ "setfsuid32",
252 /* 216 */ "setfsgid32",
253 /* 217 */ "getdents64",
254 /* 218 */ "#218 (unimplemented pivot_root)",
258 /* 222 */ "#222 (unimplemented / * for tux * /)",
259 /* 223 */ "#223 (unimplemented / * unused * /)",
260 /* 224 */ "#224 (unimplemented gettid)",
261 /* 225 */ "#225 (unimplemented readahead)",
262 /* 226 */ "setxattr",
263 /* 227 */ "lsetxattr",
264 /* 228 */ "fsetxattr",
265 /* 229 */ "getxattr",
266 /* 230 */ "lgetxattr",
267 /* 231 */ "fgetxattr",
268 /* 232 */ "listxattr",
269 /* 233 */ "llistxattr",
270 /* 234 */ "flistxattr",
271 /* 235 */ "removexattr",
272 /* 236 */ "lremovexattr",
273 /* 237 */ "fremovexattr",
274 /* 238 */ "#238 (unimplemented tkill)",
275 /* 239 */ "#239 (unimplemented sendfile64)",
276 /* 240 */ "#240 (unimplemented futex)",
277 /* 241 */ "#241 (unimplemented sched_setaffinity)",
278 /* 242 */ "#242 (unimplemented sched_getaffinity)",
279 /* 243 */ "#243 (unimplemented io_setup)",
280 /* 244 */ "#244 (unimplemented io_destroy)",
281 /* 245 */ "#245 (unimplemented io_getevents)",
282 /* 246 */ "#246 (unimplemented io_submit)",
283 /* 247 */ "#247 (unimplemented io_cancel)",
284 /* 248 */ "exit_group",
285 /* 249 */ "#249 (unimplemented lookup_dcookie)",
286 /* 250 */ "#250 (unimplemented epoll_create)",
287 /* 251 */ "#251 (unimplemented epoll_ctl)",
288 /* 252 */ "#252 (unimplemented epoll_wait)",
289 /* 253 */ "#253 (unimplemented remap_file_pages)",
290 /* 254 */ "#254 (unimplemented / * for set_thread_area * /)",
291 /* 255 */ "#255 (unimplemented / * for get_thread_area * /)",
292 /* 256 */ "#256 (unimplemented / * for set_tid_address * /)",
293 /* 257 */ "#257 (unimplemented timer_create)",
294 /* 258 */ "#258 (unimplemented timer_settime)",
295 /* 259 */ "#259 (unimplemented timer_gettime)",
296 /* 260 */ "#260 (unimplemented timer_getoverrun)",
297 /* 261 */ "#261 (unimplemented timer_delete)",
298 /* 262 */ "clock_settime",
299 /* 263 */ "clock_gettime",
300 /* 264 */ "clock_getres",
301 /* 265 */ "clock_nanosleep",
302 /* 266 */ "statfs64",
303 /* 267 */ "fstatfs64",
304 /* 268 */ "#268 (unimplemented tgkill)",
305 /* 269 */ "#269 (unimplemented utimes)",
306 /* 270 */ "#270 (unimplemented fadvise64_64)",
307 /* 271 */ "#271 (unimplemented pciconfig_iobase)",
308 /* 272 */ "#272 (unimplemented pciconfig_read)",
309 /* 273 */ "#273 (unimplemented pciconfig_write)",
310 /* 274 */ "#274 (unimplemented)",
311 /* 275 */ "#275 (unimplemented)",
312 /* 276 */ "#276 (unimplemented)",
313 /* 277 */ "#277 (unimplemented)",
314 /* 278 */ "#278 (unimplemented)",
315 /* 279 */ "#279 (unimplemented)",
316 /* 280 */ "#280 (unimplemented)",
317 /* 281 */ "#281 (unimplemented)",
318 /* 282 */ "#282 (unimplemented)",
319 /* 283 */ "#283 (unimplemented)",
320 /* 284 */ "#284 (unimplemented)",
321 /* 285 */ "#285 (unimplemented)",
322 /* 286 */ "#286 (unimplemented)",
323 /* 287 */ "#287 (unimplemented)",
324 /* 288 */ "#288 (unimplemented)",
325 /* 289 */ "#289 (unimplemented)",
326 /* 290 */ "#290 (unimplemented)",
327 /* 291 */ "#291 (unimplemented)",
328 /* 292 */ "#292 (unimplemented)",
329 /* 293 */ "#293 (unimplemented)",
330 /* 294 */ "#294 (unimplemented)",
331 /* 295 */ "#295 (unimplemented)",
332 /* 296 */ "#296 (unimplemented)",
333 /* 297 */ "#297 (unimplemented)",
334 /* 298 */ "#298 (unimplemented)",
335 /* 299 */ "#299 (unimplemented)",
336 /* 300 */ "#300 (unimplemented)",
337 /* 301 */ "#301 (unimplemented)",
338 /* 302 */ "#302 (unimplemented)",
339 /* 303 */ "#303 (unimplemented)",
340 /* 304 */ "#304 (unimplemented)",
341 /* 305 */ "#305 (unimplemented)",
342 /* 306 */ "#306 (unimplemented)",
343 /* 307 */ "#307 (unimplemented)",
344 /* 308 */ "#308 (unimplemented)",
345 /* 309 */ "#309 (unimplemented)",
346 /* 310 */ "#310 (unimplemented)",
347 /* 311 */ "#311 (unimplemented)",
348 /* 312 */ "#312 (unimplemented)",
349 /* 313 */ "#313 (unimplemented)",
350 /* 314 */ "#314 (unimplemented)",
351 /* 315 */ "#315 (unimplemented)",
352 /* 316 */ "#316 (unimplemented)",
353 /* 317 */ "#317 (unimplemented)",
354 /* 318 */ "#318 (unimplemented)",
355 /* 319 */ "#319 (unimplemented)",
356 /* 320 */ "#320 (unimplemented)",
357 /* 321 */ "#321 (unimplemented)",
358 /* 322 */ "#322 (unimplemented)",
359 /* 323 */ "#323 (unimplemented)",
360 /* 324 */ "#324 (unimplemented)",
361 /* 325 */ "#325 (unimplemented)",
362 /* 326 */ "#326 (unimplemented)",
363 /* 327 */ "#327 (unimplemented)",
364 /* 328 */ "#328 (unimplemented)",
365 /* 329 */ "#329 (unimplemented)",
366 /* 330 */ "#330 (unimplemented)",
367 /* 331 */ "#331 (unimplemented)",
368 /* 332 */ "#332 (unimplemented)",
369 /* 333 */ "#333 (unimplemented)",
370 /* 334 */ "#334 (unimplemented)",
371 /* 335 */ "#335 (unimplemented)",
372 /* 336 */ "#336 (unimplemented)",
373 /* 337 */ "#337 (unimplemented)",
374 /* 338 */ "#338 (unimplemented)",
375 /* 339 */ "#339 (unimplemented)",
376 /* 340 */ "#340 (unimplemented)",
377 /* 341 */ "#341 (unimplemented)",
378 /* 342 */ "#342 (unimplemented)",
379 /* 343 */ "#343 (unimplemented)",
380 /* 344 */ "#344 (unimplemented)",
381 /* 345 */ "#345 (unimplemented)",
382 /* 346 */ "#346 (unimplemented)",
383 /* 347 */ "#347 (unimplemented)",
384 /* 348 */ "#348 (unimplemented)",
385 /* 349 */ "#349 (unimplemented)",
386 /* 350 */ "#350 (unimplemented)",
387 /* 351 */ "#351 (unimplemented)",
388 /* 352 */ "#352 (unimplemented)",
389 /* 353 */ "#353 (unimplemented)",
390 /* 354 */ "#354 (unimplemented)",
391 /* 355 */ "#355 (unimplemented)",
392 /* 356 */ "#356 (unimplemented)",
393 /* 357 */ "#357 (unimplemented)",
394 /* 358 */ "#358 (unimplemented)",
395 /* 359 */ "#359 (unimplemented)",
396 /* 360 */ "#360 (unimplemented)",
397 /* 361 */ "#361 (unimplemented)",
398 /* 362 */ "#362 (unimplemented)",
399 /* 363 */ "#363 (unimplemented)",
400 /* 364 */ "#364 (unimplemented)",
401 /* 365 */ "#365 (unimplemented)",
402 /* 366 */ "#366 (unimplemented)",
403 /* 367 */ "#367 (unimplemented)",
404 /* 368 */ "#368 (unimplemented)",
405 /* 369 */ "#369 (unimplemented)",
406 /* 370 */ "#370 (unimplemented)",
407 /* 371 */ "#371 (unimplemented)",
408 /* 372 */ "#372 (unimplemented)",
409 /* 373 */ "#373 (unimplemented)",
410 /* 374 */ "#374 (unimplemented)",
411 /* 375 */ "#375 (unimplemented)",
412 /* 376 */ "#376 (unimplemented)",
413 /* 377 */ "#377 (unimplemented)",
414 /* 378 */ "#378 (unimplemented)",
415 /* 379 */ "#379 (unimplemented)",
416 /* 380 */ "#380 (unimplemented)",
417 /* 381 */ "#381 (unimplemented)",
418 /* 382 */ "#382 (unimplemented)",
419 /* 383 */ "#383 (unimplemented)",
420 /* 384 */ "#384 (unimplemented / * base * /)",
421 /* 385 */ "breakpoint",
422 /* 386 */ "cacheflush",
423 /* 387 */ "#387 (unimplemented usr26)",
424 /* 388 */ "#388 (unimplemented usr32)",