linux_syscalls.c revision 1.28
1/* $NetBSD: linux_syscalls.c,v 1.28 2009/01/11 02:45:48 christos Exp $ */
2
3/*
4 * System call names.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from	NetBSD: syscalls.master,v 1.26 2008/11/19 13:09:19 njoly Exp
8 */
9
10#include <sys/cdefs.h>
11__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.28 2009/01/11 02:45:48 christos Exp $");
12
13#if defined(_KERNEL_OPT)
14#if defined(_KERNEL_OPT)
15#include "opt_sysv.h"
16#include "opt_compat_43.h"
17#endif
18#include <sys/param.h>
19#include <sys/poll.h>
20#include <sys/systm.h>
21#include <sys/signal.h>
22#include <sys/mount.h>
23#include <sys/syscallargs.h>
24#include <sys/time.h>
25#include <compat/sys/time.h>
26#include <compat/linux/common/linux_types.h>
27#include <compat/linux/common/linux_mmap.h>
28#include <compat/linux/common/linux_ipc.h>
29#include <compat/linux/common/linux_msg.h>
30#include <compat/linux/common/linux_sem.h>
31#include <compat/linux/common/linux_shm.h>
32#include <compat/linux/common/linux_signal.h>
33#include <compat/linux/common/linux_siginfo.h>
34#include <compat/linux/common/linux_machdep.h>
35#include <compat/linux/linux_syscallargs.h>
36#endif /* _KERNEL_OPT */
37
38const char *const linux_syscallnames[] = {
39	/*   0 */	"read",
40	/*   1 */	"write",
41	/*   2 */	"open",
42	/*   3 */	"close",
43	/*   4 */	"stat64",
44	/*   5 */	"fstat64",
45	/*   6 */	"lstat64",
46	/*   7 */	"poll",
47	/*   8 */	"lseek",
48	/*   9 */	"mmap",
49	/*  10 */	"mprotect",
50	/*  11 */	"munmap",
51	/*  12 */	"brk",
52	/*  13 */	"rt_sigaction",
53	/*  14 */	"rt_sigprocmask",
54	/*  15 */	"rt_sigreturn",
55	/*  16 */	"ioctl",
56	/*  17 */	"pread",
57	/*  18 */	"pwrite",
58	/*  19 */	"readv",
59	/*  20 */	"writev",
60	/*  21 */	"access",
61	/*  22 */	"pipe",
62	/*  23 */	"select",
63	/*  24 */	"sched_yield",
64	/*  25 */	"mremap",
65	/*  26 */	"__msync13",
66	/*  27 */	"mincore",
67	/*  28 */	"madvise",
68#ifdef SYSVSHM
69	/*  29 */	"shmget",
70	/*  30 */	"shmat",
71	/*  31 */	"shmctl",
72#else
73	/*  29 */	"#29 (unimplemented shmget)",
74	/*  30 */	"#30 (unimplemented shmat)",
75	/*  31 */	"#31 (unimplemented shmctl)",
76#endif
77	/*  32 */	"dup",
78	/*  33 */	"dup2",
79	/*  34 */	"pause",
80	/*  35 */	"nanosleep",
81	/*  36 */	"getitimer",
82	/*  37 */	"alarm",
83	/*  38 */	"setitimer",
84	/*  39 */	"getpid",
85	/*  40 */	"#40 (unimplemented sendfile)",
86	/*  41 */	"socket",
87	/*  42 */	"connect",
88	/*  43 */	"oaccept",
89	/*  44 */	"sendto",
90	/*  45 */	"recvfrom",
91	/*  46 */	"sendmsg",
92	/*  47 */	"recvmsg",
93	/*  48 */	"shutdown",
94	/*  49 */	"bind",
95	/*  50 */	"listen",
96	/*  51 */	"getsockname",
97	/*  52 */	"getpeername",
98	/*  53 */	"socketpair",
99	/*  54 */	"setsockopt",
100	/*  55 */	"getsockopt",
101	/*  56 */	"clone",
102	/*  57 */	"fork",
103	/*  58 */	"__vfork14",
104	/*  59 */	"execve",
105	/*  60 */	"exit",
106	/*  61 */	"wait4",
107	/*  62 */	"kill",
108	/*  63 */	"uname",
109#ifdef SYSVSEM
110	/*  64 */	"semget",
111	/*  65 */	"semop",
112	/*  66 */	"semctl",
113#else
114	/*  64 */	"#64 (unimplemented semget)",
115	/*  65 */	"#65 (unimplemented semop)",
116	/*  66 */	"#66 (unimplemented semctl)",
117#endif
118#ifdef SYSVSHM
119	/*  67 */	"shmdt",
120#else
121	/*  67 */	"#67 (unimplemented shmdt)",
122#endif
123#ifdef SYSVMSG
124	/*  68 */	"msgget",
125	/*  69 */	"msgsnd",
126	/*  70 */	"msgrcv",
127	/*  71 */	"msgctl",
128#else
129	/*  68 */	"#68 (unimplemented msgget)",
130	/*  69 */	"#69 (unimplemented msgsnd)",
131	/*  70 */	"#70 (unimplemented msgrcv)",
132	/*  71 */	"#71 (unimplemented msgctl)",
133#endif
134	/*  72 */	"fcntl",
135	/*  73 */	"flock",
136	/*  74 */	"fsync",
137	/*  75 */	"fdatasync",
138	/*  76 */	"truncate64",
139	/*  77 */	"ftruncate64",
140	/*  78 */	"getdents",
141	/*  79 */	"__getcwd",
142	/*  80 */	"chdir",
143	/*  81 */	"fchdir",
144	/*  82 */	"__posix_rename",
145	/*  83 */	"mkdir",
146	/*  84 */	"rmdir",
147	/*  85 */	"creat",
148	/*  86 */	"link",
149	/*  87 */	"unlink",
150	/*  88 */	"symlink",
151	/*  89 */	"readlink",
152	/*  90 */	"chmod",
153	/*  91 */	"fchmod",
154	/*  92 */	"__posix_chown",
155	/*  93 */	"__posix_fchown",
156	/*  94 */	"__posix_lchown",
157	/*  95 */	"umask",
158	/*  96 */	"gettimeofday",
159	/*  97 */	"getrlimit",
160	/*  98 */	"getrusage",
161	/*  99 */	"sysinfo",
162	/* 100 */	"times",
163	/* 101 */	"ptrace",
164	/* 102 */	"getuid",
165	/* 103 */	"#103 (unimplemented syslog)",
166	/* 104 */	"getgid",
167	/* 105 */	"setuid",
168	/* 106 */	"setgid",
169	/* 107 */	"geteuid",
170	/* 108 */	"getegid",
171	/* 109 */	"setpgid",
172	/* 110 */	"getppid",
173	/* 111 */	"getpgrp",
174	/* 112 */	"setsid",
175	/* 113 */	"setreuid",
176	/* 114 */	"setregid",
177	/* 115 */	"getgroups",
178	/* 116 */	"setgroups",
179	/* 117 */	"setresuid",
180	/* 118 */	"getresuid",
181	/* 119 */	"setresgid",
182	/* 120 */	"getresgid",
183	/* 121 */	"getpgid",
184	/* 122 */	"setfsuid",
185	/* 123 */	"setfsgid",
186	/* 124 */	"getsid",
187	/* 125 */	"#125 (unimplemented capget)",
188	/* 126 */	"#126 (unimplemented capset)",
189	/* 127 */	"rt_sigpending",
190	/* 128 */	"#128 (unimplemented rt_sigtimedwait)",
191	/* 129 */	"rt_queueinfo",
192	/* 130 */	"rt_sigsuspend",
193	/* 131 */	"sigaltstack",
194	/* 132 */	"utime",
195	/* 133 */	"mknod",
196#ifdef EXEC_AOUT
197	/* 134 */	"uselib",
198#else
199	/* 134 */	"#134 (unimplemented sys_uselib)",
200#endif
201	/* 135 */	"personality",
202	/* 136 */	"#136 (unimplemented ustat)",
203	/* 137 */	"statfs",
204	/* 138 */	"fstatfs",
205	/* 139 */	"#139 (unimplemented sysfs)",
206	/* 140 */	"getpriority",
207	/* 141 */	"setpriority",
208	/* 142 */	"sched_setparam",
209	/* 143 */	"sched_getparam",
210	/* 144 */	"sched_setscheduler",
211	/* 145 */	"sched_getscheduler",
212	/* 146 */	"sched_get_priority_max",
213	/* 147 */	"sched_get_priority_min",
214	/* 148 */	"#148 (unimplemented sys_sched_rr_get_interval)",
215	/* 149 */	"mlock",
216	/* 150 */	"munlock",
217	/* 151 */	"mlockall",
218	/* 152 */	"munlockall",
219	/* 153 */	"#153 (unimplemented vhangup)",
220	/* 154 */	"modify_ldt",
221	/* 155 */	"#155 (unimplemented pivot_root)",
222	/* 156 */	"__sysctl",
223	/* 157 */	"#157 (unimplemented prctl)",
224	/* 158 */	"arch_prctl",
225	/* 159 */	"#159 (unimplemented adjtimex)",
226	/* 160 */	"setrlimit",
227	/* 161 */	"chroot",
228	/* 162 */	"sync",
229	/* 163 */	"acct",
230	/* 164 */	"settimeofday",
231	/* 165 */	"#165 (unimplemented mount)",
232	/* 166 */	"#166 (unimplemented umount2)",
233	/* 167 */	"swapon",
234	/* 168 */	"swapoff",
235	/* 169 */	"reboot",
236	/* 170 */	"sethostname",
237	/* 171 */	"setdomainname",
238	/* 172 */	"iopl",
239	/* 173 */	"ioperm",
240	/* 174 */	"#174 (unimplemented create_module)",
241	/* 175 */	"#175 (unimplemented init_module)",
242	/* 176 */	"#176 (unimplemented delete_module)",
243	/* 177 */	"#177 (unimplemented get_kernel_syms)",
244	/* 178 */	"#178 (unimplemented query_module)",
245	/* 179 */	"#179 (unimplemented quotactl)",
246	/* 180 */	"#180 (unimplemented nfsservctl)",
247	/* 181 */	"#181 (unimplemented getpmsg)",
248	/* 182 */	"#182 (unimplemented putpmsg)",
249	/* 183 */	"#183 (unimplemented afs_syscall)",
250	/* 184 */	"#184 (unimplemented tuxcall)",
251	/* 185 */	"#185 (unimplemented security)",
252	/* 186 */	"gettid",
253	/* 187 */	"#187 (unimplemented readahead)",
254	/* 188 */	"setxattr",
255	/* 189 */	"lsetxattr",
256	/* 190 */	"fsetxattr",
257	/* 191 */	"getxattr",
258	/* 192 */	"lgetxattr",
259	/* 193 */	"fgetxattr",
260	/* 194 */	"listxattr",
261	/* 195 */	"llistxattr",
262	/* 196 */	"flistxattr",
263	/* 197 */	"removexattr",
264	/* 198 */	"lremovexattr",
265	/* 199 */	"fremovexattr",
266	/* 200 */	"tkill",
267	/* 201 */	"time",
268	/* 202 */	"futex",
269	/* 203 */	"sched_setaffinity",
270	/* 204 */	"sched_getaffinity",
271	/* 205 */	"#205 (unimplemented set_thread_area)",
272	/* 206 */	"#206 (unimplemented io_setup)",
273	/* 207 */	"#207 (unimplemented io_destroy)",
274	/* 208 */	"#208 (unimplemented io_getevents)",
275	/* 209 */	"#209 (unimplemented io_submit)",
276	/* 210 */	"#210 (unimplemented io_cancel)",
277	/* 211 */	"#211 (unimplemented get_thread_area)",
278	/* 212 */	"#212 (unimplemented lookup_dcookie)",
279	/* 213 */	"#213 (unimplemented epoll_create)",
280	/* 214 */	"#214 (unimplemented epoll_ctl_old)",
281	/* 215 */	"#215 (unimplemented epoll_wait_old)",
282	/* 216 */	"#216 (unimplemented remap_file_pages)",
283	/* 217 */	"getdents64",
284	/* 218 */	"set_tid_address",
285	/* 219 */	"#219 (unimplemented restart_syscall)",
286	/* 220 */	"#220 (unimplemented semtimedop)",
287	/* 221 */	"#221 (unimplemented fadvise64)",
288	/* 222 */	"#222 (unimplemented timer_create)",
289	/* 223 */	"#223 (unimplemented timer_settime)",
290	/* 224 */	"#224 (unimplemented timer_gettime)",
291	/* 225 */	"#225 (unimplemented timer_getoverrun)",
292	/* 226 */	"#226 (unimplemented timer_delete)",
293	/* 227 */	"clock_settime",
294	/* 228 */	"clock_gettime",
295	/* 229 */	"clock_getres",
296	/* 230 */	"clock_nanosleep",
297	/* 231 */	"exit_group",
298	/* 232 */	"#232 (unimplemented epoll_wait)",
299	/* 233 */	"#233 (unimplemented epoll_ctl)",
300	/* 234 */	"tgkill",
301	/* 235 */	"#235 (unimplemented utimes)",
302	/* 236 */	"#236 (unimplemented vserver)",
303	/* 237 */	"#237 (unimplemented mbind)",
304	/* 238 */	"#238 (unimplemented set_mempolicy)",
305	/* 239 */	"#239 (unimplemented get_mempolicy)",
306	/* 240 */	"#240 (unimplemented mq_open)",
307	/* 241 */	"#241 (unimplemented mq_unlink)",
308	/* 242 */	"#242 (unimplemented mq_timedsend)",
309	/* 243 */	"#243 (unimplemented mq_timedreceive)",
310	/* 244 */	"#244 (unimplemented mq_notify)",
311	/* 245 */	"#245 (unimplemented mq_getsetattr)",
312	/* 246 */	"#246 (unimplemented kexec_load)",
313	/* 247 */	"#247 (unimplemented waitid)",
314	/* 248 */	"#248 (unimplemented add_key)",
315	/* 249 */	"#249 (unimplemented request_key)",
316	/* 250 */	"#250 (unimplemented keyctl)",
317	/* 251 */	"#251 (unimplemented ioprio_set)",
318	/* 252 */	"#252 (unimplemented ioprio_get)",
319	/* 253 */	"#253 (unimplemented inotify_init)",
320	/* 254 */	"#254 (unimplemented inotify_add_watch)",
321	/* 255 */	"#255 (unimplemented inotify_rm_watch)",
322	/* 256 */	"#256 (unimplemented migrate_pages)",
323	/* 257 */	"#257 (unimplemented openat)",
324	/* 258 */	"#258 (unimplemented mkdirat)",
325	/* 259 */	"#259 (unimplemented mknodat)",
326	/* 260 */	"#260 (unimplemented fchownat)",
327	/* 261 */	"#261 (unimplemented futimesat)",
328	/* 262 */	"#262 (unimplemented newfstatat)",
329	/* 263 */	"#263 (unimplemented unlinkat)",
330	/* 264 */	"#264 (unimplemented renameat)",
331	/* 265 */	"#265 (unimplemented linkat)",
332	/* 266 */	"#266 (unimplemented symlinkat)",
333	/* 267 */	"#267 (unimplemented readlinkat)",
334	/* 268 */	"#268 (unimplemented fchmodat)",
335	/* 269 */	"#269 (unimplemented faccessat)",
336	/* 270 */	"#270 (unimplemented pselect6)",
337	/* 271 */	"#271 (unimplemented ppoll)",
338	/* 272 */	"#272 (unimplemented unshare)",
339	/* 273 */	"set_robust_list",
340	/* 274 */	"get_robust_list",
341	/* 275 */	"#275 (unimplemented splice)",
342	/* 276 */	"#276 (unimplemented tee)",
343	/* 277 */	"#277 (unimplemented sync_file_range)",
344	/* 278 */	"#278 (unimplemented vmsplice)",
345	/* 279 */	"#279 (unimplemented move_pages)",
346	/* 280 */	"#280 (unimplemented utimensat)",
347	/* 281 */	"#281 (unimplemented epoll_pwait)",
348	/* 282 */	"#282 (unimplemented signalfd)",
349	/* 283 */	"#283 (unimplemented timerfd_create)",
350	/* 284 */	"#284 (unimplemented eventfd)",
351	/* 285 */	"#285 (unimplemented fallocate)",
352	/* 286 */	"nosys",
353};
354