summaryrefslogtreecommitdiff
path: root/sys/compat/linux/arch/mips/linux_syscalls.c
blob: 5864e86cf7663894edbf5a6400f0a843e1204d74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
/* $NetBSD: linux_syscalls.c,v 1.15 2003/08/10 20:17:30 jdolecek Exp $ */

/*
 * System call names.
 *
 * DO NOT EDIT-- this file is automatically generated.
 * created from	NetBSD: syscalls.master,v 1.12 2003/08/10 20:16:25 jdolecek Exp   
 */

#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_syscalls.c,v 1.15 2003/08/10 20:17:30 jdolecek Exp $");

#if defined(_KERNEL_OPT)
#if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h"
#include "opt_compat_43.h"
#endif
#include <sys/param.h>
#include <sys/poll.h>
#include <sys/systm.h>
#include <sys/signal.h>
#include <sys/mount.h>
#include <sys/sa.h>
#include <sys/syscallargs.h>
#include <compat/linux/common/linux_types.h>
#include <compat/linux/common/linux_signal.h>
#include <compat/linux/common/linux_siginfo.h>
#include <compat/linux/common/linux_machdep.h>
#include <compat/linux/common/linux_mmap.h>
#include <compat/linux/common/linux_socketcall.h>
#include <compat/linux/linux_syscallargs.h>
#endif /* _KERNEL_OPT */

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