1 /* $NetBSD: linux_syscalls.c,v 1.45 2002/04/10 18:19:07 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.63 2002/04/10 18:18:27 christos Exp
8  */
9 
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.45 2002/04/10 18:19:07 christos Exp $");
12 
13 #if defined(_KERNEL_OPT)
14 #if defined(_KERNEL_OPT)
15 #include "opt_compat_43.h"
16 #endif
17 #include <sys/param.h>
18 #include <sys/poll.h>
19 #include <sys/systm.h>
20 #include <sys/signal.h>
21 #include <sys/mount.h>
22 #include <sys/syscallargs.h>
23 #include <compat/linux/common/linux_types.h>
24 #include <compat/linux/common/linux_mmap.h>
25 #include <compat/linux/common/linux_signal.h>
26 #include <compat/linux/common/linux_siginfo.h>
27 #include <compat/linux/common/linux_machdep.h>
28 #include <compat/linux/linux_syscallargs.h>
29 #endif /* _KERNEL_OPT */
30 
31 const char *const linux_syscallnames[] = {
32 	"syscall",			/* 0 = syscall */
33 	"exit",			/* 1 = exit */
34 	"fork",			/* 2 = fork */
35 	"read",			/* 3 = read */
36 	"write",			/* 4 = write */
37 	"open",			/* 5 = open */
38 	"close",			/* 6 = close */
39 	"waitpid",			/* 7 = waitpid */
40 	"creat",			/* 8 = creat */
41 	"link",			/* 9 = link */
42 	"unlink",			/* 10 = unlink */
43 	"execve",			/* 11 = execve */
44 	"chdir",			/* 12 = chdir */
45 	"time",			/* 13 = time */
46 	"mknod",			/* 14 = mknod */
47 	"chmod",			/* 15 = chmod */
48 	"lchown16",			/* 16 = lchown16 */
49 	"break",			/* 17 = break */
50 	"#18 (obsolete ostat)",		/* 18 = obsolete ostat */
51 	"lseek",			/* 19 = lseek */
52 	"getpid",			/* 20 = getpid */
53 	"#21 (unimplemented mount)",		/* 21 = unimplemented mount */
54 	"#22 (unimplemented umount)",		/* 22 = unimplemented umount */
55 	"linux_setuid16",			/* 23 = linux_setuid16 */
56 	"linux_getuid16",			/* 24 = linux_getuid16 */
57 	"stime",			/* 25 = stime */
58 	"ptrace",			/* 26 = ptrace */
59 	"alarm",			/* 27 = alarm */
60 	"#28 (obsolete ofstat)",		/* 28 = obsolete ofstat */
61 	"pause",			/* 29 = pause */
62 	"utime",			/* 30 = utime */
63 	"#31 (obsolete stty)",		/* 31 = obsolete stty */
64 	"#32 (obsolete gtty)",		/* 32 = obsolete gtty */
65 	"access",			/* 33 = access */
66 	"nice",			/* 34 = nice */
67 	"#35 (obsolete ftime)",		/* 35 = obsolete ftime */
68 	"sync",			/* 36 = sync */
69 	"kill",			/* 37 = kill */
70 	"rename",			/* 38 = rename */
71 	"mkdir",			/* 39 = mkdir */
72 	"rmdir",			/* 40 = rmdir */
73 	"dup",			/* 41 = dup */
74 	"pipe",			/* 42 = pipe */
75 	"times",			/* 43 = times */
76 	"#44 (obsolete prof)",		/* 44 = obsolete prof */
77 	"brk",			/* 45 = brk */
78 	"linux_setgid16",			/* 46 = linux_setgid16 */
79 	"linux_getgid16",			/* 47 = linux_getgid16 */
80 	"signal",			/* 48 = signal */
81 	"linux_geteuid16",			/* 49 = linux_geteuid16 */
82 	"linux_getegid16",			/* 50 = linux_getegid16 */
83 	"acct",			/* 51 = acct */
84 	"#52 (obsolete phys)",		/* 52 = obsolete phys */
85 	"#53 (obsolete lock)",		/* 53 = obsolete lock */
86 	"ioctl",			/* 54 = ioctl */
87 	"fcntl",			/* 55 = fcntl */
88 	"#56 (obsolete mpx)",		/* 56 = obsolete mpx */
89 	"setpgid",			/* 57 = setpgid */
90 	"#58 (obsolete ulimit)",		/* 58 = obsolete ulimit */
91 	"oldolduname",			/* 59 = oldolduname */
92 	"umask",			/* 60 = umask */
93 	"chroot",			/* 61 = chroot */
94 	"#62 (unimplemented ustat)",		/* 62 = unimplemented ustat */
95 	"dup2",			/* 63 = dup2 */
96 	"getppid",			/* 64 = getppid */
97 	"getpgrp",			/* 65 = getpgrp */
98 	"setsid",			/* 66 = setsid */
99 	"sigaction",			/* 67 = sigaction */
100 	"siggetmask",			/* 68 = siggetmask */
101 	"sigsetmask",			/* 69 = sigsetmask */
102 	"setreuid16",			/* 70 = setreuid16 */
103 	"setregid16",			/* 71 = setregid16 */
104 	"sigsuspend",			/* 72 = sigsuspend */
105 	"sigpending",			/* 73 = sigpending */
106 	"sethostname",			/* 74 = sethostname */
107 	"setrlimit",			/* 75 = setrlimit */
108 	"getrlimit",			/* 76 = getrlimit */
109 	"getrusage",			/* 77 = getrusage */
110 	"gettimeofday",			/* 78 = gettimeofday */
111 	"settimeofday",			/* 79 = settimeofday */
112 	"getgroups16",			/* 80 = getgroups16 */
113 	"setgroups16",			/* 81 = setgroups16 */
114 	"oldselect",			/* 82 = oldselect */
115 	"symlink",			/* 83 = symlink */
116 	"oolstat",			/* 84 = oolstat */
117 	"readlink",			/* 85 = readlink */
118 	"uselib",			/* 86 = uselib */
119 	"swapon",			/* 87 = swapon */
120 	"reboot",			/* 88 = reboot */
121 	"readdir",			/* 89 = readdir */
122 	"old_mmap",			/* 90 = old_mmap */
123 	"munmap",			/* 91 = munmap */
124 	"truncate",			/* 92 = truncate */
125 	"ftruncate",			/* 93 = ftruncate */
126 	"fchmod",			/* 94 = fchmod */
127 	"fchown16",			/* 95 = fchown16 */
128 	"getpriority",			/* 96 = getpriority */
129 	"setpriority",			/* 97 = setpriority */
130 	"profil",			/* 98 = profil */
131 	"statfs",			/* 99 = statfs */
132 	"fstatfs",			/* 100 = fstatfs */
133 	"ioperm",			/* 101 = ioperm */
134 	"socketcall",			/* 102 = socketcall */
135 	"#103 (unimplemented syslog)",		/* 103 = unimplemented syslog */
136 	"setitimer",			/* 104 = setitimer */
137 	"getitimer",			/* 105 = getitimer */
138 	"stat",			/* 106 = stat */
139 	"lstat",			/* 107 = lstat */
140 	"fstat",			/* 108 = fstat */
141 	"olduname",			/* 109 = olduname */
142 	"iopl",			/* 110 = iopl */
143 	"#111 (unimplemented vhangup)",		/* 111 = unimplemented vhangup */
144 	"#112 (unimplemented idle)",		/* 112 = unimplemented idle */
145 	"#113 (unimplemented vm86old)",		/* 113 = unimplemented vm86old */
146 	"wait4",			/* 114 = wait4 */
147 	"swapoff",			/* 115 = swapoff */
148 	"sysinfo",			/* 116 = sysinfo */
149 	"ipc",			/* 117 = ipc */
150 	"fsync",			/* 118 = fsync */
151 	"sigreturn",			/* 119 = sigreturn */
152 	"clone",			/* 120 = clone */
153 	"setdomainname",			/* 121 = setdomainname */
154 	"uname",			/* 122 = uname */
155 	"modify_ldt",			/* 123 = modify_ldt */
156 	"#124 (unimplemented adjtimex)",		/* 124 = unimplemented adjtimex */
157 	"mprotect",			/* 125 = mprotect */
158 	"sigprocmask",			/* 126 = sigprocmask */
159 	"#127 (unimplemented create_module)",		/* 127 = unimplemented create_module */
160 	"#128 (unimplemented init_module)",		/* 128 = unimplemented init_module */
161 	"#129 (unimplemented delete_module)",		/* 129 = unimplemented delete_module */
162 	"#130 (unimplemented get_kernel_syms)",		/* 130 = unimplemented get_kernel_syms */
163 	"#131 (unimplemented quotactl)",		/* 131 = unimplemented quotactl */
164 	"getpgid",			/* 132 = getpgid */
165 	"fchdir",			/* 133 = fchdir */
166 	"#134 (unimplemented bdflush)",		/* 134 = unimplemented bdflush */
167 	"#135 (unimplemented sysfs)",		/* 135 = unimplemented sysfs */
168 	"personality",			/* 136 = personality */
169 	"#137 (unimplemented afs_syscall)",		/* 137 = unimplemented afs_syscall */
170 	"linux_setfsuid16",			/* 138 = linux_setfsuid16 */
171 	"linux_getfsuid16",			/* 139 = linux_getfsuid16 */
172 	"llseek",			/* 140 = llseek */
173 	"getdents",			/* 141 = getdents */
174 	"select",			/* 142 = select */
175 	"flock",			/* 143 = flock */
176 	"msync",			/* 144 = msync */
177 	"readv",			/* 145 = readv */
178 	"writev",			/* 146 = writev */
179 	"getsid",			/* 147 = getsid */
180 	"fdatasync",			/* 148 = fdatasync */
181 	"__sysctl",			/* 149 = __sysctl */
182 	"mlock",			/* 150 = mlock */
183 	"munlock",			/* 151 = munlock */
184 	"mlockall",			/* 152 = mlockall */
185 	"munlockall",			/* 153 = munlockall */
186 	"sched_setparam",			/* 154 = sched_setparam */
187 	"sched_getparam",			/* 155 = sched_getparam */
188 	"sched_setscheduler",			/* 156 = sched_setscheduler */
189 	"sched_getscheduler",			/* 157 = sched_getscheduler */
190 	"sched_yield",			/* 158 = sched_yield */
191 	"sched_get_priority_max",			/* 159 = sched_get_priority_max */
192 	"sched_get_priority_min",			/* 160 = sched_get_priority_min */
193 	"#161 (unimplemented sys_sched_rr_get_interval)",		/* 161 = unimplemented sys_sched_rr_get_interval */
194 	"nanosleep",			/* 162 = nanosleep */
195 	"mremap",			/* 163 = mremap */
196 	"setresuid16",			/* 164 = setresuid16 */
197 	"linux_getresuid16",			/* 165 = linux_getresuid16 */
198 	"#166 (unimplemented vm86)",		/* 166 = unimplemented vm86 */
199 	"#167 (unimplemented query_module)",		/* 167 = unimplemented query_module */
200 	"poll",			/* 168 = poll */
201 	"#169 (unimplemented nfsservctl)",		/* 169 = unimplemented nfsservctl */
202 	"setresgid16",			/* 170 = setresgid16 */
203 	"linux_getresgid16",			/* 171 = linux_getresgid16 */
204 	"#172 (unimplemented prctl)",		/* 172 = unimplemented prctl */
205 	"rt_sigreturn",			/* 173 = rt_sigreturn */
206 	"rt_sigaction",			/* 174 = rt_sigaction */
207 	"rt_sigprocmask",			/* 175 = rt_sigprocmask */
208 	"rt_sigpending",			/* 176 = rt_sigpending */
209 	"#177 (unimplemented rt_sigtimedwait)",		/* 177 = unimplemented rt_sigtimedwait */
210 	"rt_queueinfo",			/* 178 = rt_queueinfo */
211 	"rt_sigsuspend",			/* 179 = rt_sigsuspend */
212 	"pread",			/* 180 = pread */
213 	"pwrite",			/* 181 = pwrite */
214 	"chown16",			/* 182 = chown16 */
215 	"__getcwd",			/* 183 = __getcwd */
216 	"#184 (unimplemented capget)",		/* 184 = unimplemented capget */
217 	"#185 (unimplemented capset)",		/* 185 = unimplemented capset */
218 	"sigaltstack",			/* 186 = sigaltstack */
219 	"#187 (unimplemented sendfile)",		/* 187 = unimplemented sendfile */
220 	"#188 (unimplemented getpmsg)",		/* 188 = unimplemented getpmsg */
221 	"#189 (unimplemented putpmsg)",		/* 189 = unimplemented putpmsg */
222 	"__vfork14",			/* 190 = __vfork14 */
223 	"ugetrlimit",			/* 191 = ugetrlimit */
224 	"mmap",			/* 192 = mmap */
225 	"truncate64",			/* 193 = truncate64 */
226 	"linux_ftruncate64",			/* 194 = linux_ftruncate64 */
227 	"stat64",			/* 195 = stat64 */
228 	"lstat64",			/* 196 = lstat64 */
229 	"fstat64",			/* 197 = fstat64 */
230 	"lchown",			/* 198 = lchown */
231 	"getuid",			/* 199 = getuid */
232 	"getgid",			/* 200 = getgid */
233 	"geteuid",			/* 201 = geteuid */
234 	"getegid",			/* 202 = getegid */
235 	"setreuid",			/* 203 = setreuid */
236 	"setregid",			/* 204 = setregid */
237 	"getgroups",			/* 205 = getgroups */
238 	"setgroups",			/* 206 = setgroups */
239 	"__posix_fchown",			/* 207 = __posix_fchown */
240 	"setresuid",			/* 208 = setresuid */
241 	"getresuid",			/* 209 = getresuid */
242 	"setresgid",			/* 210 = setresgid */
243 	"getresgid",			/* 211 = getresgid */
244 	"chown",			/* 212 = chown */
245 	"setuid",			/* 213 = setuid */
246 	"setgid",			/* 214 = setgid */
247 	"setfsuid",			/* 215 = setfsuid */
248 	"getfsuid",			/* 216 = getfsuid */
249 	"#217 (unimplemented pivot_root)",		/* 217 = unimplemented pivot_root */
250 	"#218 (unimplemented mincore)",		/* 218 = unimplemented mincore */
251 	"#219 (unimplemented madvise)",		/* 219 = unimplemented madvise */
252 	"getdents64",			/* 220 = getdents64 */
253 	"fcntl64",			/* 221 = fcntl64 */
254 };
255