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