init_sysent.c revision 1.1.1.3 1 1.1 cgd /*
2 1.1 cgd * System call switch table.
3 1.1 cgd *
4 1.1 cgd * DO NOT EDIT-- this file is automatically generated.
5 1.1.1.3 fvdl * created from @(#)syscalls.master 8.6 (Berkeley) 3/30/95
6 1.1 cgd */
7 1.1 cgd
8 1.1.1.2 fvdl #include <sys/param.h>
9 1.1.1.2 fvdl #include <sys/systm.h>
10 1.1.1.3 fvdl #include <sys/signal.h>
11 1.1.1.3 fvdl #include <sys/mount.h>
12 1.1.1.3 fvdl #include <sys/syscallargs.h>
13 1.1.1.2 fvdl int nosys();
14 1.1.1.2 fvdl int exit();
15 1.1 cgd int fork();
16 1.1 cgd int read();
17 1.1 cgd int write();
18 1.1 cgd int open();
19 1.1 cgd int close();
20 1.1 cgd int wait4();
21 1.1 cgd int link();
22 1.1 cgd int unlink();
23 1.1 cgd int chdir();
24 1.1 cgd int fchdir();
25 1.1 cgd int mknod();
26 1.1 cgd int chmod();
27 1.1 cgd int chown();
28 1.1 cgd int obreak();
29 1.1 cgd int getfsstat();
30 1.1 cgd int getpid();
31 1.1 cgd int mount();
32 1.1 cgd int unmount();
33 1.1 cgd int setuid();
34 1.1 cgd int getuid();
35 1.1 cgd int geteuid();
36 1.1 cgd int ptrace();
37 1.1 cgd int recvmsg();
38 1.1 cgd int sendmsg();
39 1.1 cgd int recvfrom();
40 1.1 cgd int accept();
41 1.1 cgd int getpeername();
42 1.1 cgd int getsockname();
43 1.1.1.2 fvdl int access();
44 1.1 cgd int chflags();
45 1.1 cgd int fchflags();
46 1.1 cgd int sync();
47 1.1 cgd int kill();
48 1.1 cgd int getppid();
49 1.1 cgd int dup();
50 1.1 cgd int pipe();
51 1.1 cgd int getegid();
52 1.1 cgd int profil();
53 1.1 cgd #ifdef KTRACE
54 1.1 cgd int ktrace();
55 1.1 cgd #else
56 1.1 cgd #endif
57 1.1 cgd int sigaction();
58 1.1 cgd int getgid();
59 1.1 cgd int sigprocmask();
60 1.1 cgd int getlogin();
61 1.1 cgd int setlogin();
62 1.1.1.2 fvdl int acct();
63 1.1 cgd int sigpending();
64 1.1 cgd int sigaltstack();
65 1.1 cgd int ioctl();
66 1.1 cgd int reboot();
67 1.1 cgd int revoke();
68 1.1 cgd int symlink();
69 1.1 cgd int readlink();
70 1.1 cgd int execve();
71 1.1 cgd int umask();
72 1.1 cgd int chroot();
73 1.1 cgd int msync();
74 1.1 cgd int vfork();
75 1.1 cgd int sbrk();
76 1.1 cgd int sstk();
77 1.1 cgd int ovadvise();
78 1.1 cgd int munmap();
79 1.1 cgd int mprotect();
80 1.1 cgd int madvise();
81 1.1 cgd int mincore();
82 1.1 cgd int getgroups();
83 1.1 cgd int setgroups();
84 1.1 cgd int getpgrp();
85 1.1 cgd int setpgid();
86 1.1 cgd int setitimer();
87 1.1 cgd int swapon();
88 1.1 cgd int getitimer();
89 1.1 cgd int getdtablesize();
90 1.1 cgd int dup2();
91 1.1 cgd int fcntl();
92 1.1 cgd int select();
93 1.1 cgd int fsync();
94 1.1 cgd int setpriority();
95 1.1 cgd int socket();
96 1.1 cgd int connect();
97 1.1 cgd int getpriority();
98 1.1 cgd int sigreturn();
99 1.1 cgd int bind();
100 1.1 cgd int setsockopt();
101 1.1 cgd int listen();
102 1.1 cgd int sigsuspend();
103 1.1 cgd #ifdef TRACE
104 1.1 cgd int vtrace();
105 1.1 cgd #else
106 1.1 cgd #endif
107 1.1 cgd int gettimeofday();
108 1.1 cgd int getrusage();
109 1.1 cgd int getsockopt();
110 1.1 cgd #ifdef vax
111 1.1 cgd int resuba();
112 1.1 cgd #else
113 1.1 cgd #endif
114 1.1 cgd int readv();
115 1.1 cgd int writev();
116 1.1 cgd int settimeofday();
117 1.1 cgd int fchown();
118 1.1 cgd int fchmod();
119 1.1 cgd int rename();
120 1.1 cgd int flock();
121 1.1 cgd int mkfifo();
122 1.1 cgd int sendto();
123 1.1 cgd int shutdown();
124 1.1 cgd int socketpair();
125 1.1 cgd int mkdir();
126 1.1 cgd int rmdir();
127 1.1 cgd int utimes();
128 1.1 cgd int adjtime();
129 1.1 cgd int setsid();
130 1.1 cgd int quotactl();
131 1.1 cgd #ifdef NFS
132 1.1 cgd int nfssvc();
133 1.1 cgd #else
134 1.1 cgd #endif
135 1.1 cgd int statfs();
136 1.1 cgd int fstatfs();
137 1.1 cgd #ifdef NFS
138 1.1 cgd int getfh();
139 1.1 cgd #else
140 1.1 cgd #endif
141 1.1.1.3 fvdl #if defined(SYSVSHM) && !defined(alpha)
142 1.1 cgd #else
143 1.1 cgd #endif
144 1.1 cgd int setgid();
145 1.1 cgd int setegid();
146 1.1 cgd int seteuid();
147 1.1.1.2 fvdl #ifdef LFS
148 1.1.1.2 fvdl int lfs_bmapv();
149 1.1.1.2 fvdl int lfs_markv();
150 1.1.1.2 fvdl int lfs_segclean();
151 1.1.1.2 fvdl int lfs_segwait();
152 1.1.1.2 fvdl #else
153 1.1.1.2 fvdl #endif
154 1.1.1.2 fvdl int stat();
155 1.1.1.2 fvdl int fstat();
156 1.1.1.2 fvdl int lstat();
157 1.1.1.2 fvdl int pathconf();
158 1.1.1.2 fvdl int fpathconf();
159 1.1.1.2 fvdl int getrlimit();
160 1.1.1.2 fvdl int setrlimit();
161 1.1.1.2 fvdl int getdirentries();
162 1.1.1.2 fvdl int mmap();
163 1.1.1.2 fvdl int nosys();
164 1.1.1.2 fvdl int lseek();
165 1.1.1.2 fvdl int truncate();
166 1.1.1.2 fvdl int ftruncate();
167 1.1.1.2 fvdl int __sysctl();
168 1.1.1.2 fvdl int mlock();
169 1.1.1.2 fvdl int munlock();
170 1.1.1.3 fvdl int undelete();
171 1.1.1.3 fvdl #if defined(SYSVSHM) && 0
172 1.1.1.3 fvdl int shmat();
173 1.1.1.3 fvdl int shmctl();
174 1.1.1.3 fvdl int shmdt();
175 1.1.1.3 fvdl int shmget();
176 1.1.1.3 fvdl #else
177 1.1.1.3 fvdl #endif
178 1.1 cgd
179 1.1 cgd #ifdef COMPAT_43
180 1.1.1.3 fvdl #define compat_43(func) __CONCAT(compat_43_,func)
181 1.1 cgd
182 1.1.1.3 fvdl int compat_43(creat)();
183 1.1.1.3 fvdl int compat_43(lseek)();
184 1.1.1.3 fvdl int compat_43(stat)();
185 1.1.1.3 fvdl int compat_43(lstat)();
186 1.1 cgd #ifdef KTRACE
187 1.1 cgd #else
188 1.1 cgd #endif
189 1.1.1.3 fvdl int compat_43(fstat)();
190 1.1.1.3 fvdl int compat_43(getkerninfo)();
191 1.1.1.3 fvdl int compat_43(getpagesize)();
192 1.1.1.3 fvdl int compat_43(mmap)();
193 1.1.1.3 fvdl int compat_43(wait)();
194 1.1.1.3 fvdl int compat_43(gethostname)();
195 1.1.1.3 fvdl int compat_43(sethostname)();
196 1.1.1.3 fvdl int compat_43(accept)();
197 1.1.1.3 fvdl int compat_43(send)();
198 1.1.1.3 fvdl int compat_43(recv)();
199 1.1.1.3 fvdl int compat_43(sigvec)();
200 1.1.1.3 fvdl int compat_43(sigblock)();
201 1.1.1.3 fvdl int compat_43(sigsetmask)();
202 1.1.1.3 fvdl int compat_43(sigstack)();
203 1.1.1.3 fvdl int compat_43(recvmsg)();
204 1.1.1.3 fvdl int compat_43(sendmsg)();
205 1.1 cgd #ifdef TRACE
206 1.1 cgd #else
207 1.1 cgd #endif
208 1.1 cgd #ifdef vax
209 1.1 cgd #else
210 1.1 cgd #endif
211 1.1.1.3 fvdl int compat_43(recvfrom)();
212 1.1.1.3 fvdl int compat_43(setreuid)();
213 1.1.1.3 fvdl int compat_43(setregid)();
214 1.1.1.3 fvdl int compat_43(truncate)();
215 1.1.1.3 fvdl int compat_43(ftruncate)();
216 1.1.1.3 fvdl int compat_43(getpeername)();
217 1.1.1.3 fvdl int compat_43(gethostid)();
218 1.1.1.3 fvdl int compat_43(sethostid)();
219 1.1.1.3 fvdl int compat_43(getrlimit)();
220 1.1.1.3 fvdl int compat_43(setrlimit)();
221 1.1.1.3 fvdl int compat_43(killpg)();
222 1.1.1.3 fvdl int compat_43(quota)();
223 1.1.1.3 fvdl int compat_43(getsockname)();
224 1.1 cgd #ifdef NFS
225 1.1 cgd #else
226 1.1 cgd #endif
227 1.1.1.3 fvdl int compat_43(getdirentries)();
228 1.1 cgd #ifdef NFS
229 1.1 cgd #else
230 1.1 cgd #endif
231 1.1.1.3 fvdl #if defined(SYSVSHM) && !defined(alpha)
232 1.1.1.3 fvdl int compat_43(shmsys)();
233 1.1 cgd #else
234 1.1 cgd #endif
235 1.1.1.2 fvdl #ifdef LFS
236 1.1.1.2 fvdl #else
237 1.1.1.2 fvdl #endif
238 1.1.1.3 fvdl #if defined(SYSVSHM) && 0
239 1.1.1.3 fvdl #else
240 1.1.1.3 fvdl #endif
241 1.1 cgd
242 1.1 cgd #else /* COMPAT_43 */
243 1.1.1.3 fvdl #define compat_43(func) nosys
244 1.1 cgd #endif /* COMPAT_43 */
245 1.1 cgd
246 1.1.1.3 fvdl #define s(type) sizeof(type)
247 1.1.1.3 fvdl
248 1.1 cgd struct sysent sysent[] = {
249 1.1.1.3 fvdl { 0, 0,
250 1.1.1.3 fvdl nosys }, /* 0 = syscall */
251 1.1.1.3 fvdl { 1, s(struct exit_args),
252 1.1.1.3 fvdl exit }, /* 1 = exit */
253 1.1.1.3 fvdl { 0, 0,
254 1.1.1.3 fvdl fork }, /* 2 = fork */
255 1.1.1.3 fvdl { 3, s(struct read_args),
256 1.1.1.3 fvdl read }, /* 3 = read */
257 1.1.1.3 fvdl { 3, s(struct write_args),
258 1.1.1.3 fvdl write }, /* 4 = write */
259 1.1.1.3 fvdl { 3, s(struct open_args),
260 1.1.1.3 fvdl open }, /* 5 = open */
261 1.1.1.3 fvdl { 1, s(struct close_args),
262 1.1.1.3 fvdl close }, /* 6 = close */
263 1.1.1.3 fvdl { 4, s(struct wait4_args),
264 1.1.1.3 fvdl wait4 }, /* 7 = wait4 */
265 1.1.1.3 fvdl { 2, s(struct compat_43_creat_args),
266 1.1.1.3 fvdl compat_43(creat) }, /* 8 = compat_43 creat */
267 1.1.1.3 fvdl { 2, s(struct link_args),
268 1.1.1.3 fvdl link }, /* 9 = link */
269 1.1.1.3 fvdl { 1, s(struct unlink_args),
270 1.1.1.3 fvdl unlink }, /* 10 = unlink */
271 1.1.1.3 fvdl { 0, 0,
272 1.1.1.3 fvdl nosys }, /* 11 = obsolete execv */
273 1.1.1.3 fvdl { 1, s(struct chdir_args),
274 1.1.1.3 fvdl chdir }, /* 12 = chdir */
275 1.1.1.3 fvdl { 1, s(struct fchdir_args),
276 1.1.1.3 fvdl fchdir }, /* 13 = fchdir */
277 1.1.1.3 fvdl { 3, s(struct mknod_args),
278 1.1.1.3 fvdl mknod }, /* 14 = mknod */
279 1.1.1.3 fvdl { 2, s(struct chmod_args),
280 1.1.1.3 fvdl chmod }, /* 15 = chmod */
281 1.1.1.3 fvdl { 3, s(struct chown_args),
282 1.1.1.3 fvdl chown }, /* 16 = chown */
283 1.1.1.3 fvdl { 1, s(struct obreak_args),
284 1.1.1.3 fvdl obreak }, /* 17 = break */
285 1.1.1.3 fvdl { 3, s(struct getfsstat_args),
286 1.1.1.3 fvdl getfsstat }, /* 18 = getfsstat */
287 1.1.1.3 fvdl { 3, s(struct compat_43_lseek_args),
288 1.1.1.3 fvdl compat_43(lseek) }, /* 19 = compat_43 lseek */
289 1.1.1.3 fvdl { 0, 0,
290 1.1.1.3 fvdl getpid }, /* 20 = getpid */
291 1.1.1.3 fvdl { 4, s(struct mount_args),
292 1.1.1.3 fvdl mount }, /* 21 = mount */
293 1.1.1.3 fvdl { 2, s(struct unmount_args),
294 1.1.1.3 fvdl unmount }, /* 22 = unmount */
295 1.1.1.3 fvdl { 1, s(struct setuid_args),
296 1.1.1.3 fvdl setuid }, /* 23 = setuid */
297 1.1.1.3 fvdl { 0, 0,
298 1.1.1.3 fvdl getuid }, /* 24 = getuid */
299 1.1.1.3 fvdl { 0, 0,
300 1.1.1.3 fvdl geteuid }, /* 25 = geteuid */
301 1.1.1.3 fvdl { 4, s(struct ptrace_args),
302 1.1.1.3 fvdl ptrace }, /* 26 = ptrace */
303 1.1.1.3 fvdl { 3, s(struct recvmsg_args),
304 1.1.1.3 fvdl recvmsg }, /* 27 = recvmsg */
305 1.1.1.3 fvdl { 3, s(struct sendmsg_args),
306 1.1.1.3 fvdl sendmsg }, /* 28 = sendmsg */
307 1.1.1.3 fvdl { 6, s(struct recvfrom_args),
308 1.1.1.3 fvdl recvfrom }, /* 29 = recvfrom */
309 1.1.1.3 fvdl { 3, s(struct accept_args),
310 1.1.1.3 fvdl accept }, /* 30 = accept */
311 1.1.1.3 fvdl { 3, s(struct getpeername_args),
312 1.1.1.3 fvdl getpeername }, /* 31 = getpeername */
313 1.1.1.3 fvdl { 3, s(struct getsockname_args),
314 1.1.1.3 fvdl getsockname }, /* 32 = getsockname */
315 1.1.1.3 fvdl { 2, s(struct access_args),
316 1.1.1.3 fvdl access }, /* 33 = access */
317 1.1.1.3 fvdl { 2, s(struct chflags_args),
318 1.1.1.3 fvdl chflags }, /* 34 = chflags */
319 1.1.1.3 fvdl { 2, s(struct fchflags_args),
320 1.1.1.3 fvdl fchflags }, /* 35 = fchflags */
321 1.1.1.3 fvdl { 0, 0,
322 1.1.1.3 fvdl sync }, /* 36 = sync */
323 1.1.1.3 fvdl { 2, s(struct kill_args),
324 1.1.1.3 fvdl kill }, /* 37 = kill */
325 1.1.1.3 fvdl { 2, s(struct compat_43_stat_args),
326 1.1.1.3 fvdl compat_43(stat) }, /* 38 = compat_43 stat */
327 1.1.1.3 fvdl { 0, 0,
328 1.1.1.3 fvdl getppid }, /* 39 = getppid */
329 1.1.1.3 fvdl { 2, s(struct compat_43_lstat_args),
330 1.1.1.3 fvdl compat_43(lstat) }, /* 40 = compat_43 lstat */
331 1.1.1.3 fvdl { 1, s(struct dup_args),
332 1.1.1.3 fvdl dup }, /* 41 = dup */
333 1.1.1.3 fvdl { 0, 0,
334 1.1.1.3 fvdl pipe }, /* 42 = pipe */
335 1.1.1.3 fvdl { 0, 0,
336 1.1.1.3 fvdl getegid }, /* 43 = getegid */
337 1.1.1.3 fvdl { 4, s(struct profil_args),
338 1.1.1.3 fvdl profil }, /* 44 = profil */
339 1.1 cgd #ifdef KTRACE
340 1.1.1.3 fvdl { 4, s(struct ktrace_args),
341 1.1.1.3 fvdl ktrace }, /* 45 = ktrace */
342 1.1 cgd #else
343 1.1.1.3 fvdl { 0, 0,
344 1.1.1.3 fvdl nosys }, /* 45 = unimplemented ktrace */
345 1.1 cgd #endif
346 1.1.1.3 fvdl { 3, s(struct sigaction_args),
347 1.1.1.3 fvdl sigaction }, /* 46 = sigaction */
348 1.1.1.3 fvdl { 0, 0,
349 1.1.1.3 fvdl getgid }, /* 47 = getgid */
350 1.1.1.3 fvdl { 2, s(struct sigprocmask_args),
351 1.1.1.3 fvdl sigprocmask }, /* 48 = sigprocmask */
352 1.1.1.3 fvdl { 2, s(struct getlogin_args),
353 1.1.1.3 fvdl getlogin }, /* 49 = getlogin */
354 1.1.1.3 fvdl { 1, s(struct setlogin_args),
355 1.1.1.3 fvdl setlogin }, /* 50 = setlogin */
356 1.1.1.3 fvdl { 1, s(struct acct_args),
357 1.1.1.3 fvdl acct }, /* 51 = acct */
358 1.1.1.3 fvdl { 0, 0,
359 1.1.1.3 fvdl sigpending }, /* 52 = sigpending */
360 1.1.1.3 fvdl { 2, s(struct sigaltstack_args),
361 1.1.1.3 fvdl sigaltstack }, /* 53 = sigaltstack */
362 1.1.1.3 fvdl { 3, s(struct ioctl_args),
363 1.1.1.3 fvdl ioctl }, /* 54 = ioctl */
364 1.1.1.3 fvdl { 1, s(struct reboot_args),
365 1.1.1.3 fvdl reboot }, /* 55 = reboot */
366 1.1.1.3 fvdl { 1, s(struct revoke_args),
367 1.1.1.3 fvdl revoke }, /* 56 = revoke */
368 1.1.1.3 fvdl { 2, s(struct symlink_args),
369 1.1.1.3 fvdl symlink }, /* 57 = symlink */
370 1.1.1.3 fvdl { 3, s(struct readlink_args),
371 1.1.1.3 fvdl readlink }, /* 58 = readlink */
372 1.1.1.3 fvdl { 3, s(struct execve_args),
373 1.1.1.3 fvdl execve }, /* 59 = execve */
374 1.1.1.3 fvdl { 1, s(struct umask_args),
375 1.1.1.3 fvdl umask }, /* 60 = umask */
376 1.1.1.3 fvdl { 1, s(struct chroot_args),
377 1.1.1.3 fvdl chroot }, /* 61 = chroot */
378 1.1.1.3 fvdl { 2, s(struct compat_43_fstat_args),
379 1.1.1.3 fvdl compat_43(fstat) }, /* 62 = compat_43 fstat */
380 1.1.1.3 fvdl { 4, s(struct compat_43_getkerninfo_args),
381 1.1.1.3 fvdl compat_43(getkerninfo) }, /* 63 = compat_43 getkerninfo */
382 1.1.1.3 fvdl { 0, 0,
383 1.1.1.3 fvdl compat_43(getpagesize) }, /* 64 = compat_43 getpagesize */
384 1.1.1.3 fvdl { 2, s(struct msync_args),
385 1.1.1.3 fvdl msync }, /* 65 = msync */
386 1.1.1.3 fvdl { 0, 0,
387 1.1.1.3 fvdl vfork }, /* 66 = vfork */
388 1.1.1.3 fvdl { 0, 0,
389 1.1.1.3 fvdl nosys }, /* 67 = obsolete vread */
390 1.1.1.3 fvdl { 0, 0,
391 1.1.1.3 fvdl nosys }, /* 68 = obsolete vwrite */
392 1.1.1.3 fvdl { 1, s(struct sbrk_args),
393 1.1.1.3 fvdl sbrk }, /* 69 = sbrk */
394 1.1.1.3 fvdl { 1, s(struct sstk_args),
395 1.1.1.3 fvdl sstk }, /* 70 = sstk */
396 1.1.1.3 fvdl { 6, s(struct compat_43_mmap_args),
397 1.1.1.3 fvdl compat_43(mmap) }, /* 71 = compat_43 mmap */
398 1.1.1.3 fvdl { 1, s(struct ovadvise_args),
399 1.1.1.3 fvdl ovadvise }, /* 72 = vadvise */
400 1.1.1.3 fvdl { 2, s(struct munmap_args),
401 1.1.1.3 fvdl munmap }, /* 73 = munmap */
402 1.1.1.3 fvdl { 3, s(struct mprotect_args),
403 1.1.1.3 fvdl mprotect }, /* 74 = mprotect */
404 1.1.1.3 fvdl { 3, s(struct madvise_args),
405 1.1.1.3 fvdl madvise }, /* 75 = madvise */
406 1.1.1.3 fvdl { 0, 0,
407 1.1.1.3 fvdl nosys }, /* 76 = obsolete vhangup */
408 1.1.1.3 fvdl { 0, 0,
409 1.1.1.3 fvdl nosys }, /* 77 = obsolete vlimit */
410 1.1.1.3 fvdl { 3, s(struct mincore_args),
411 1.1.1.3 fvdl mincore }, /* 78 = mincore */
412 1.1.1.3 fvdl { 2, s(struct getgroups_args),
413 1.1.1.3 fvdl getgroups }, /* 79 = getgroups */
414 1.1.1.3 fvdl { 2, s(struct setgroups_args),
415 1.1.1.3 fvdl setgroups }, /* 80 = setgroups */
416 1.1.1.3 fvdl { 0, 0,
417 1.1.1.3 fvdl getpgrp }, /* 81 = getpgrp */
418 1.1.1.3 fvdl { 2, s(struct setpgid_args),
419 1.1.1.3 fvdl setpgid }, /* 82 = setpgid */
420 1.1.1.3 fvdl { 3, s(struct setitimer_args),
421 1.1.1.3 fvdl setitimer }, /* 83 = setitimer */
422 1.1.1.3 fvdl { 0, 0,
423 1.1.1.3 fvdl compat_43(wait) }, /* 84 = compat_43 wait */
424 1.1.1.3 fvdl { 1, s(struct swapon_args),
425 1.1.1.3 fvdl swapon }, /* 85 = swapon */
426 1.1.1.3 fvdl { 2, s(struct getitimer_args),
427 1.1.1.3 fvdl getitimer }, /* 86 = getitimer */
428 1.1.1.3 fvdl { 2, s(struct compat_43_gethostname_args),
429 1.1.1.3 fvdl compat_43(gethostname) }, /* 87 = compat_43 gethostname */
430 1.1.1.3 fvdl { 2, s(struct compat_43_sethostname_args),
431 1.1.1.3 fvdl compat_43(sethostname) }, /* 88 = compat_43 sethostname */
432 1.1.1.3 fvdl { 0, 0,
433 1.1.1.3 fvdl getdtablesize }, /* 89 = getdtablesize */
434 1.1.1.3 fvdl { 2, s(struct dup2_args),
435 1.1.1.3 fvdl dup2 }, /* 90 = dup2 */
436 1.1.1.3 fvdl { 0, 0,
437 1.1.1.3 fvdl nosys }, /* 91 = unimplemented getdopt */
438 1.1.1.3 fvdl { 3, s(struct fcntl_args),
439 1.1.1.3 fvdl fcntl }, /* 92 = fcntl */
440 1.1.1.3 fvdl { 5, s(struct select_args),
441 1.1.1.3 fvdl select }, /* 93 = select */
442 1.1.1.3 fvdl { 0, 0,
443 1.1.1.3 fvdl nosys }, /* 94 = unimplemented setdopt */
444 1.1.1.3 fvdl { 1, s(struct fsync_args),
445 1.1.1.3 fvdl fsync }, /* 95 = fsync */
446 1.1.1.3 fvdl { 3, s(struct setpriority_args),
447 1.1.1.3 fvdl setpriority }, /* 96 = setpriority */
448 1.1.1.3 fvdl { 3, s(struct socket_args),
449 1.1.1.3 fvdl socket }, /* 97 = socket */
450 1.1.1.3 fvdl { 3, s(struct connect_args),
451 1.1.1.3 fvdl connect }, /* 98 = connect */
452 1.1.1.3 fvdl { 3, s(struct compat_43_accept_args),
453 1.1.1.3 fvdl compat_43(accept) }, /* 99 = compat_43 accept */
454 1.1.1.3 fvdl { 2, s(struct getpriority_args),
455 1.1.1.3 fvdl getpriority }, /* 100 = getpriority */
456 1.1.1.3 fvdl { 4, s(struct compat_43_send_args),
457 1.1.1.3 fvdl compat_43(send) }, /* 101 = compat_43 send */
458 1.1.1.3 fvdl { 4, s(struct compat_43_recv_args),
459 1.1.1.3 fvdl compat_43(recv) }, /* 102 = compat_43 recv */
460 1.1.1.3 fvdl { 1, s(struct sigreturn_args),
461 1.1.1.3 fvdl sigreturn }, /* 103 = sigreturn */
462 1.1.1.3 fvdl { 3, s(struct bind_args),
463 1.1.1.3 fvdl bind }, /* 104 = bind */
464 1.1.1.3 fvdl { 5, s(struct setsockopt_args),
465 1.1.1.3 fvdl setsockopt }, /* 105 = setsockopt */
466 1.1.1.3 fvdl { 2, s(struct listen_args),
467 1.1.1.3 fvdl listen }, /* 106 = listen */
468 1.1.1.3 fvdl { 0, 0,
469 1.1.1.3 fvdl nosys }, /* 107 = obsolete vtimes */
470 1.1.1.3 fvdl { 3, s(struct compat_43_sigvec_args),
471 1.1.1.3 fvdl compat_43(sigvec) }, /* 108 = compat_43 sigvec */
472 1.1.1.3 fvdl { 1, s(struct compat_43_sigblock_args),
473 1.1.1.3 fvdl compat_43(sigblock) }, /* 109 = compat_43 sigblock */
474 1.1.1.3 fvdl { 1, s(struct compat_43_sigsetmask_args),
475 1.1.1.3 fvdl compat_43(sigsetmask) }, /* 110 = compat_43 sigsetmask */
476 1.1.1.3 fvdl { 1, s(struct sigsuspend_args),
477 1.1.1.3 fvdl sigsuspend }, /* 111 = sigsuspend */
478 1.1.1.3 fvdl { 2, s(struct compat_43_sigstack_args),
479 1.1.1.3 fvdl compat_43(sigstack) }, /* 112 = compat_43 sigstack */
480 1.1.1.3 fvdl { 3, s(struct compat_43_recvmsg_args),
481 1.1.1.3 fvdl compat_43(recvmsg) }, /* 113 = compat_43 recvmsg */
482 1.1.1.3 fvdl { 3, s(struct compat_43_sendmsg_args),
483 1.1.1.3 fvdl compat_43(sendmsg) }, /* 114 = compat_43 sendmsg */
484 1.1 cgd #ifdef TRACE
485 1.1.1.3 fvdl { 2, s(struct vtrace_args),
486 1.1.1.3 fvdl vtrace }, /* 115 = vtrace */
487 1.1 cgd #else
488 1.1.1.3 fvdl { 0, 0,
489 1.1.1.3 fvdl nosys }, /* 115 = obsolete vtrace */
490 1.1 cgd #endif
491 1.1.1.3 fvdl { 2, s(struct gettimeofday_args),
492 1.1.1.3 fvdl gettimeofday }, /* 116 = gettimeofday */
493 1.1.1.3 fvdl { 2, s(struct getrusage_args),
494 1.1.1.3 fvdl getrusage }, /* 117 = getrusage */
495 1.1.1.3 fvdl { 5, s(struct getsockopt_args),
496 1.1.1.3 fvdl getsockopt }, /* 118 = getsockopt */
497 1.1 cgd #ifdef vax
498 1.1.1.3 fvdl { 1, s(struct resuba_args),
499 1.1.1.3 fvdl resuba }, /* 119 = resuba */
500 1.1 cgd #else
501 1.1.1.3 fvdl { 0, 0,
502 1.1.1.3 fvdl nosys }, /* 119 = unimplemented resuba */
503 1.1 cgd #endif
504 1.1.1.3 fvdl { 3, s(struct readv_args),
505 1.1.1.3 fvdl readv }, /* 120 = readv */
506 1.1.1.3 fvdl { 3, s(struct writev_args),
507 1.1.1.3 fvdl writev }, /* 121 = writev */
508 1.1.1.3 fvdl { 2, s(struct settimeofday_args),
509 1.1.1.3 fvdl settimeofday }, /* 122 = settimeofday */
510 1.1.1.3 fvdl { 3, s(struct fchown_args),
511 1.1.1.3 fvdl fchown }, /* 123 = fchown */
512 1.1.1.3 fvdl { 2, s(struct fchmod_args),
513 1.1.1.3 fvdl fchmod }, /* 124 = fchmod */
514 1.1.1.3 fvdl { 6, s(struct compat_43_recvfrom_args),
515 1.1.1.3 fvdl compat_43(recvfrom) }, /* 125 = compat_43 recvfrom */
516 1.1.1.3 fvdl { 2, s(struct compat_43_setreuid_args),
517 1.1.1.3 fvdl compat_43(setreuid) }, /* 126 = compat_43 setreuid */
518 1.1.1.3 fvdl { 2, s(struct compat_43_setregid_args),
519 1.1.1.3 fvdl compat_43(setregid) }, /* 127 = compat_43 setregid */
520 1.1.1.3 fvdl { 2, s(struct rename_args),
521 1.1.1.3 fvdl rename }, /* 128 = rename */
522 1.1.1.3 fvdl { 2, s(struct compat_43_truncate_args),
523 1.1.1.3 fvdl compat_43(truncate) }, /* 129 = compat_43 truncate */
524 1.1.1.3 fvdl { 2, s(struct compat_43_ftruncate_args),
525 1.1.1.3 fvdl compat_43(ftruncate) }, /* 130 = compat_43 ftruncate */
526 1.1.1.3 fvdl { 2, s(struct flock_args),
527 1.1.1.3 fvdl flock }, /* 131 = flock */
528 1.1.1.3 fvdl { 2, s(struct mkfifo_args),
529 1.1.1.3 fvdl mkfifo }, /* 132 = mkfifo */
530 1.1.1.3 fvdl { 6, s(struct sendto_args),
531 1.1.1.3 fvdl sendto }, /* 133 = sendto */
532 1.1.1.3 fvdl { 2, s(struct shutdown_args),
533 1.1.1.3 fvdl shutdown }, /* 134 = shutdown */
534 1.1.1.3 fvdl { 4, s(struct socketpair_args),
535 1.1.1.3 fvdl socketpair }, /* 135 = socketpair */
536 1.1.1.3 fvdl { 2, s(struct mkdir_args),
537 1.1.1.3 fvdl mkdir }, /* 136 = mkdir */
538 1.1.1.3 fvdl { 1, s(struct rmdir_args),
539 1.1.1.3 fvdl rmdir }, /* 137 = rmdir */
540 1.1.1.3 fvdl { 2, s(struct utimes_args),
541 1.1.1.3 fvdl utimes }, /* 138 = utimes */
542 1.1.1.3 fvdl { 0, 0,
543 1.1.1.3 fvdl nosys }, /* 139 = obsolete 4.2 sigreturn */
544 1.1.1.3 fvdl { 2, s(struct adjtime_args),
545 1.1.1.3 fvdl adjtime }, /* 140 = adjtime */
546 1.1.1.3 fvdl { 3, s(struct compat_43_getpeername_args),
547 1.1.1.3 fvdl compat_43(getpeername) }, /* 141 = compat_43 getpeername */
548 1.1.1.3 fvdl { 0, 0,
549 1.1.1.3 fvdl compat_43(gethostid) }, /* 142 = compat_43 gethostid */
550 1.1.1.3 fvdl { 1, s(struct compat_43_sethostid_args),
551 1.1.1.3 fvdl compat_43(sethostid) }, /* 143 = compat_43 sethostid */
552 1.1.1.3 fvdl { 2, s(struct compat_43_getrlimit_args),
553 1.1.1.3 fvdl compat_43(getrlimit) }, /* 144 = compat_43 getrlimit */
554 1.1.1.3 fvdl { 2, s(struct compat_43_setrlimit_args),
555 1.1.1.3 fvdl compat_43(setrlimit) }, /* 145 = compat_43 setrlimit */
556 1.1.1.3 fvdl { 2, s(struct compat_43_killpg_args),
557 1.1.1.3 fvdl compat_43(killpg) }, /* 146 = compat_43 killpg */
558 1.1.1.3 fvdl { 0, 0,
559 1.1.1.3 fvdl setsid }, /* 147 = setsid */
560 1.1.1.3 fvdl { 4, s(struct quotactl_args),
561 1.1.1.3 fvdl quotactl }, /* 148 = quotactl */
562 1.1.1.3 fvdl { 0, 0,
563 1.1.1.3 fvdl compat_43(quota) }, /* 149 = compat_43 quota */
564 1.1.1.3 fvdl { 3, s(struct compat_43_getsockname_args),
565 1.1.1.3 fvdl compat_43(getsockname) }, /* 150 = compat_43 getsockname */
566 1.1.1.3 fvdl { 0, 0,
567 1.1.1.3 fvdl nosys }, /* 151 = unimplemented */
568 1.1.1.3 fvdl { 0, 0,
569 1.1.1.3 fvdl nosys }, /* 152 = unimplemented */
570 1.1.1.3 fvdl { 0, 0,
571 1.1.1.3 fvdl nosys }, /* 153 = unimplemented */
572 1.1.1.3 fvdl { 0, 0,
573 1.1.1.3 fvdl nosys }, /* 154 = unimplemented */
574 1.1 cgd #ifdef NFS
575 1.1.1.3 fvdl { 2, s(struct nfssvc_args),
576 1.1.1.3 fvdl nfssvc }, /* 155 = nfssvc */
577 1.1 cgd #else
578 1.1.1.3 fvdl { 0, 0,
579 1.1.1.3 fvdl nosys }, /* 155 = unimplemented nfssvc */
580 1.1 cgd #endif
581 1.1.1.3 fvdl { 4, s(struct compat_43_getdirentries_args),
582 1.1.1.3 fvdl compat_43(getdirentries) }, /* 156 = compat_43 getdirentries */
583 1.1.1.3 fvdl { 2, s(struct statfs_args),
584 1.1.1.3 fvdl statfs }, /* 157 = statfs */
585 1.1.1.3 fvdl { 2, s(struct fstatfs_args),
586 1.1.1.3 fvdl fstatfs }, /* 158 = fstatfs */
587 1.1.1.3 fvdl { 0, 0,
588 1.1.1.3 fvdl nosys }, /* 159 = unimplemented */
589 1.1.1.3 fvdl { 0, 0,
590 1.1.1.3 fvdl nosys }, /* 160 = unimplemented */
591 1.1 cgd #ifdef NFS
592 1.1.1.3 fvdl { 2, s(struct getfh_args),
593 1.1.1.3 fvdl getfh }, /* 161 = getfh */
594 1.1 cgd #else
595 1.1.1.3 fvdl { 0, 0,
596 1.1.1.3 fvdl nosys }, /* 161 = unimplemented getfh */
597 1.1 cgd #endif
598 1.1.1.3 fvdl { 0, 0,
599 1.1.1.3 fvdl nosys }, /* 162 = unimplemented getdomainname */
600 1.1.1.3 fvdl { 0, 0,
601 1.1.1.3 fvdl nosys }, /* 163 = unimplemented setdomainname */
602 1.1.1.3 fvdl { 0, 0,
603 1.1.1.3 fvdl nosys }, /* 164 = unimplemented */
604 1.1.1.3 fvdl { 0, 0,
605 1.1.1.3 fvdl nosys }, /* 165 = unimplemented */
606 1.1.1.3 fvdl { 0, 0,
607 1.1.1.3 fvdl nosys }, /* 166 = unimplemented */
608 1.1.1.3 fvdl { 0, 0,
609 1.1.1.3 fvdl nosys }, /* 167 = unimplemented */
610 1.1.1.3 fvdl { 0, 0,
611 1.1.1.3 fvdl nosys }, /* 168 = unimplemented */
612 1.1.1.3 fvdl { 0, 0,
613 1.1.1.3 fvdl nosys }, /* 169 = unimplemented semsys */
614 1.1.1.3 fvdl { 0, 0,
615 1.1.1.3 fvdl nosys }, /* 170 = unimplemented msgsys */
616 1.1.1.3 fvdl #if defined(SYSVSHM) && !defined(alpha)
617 1.1.1.3 fvdl { 4, s(struct compat_43_shmsys_args),
618 1.1.1.3 fvdl compat_43(shmsys) }, /* 171 = compat_43 shmsys */
619 1.1.1.3 fvdl #else
620 1.1.1.3 fvdl { 0, 0,
621 1.1.1.3 fvdl nosys }, /* 171 = unimplemented shmsys */
622 1.1.1.3 fvdl #endif
623 1.1.1.3 fvdl { 0, 0,
624 1.1.1.3 fvdl nosys }, /* 172 = unimplemented */
625 1.1.1.3 fvdl { 0, 0,
626 1.1.1.3 fvdl nosys }, /* 173 = unimplemented */
627 1.1.1.3 fvdl { 0, 0,
628 1.1.1.3 fvdl nosys }, /* 174 = unimplemented */
629 1.1.1.3 fvdl { 0, 0,
630 1.1.1.3 fvdl nosys }, /* 175 = unimplemented */
631 1.1.1.3 fvdl { 0, 0,
632 1.1.1.3 fvdl nosys }, /* 176 = unimplemented */
633 1.1.1.3 fvdl { 0, 0,
634 1.1.1.3 fvdl nosys }, /* 177 = unimplemented */
635 1.1.1.3 fvdl { 0, 0,
636 1.1.1.3 fvdl nosys }, /* 178 = unimplemented */
637 1.1.1.3 fvdl { 0, 0,
638 1.1.1.3 fvdl nosys }, /* 179 = unimplemented */
639 1.1.1.3 fvdl { 0, 0,
640 1.1.1.3 fvdl nosys }, /* 180 = unimplemented */
641 1.1.1.3 fvdl { 1, s(struct setgid_args),
642 1.1.1.3 fvdl setgid }, /* 181 = setgid */
643 1.1.1.3 fvdl { 1, s(struct setegid_args),
644 1.1.1.3 fvdl setegid }, /* 182 = setegid */
645 1.1.1.3 fvdl { 1, s(struct seteuid_args),
646 1.1.1.3 fvdl seteuid }, /* 183 = seteuid */
647 1.1.1.2 fvdl #ifdef LFS
648 1.1.1.3 fvdl { 3, s(struct lfs_bmapv_args),
649 1.1.1.3 fvdl lfs_bmapv }, /* 184 = lfs_bmapv */
650 1.1.1.3 fvdl { 3, s(struct lfs_markv_args),
651 1.1.1.3 fvdl lfs_markv }, /* 185 = lfs_markv */
652 1.1.1.3 fvdl { 2, s(struct lfs_segclean_args),
653 1.1.1.3 fvdl lfs_segclean }, /* 186 = lfs_segclean */
654 1.1.1.3 fvdl { 2, s(struct lfs_segwait_args),
655 1.1.1.3 fvdl lfs_segwait }, /* 187 = lfs_segwait */
656 1.1.1.3 fvdl #else
657 1.1.1.3 fvdl { 0, 0,
658 1.1.1.3 fvdl nosys }, /* 184 = unimplemented lfs_bmapv */
659 1.1.1.3 fvdl { 0, 0,
660 1.1.1.3 fvdl nosys }, /* 185 = unimplemented lfs_markv */
661 1.1.1.3 fvdl { 0, 0,
662 1.1.1.3 fvdl nosys }, /* 186 = unimplemented lfs_segclean */
663 1.1.1.3 fvdl { 0, 0,
664 1.1.1.3 fvdl nosys }, /* 187 = unimplemented lfs_segwait */
665 1.1.1.3 fvdl #endif
666 1.1.1.3 fvdl { 2, s(struct stat_args),
667 1.1.1.3 fvdl stat }, /* 188 = stat */
668 1.1.1.3 fvdl { 2, s(struct fstat_args),
669 1.1.1.3 fvdl fstat }, /* 189 = fstat */
670 1.1.1.3 fvdl { 2, s(struct lstat_args),
671 1.1.1.3 fvdl lstat }, /* 190 = lstat */
672 1.1.1.3 fvdl { 2, s(struct pathconf_args),
673 1.1.1.3 fvdl pathconf }, /* 191 = pathconf */
674 1.1.1.3 fvdl { 2, s(struct fpathconf_args),
675 1.1.1.3 fvdl fpathconf }, /* 192 = fpathconf */
676 1.1.1.3 fvdl { 0, 0,
677 1.1.1.3 fvdl nosys }, /* 193 = unimplemented */
678 1.1.1.3 fvdl { 2, s(struct getrlimit_args),
679 1.1.1.3 fvdl getrlimit }, /* 194 = getrlimit */
680 1.1.1.3 fvdl { 2, s(struct setrlimit_args),
681 1.1.1.3 fvdl setrlimit }, /* 195 = setrlimit */
682 1.1.1.3 fvdl { 4, s(struct getdirentries_args),
683 1.1.1.3 fvdl getdirentries }, /* 196 = getdirentries */
684 1.1.1.3 fvdl { 7, s(struct mmap_args),
685 1.1.1.3 fvdl mmap }, /* 197 = mmap */
686 1.1.1.3 fvdl { 0, 0,
687 1.1.1.3 fvdl nosys }, /* 198 = __syscall */
688 1.1.1.3 fvdl { 4, s(struct lseek_args),
689 1.1.1.3 fvdl lseek }, /* 199 = lseek */
690 1.1.1.3 fvdl { 3, s(struct truncate_args),
691 1.1.1.3 fvdl truncate }, /* 200 = truncate */
692 1.1.1.3 fvdl { 3, s(struct ftruncate_args),
693 1.1.1.3 fvdl ftruncate }, /* 201 = ftruncate */
694 1.1.1.3 fvdl { 6, s(struct __sysctl_args),
695 1.1.1.3 fvdl __sysctl }, /* 202 = __sysctl */
696 1.1.1.3 fvdl { 2, s(struct mlock_args),
697 1.1.1.3 fvdl mlock }, /* 203 = mlock */
698 1.1.1.3 fvdl { 2, s(struct munlock_args),
699 1.1.1.3 fvdl munlock }, /* 204 = munlock */
700 1.1.1.3 fvdl { 1, s(struct undelete_args),
701 1.1.1.3 fvdl undelete }, /* 205 = undelete */
702 1.1.1.3 fvdl { 0, 0,
703 1.1.1.3 fvdl nosys }, /* 206 = unimplemented */
704 1.1.1.3 fvdl { 0, 0,
705 1.1.1.3 fvdl nosys }, /* 207 = unimplemented */
706 1.1.1.3 fvdl { 0, 0,
707 1.1.1.3 fvdl nosys }, /* 208 = unimplemented */
708 1.1.1.3 fvdl { 0, 0,
709 1.1.1.3 fvdl nosys }, /* 209 = unimplemented */
710 1.1.1.3 fvdl { 0, 0,
711 1.1.1.3 fvdl nosys }, /* 210 = unimplemented */
712 1.1.1.3 fvdl { 0, 0,
713 1.1.1.3 fvdl nosys }, /* 211 = unimplemented */
714 1.1.1.3 fvdl { 0, 0,
715 1.1.1.3 fvdl nosys }, /* 212 = unimplemented */
716 1.1.1.3 fvdl { 0, 0,
717 1.1.1.3 fvdl nosys }, /* 213 = unimplemented */
718 1.1.1.3 fvdl { 0, 0,
719 1.1.1.3 fvdl nosys }, /* 214 = unimplemented */
720 1.1.1.3 fvdl { 0, 0,
721 1.1.1.3 fvdl nosys }, /* 215 = unimplemented */
722 1.1.1.3 fvdl { 0, 0,
723 1.1.1.3 fvdl nosys }, /* 216 = unimplemented */
724 1.1.1.3 fvdl { 0, 0,
725 1.1.1.3 fvdl nosys }, /* 217 = unimplemented */
726 1.1.1.3 fvdl { 0, 0,
727 1.1.1.3 fvdl nosys }, /* 218 = unimplemented */
728 1.1.1.3 fvdl { 0, 0,
729 1.1.1.3 fvdl nosys }, /* 219 = unimplemented */
730 1.1.1.3 fvdl { 0, 0,
731 1.1.1.3 fvdl nosys }, /* 220 = unimplemented semctl */
732 1.1.1.3 fvdl { 0, 0,
733 1.1.1.3 fvdl nosys }, /* 221 = unimplemented semget */
734 1.1.1.3 fvdl { 0, 0,
735 1.1.1.3 fvdl nosys }, /* 222 = unimplemented semop */
736 1.1.1.3 fvdl { 0, 0,
737 1.1.1.3 fvdl nosys }, /* 223 = unimplemented semconfig */
738 1.1.1.3 fvdl { 0, 0,
739 1.1.1.3 fvdl nosys }, /* 224 = unimplemented msgctl */
740 1.1.1.3 fvdl { 0, 0,
741 1.1.1.3 fvdl nosys }, /* 225 = unimplemented msgget */
742 1.1.1.3 fvdl { 0, 0,
743 1.1.1.3 fvdl nosys }, /* 226 = unimplemented msgsnd */
744 1.1.1.3 fvdl { 0, 0,
745 1.1.1.3 fvdl nosys }, /* 227 = unimplemented msgrcv */
746 1.1.1.3 fvdl #if defined(SYSVSHM) && 0
747 1.1.1.3 fvdl { 3, s(struct shmat_args),
748 1.1.1.3 fvdl shmat }, /* 228 = shmat */
749 1.1.1.3 fvdl { 3, s(struct shmctl_args),
750 1.1.1.3 fvdl shmctl }, /* 229 = shmctl */
751 1.1.1.3 fvdl { 1, s(struct shmdt_args),
752 1.1.1.3 fvdl shmdt }, /* 230 = shmdt */
753 1.1.1.3 fvdl { 3, s(struct shmget_args),
754 1.1.1.3 fvdl shmget }, /* 231 = shmget */
755 1.1.1.3 fvdl #else
756 1.1.1.3 fvdl { 0, 0,
757 1.1.1.3 fvdl nosys }, /* 228 = unimplemented shmat */
758 1.1.1.3 fvdl { 0, 0,
759 1.1.1.3 fvdl nosys }, /* 229 = unimplemented shmctl */
760 1.1.1.3 fvdl { 0, 0,
761 1.1.1.3 fvdl nosys }, /* 230 = unimplemented shmdt */
762 1.1.1.3 fvdl { 0, 0,
763 1.1.1.3 fvdl nosys }, /* 231 = unimplemented shmget */
764 1.1.1.3 fvdl #endif
765 1.1 cgd };
766 1.1 cgd
767 1.1.1.3 fvdl int nsysent= sizeof(sysent) / sizeof(sysent[0]);
768