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