linux32_syscalls.c revision 1.49 1 1.49 pooka /* $NetBSD: linux32_syscalls.c,v 1.49 2009/01/13 22:33:10 pooka Exp $ */
2 1.1 manu
3 1.1 manu /*
4 1.1 manu * System call names.
5 1.1 manu *
6 1.1 manu * DO NOT EDIT-- this file is automatically generated.
7 1.49 pooka * created from NetBSD: syscalls.master,v 1.46 2009/01/13 22:27:43 pooka Exp
8 1.1 manu */
9 1.1 manu
10 1.1 manu #include <sys/cdefs.h>
11 1.49 pooka __KERNEL_RCSID(0, "$NetBSD: linux32_syscalls.c,v 1.49 2009/01/13 22:33:10 pooka Exp $");
12 1.1 manu
13 1.1 manu #if defined(_KERNEL_OPT)
14 1.1 manu #include <sys/param.h>
15 1.1 manu #include <sys/poll.h>
16 1.1 manu #include <sys/systm.h>
17 1.1 manu #include <sys/signal.h>
18 1.1 manu #include <sys/mount.h>
19 1.1 manu #include <sys/syscallargs.h>
20 1.1 manu #include <machine/netbsd32_machdep.h>
21 1.1 manu #include <compat/netbsd32/netbsd32.h>
22 1.1 manu #include <compat/netbsd32/netbsd32_syscallargs.h>
23 1.1 manu #include <compat/linux32/common/linux32_types.h>
24 1.1 manu #include <compat/linux32/common/linux32_signal.h>
25 1.1 manu #include <compat/linux32/arch/amd64/linux32_missing.h>
26 1.1 manu #include <compat/linux32/linux32_syscallargs.h>
27 1.1 manu #include <compat/linux/common/linux_types.h>
28 1.1 manu #include <compat/linux/common/linux_mmap.h>
29 1.1 manu #include <compat/linux/common/linux_signal.h>
30 1.1 manu #include <compat/linux/common/linux_siginfo.h>
31 1.1 manu #include <compat/linux/common/linux_machdep.h>
32 1.43 ad #include <compat/linux/common/linux_ipc.h>
33 1.43 ad #include <compat/linux/common/linux_sem.h>
34 1.1 manu #include <compat/linux/linux_syscallargs.h>
35 1.1 manu #endif /* _KERNEL_OPT */
36 1.1 manu
37 1.1 manu const char *const linux32_syscallnames[] = {
38 1.22 christos /* 0 */ "syscall",
39 1.22 christos /* 1 */ "netbsd32_exit",
40 1.22 christos /* 2 */ "fork",
41 1.22 christos /* 3 */ "netbsd32_read",
42 1.22 christos /* 4 */ "netbsd32_write",
43 1.22 christos /* 5 */ "open",
44 1.22 christos /* 6 */ "netbsd32_close",
45 1.22 christos /* 7 */ "waitpid",
46 1.22 christos /* 8 */ "creat",
47 1.22 christos /* 9 */ "netbsd32_link",
48 1.22 christos /* 10 */ "unlink",
49 1.22 christos /* 11 */ "netbsd32_execve",
50 1.22 christos /* 12 */ "netbsd32_chdir",
51 1.22 christos /* 13 */ "time",
52 1.22 christos /* 14 */ "mknod",
53 1.22 christos /* 15 */ "netbsd32_chmod",
54 1.22 christos /* 16 */ "lchown16",
55 1.22 christos /* 17 */ "break",
56 1.22 christos /* 18 */ "#18 (obsolete ostat)",
57 1.22 christos /* 19 */ "compat_43_netbsd32_olseek",
58 1.22 christos /* 20 */ "getpid",
59 1.22 christos /* 21 */ "#21 (unimplemented mount)",
60 1.22 christos /* 22 */ "#22 (unimplemented umount)",
61 1.22 christos /* 23 */ "linux_setuid16",
62 1.22 christos /* 24 */ "linux_getuid16",
63 1.22 christos /* 25 */ "stime",
64 1.38 christos /* 26 */ "ptrace",
65 1.22 christos /* 27 */ "alarm",
66 1.22 christos /* 28 */ "#28 (obsolete ofstat)",
67 1.22 christos /* 29 */ "pause",
68 1.22 christos /* 30 */ "utime",
69 1.22 christos /* 31 */ "#31 (obsolete stty)",
70 1.22 christos /* 32 */ "#32 (obsolete gtty)",
71 1.22 christos /* 33 */ "netbsd32_access",
72 1.22 christos /* 34 */ "nice",
73 1.22 christos /* 35 */ "#35 (obsolete ftime)",
74 1.22 christos /* 36 */ "sync",
75 1.22 christos /* 37 */ "kill",
76 1.40 njoly /* 38 */ "netbsd32___posix_rename",
77 1.22 christos /* 39 */ "netbsd32_mkdir",
78 1.22 christos /* 40 */ "netbsd32_rmdir",
79 1.22 christos /* 41 */ "netbsd32_dup",
80 1.22 christos /* 42 */ "pipe",
81 1.22 christos /* 43 */ "times",
82 1.22 christos /* 44 */ "#44 (obsolete prof)",
83 1.22 christos /* 45 */ "brk",
84 1.22 christos /* 46 */ "linux_setgid16",
85 1.22 christos /* 47 */ "linux_getgid16",
86 1.22 christos /* 48 */ "signal",
87 1.22 christos /* 49 */ "linux_geteuid16",
88 1.22 christos /* 50 */ "linux_getegid16",
89 1.22 christos /* 51 */ "netbsd32_acct",
90 1.22 christos /* 52 */ "#52 (obsolete phys)",
91 1.22 christos /* 53 */ "#53 (obsolete lock)",
92 1.22 christos /* 54 */ "ioctl",
93 1.22 christos /* 55 */ "fcntl",
94 1.22 christos /* 56 */ "#56 (obsolete mpx)",
95 1.22 christos /* 57 */ "netbsd32_setpgid",
96 1.22 christos /* 58 */ "#58 (obsolete ulimit)",
97 1.22 christos /* 59 */ "oldolduname",
98 1.22 christos /* 60 */ "netbsd32_umask",
99 1.22 christos /* 61 */ "netbsd32_chroot",
100 1.22 christos /* 62 */ "#62 (unimplemented ustat)",
101 1.22 christos /* 63 */ "netbsd32_dup2",
102 1.22 christos /* 64 */ "getppid",
103 1.22 christos /* 65 */ "getpgrp",
104 1.22 christos /* 66 */ "setsid",
105 1.22 christos /* 67 */ "#67 (unimplemented sigaction)",
106 1.22 christos /* 68 */ "#68 (unimplemented siggetmask)",
107 1.22 christos /* 69 */ "#69 (unimplemented sigsetmask)",
108 1.22 christos /* 70 */ "setreuid16",
109 1.22 christos /* 71 */ "setregid16",
110 1.22 christos /* 72 */ "#72 (unimplemented sigsuspend)",
111 1.22 christos /* 73 */ "#73 (unimplemented sigpending)",
112 1.22 christos /* 74 */ "compat_43_netbsd32_osethostname",
113 1.22 christos /* 75 */ "setrlimit",
114 1.22 christos /* 76 */ "getrlimit",
115 1.48 christos /* 77 */ "compat_50_netbsd32_getrusage",
116 1.22 christos /* 78 */ "gettimeofday",
117 1.22 christos /* 79 */ "settimeofday",
118 1.22 christos /* 80 */ "getgroups16",
119 1.22 christos /* 81 */ "setgroups16",
120 1.22 christos /* 82 */ "oldselect",
121 1.22 christos /* 83 */ "netbsd32_symlink",
122 1.22 christos /* 84 */ "compat_43_netbsd32_lstat43",
123 1.23 njoly /* 85 */ "netbsd32_readlink",
124 1.22 christos /* 86 */ "#86 (unimplemented uselib)",
125 1.22 christos /* 87 */ "swapon",
126 1.22 christos /* 88 */ "reboot",
127 1.28 njoly /* 89 */ "readdir",
128 1.22 christos /* 90 */ "old_mmap",
129 1.22 christos /* 91 */ "netbsd32_munmap",
130 1.40 njoly /* 92 */ "compat_43_netbsd32_otruncate",
131 1.22 christos /* 93 */ "compat_43_netbsd32_oftruncate",
132 1.22 christos /* 94 */ "netbsd32_fchmod",
133 1.22 christos /* 95 */ "fchown16",
134 1.22 christos /* 96 */ "getpriority",
135 1.40 njoly /* 97 */ "netbsd32_setpriority",
136 1.22 christos /* 98 */ "#98 (unimplemented profil)",
137 1.22 christos /* 99 */ "statfs",
138 1.22 christos /* 100 */ "#100 (unimplemented fstatfs)",
139 1.22 christos /* 101 */ "#101 (unimplemented ioperm)",
140 1.22 christos /* 102 */ "socketcall",
141 1.22 christos /* 103 */ "#103 (unimplemented syslog)",
142 1.48 christos /* 104 */ "compat_50_netbsd32_setitimer",
143 1.48 christos /* 105 */ "compat_50_netbsd32_getitimer",
144 1.22 christos /* 106 */ "#106 (unimplemented stat)",
145 1.22 christos /* 107 */ "#107 (unimplemented lstat)",
146 1.22 christos /* 108 */ "#108 (unimplemented fstat)",
147 1.27 njoly /* 109 */ "olduname",
148 1.22 christos /* 110 */ "#110 (unimplemented iopl)",
149 1.22 christos /* 111 */ "#111 (unimplemented vhangup)",
150 1.22 christos /* 112 */ "#112 (unimplemented idle)",
151 1.22 christos /* 113 */ "#113 (unimplemented vm86old)",
152 1.22 christos /* 114 */ "wait4",
153 1.22 christos /* 115 */ "swapoff",
154 1.22 christos /* 116 */ "sysinfo",
155 1.37 njoly /* 117 */ "ipc",
156 1.22 christos /* 118 */ "netbsd32_fsync",
157 1.22 christos /* 119 */ "sigreturn",
158 1.22 christos /* 120 */ "clone",
159 1.22 christos /* 121 */ "#121 (unimplemented setdomainname)",
160 1.22 christos /* 122 */ "uname",
161 1.22 christos /* 123 */ "#123 (unimplemented modify_ldt)",
162 1.22 christos /* 124 */ "#124 (unimplemented adjtimex)",
163 1.22 christos /* 125 */ "mprotect",
164 1.22 christos /* 126 */ "#126 (unimplemented sigprocmask)",
165 1.22 christos /* 127 */ "#127 (unimplemented create_module)",
166 1.22 christos /* 128 */ "#128 (unimplemented init_module)",
167 1.22 christos /* 129 */ "#129 (unimplemented delete_module)",
168 1.22 christos /* 130 */ "#130 (unimplemented get_kernel_syms)",
169 1.22 christos /* 131 */ "#131 (unimplemented quotactl)",
170 1.26 njoly /* 132 */ "netbsd32_getpgid",
171 1.22 christos /* 133 */ "netbsd32_fchdir",
172 1.22 christos /* 134 */ "#134 (unimplemented bdflush)",
173 1.22 christos /* 135 */ "#135 (unimplemented sysfs)",
174 1.22 christos /* 136 */ "#136 (unimplemented personality)",
175 1.22 christos /* 137 */ "#137 (unimplemented afs_syscall)",
176 1.22 christos /* 138 */ "setfsuid16",
177 1.25 njoly /* 139 */ "setfsgid16",
178 1.22 christos /* 140 */ "llseek",
179 1.22 christos /* 141 */ "getdents",
180 1.22 christos /* 142 */ "select",
181 1.22 christos /* 143 */ "netbsd32_flock",
182 1.35 njoly /* 144 */ "netbsd32___msync13",
183 1.22 christos /* 145 */ "netbsd32_readv",
184 1.22 christos /* 146 */ "netbsd32_writev",
185 1.22 christos /* 147 */ "netbsd32_getsid",
186 1.22 christos /* 148 */ "fdatasync",
187 1.22 christos /* 149 */ "__sysctl",
188 1.34 njoly /* 150 */ "netbsd32_mlock",
189 1.34 njoly /* 151 */ "netbsd32_munlock",
190 1.22 christos /* 152 */ "netbsd32_mlockall",
191 1.22 christos /* 153 */ "munlockall",
192 1.22 christos /* 154 */ "#154 (unimplemented sched_setparam)",
193 1.22 christos /* 155 */ "sched_getparam",
194 1.22 christos /* 156 */ "sched_setscheduler",
195 1.22 christos /* 157 */ "sched_getscheduler",
196 1.22 christos /* 158 */ "sched_yield",
197 1.44 njoly /* 159 */ "sched_get_priority_max",
198 1.44 njoly /* 160 */ "sched_get_priority_min",
199 1.22 christos /* 161 */ "#161 (unimplemented sched_rr_get_interval)",
200 1.42 njoly /* 162 */ "nanosleep",
201 1.22 christos /* 163 */ "mremap",
202 1.22 christos /* 164 */ "setresuid16",
203 1.30 njoly /* 165 */ "getresuid16",
204 1.22 christos /* 166 */ "#166 (unimplemented vm86)",
205 1.22 christos /* 167 */ "#167 (unimplemented query_module)",
206 1.22 christos /* 168 */ "netbsd32_poll",
207 1.22 christos /* 169 */ "#169 (unimplemented nfsservctl)",
208 1.22 christos /* 170 */ "setresgid16",
209 1.30 njoly /* 171 */ "getresgid16",
210 1.22 christos /* 172 */ "#172 (unimplemented prctl)",
211 1.22 christos /* 173 */ "rt_sigreturn",
212 1.22 christos /* 174 */ "rt_sigaction",
213 1.22 christos /* 175 */ "rt_sigprocmask",
214 1.39 njoly /* 176 */ "rt_sigpending",
215 1.22 christos /* 177 */ "#177 (unimplemented rt_sigtimedwait)",
216 1.22 christos /* 178 */ "#178 (unimplemented rt_queueinfo)",
217 1.22 christos /* 179 */ "rt_sigsuspend",
218 1.31 dsl /* 180 */ "pread",
219 1.31 dsl /* 181 */ "pwrite",
220 1.22 christos /* 182 */ "chown16",
221 1.22 christos /* 183 */ "netbsd32___getcwd",
222 1.22 christos /* 184 */ "#184 (unimplemented capget)",
223 1.22 christos /* 185 */ "#185 (unimplemented capset)",
224 1.22 christos /* 186 */ "#186 (unimplemented sigaltstack)",
225 1.22 christos /* 187 */ "#187 (unimplemented sendfile)",
226 1.22 christos /* 188 */ "#188 (unimplemented getpmsg)",
227 1.22 christos /* 189 */ "#189 (unimplemented putpmsg)",
228 1.22 christos /* 190 */ "__vfork14",
229 1.22 christos /* 191 */ "ugetrlimit",
230 1.22 christos /* 192 */ "mmap2",
231 1.22 christos /* 193 */ "#193 (unimplemented truncate64)",
232 1.22 christos /* 194 */ "#194 (unimplemented ftruncate64)",
233 1.22 christos /* 195 */ "stat64",
234 1.22 christos /* 196 */ "lstat64",
235 1.22 christos /* 197 */ "fstat64",
236 1.22 christos /* 198 */ "netbsd32___posix_lchown",
237 1.22 christos /* 199 */ "getuid",
238 1.22 christos /* 200 */ "getgid",
239 1.22 christos /* 201 */ "geteuid",
240 1.22 christos /* 202 */ "getegid",
241 1.22 christos /* 203 */ "netbsd32_setreuid",
242 1.22 christos /* 204 */ "netbsd32_setregid",
243 1.22 christos /* 205 */ "netbsd32_getgroups",
244 1.22 christos /* 206 */ "netbsd32_setgroups",
245 1.22 christos /* 207 */ "netbsd32___posix_fchown",
246 1.22 christos /* 208 */ "setresuid",
247 1.45 njoly /* 209 */ "getresuid",
248 1.22 christos /* 210 */ "setresgid",
249 1.45 njoly /* 211 */ "getresgid",
250 1.22 christos /* 212 */ "netbsd32___posix_chown",
251 1.22 christos /* 213 */ "netbsd32_setuid",
252 1.22 christos /* 214 */ "netbsd32_setgid",
253 1.22 christos /* 215 */ "setfsuid",
254 1.25 njoly /* 216 */ "setfsgid",
255 1.22 christos /* 217 */ "#217 (unimplemented pivot_root)",
256 1.22 christos /* 218 */ "#218 (unimplemented mincore)",
257 1.22 christos /* 219 */ "netbsd32_madvise",
258 1.22 christos /* 220 */ "getdents64",
259 1.32 dsl #define linux32_sys_fcntl64 linux32_sys_fcntl
260 1.32 dsl #define linux32_sys_fcntl64_args linux32_sys_fcntl_args
261 1.22 christos /* 221 */ "fcntl64",
262 1.22 christos /* 222 */ "#222 (unimplemented / * unused * /)",
263 1.22 christos /* 223 */ "#223 (unimplemented / * unused * /)",
264 1.22 christos /* 224 */ "gettid",
265 1.22 christos /* 225 */ "#225 (unimplemented readahead)",
266 1.22 christos /* 226 */ "#226 (unimplemented setxattr)",
267 1.22 christos /* 227 */ "#227 (unimplemented lsetxattr)",
268 1.22 christos /* 228 */ "#228 (unimplemented fsetxattr)",
269 1.22 christos /* 229 */ "#229 (unimplemented getxattr)",
270 1.22 christos /* 230 */ "#230 (unimplemented lgetxattr)",
271 1.22 christos /* 231 */ "#231 (unimplemented fgetxattr)",
272 1.22 christos /* 232 */ "#232 (unimplemented listxattr)",
273 1.22 christos /* 233 */ "#233 (unimplemented llistxattr)",
274 1.22 christos /* 234 */ "#234 (unimplemented flistxattr)",
275 1.22 christos /* 235 */ "#235 (unimplemented removexattr)",
276 1.22 christos /* 236 */ "#236 (unimplemented lremovexattr)",
277 1.22 christos /* 237 */ "#237 (unimplemented fremovexattr)",
278 1.22 christos /* 238 */ "#238 (unimplemented tkill)",
279 1.22 christos /* 239 */ "#239 (unimplemented sendfile64)",
280 1.22 christos /* 240 */ "#240 (unimplemented futex)",
281 1.22 christos /* 241 */ "#241 (unimplemented sched_setaffinity)",
282 1.22 christos /* 242 */ "#242 (unimplemented sched_getaffinity)",
283 1.22 christos /* 243 */ "#243 (unimplemented set_thread_area)",
284 1.22 christos /* 244 */ "#244 (unimplemented get_thread_area)",
285 1.22 christos /* 245 */ "#245 (unimplemented io_setup)",
286 1.22 christos /* 246 */ "#246 (unimplemented io_destroy)",
287 1.22 christos /* 247 */ "#247 (unimplemented io_getevents)",
288 1.22 christos /* 248 */ "#248 (unimplemented io_submit)",
289 1.22 christos /* 249 */ "#249 (unimplemented io_cancel)",
290 1.22 christos /* 250 */ "#250 (unimplemented fadvise64)",
291 1.22 christos /* 251 */ "#251 (unimplemented / * unused * /)",
292 1.22 christos /* 252 */ "exit_group",
293 1.22 christos /* 253 */ "#253 (unimplemented lookup_dcookie)",
294 1.22 christos /* 254 */ "#254 (unimplemented epoll_create)",
295 1.22 christos /* 255 */ "#255 (unimplemented epoll_ctl)",
296 1.22 christos /* 256 */ "#256 (unimplemented epoll_wait)",
297 1.22 christos /* 257 */ "#257 (unimplemented remap_file_pages)",
298 1.22 christos /* 258 */ "#258 (unimplemented set_tid_address)",
299 1.22 christos /* 259 */ "#259 (unimplemented timer_create)",
300 1.22 christos /* 260 */ "#260 (unimplemented timer_settime)",
301 1.22 christos /* 261 */ "#261 (unimplemented timer_gettime)",
302 1.22 christos /* 262 */ "#262 (unimplemented timer_getoverrun)",
303 1.22 christos /* 263 */ "#263 (unimplemented timer_delete)",
304 1.36 njoly /* 264 */ "clock_settime",
305 1.36 njoly /* 265 */ "clock_gettime",
306 1.36 njoly /* 266 */ "clock_getres",
307 1.47 njoly /* 267 */ "clock_nanosleep",
308 1.22 christos /* 268 */ "#268 (unimplemented statfs64)",
309 1.22 christos /* 269 */ "#269 (unimplemented fstatfs64)",
310 1.22 christos /* 270 */ "#270 (unimplemented tgkill)",
311 1.22 christos /* 271 */ "#271 (unimplemented utimes)",
312 1.22 christos /* 272 */ "#272 (unimplemented fadvise64_64)",
313 1.22 christos /* 273 */ "#273 (unimplemented vserver)",
314 1.22 christos /* 274 */ "#274 (unimplemented mbind)",
315 1.22 christos /* 275 */ "#275 (unimplemented get_mempolicy)",
316 1.22 christos /* 276 */ "#276 (unimplemented set_mempolicy)",
317 1.22 christos /* 277 */ "#277 (unimplemented mq_open)",
318 1.22 christos /* 278 */ "#278 (unimplemented mq_unlink)",
319 1.22 christos /* 279 */ "#279 (unimplemented mq_timedsend)",
320 1.22 christos /* 280 */ "#280 (unimplemented mq_timedreceive)",
321 1.22 christos /* 281 */ "#281 (unimplemented mq_notify)",
322 1.22 christos /* 282 */ "#282 (unimplemented mq_getsetattr)",
323 1.22 christos /* 283 */ "#283 (unimplemented kexec_load)",
324 1.1 manu };
325