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