1 /* $NetBSD: linux_syscalls.c,v 1.89 2010/07/07 01:31:52 chs Exp $ */
2 
3 /*
4  * System call names.
5  *
6  * DO NOT EDIT-- this file is automatically generated.
7  * created from	NetBSD: syscalls.master,v 1.103 2010/07/07 01:30:34 chs Exp
8  */
9 
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.89 2010/07/07 01:31:52 chs Exp $");
12 
13 #if defined(_KERNEL_OPT)
14 #include <sys/param.h>
15 #include <sys/poll.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 */
28 
29 const char *const linux_syscallnames[] = {
30 	/*   0 */	"syscall",
31 	/*   1 */	"exit",
32 	/*   2 */	"fork",
33 	/*   3 */	"read",
34 	/*   4 */	"write",
35 	/*   5 */	"open",
36 	/*   6 */	"close",
37 	/*   7 */	"waitpid",
38 	/*   8 */	"creat",
39 	/*   9 */	"link",
40 	/*  10 */	"unlink",
41 	/*  11 */	"execve",
42 	/*  12 */	"chdir",
43 	/*  13 */	"time",
44 	/*  14 */	"mknod",
45 	/*  15 */	"chmod",
46 	/*  16 */	"lchown16",
47 	/*  17 */	"break",
48 	/*  18 */	"#18 (obsolete ostat)",
49 	/*  19 */	"lseek",
50 	/*  20 */	"getpid",
51 	/*  21 */	"#21 (unimplemented mount)",
52 	/*  22 */	"#22 (unimplemented umount)",
53 	/*  23 */	"linux_setuid16",
54 	/*  24 */	"linux_getuid16",
55 	/*  25 */	"stime",
56 	/*  26 */	"ptrace",
57 	/*  27 */	"alarm",
58 	/*  28 */	"#28 (obsolete ofstat)",
59 	/*  29 */	"pause",
60 	/*  30 */	"utime",
61 	/*  31 */	"#31 (obsolete stty)",
62 	/*  32 */	"#32 (obsolete gtty)",
63 	/*  33 */	"access",
64 	/*  34 */	"nice",
65 	/*  35 */	"#35 (obsolete ftime)",
66 	/*  36 */	"sync",
67 	/*  37 */	"kill",
68 	/*  38 */	"__posix_rename",
69 	/*  39 */	"mkdir",
70 	/*  40 */	"rmdir",
71 	/*  41 */	"dup",
72 	/*  42 */	"pipe",
73 	/*  43 */	"times",
74 	/*  44 */	"#44 (obsolete prof)",
75 	/*  45 */	"brk",
76 	/*  46 */	"linux_setgid16",
77 	/*  47 */	"linux_getgid16",
78 	/*  48 */	"signal",
79 	/*  49 */	"linux_geteuid16",
80 	/*  50 */	"linux_getegid16",
81 	/*  51 */	"acct",
82 	/*  52 */	"#52 (obsolete phys)",
83 	/*  53 */	"#53 (obsolete lock)",
84 	/*  54 */	"ioctl",
85 	/*  55 */	"fcntl",
86 	/*  56 */	"#56 (obsolete mpx)",
87 	/*  57 */	"setpgid",
88 	/*  58 */	"#58 (obsolete ulimit)",
89 	/*  59 */	"oldolduname",
90 	/*  60 */	"umask",
91 	/*  61 */	"chroot",
92 	/*  62 */	"#62 (unimplemented ustat)",
93 	/*  63 */	"dup2",
94 	/*  64 */	"getppid",
95 	/*  65 */	"getpgrp",
96 	/*  66 */	"setsid",
97 	/*  67 */	"sigaction",
98 	/*  68 */	"siggetmask",
99 	/*  69 */	"sigsetmask",
100 	/*  70 */	"setreuid16",
101 	/*  71 */	"setregid16",
102 	/*  72 */	"sigsuspend",
103 	/*  73 */	"sigpending",
104 	/*  74 */	"sethostname",
105 	/*  75 */	"setrlimit",
106 	/*  76 */	"getrlimit",
107 	/*  77 */	"getrusage",
108 	/*  78 */	"gettimeofday",
109 	/*  79 */	"settimeofday",
110 	/*  80 */	"getgroups16",
111 	/*  81 */	"setgroups16",
112 	/*  82 */	"oldselect",
113 	/*  83 */	"symlink",
114 	/*  84 */	"oolstat",
115 	/*  85 */	"readlink",
116 #ifdef EXEC_AOUT
117 	/*  86 */	"uselib",
118 #else
119 	/*  86 */	"#86 (unimplemented sys_uselib)",
120 #endif
121 	/*  87 */	"swapon",
122 	/*  88 */	"reboot",
123 	/*  89 */	"readdir",
124 	/*  90 */	"old_mmap",
125 	/*  91 */	"munmap",
126 	/*  92 */	"truncate",
127 	/*  93 */	"ftruncate",
128 	/*  94 */	"fchmod",
129 	/*  95 */	"fchown16",
130 	/*  96 */	"getpriority",
131 	/*  97 */	"setpriority",
132 	/*  98 */	"profil",
133 	/*  99 */	"statfs",
134 	/* 100 */	"fstatfs",
135 	/* 101 */	"ioperm",
136 	/* 102 */	"socketcall",
137 	/* 103 */	"#103 (unimplemented syslog)",
138 	/* 104 */	"setitimer",
139 	/* 105 */	"getitimer",
140 	/* 106 */	"stat",
141 	/* 107 */	"lstat",
142 	/* 108 */	"fstat",
143 	/* 109 */	"olduname",
144 	/* 110 */	"iopl",
145 	/* 111 */	"#111 (unimplemented vhangup)",
146 	/* 112 */	"#112 (unimplemented idle)",
147 	/* 113 */	"#113 (unimplemented vm86old)",
148 	/* 114 */	"wait4",
149 	/* 115 */	"swapoff",
150 	/* 116 */	"sysinfo",
151 	/* 117 */	"ipc",
152 	/* 118 */	"fsync",
153 	/* 119 */	"sigreturn",
154 	/* 120 */	"clone",
155 	/* 121 */	"setdomainname",
156 	/* 122 */	"uname",
157 	/* 123 */	"modify_ldt",
158 	/* 124 */	"#124 (unimplemented adjtimex)",
159 	/* 125 */	"mprotect",
160 	/* 126 */	"sigprocmask",
161 	/* 127 */	"#127 (unimplemented create_module)",
162 	/* 128 */	"#128 (unimplemented init_module)",
163 	/* 129 */	"#129 (unimplemented delete_module)",
164 	/* 130 */	"#130 (unimplemented get_kernel_syms)",
165 	/* 131 */	"#131 (unimplemented quotactl)",
166 	/* 132 */	"getpgid",
167 	/* 133 */	"fchdir",
168 	/* 134 */	"#134 (unimplemented bdflush)",
169 	/* 135 */	"#135 (unimplemented sysfs)",
170 	/* 136 */	"personality",
171 	/* 137 */	"#137 (unimplemented afs_syscall)",
172 	/* 138 */	"linux_setfsuid16",
173 	/* 139 */	"linux_setfsgid16",
174 	/* 140 */	"llseek",
175 	/* 141 */	"getdents",
176 	/* 142 */	"select",
177 	/* 143 */	"flock",
178 	/* 144 */	"__msync13",
179 	/* 145 */	"readv",
180 	/* 146 */	"writev",
181 	/* 147 */	"getsid",
182 	/* 148 */	"fdatasync",
183 	/* 149 */	"__sysctl",
184 	/* 150 */	"mlock",
185 	/* 151 */	"munlock",
186 	/* 152 */	"mlockall",
187 	/* 153 */	"munlockall",
188 	/* 154 */	"sched_setparam",
189 	/* 155 */	"sched_getparam",
190 	/* 156 */	"sched_setscheduler",
191 	/* 157 */	"sched_getscheduler",
192 	/* 158 */	"sched_yield",
193 	/* 159 */	"sched_get_priority_max",
194 	/* 160 */	"sched_get_priority_min",
195 	/* 161 */	"#161 (unimplemented sys_sched_rr_get_interval)",
196 	/* 162 */	"nanosleep",
197 	/* 163 */	"mremap",
198 	/* 164 */	"setresuid16",
199 	/* 165 */	"getresuid16",
200 	/* 166 */	"#166 (unimplemented vm86)",
201 	/* 167 */	"#167 (unimplemented query_module)",
202 	/* 168 */	"poll",
203 	/* 169 */	"#169 (unimplemented nfsservctl)",
204 	/* 170 */	"setresgid16",
205 	/* 171 */	"getresgid16",
206 	/* 172 */	"#172 (unimplemented prctl)",
207 	/* 173 */	"rt_sigreturn",
208 	/* 174 */	"rt_sigaction",
209 	/* 175 */	"rt_sigprocmask",
210 	/* 176 */	"rt_sigpending",
211 	/* 177 */	"#177 (unimplemented rt_sigtimedwait)",
212 	/* 178 */	"rt_queueinfo",
213 	/* 179 */	"rt_sigsuspend",
214 	/* 180 */	"pread",
215 	/* 181 */	"pwrite",
216 	/* 182 */	"chown16",
217 	/* 183 */	"__getcwd",
218 	/* 184 */	"#184 (unimplemented capget)",
219 	/* 185 */	"#185 (unimplemented capset)",
220 	/* 186 */	"sigaltstack",
221 	/* 187 */	"#187 (unimplemented sendfile)",
222 	/* 188 */	"#188 (unimplemented getpmsg)",
223 	/* 189 */	"#189 (unimplemented putpmsg)",
224 	/* 190 */	"__vfork14",
225 	/* 191 */	"ugetrlimit",
226 #define linux_sys_mmap2_args linux_sys_mmap_args
227 	/* 192 */	"mmap2",
228 	/* 193 */	"truncate64",
229 	/* 194 */	"ftruncate64",
230 	/* 195 */	"stat64",
231 	/* 196 */	"lstat64",
232 	/* 197 */	"fstat64",
233 	/* 198 */	"__posix_lchown",
234 	/* 199 */	"getuid",
235 	/* 200 */	"getgid",
236 	/* 201 */	"geteuid",
237 	/* 202 */	"getegid",
238 	/* 203 */	"setreuid",
239 	/* 204 */	"setregid",
240 	/* 205 */	"getgroups",
241 	/* 206 */	"setgroups",
242 	/* 207 */	"__posix_fchown",
243 	/* 208 */	"setresuid",
244 	/* 209 */	"getresuid",
245 	/* 210 */	"setresgid",
246 	/* 211 */	"getresgid",
247 	/* 212 */	"__posix_chown",
248 	/* 213 */	"setuid",
249 	/* 214 */	"setgid",
250 	/* 215 */	"setfsuid",
251 	/* 216 */	"setfsgid",
252 	/* 217 */	"#217 (unimplemented pivot_root)",
253 	/* 218 */	"mincore",
254 	/* 219 */	"madvise",
255 	/* 220 */	"getdents64",
256 	/* 221 */	"fcntl64",
257 	/* 222 */	"#222 (unimplemented / * unused * /)",
258 	/* 223 */	"#223 (unimplemented / * unused * /)",
259 	/* 224 */	"gettid",
260 	/* 225 */	"#225 (unimplemented readahead)",
261 	/* 226 */	"setxattr",
262 	/* 227 */	"lsetxattr",
263 	/* 228 */	"fsetxattr",
264 	/* 229 */	"getxattr",
265 	/* 230 */	"lgetxattr",
266 	/* 231 */	"fgetxattr",
267 	/* 232 */	"listxattr",
268 	/* 233 */	"llistxattr",
269 	/* 234 */	"flistxattr",
270 	/* 235 */	"removexattr",
271 	/* 236 */	"lremovexattr",
272 	/* 237 */	"fremovexattr",
273 	/* 238 */	"tkill",
274 	/* 239 */	"#239 (unimplemented sendfile64)",
275 	/* 240 */	"futex",
276 	/* 241 */	"sched_setaffinity",
277 	/* 242 */	"sched_getaffinity",
278 	/* 243 */	"set_thread_area",
279 	/* 244 */	"get_thread_area",
280 	/* 245 */	"#245 (unimplemented io_setup)",
281 	/* 246 */	"#246 (unimplemented io_destroy)",
282 	/* 247 */	"#247 (unimplemented io_getevents)",
283 	/* 248 */	"#248 (unimplemented io_submit)",
284 	/* 249 */	"#249 (unimplemented io_cancel)",
285 	/* 250 */	"#250 (unimplemented fadvise64)",
286 	/* 251 */	"#251 (unimplemented / * unused * /)",
287 	/* 252 */	"exit_group",
288 	/* 253 */	"#253 (unimplemented lookup_dcookie)",
289 	/* 254 */	"#254 (unimplemented epoll_create)",
290 	/* 255 */	"#255 (unimplemented epoll_ctl)",
291 	/* 256 */	"#256 (unimplemented epoll_wait)",
292 	/* 257 */	"#257 (unimplemented remap_file_pages)",
293 	/* 258 */	"set_tid_address",
294 	/* 259 */	"#259 (unimplemented timer_create)",
295 	/* 260 */	"#260 (unimplemented timer_settime)",
296 	/* 261 */	"#261 (unimplemented timer_gettime)",
297 	/* 262 */	"#262 (unimplemented timer_getoverrun)",
298 	/* 263 */	"#263 (unimplemented timer_delete)",
299 	/* 264 */	"clock_settime",
300 	/* 265 */	"clock_gettime",
301 	/* 266 */	"clock_getres",
302 	/* 267 */	"clock_nanosleep",
303 	/* 268 */	"statfs64",
304 	/* 269 */	"fstatfs64",
305 	/* 270 */	"tgkill",
306 	/* 271 */	"#271 (unimplemented utimes)",
307 	/* 272 */	"#272 (unimplemented fadvise64_64)",
308 	/* 273 */	"#273 (unimplemented vserver)",
309 	/* 274 */	"#274 (unimplemented mbind)",
310 	/* 275 */	"#275 (unimplemented get_mempolicy)",
311 	/* 276 */	"#276 (unimplemented set_mempolicy)",
312 	/* 277 */	"#277 (unimplemented mq_open)",
313 	/* 278 */	"#278 (unimplemented mq_unlink)",
314 	/* 279 */	"#279 (unimplemented mq_timedsend)",
315 	/* 280 */	"#280 (unimplemented mq_timedreceive)",
316 	/* 281 */	"#281 (unimplemented mq_notify)",
317 	/* 282 */	"#282 (unimplemented mq_getsetattr)",
318 	/* 283 */	"#283 (unimplemented sys_kexec_load)",
319 	/* 284 */	"#284 (unimplemented waitid)",
320 	/* 285 */	"#285 (unimplemented / * unused * /)",
321 	/* 286 */	"#286 (unimplemented add_key)",
322 	/* 287 */	"#287 (unimplemented request_key)",
323 	/* 288 */	"#288 (unimplemented keyctl)",
324 	/* 289 */	"#289 (unimplemented ioprio_set)",
325 	/* 290 */	"#290 (unimplemented ioprio_get)",
326 	/* 291 */	"#291 (unimplemented inotify_init)",
327 	/* 292 */	"#292 (unimplemented inotify_add_watch)",
328 	/* 293 */	"#293 (unimplemented inotify_rm_watch)",
329 	/* 294 */	"#294 (unimplemented migrate_pages)",
330 	/* 295 */	"#295 (unimplemented openat)",
331 	/* 296 */	"#296 (unimplemented mkdirat)",
332 	/* 297 */	"#297 (unimplemented mknodat)",
333 	/* 298 */	"#298 (unimplemented fchownat)",
334 	/* 299 */	"#299 (unimplemented futimesat)",
335 	/* 300 */	"#300 (unimplemented fstatat64)",
336 	/* 301 */	"#301 (unimplemented unlinkat)",
337 	/* 302 */	"#302 (unimplemented renameat)",
338 	/* 303 */	"#303 (unimplemented linkat)",
339 	/* 304 */	"#304 (unimplemented symlinkat)",
340 	/* 305 */	"#305 (unimplemented readlinkat)",
341 	/* 306 */	"#306 (unimplemented fchmodat)",
342 	/* 307 */	"#307 (unimplemented faccessat)",
343 	/* 308 */	"#308 (unimplemented pselect6)",
344 	/* 309 */	"#309 (unimplemented ppoll)",
345 	/* 310 */	"#310 (unimplemented unshare)",
346 	/* 311 */	"set_robust_list",
347 	/* 312 */	"get_robust_list",
348 	/* 313 */	"#313 (unimplemented splice)",
349 	/* 314 */	"#314 (unimplemented sync_file_range)",
350 	/* 315 */	"#315 (unimplemented tee)",
351 	/* 316 */	"#316 (unimplemented vmsplice)",
352 	/* 317 */	"#317 (unimplemented move_pages)",
353 	/* 318 */	"#318 (unimplemented getcpu)",
354 	/* 319 */	"#319 (unimplemented epoll_wait)",
355 	/* 320 */	"#320 (unimplemented utimensat)",
356 	/* 321 */	"#321 (unimplemented signalfd)",
357 	/* 322 */	"#322 (unimplemented timerfd_create)",
358 	/* 323 */	"#323 (unimplemented eventfd)",
359 	/* 324 */	"#324 (unimplemented fallocate)",
360 	/* 325 */	"#325 (unimplemented timerfd_settime)",
361 	/* 326 */	"#326 (unimplemented timerfd_gettime)",
362 	/* 327 */	"#327 (unimplemented signalfd4)",
363 	/* 328 */	"#328 (unimplemented eventfd2)",
364 	/* 329 */	"#329 (unimplemented epoll_create1)",
365 	/* 330 */	"#330 (unimplemented dup3)",
366 	/* 331 */	"#331 (unimplemented pipe2)",
367 	/* 332 */	"#332 (unimplemented inotify_init1)",
368 	/* 333 */	"#333 (unimplemented preadv)",
369 	/* 334 */	"#334 (unimplemented pwritev)",
370 	/* 335 */	"#335 (unimplemented rt_tgsigqueueinfo)",
371 	/* 336 */	"#336 (unimplemented perf_counter_open)",
372 	/* 337 */	"#337 (unimplemented recvmmsg)",
373 };
374