6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.37 2009/11/24 10:42:44 njoly Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #include <sys/param.h>
16 #include <sys/systm.h>
17 #include <sys/signal.h>
18 #include <sys/mount.h>
19 #include <sys/syscallargs.h>
20 #include <compat/linux/common/linux_types.h>
21 #include <compat/linux/common/linux_signal.h>
22 #include <compat/linux/common/linux_siginfo.h>
23 #include <compat/linux/common/linux_machdep.h>
24 #include <compat/linux/common/linux_mmap.h>
25 #include <compat/linux/common/linux_socketcall.h>
26 #include <compat/linux/linux_syscallargs.h>
27 #define linux_sys_mmap2_args linux_sys_mmap_args
28 #endif /* _KERNEL_OPT */
30 const char *const linux_syscallnames
[] = {
47 /* 16 */ "__posix_lchown",
48 /* 17 */ "#17 (unimplemented)",
49 /* 18 */ "#18 (obsolete ostat)",
52 /* 21 */ "#21 (unimplemented mount)",
53 /* 22 */ "#22 (obsolete umount)",
59 /* 28 */ "#28 (obsolete ofstat)",
62 /* 31 */ "#31 (unimplemented)",
63 /* 32 */ "#32 (unimplemented)",
66 /* 35 */ "#35 (unimplemented)",
69 /* 38 */ "__posix_rename",
75 /* 44 */ "#44 (unimplemented)",
83 /* 52 */ "#52 (unimplemented umount)",
84 /* 53 */ "#53 (unimplemented)",
87 /* 56 */ "#56 (obsolete mpx)",
89 /* 58 */ "#58 (unimplemented)",
93 /* 62 */ "#62 (unimplemented ustat)",
99 /* 68 */ "siggetmask",
100 /* 69 */ "sigsetmask",
103 /* 72 */ "sigsuspend",
104 /* 73 */ "sigpending",
105 /* 74 */ "sethostname",
106 /* 75 */ "setrlimit",
107 /* 76 */ "getrlimit",
108 /* 77 */ "getrusage",
109 /* 78 */ "gettimeofday",
110 /* 79 */ "settimeofday",
111 /* 80 */ "getgroups",
112 /* 81 */ "setgroups",
113 /* 82 */ "#82 (unimplemented old_select)",
117 /* 86 */ "#86 (unimplemented uselib)",
124 /* 93 */ "ftruncate",
126 /* 95 */ "__posix_fchown",
127 /* 96 */ "getpriority",
128 /* 97 */ "setpriority",
129 /* 98 */ "#98 (unimplemented)",
133 /* 102 */ "socketcall",
134 /* 103 */ "#103 (unimplemented syslog)",
135 /* 104 */ "setitimer",
136 /* 105 */ "getitimer",
141 /* 110 */ "#110 (unimplemented iopl)",
142 /* 111 */ "#111 (unimplemented vhangup)",
143 /* 112 */ "#112 (unimplemented idle)",
144 /* 113 */ "#113 (unimplemented vm86old)",
150 /* 119 */ "sigreturn",
152 /* 121 */ "setdomainname",
153 /* 122 */ "new_uname",
154 /* 123 */ "#123 (unimplemented modify_ldt)",
155 /* 124 */ "#124 (unimplemented adjtimex)",
156 /* 125 */ "mprotect",
157 /* 126 */ "sigprocmask",
158 /* 127 */ "#127 (unimplemented create_module)",
159 /* 128 */ "#128 (unimplemented init_module)",
160 /* 129 */ "#129 (unimplemented delete_module)",
161 /* 130 */ "#130 (unimplemented get_kernel_syms)",
162 /* 131 */ "#131 (unimplemented quotactl)",
165 /* 134 */ "#134 (unimplemented bdflush)",
166 /* 135 */ "#135 (unimplemented sysfs)",
167 /* 136 */ "personality",
168 /* 137 */ "#137 (unimplemented afs_syscall)",
169 /* 138 */ "setfsuid",
170 /* 139 */ "setfsgid",
172 /* 141 */ "getdents",
175 /* 144 */ "__msync13",
178 /* 147 */ "cacheflush",
179 /* 148 */ "#148 (unimplemented cachectl)",
181 /* 150 */ "#150 (unimplemented)",
183 /* 152 */ "fdatasync",
184 /* 153 */ "__sysctl",
187 /* 156 */ "mlockall",
188 /* 157 */ "munlockall",
189 /* 158 */ "sched_setparam",
190 /* 159 */ "sched_getparam",
191 /* 160 */ "sched_setscheduler",
192 /* 161 */ "sched_getscheduler",
193 /* 162 */ "sched_yield",
194 /* 163 */ "sched_get_priority_max",
195 /* 164 */ "sched_get_priority_min",
196 /* 165 */ "#165 (unimplemented sched_rr_get_interval)",
197 /* 166 */ "nanosleep",
202 /* 171 */ "getpeername",
203 /* 172 */ "getsockname",
204 /* 173 */ "getsockopt",
207 /* 176 */ "recvfrom",
212 /* 181 */ "setsockopt",
213 /* 182 */ "#182 (unimplemented shutdown)",
215 /* 184 */ "socketpair",
216 /* 185 */ "setresuid",
217 /* 186 */ "getresuid",
218 /* 187 */ "#187 (unimplemented query_module)",
220 /* 189 */ "#189 (unimplemented nfsservctl)",
221 /* 190 */ "setresgid",
222 /* 191 */ "getresgid",
223 /* 192 */ "#192 (unimplemented prctl)",
224 /* 193 */ "rt_sigreturn",
225 /* 194 */ "rt_sigaction",
226 /* 195 */ "rt_sigprocmask",
227 /* 196 */ "rt_sigpending",
228 /* 197 */ "#197 (unimplemented rt_sigtimedwait)",
229 /* 198 */ "rt_queueinfo",
230 /* 199 */ "rt_sigsuspend",
233 /* 202 */ "__posix_chown",
234 /* 203 */ "__getcwd",
235 /* 204 */ "#204 (unimplemented capget)",
236 /* 205 */ "#205 (unimplemented capset)",
237 /* 206 */ "sigaltstack",
238 /* 207 */ "#207 (unimplemented sendfile)",
239 /* 208 */ "#208 (unimplemented)",
240 /* 209 */ "#209 (unimplemented)",
242 /* 211 */ "truncate64",
243 /* 212 */ "ftruncate64",
247 /* 216 */ "#216 (unimplemented pivot_root)",
250 /* 219 */ "getdents64",
252 /* 221 */ "#221 (unimplemented / * reserved * /)",
253 /* 222 */ "#222 (unimplemented gettid)",
254 /* 223 */ "#223 (unimplemented readahead)",
255 /* 224 */ "setxattr",
256 /* 225 */ "lsetxattr",
257 /* 226 */ "fsetxattr",
258 /* 227 */ "getxattr",
259 /* 228 */ "lgetxattr",
260 /* 229 */ "fgetxattr",
261 /* 230 */ "listxattr",
262 /* 231 */ "llistxattr",
263 /* 232 */ "flistxattr",
264 /* 233 */ "removexattr",
265 /* 234 */ "lremovexattr",
266 /* 235 */ "fremovexattr",
267 /* 236 */ "#236 (unimplemented tkill)",
268 /* 237 */ "#237 (unimplemented sendfile64)",
269 /* 238 */ "#238 (unimplemented futex)",
270 /* 239 */ "#239 (unimplemented sched_setaffinity)",
271 /* 240 */ "#240 (unimplemented sched_getaffinity)",
272 /* 241 */ "#241 (unimplemented io_setup)",
273 /* 242 */ "#242 (unimplemented io_destroy)",
274 /* 243 */ "#243 (unimplemented io_getevents)",
275 /* 244 */ "#244 (unimplemented io_submit)",
276 /* 245 */ "#245 (unimplemented io_cancel)",
277 /* 246 */ "exit_group",
278 /* 247 */ "#247 (unimplemented lookup_dcookie)",
279 /* 248 */ "#248 (unimplemented epoll_create)",
280 /* 249 */ "#249 (unimplemented epoll_ctl)",
281 /* 250 */ "#250 (unimplemented epoll_wait)",
282 /* 251 */ "#251 (unimplemented remap_file_pages)",
283 /* 252 */ "#252 (unimplemented set_tid_address)",
284 /* 253 */ "#253 (unimplemented restart_syscall)",
285 /* 254 */ "#254 (unimplemented fadvise64)",
286 /* 255 */ "statfs64",
287 /* 256 */ "fstatfs64",
288 /* 257 */ "#257 (unimplemented timer_create)",
289 /* 258 */ "#258 (unimplemented timer_settime)",
290 /* 259 */ "#259 (unimplemented timer_gettime)",
291 /* 260 */ "#260 (unimplemented timer_getoverrun)",
292 /* 261 */ "#261 (unimplemented timer_delete)",
293 /* 262 */ "clock_settime",
294 /* 263 */ "clock_gettime",
295 /* 264 */ "clock_getres",
296 /* 265 */ "clock_nanosleep",
297 /* 266 */ "#266 (unimplemented tgkill)",
298 /* 267 */ "#267 (unimplemented utimes)",
299 /* 268 */ "#268 (unimplemented mbind)",
300 /* 269 */ "#269 (unimplemented get_mempolicy)",
301 /* 270 */ "#270 (unimplemented set_mempolicy)",
302 /* 271 */ "#271 (unimplemented mq_open)",
303 /* 272 */ "#272 (unimplemented mq_unlink)",
304 /* 273 */ "#273 (unimplemented mq_timedsend)",
305 /* 274 */ "#274 (unimplemented mq_timedreceive)",
306 /* 275 */ "#275 (unimplemented mq_notify)",
307 /* 276 */ "#276 (unimplemented mq_getsetattr)",