System V IPC code from Danny Boulet, chewed on a bit by the NetBSD group
[unix-history] / sys / kern / init_sysent.c
CommitLineData
15637ed4
RG
1/*
2 * System call switch table.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
8e860026 5 * created from $Id: syscalls.master,v 1.5 1993/10/24 06:19:58 paul Exp $
15637ed4
RG
6 */
7
8#include "param.h"
9#include "systm.h"
10
11int nosys();
12
13int rexit();
14int fork();
15int read();
16int write();
17int open();
18int close();
19int wait4();
20int link();
21int unlink();
22int chdir();
23int fchdir();
24int mknod();
25int chmod();
26int chown();
27int obreak();
28int getfsstat();
29int lseek();
30int getpid();
31int mount();
32int unmount();
33int setuid();
34int getuid();
35int geteuid();
36int ptrace();
37int recvmsg();
38int sendmsg();
39int recvfrom();
40int accept();
41int getpeername();
42int getsockname();
43int saccess();
44int chflags();
45int fchflags();
46int sync();
47int kill();
48int stat();
49int getppid();
50int lstat();
51int dup();
52int pipe();
53int getegid();
54int profil();
55#ifdef KTRACE
56int ktrace();
57#else
58#endif
59int sigaction();
60int getgid();
61int sigprocmask();
62int getlogin();
63int setlogin();
64int sysacct();
65int sigpending();
66#ifdef notyet
67int sigaltstack();
68#else
69#endif
70int ioctl();
71int reboot();
72int revoke();
73int symlink();
74int readlink();
75int execve();
76int umask();
77int chroot();
78int fstat();
79int getkerninfo();
80int getpagesize();
81int msync();
82int vfork();
83int sbrk();
84int sstk();
85int smmap();
86int ovadvise();
87int munmap();
88int mprotect();
89int madvise();
90int mincore();
91int getgroups();
92int setgroups();
93int getpgrp();
94int setpgid();
95int setitimer();
96int swapon();
97int getitimer();
98int gethostname();
99int sethostname();
100int getdtablesize();
101int dup2();
102int fcntl();
103int select();
104int fsync();
105int setpriority();
106int socket();
107int connect();
108int getpriority();
109int sigreturn();
110int bind();
111int setsockopt();
112int listen();
113int sigsuspend();
114int sigstack();
115#ifdef TRACE
116int vtrace();
117#else
118#endif
119int gettimeofday();
120int getrusage();
121int getsockopt();
122#ifdef vax
123int resuba();
124#else
125#endif
126int readv();
127int writev();
128int settimeofday();
129int fchown();
130int fchmod();
131int rename();
132int truncate();
133int ftruncate();
134int flock();
135int mkfifo();
136int sendto();
137int shutdown();
138int socketpair();
139int mkdir();
140int rmdir();
141int utimes();
142int adjtime();
143int gethostid();
144int sethostid();
145int getrlimit();
146int setrlimit();
147int setsid();
148int quotactl();
149#ifdef NFS
150int nfssvc();
151#else
152#endif
153int getdirentries();
154int statfs();
155int fstatfs();
156#ifdef NFS
157int async_daemon();
158int getfh();
159#else
160#endif
8e860026
PR
161int getdomainname();
162int setdomainname();
d4b7d1a8 163int uname();
15637ed4
RG
164#ifdef SYSVSHM
165int shmsys();
166#else
167#endif
495867ae
GW
168#ifdef MACHVMCOMPAT
169int svm_allocate();
170int svm_deallocate();
171int svm_inherit();
172int svm_protect();
173#else
174#endif
15637ed4
RG
175int setgid();
176int setegid();
177int seteuid();
178
179#ifdef COMPAT_43
180#define compat(n, name) n, __CONCAT(o,name)
181
182int ocreat();
183#ifdef KTRACE
184#else
185#endif
186#ifdef notyet
187#else
188#endif
189int owait();
190int oaccept();
191int osend();
192int orecv();
193int osigvec();
194int osigblock();
195int osigsetmask();
196int orecvmsg();
197int osendmsg();
198#ifdef TRACE
199#else
200#endif
201#ifdef vax
202#else
203#endif
204int orecvfrom();
205int osetreuid();
206int osetregid();
207int ogetpeername();
208int okillpg();
209int oquota();
210int ogetsockname();
211#ifdef NFS
212#else
213#endif
214#ifdef NFS
215#else
216#endif
217#ifdef SYSVSHM
218#else
219#endif
495867ae
GW
220#ifdef MACHVMCOMPAT
221#else
222#endif
15637ed4
RG
223
224#else /* COMPAT_43 */
225#define compat(n, name) 0, nosys
226#endif /* COMPAT_43 */
227
228struct sysent sysent[] = {
229 0, nosys, /* 0 = indir or out-of-range */
230 1, rexit, /* 1 = exit */
231 0, fork, /* 2 = fork */
232 3, read, /* 3 = read */
233 3, write, /* 4 = write */
234 3, open, /* 5 = open */
235 1, close, /* 6 = close */
236 4, wait4, /* 7 = wait4 */
237 compat(2,creat), /* 8 = old creat */
238 2, link, /* 9 = link */
239 1, unlink, /* 10 = unlink */
240 0, nosys, /* 11 = obsolete execv */
241 1, chdir, /* 12 = chdir */
242 1, fchdir, /* 13 = fchdir */
243 3, mknod, /* 14 = mknod */
244 2, chmod, /* 15 = chmod */
245 3, chown, /* 16 = chown */
246 1, obreak, /* 17 = break */
247 3, getfsstat, /* 18 = getfsstat */
248 3, lseek, /* 19 = lseek */
249 0, getpid, /* 20 = getpid */
250 4, mount, /* 21 = mount */
251 2, unmount, /* 22 = unmount */
252 1, setuid, /* 23 = setuid */
253 0, getuid, /* 24 = getuid */
254 0, geteuid, /* 25 = geteuid */
255 4, ptrace, /* 26 = ptrace */
256 3, recvmsg, /* 27 = recvmsg */
257 3, sendmsg, /* 28 = sendmsg */
258 6, recvfrom, /* 29 = recvfrom */
259 3, accept, /* 30 = accept */
260 3, getpeername, /* 31 = getpeername */
261 3, getsockname, /* 32 = getsockname */
262 2, saccess, /* 33 = access */
263 2, chflags, /* 34 = chflags */
264 2, fchflags, /* 35 = fchflags */
265 0, sync, /* 36 = sync */
266 2, kill, /* 37 = kill */
267 2, stat, /* 38 = stat */
268 0, getppid, /* 39 = getppid */
269 2, lstat, /* 40 = lstat */
270 2, dup, /* 41 = dup */
271 0, pipe, /* 42 = pipe */
272 0, getegid, /* 43 = getegid */
273 4, profil, /* 44 = profil */
274#ifdef KTRACE
275 4, ktrace, /* 45 = ktrace */
276#else
277 0, nosys, /* 45 = ktrace */
278#endif
279 3, sigaction, /* 46 = sigaction */
280 0, getgid, /* 47 = getgid */
281 2, sigprocmask, /* 48 = sigprocmask */
282 2, getlogin, /* 49 = getlogin */
283 1, setlogin, /* 50 = setlogin */
284 1, sysacct, /* 51 = acct */
285 0, sigpending, /* 52 = sigpending */
286#ifdef notyet
287 3, sigaltstack, /* 53 = sigaltstack */
288#else
289 0, nosys, /* 53 = sigaltstack */
290#endif
291 3, ioctl, /* 54 = ioctl */
292 1, reboot, /* 55 = reboot */
293 1, revoke, /* 56 = revoke */
294 2, symlink, /* 57 = symlink */
295 3, readlink, /* 58 = readlink */
296 3, execve, /* 59 = execve */
297 1, umask, /* 60 = umask */
298 1, chroot, /* 61 = chroot */
299 2, fstat, /* 62 = fstat */
300 4, getkerninfo, /* 63 = getkerninfo */
301 0, getpagesize, /* 64 = getpagesize */
302 2, msync, /* 65 = msync */
303 0, vfork, /* 66 = vfork */
304 0, nosys, /* 67 = obsolete vread */
305 0, nosys, /* 68 = obsolete vwrite */
306 1, sbrk, /* 69 = sbrk */
307 1, sstk, /* 70 = sstk */
308 6, smmap, /* 71 = mmap */
309 1, ovadvise, /* 72 = vadvise */
310 2, munmap, /* 73 = munmap */
311 3, mprotect, /* 74 = mprotect */
312 3, madvise, /* 75 = madvise */
313 0, nosys, /* 76 = obsolete vhangup */
314 0, nosys, /* 77 = obsolete vlimit */
315 3, mincore, /* 78 = mincore */
316 2, getgroups, /* 79 = getgroups */
317 2, setgroups, /* 80 = setgroups */
e866db7c 318 0, getpgrp, /* 81 = getpgrp */
15637ed4
RG
319 2, setpgid, /* 82 = setpgid */
320 3, setitimer, /* 83 = setitimer */
321 compat(0,wait), /* 84 = old wait */
322 1, swapon, /* 85 = swapon */
323 2, getitimer, /* 86 = getitimer */
324 2, gethostname, /* 87 = gethostname */
325 2, sethostname, /* 88 = sethostname */
326 0, getdtablesize, /* 89 = getdtablesize */
327 2, dup2, /* 90 = dup2 */
328 0, nosys, /* 91 = getdopt */
329 3, fcntl, /* 92 = fcntl */
330 5, select, /* 93 = select */
331 0, nosys, /* 94 = setdopt */
332 1, fsync, /* 95 = fsync */
333 3, setpriority, /* 96 = setpriority */
334 3, socket, /* 97 = socket */
335 3, connect, /* 98 = connect */
336 compat(3,accept), /* 99 = old accept */
337 2, getpriority, /* 100 = getpriority */
338 compat(4,send), /* 101 = old send */
339 compat(4,recv), /* 102 = old recv */
340 1, sigreturn, /* 103 = sigreturn */
341 3, bind, /* 104 = bind */
342 5, setsockopt, /* 105 = setsockopt */
343 2, listen, /* 106 = listen */
344 0, nosys, /* 107 = obsolete vtimes */
345 compat(3,sigvec), /* 108 = old sigvec */
346 compat(1,sigblock), /* 109 = old sigblock */
347 compat(1,sigsetmask), /* 110 = old sigsetmask */
348 1, sigsuspend, /* 111 = sigsuspend */
349 2, sigstack, /* 112 = sigstack */
350 compat(3,recvmsg), /* 113 = old recvmsg */
351 compat(3,sendmsg), /* 114 = old sendmsg */
352#ifdef TRACE
353 2, vtrace, /* 115 = vtrace */
354#else
355 0, nosys, /* 115 = obsolete vtrace */
356#endif
357 2, gettimeofday, /* 116 = gettimeofday */
358 2, getrusage, /* 117 = getrusage */
359 5, getsockopt, /* 118 = getsockopt */
360#ifdef vax
361 1, resuba, /* 119 = resuba */
362#else
363 0, nosys, /* 119 = nosys */
364#endif
365 3, readv, /* 120 = readv */
366 3, writev, /* 121 = writev */
367 2, settimeofday, /* 122 = settimeofday */
368 3, fchown, /* 123 = fchown */
369 2, fchmod, /* 124 = fchmod */
370 compat(6,recvfrom), /* 125 = old recvfrom */
371 compat(2,setreuid), /* 126 = old setreuid */
372 compat(2,setregid), /* 127 = old setregid */
373 2, rename, /* 128 = rename */
374 2, truncate, /* 129 = truncate */
375 2, ftruncate, /* 130 = ftruncate */
376 2, flock, /* 131 = flock */
377 2, mkfifo, /* 132 = mkfifo */
378 6, sendto, /* 133 = sendto */
379 2, shutdown, /* 134 = shutdown */
380 5, socketpair, /* 135 = socketpair */
381 2, mkdir, /* 136 = mkdir */
382 1, rmdir, /* 137 = rmdir */
383 2, utimes, /* 138 = utimes */
384 0, nosys, /* 139 = obsolete 4.2 sigreturn */
385 2, adjtime, /* 140 = adjtime */
386 compat(3,getpeername), /* 141 = old getpeername */
387 0, gethostid, /* 142 = gethostid */
388 1, sethostid, /* 143 = sethostid */
389 2, getrlimit, /* 144 = getrlimit */
390 2, setrlimit, /* 145 = setrlimit */
391 compat(2,killpg), /* 146 = old killpg */
392 0, setsid, /* 147 = setsid */
393 4, quotactl, /* 148 = quotactl */
394 compat(4,quota), /* 149 = old quota */
395 compat(3,getsockname), /* 150 = old getsockname */
396 0, nosys, /* 151 = nosys */
397 0, nosys, /* 152 = nosys */
398 0, nosys, /* 153 = nosys */
399 0, nosys, /* 154 = nosys */
400#ifdef NFS
401 5, nfssvc, /* 155 = nfssvc */
402#else
403 0, nosys, /* 155 = nosys */
404#endif
405 4, getdirentries, /* 156 = getdirentries */
406 2, statfs, /* 157 = statfs */
407 2, fstatfs, /* 158 = fstatfs */
408 0, nosys, /* 159 = nosys */
409#ifdef NFS
410 0, async_daemon, /* 160 = async_daemon */
411 2, getfh, /* 161 = getfh */
412#else
413 0, nosys, /* 160 = nosys */
414 0, nosys, /* 161 = nosys */
415#endif
8e860026
PR
416 2, getdomainname, /* 162 = getdomainname */
417 2, setdomainname, /* 163 = setdomainname */
d4b7d1a8 418 1, uname, /* 164 = uname */
15637ed4
RG
419 0, nosys, /* 165 = nosys */
420 0, nosys, /* 166 = nosys */
421 0, nosys, /* 167 = nosys */
422 0, nosys, /* 168 = nosys */
423 0, nosys, /* 169 = nosys */
424 0, nosys, /* 170 = nosys */
425#ifdef SYSVSHM
426 4, shmsys, /* 171 = shmsys */
427#else
428 0, nosys, /* 171 = nosys */
429#endif
430 0, nosys, /* 172 = nosys */
431 0, nosys, /* 173 = nosys */
432 0, nosys, /* 174 = nosys */
433 0, nosys, /* 175 = nosys */
434 0, nosys, /* 176 = nosys */
495867ae
GW
435#ifdef MACHVMCOMPAT
436 4, svm_allocate, /* 177 = vm_allocate */
437 3, svm_deallocate, /* 178 = vm_deallocate */
438 4, svm_inherit, /* 179 = vm_inherit */
439 5, svm_protect, /* 180 = vm_protect */
440#else
15637ed4
RG
441 0, nosys, /* 177 = nosys */
442 0, nosys, /* 178 = nosys */
443 0, nosys, /* 179 = nosys */
444 0, nosys, /* 180 = nosys */
495867ae 445#endif
15637ed4
RG
446 1, setgid, /* 181 = setgid */
447 1, setegid, /* 182 = setegid */
448 1, seteuid, /* 183 = seteuid */
449 0, nosys, /* 184 = nosys */
450 0, nosys, /* 185 = nosys */
451 0, nosys, /* 186 = nosys */
452 0, nosys, /* 187 = nosys */
453 0, nosys, /* 188 = nosys */
454 0, nosys, /* 189 = nosys */
455 0, nosys, /* 190 = nosys */
456};
457
458int nsysent = sizeof(sysent) / sizeof(sysent[0]);