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