linux_syscalls.c revision 1.59.24.1 1 1.59.24.1 bouyer /* $NetBSD: linux_syscalls.c,v 1.59.24.1 2007/11/18 19:35:05 bouyer Exp $ */
2 1.1 itohy
3 1.1 itohy /*
4 1.1 itohy * System call names.
5 1.1 itohy *
6 1.1 itohy * DO NOT EDIT-- this file is automatically generated.
7 1.59.24.1 bouyer * created from NetBSD: syscalls.master,v 1.55 2007/11/16 12:51:55 njoly Exp
8 1.1 itohy */
9 1.38 lukem
10 1.38 lukem #include <sys/cdefs.h>
11 1.59.24.1 bouyer __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.59.24.1 2007/11/18 19:35:05 bouyer Exp $");
12 1.1 itohy
13 1.37 mrg #if defined(_KERNEL_OPT)
14 1.37 mrg #if defined(_KERNEL_OPT)
15 1.1 itohy #include "opt_compat_netbsd.h"
16 1.1 itohy #include "opt_compat_43.h"
17 1.22 mycroft #endif
18 1.1 itohy #include <sys/param.h>
19 1.5 tron #include <sys/poll.h>
20 1.1 itohy #include <sys/systm.h>
21 1.1 itohy #include <sys/signal.h>
22 1.1 itohy #include <sys/mount.h>
23 1.1 itohy #include <sys/syscallargs.h>
24 1.1 itohy #include <compat/linux/common/linux_types.h>
25 1.1 itohy #include <compat/linux/common/linux_signal.h>
26 1.1 itohy #include <compat/linux/common/linux_siginfo.h>
27 1.1 itohy #include <compat/linux/common/linux_machdep.h>
28 1.47 thorpej #include <compat/linux/common/linux_mmap.h>
29 1.1 itohy #include <compat/linux/linux_syscallargs.h>
30 1.37 mrg #endif /* _KERNEL_OPT */
31 1.1 itohy
32 1.22 mycroft const char *const linux_syscallnames[] = {
33 1.59.24.1 bouyer /* 0 */ "syscall",
34 1.59.24.1 bouyer /* 1 */ "exit",
35 1.59.24.1 bouyer /* 2 */ "fork",
36 1.59.24.1 bouyer /* 3 */ "read",
37 1.59.24.1 bouyer /* 4 */ "write",
38 1.59.24.1 bouyer /* 5 */ "open",
39 1.59.24.1 bouyer /* 6 */ "close",
40 1.59.24.1 bouyer /* 7 */ "waitpid",
41 1.59.24.1 bouyer /* 8 */ "creat",
42 1.59.24.1 bouyer /* 9 */ "link",
43 1.59.24.1 bouyer /* 10 */ "unlink",
44 1.59.24.1 bouyer /* 11 */ "execve",
45 1.59.24.1 bouyer /* 12 */ "chdir",
46 1.59.24.1 bouyer /* 13 */ "time",
47 1.59.24.1 bouyer /* 14 */ "mknod",
48 1.59.24.1 bouyer /* 15 */ "chmod",
49 1.59.24.1 bouyer /* 16 */ "chown16",
50 1.59.24.1 bouyer /* 17 */ "#17 (obsolete break)",
51 1.59.24.1 bouyer /* 18 */ "#18 (obsolete ostat)",
52 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
53 1.59.24.1 bouyer /* 19 */ "lseek",
54 1.1 itohy #else
55 1.59.24.1 bouyer /* 19 */ "#19 (unimplemented compat_43_sys_lseek)",
56 1.1 itohy #endif
57 1.59.24.1 bouyer /* 20 */ "getpid",
58 1.59.24.1 bouyer /* 21 */ "#21 (unimplemented mount)",
59 1.59.24.1 bouyer /* 22 */ "#22 (obsolete umount)",
60 1.59.24.1 bouyer /* 23 */ "linux_setuid16",
61 1.59.24.1 bouyer /* 24 */ "linux_getuid16",
62 1.59.24.1 bouyer /* 25 */ "stime",
63 1.59.24.1 bouyer /* 26 */ "ptrace",
64 1.59.24.1 bouyer /* 27 */ "alarm",
65 1.59.24.1 bouyer /* 28 */ "#28 (obsolete ofstat)",
66 1.59.24.1 bouyer /* 29 */ "pause",
67 1.59.24.1 bouyer /* 30 */ "utime",
68 1.59.24.1 bouyer /* 31 */ "#31 (obsolete stty)",
69 1.59.24.1 bouyer /* 32 */ "#32 (obsolete gtty)",
70 1.59.24.1 bouyer /* 33 */ "access",
71 1.59.24.1 bouyer /* 34 */ "nice",
72 1.59.24.1 bouyer /* 35 */ "#35 (obsolete ftime)",
73 1.59.24.1 bouyer /* 36 */ "sync",
74 1.59.24.1 bouyer /* 37 */ "kill",
75 1.59.24.1 bouyer /* 38 */ "__posix_rename",
76 1.59.24.1 bouyer /* 39 */ "mkdir",
77 1.59.24.1 bouyer /* 40 */ "rmdir",
78 1.59.24.1 bouyer /* 41 */ "dup",
79 1.59.24.1 bouyer /* 42 */ "pipe",
80 1.59.24.1 bouyer /* 43 */ "times",
81 1.59.24.1 bouyer /* 44 */ "#44 (obsolete prof)",
82 1.59.24.1 bouyer /* 45 */ "brk",
83 1.59.24.1 bouyer /* 46 */ "linux_setgid16",
84 1.59.24.1 bouyer /* 47 */ "linux_getgid16",
85 1.59.24.1 bouyer /* 48 */ "signal",
86 1.59.24.1 bouyer /* 49 */ "linux_geteuid16",
87 1.59.24.1 bouyer /* 50 */ "linux_getegid16",
88 1.59.24.1 bouyer /* 51 */ "acct",
89 1.59.24.1 bouyer /* 52 */ "#52 (unimplemented umount)",
90 1.59.24.1 bouyer /* 53 */ "#53 (obsolete lock)",
91 1.59.24.1 bouyer /* 54 */ "ioctl",
92 1.59.24.1 bouyer /* 55 */ "fcntl",
93 1.59.24.1 bouyer /* 56 */ "#56 (obsolete mpx)",
94 1.59.24.1 bouyer /* 57 */ "setpgid",
95 1.59.24.1 bouyer /* 58 */ "#58 (obsolete ulimit)",
96 1.59.24.1 bouyer /* 59 */ "#59 (unimplemented oldolduname)",
97 1.59.24.1 bouyer /* 60 */ "umask",
98 1.59.24.1 bouyer /* 61 */ "chroot",
99 1.59.24.1 bouyer /* 62 */ "#62 (unimplemented ustat)",
100 1.59.24.1 bouyer /* 63 */ "dup2",
101 1.59.24.1 bouyer /* 64 */ "getppid",
102 1.59.24.1 bouyer /* 65 */ "getpgrp",
103 1.59.24.1 bouyer /* 66 */ "setsid",
104 1.59.24.1 bouyer /* 67 */ "sigaction",
105 1.59.24.1 bouyer /* 68 */ "siggetmask",
106 1.59.24.1 bouyer /* 69 */ "sigsetmask",
107 1.59.24.1 bouyer /* 70 */ "setreuid16",
108 1.59.24.1 bouyer /* 71 */ "setregid16",
109 1.59.24.1 bouyer /* 72 */ "sigsuspend",
110 1.59.24.1 bouyer /* 73 */ "sigpending",
111 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
112 1.59.24.1 bouyer /* 74 */ "sethostname",
113 1.1 itohy #else
114 1.59.24.1 bouyer /* 74 */ "#74 (unimplemented compat_43_sys_sethostname)",
115 1.1 itohy #endif
116 1.59.24.1 bouyer /* 75 */ "setrlimit",
117 1.59.24.1 bouyer /* 76 */ "getrlimit",
118 1.59.24.1 bouyer /* 77 */ "getrusage",
119 1.59.24.1 bouyer /* 78 */ "gettimeofday",
120 1.59.24.1 bouyer /* 79 */ "settimeofday",
121 1.59.24.1 bouyer /* 80 */ "getgroups16",
122 1.59.24.1 bouyer /* 81 */ "setgroups16",
123 1.59.24.1 bouyer /* 82 */ "oldselect",
124 1.59.24.1 bouyer /* 83 */ "symlink",
125 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
126 1.59.24.1 bouyer /* 84 */ "oolstat",
127 1.1 itohy #else
128 1.59.24.1 bouyer /* 84 */ "#84 (unimplemented compat_43_sys_lstat)",
129 1.1 itohy #endif
130 1.59.24.1 bouyer /* 85 */ "readlink",
131 1.53 joerg #ifdef EXEC_AOUT
132 1.59.24.1 bouyer /* 86 */ "uselib",
133 1.53 joerg #else
134 1.59.24.1 bouyer /* 86 */ "#86 (unimplemented sys_uselib)",
135 1.53 joerg #endif
136 1.59.24.1 bouyer /* 87 */ "swapon",
137 1.59.24.1 bouyer /* 88 */ "reboot",
138 1.59.24.1 bouyer /* 89 */ "readdir",
139 1.59.24.1 bouyer /* 90 */ "old_mmap",
140 1.59.24.1 bouyer /* 91 */ "munmap",
141 1.59.24.1 bouyer /* 92 */ "truncate",
142 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
143 1.59.24.1 bouyer /* 93 */ "ftruncate",
144 1.1 itohy #else
145 1.59.24.1 bouyer /* 93 */ "#93 (unimplemented compat_43_sys_ftruncate)",
146 1.1 itohy #endif
147 1.59.24.1 bouyer /* 94 */ "fchmod",
148 1.59.24.1 bouyer /* 95 */ "fchown16",
149 1.59.24.1 bouyer /* 96 */ "getpriority",
150 1.59.24.1 bouyer /* 97 */ "setpriority",
151 1.59.24.1 bouyer /* 98 */ "profil",
152 1.59.24.1 bouyer /* 99 */ "statfs",
153 1.59.24.1 bouyer /* 100 */ "fstatfs",
154 1.59.24.1 bouyer /* 101 */ "#101 (unimplemented ioperm)",
155 1.59.24.1 bouyer /* 102 */ "socketcall",
156 1.59.24.1 bouyer /* 103 */ "#103 (unimplemented syslog)",
157 1.59.24.1 bouyer /* 104 */ "setitimer",
158 1.59.24.1 bouyer /* 105 */ "getitimer",
159 1.59.24.1 bouyer /* 106 */ "stat",
160 1.59.24.1 bouyer /* 107 */ "lstat",
161 1.59.24.1 bouyer /* 108 */ "fstat",
162 1.59.24.1 bouyer /* 109 */ "#109 (unimplemented olduname)",
163 1.59.24.1 bouyer /* 110 */ "#110 (unimplemented iopl)",
164 1.59.24.1 bouyer /* 111 */ "#111 (unimplemented vhangup)",
165 1.59.24.1 bouyer /* 112 */ "#112 (unimplemented idle)",
166 1.59.24.1 bouyer /* 113 */ "#113 (unimplemented vm86old)",
167 1.59.24.1 bouyer /* 114 */ "wait4",
168 1.59.24.1 bouyer /* 115 */ "swapoff",
169 1.59.24.1 bouyer /* 116 */ "sysinfo",
170 1.59.24.1 bouyer /* 117 */ "ipc",
171 1.59.24.1 bouyer /* 118 */ "fsync",
172 1.59.24.1 bouyer /* 119 */ "sigreturn",
173 1.59.24.1 bouyer /* 120 */ "clone",
174 1.59.24.1 bouyer /* 121 */ "setdomainname",
175 1.59.24.1 bouyer /* 122 */ "uname",
176 1.59.24.1 bouyer /* 123 */ "cacheflush",
177 1.59.24.1 bouyer /* 124 */ "#124 (unimplemented adjtimex)",
178 1.59.24.1 bouyer /* 125 */ "mprotect",
179 1.59.24.1 bouyer /* 126 */ "sigprocmask",
180 1.59.24.1 bouyer /* 127 */ "#127 (unimplemented create_module)",
181 1.59.24.1 bouyer /* 128 */ "#128 (unimplemented init_module)",
182 1.59.24.1 bouyer /* 129 */ "#129 (unimplemented delete_module)",
183 1.59.24.1 bouyer /* 130 */ "#130 (unimplemented get_kernel_syms)",
184 1.59.24.1 bouyer /* 131 */ "#131 (unimplemented quotactl)",
185 1.59.24.1 bouyer /* 132 */ "getpgid",
186 1.59.24.1 bouyer /* 133 */ "fchdir",
187 1.59.24.1 bouyer /* 134 */ "#134 (unimplemented bdflush)",
188 1.59.24.1 bouyer /* 135 */ "#135 (unimplemented sysfs)",
189 1.59.24.1 bouyer /* 136 */ "personality",
190 1.59.24.1 bouyer /* 137 */ "#137 (unimplemented afs_syscall)",
191 1.59.24.1 bouyer /* 138 */ "linux_setfsuid16",
192 1.59.24.1 bouyer /* 139 */ "linux_getfsuid16",
193 1.59.24.1 bouyer /* 140 */ "llseek",
194 1.59.24.1 bouyer /* 141 */ "getdents",
195 1.59.24.1 bouyer /* 142 */ "select",
196 1.59.24.1 bouyer /* 143 */ "flock",
197 1.59.24.1 bouyer /* 144 */ "msync",
198 1.59.24.1 bouyer /* 145 */ "readv",
199 1.59.24.1 bouyer /* 146 */ "writev",
200 1.59.24.1 bouyer /* 147 */ "getsid",
201 1.59.24.1 bouyer /* 148 */ "fdatasync",
202 1.59.24.1 bouyer /* 149 */ "__sysctl",
203 1.59.24.1 bouyer /* 150 */ "mlock",
204 1.59.24.1 bouyer /* 151 */ "munlock",
205 1.59.24.1 bouyer /* 152 */ "mlockall",
206 1.59.24.1 bouyer /* 153 */ "munlockall",
207 1.59.24.1 bouyer /* 154 */ "sched_setparam",
208 1.59.24.1 bouyer /* 155 */ "sched_getparam",
209 1.59.24.1 bouyer /* 156 */ "sched_setscheduler",
210 1.59.24.1 bouyer /* 157 */ "sched_getscheduler",
211 1.59.24.1 bouyer /* 158 */ "sched_yield",
212 1.59.24.1 bouyer /* 159 */ "sched_get_priority_max",
213 1.59.24.1 bouyer /* 160 */ "sched_get_priority_min",
214 1.59.24.1 bouyer /* 161 */ "#161 (unimplemented sched_rr_get_interval)",
215 1.59.24.1 bouyer /* 162 */ "nanosleep",
216 1.59.24.1 bouyer /* 163 */ "mremap",
217 1.59.24.1 bouyer /* 164 */ "setresuid16",
218 1.59.24.1 bouyer /* 165 */ "linux_getresuid16",
219 1.59.24.1 bouyer /* 166 */ "#166 (unimplemented vm86)",
220 1.59.24.1 bouyer /* 167 */ "#167 (unimplemented query_module)",
221 1.59.24.1 bouyer /* 168 */ "poll",
222 1.59.24.1 bouyer /* 169 */ "#169 (unimplemented nfsservctl)",
223 1.59.24.1 bouyer /* 170 */ "setresgid16",
224 1.59.24.1 bouyer /* 171 */ "linux_getresgid16",
225 1.59.24.1 bouyer /* 172 */ "#172 (unimplemented prctl)",
226 1.59.24.1 bouyer /* 173 */ "rt_sigreturn",
227 1.59.24.1 bouyer /* 174 */ "rt_sigaction",
228 1.59.24.1 bouyer /* 175 */ "rt_sigprocmask",
229 1.59.24.1 bouyer /* 176 */ "rt_sigpending",
230 1.59.24.1 bouyer /* 177 */ "#177 (unimplemented rt_sigtimedwait)",
231 1.59.24.1 bouyer /* 178 */ "rt_queueinfo",
232 1.59.24.1 bouyer /* 179 */ "rt_sigsuspend",
233 1.59.24.1 bouyer /* 180 */ "pread",
234 1.59.24.1 bouyer /* 181 */ "pwrite",
235 1.59.24.1 bouyer /* 182 */ "lchown16",
236 1.59.24.1 bouyer /* 183 */ "__getcwd",
237 1.59.24.1 bouyer /* 184 */ "#184 (unimplemented capget)",
238 1.59.24.1 bouyer /* 185 */ "#185 (unimplemented capset)",
239 1.59.24.1 bouyer /* 186 */ "sigaltstack",
240 1.59.24.1 bouyer /* 187 */ "#187 (unimplemented sendfile)",
241 1.59.24.1 bouyer /* 188 */ "#188 (unimplemented getpmsg)",
242 1.59.24.1 bouyer /* 189 */ "#189 (unimplemented putpmsg)",
243 1.59.24.1 bouyer /* 190 */ "__vfork14",
244 1.59.24.1 bouyer /* 191 */ "ugetrlimit",
245 1.59.24.1 bouyer /* 192 */ "mmap2",
246 1.59.24.1 bouyer /* 193 */ "truncate64",
247 1.59.24.1 bouyer /* 194 */ "ftruncate64",
248 1.59.24.1 bouyer /* 195 */ "stat64",
249 1.59.24.1 bouyer /* 196 */ "lstat64",
250 1.59.24.1 bouyer /* 197 */ "fstat64",
251 1.59.24.1 bouyer /* 198 */ "__posix_chown",
252 1.59.24.1 bouyer /* 199 */ "getuid",
253 1.59.24.1 bouyer /* 200 */ "getgid",
254 1.59.24.1 bouyer /* 201 */ "geteuid",
255 1.59.24.1 bouyer /* 202 */ "getegid",
256 1.59.24.1 bouyer /* 203 */ "setreuid",
257 1.59.24.1 bouyer /* 204 */ "setregid",
258 1.59.24.1 bouyer /* 205 */ "getgroups",
259 1.59.24.1 bouyer /* 206 */ "setgroups",
260 1.59.24.1 bouyer /* 207 */ "__posix_fchown",
261 1.59.24.1 bouyer /* 208 */ "setresuid",
262 1.59.24.1 bouyer /* 209 */ "getresuid",
263 1.59.24.1 bouyer /* 210 */ "setresgid",
264 1.59.24.1 bouyer /* 211 */ "getresgid",
265 1.59.24.1 bouyer /* 212 */ "__posix_lchown",
266 1.59.24.1 bouyer /* 213 */ "setuid",
267 1.59.24.1 bouyer /* 214 */ "setgid",
268 1.59.24.1 bouyer /* 215 */ "setfsuid",
269 1.59.24.1 bouyer /* 216 */ "getfsuid",
270 1.59.24.1 bouyer /* 217 */ "#217 (unimplemented / * unused * /)",
271 1.59.24.1 bouyer /* 218 */ "#218 (unimplemented / * unused * /)",
272 1.59.24.1 bouyer /* 219 */ "#219 (unimplemented / * unused * /)",
273 1.59.24.1 bouyer /* 220 */ "getdents64",
274 1.59.24.1 bouyer /* 221 */ "#221 (unimplemented gettid)",
275 1.59.24.1 bouyer /* 222 */ "#222 (unimplemented tkill)",
276 1.59.24.1 bouyer /* 223 */ "setxattr",
277 1.59.24.1 bouyer /* 224 */ "lsetxattr",
278 1.59.24.1 bouyer /* 225 */ "fsetxattr",
279 1.59.24.1 bouyer /* 226 */ "getxattr",
280 1.59.24.1 bouyer /* 227 */ "lgetxattr",
281 1.59.24.1 bouyer /* 228 */ "fgetxattr",
282 1.59.24.1 bouyer /* 229 */ "listxattr",
283 1.59.24.1 bouyer /* 230 */ "llistxattr",
284 1.59.24.1 bouyer /* 231 */ "flistxattr",
285 1.59.24.1 bouyer /* 232 */ "removexattr",
286 1.59.24.1 bouyer /* 233 */ "lremovexattr",
287 1.59.24.1 bouyer /* 234 */ "fremovexattr",
288 1.59.24.1 bouyer /* 235 */ "#235 (unimplemented futex)",
289 1.59.24.1 bouyer /* 236 */ "#236 (unimplemented sendfile64)",
290 1.59.24.1 bouyer /* 237 */ "#237 (unimplemented mincore)",
291 1.59.24.1 bouyer /* 238 */ "#238 (unimplemented madvise)",
292 1.59.24.1 bouyer /* 239 */ "#239 (unimplemented fcntl64)",
293 1.59.24.1 bouyer /* 240 */ "#240 (unimplemented readahead)",
294 1.59.24.1 bouyer /* 241 */ "#241 (unimplemented io_setup)",
295 1.59.24.1 bouyer /* 242 */ "#242 (unimplemented io_destroy)",
296 1.59.24.1 bouyer /* 243 */ "#243 (unimplemented io_getevents)",
297 1.59.24.1 bouyer /* 244 */ "#244 (unimplemented io_submit)",
298 1.59.24.1 bouyer /* 245 */ "#245 (unimplemented io_cancel)",
299 1.59.24.1 bouyer /* 246 */ "#246 (unimplemented fadvise64)",
300 1.59.24.1 bouyer /* 247 */ "#247 (unimplemented exit_group)",
301 1.59.24.1 bouyer /* 248 */ "#248 (unimplemented lookup_dcookie)",
302 1.59.24.1 bouyer /* 249 */ "#249 (unimplemented epoll_create)",
303 1.59.24.1 bouyer /* 250 */ "#250 (unimplemented epoll_ctl)",
304 1.59.24.1 bouyer /* 251 */ "#251 (unimplemented epoll_wait)",
305 1.59.24.1 bouyer /* 252 */ "#252 (unimplemented remap_file_pages)",
306 1.59.24.1 bouyer /* 253 */ "#253 (unimplemented set_tid_address)",
307 1.59.24.1 bouyer /* 254 */ "#254 (unimplemented timer_create)",
308 1.59.24.1 bouyer /* 255 */ "#255 (unimplemented timer_settime)",
309 1.59.24.1 bouyer /* 256 */ "#256 (unimplemented timer_gettime)",
310 1.59.24.1 bouyer /* 257 */ "#257 (unimplemented timer_getoverrun)",
311 1.59.24.1 bouyer /* 258 */ "#258 (unimplemented timer_delete)",
312 1.59.24.1 bouyer /* 259 */ "clock_settime",
313 1.59.24.1 bouyer /* 260 */ "clock_gettime",
314 1.59.24.1 bouyer /* 261 */ "clock_getres",
315 1.59.24.1 bouyer /* 262 */ "clock_nanosleep",
316 1.1 itohy };
317