]> git.saurik.com Git - apple/xnu.git/blob - bsd/kern/init_sysent.c
xnu-344.49.tar.gz
[apple/xnu.git] / bsd / kern / init_sysent.c
1 /*
2 * Copyright (c) 1995-1999, 2000-2002 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25
26 #include <sys/appleapiopts.h>
27 #include <sys/param.h>
28 #include <sys/systm.h>
29 #include <sys/signal.h>
30 #include <sys/mount.h>
31
32 /* serial or parallel system call */
33 #define syss(fn,no) {no, 0, KERNEL_FUNNEL, fn}
34 #define sysp(fn,no) {no, 1, KERNEL_FUNNEL, fn}
35 #define sysnets(fn,no) {no, 0, NETWORK_FUNNEL, fn}
36 #define sysnetp(fn,no) {no, 1, NETWORK_FUNNEL, fn}
37 #define sysnofnl(fn,no) {no, 0, NO_FUNNEL, fn}
38
39 /*
40 * definitions
41 */
42 int nosys();
43 int exit();
44 int fork();
45 int read();
46 int write();
47 int open();
48 int close();
49 int wait4();
50 int link();
51 int unlink();
52 int chdir();
53 int fchdir();
54 int mknod();
55 int chmod();
56 int chown();
57 int obreak();
58 int getfsstat();
59 #if COMPAT_GETFSSTAT
60 int ogetfsstat();
61 #endif
62 int getpid();
63 int mount();
64 int unmount();
65 int setuid();
66 int getuid();
67 int geteuid();
68 int ptrace();
69 int recvmsg();
70 int sendmsg();
71 int recvfrom();
72 int accept();
73 int getpeername();
74 int getsockname();
75 int access();
76 int chflags();
77 int fchflags();
78 int sync();
79 int kill();
80 int getppid();
81 int dup();
82 int pipe();
83 int getegid();
84 int profil();
85 int load_shared_file();
86 int reset_shared_file();
87 int new_system_shared_regions();
88 int ktrace();
89 int sigaction();
90 int getgid();
91 int sigprocmask();
92 int getlogin();
93 int setlogin();
94 int acct();
95 int sigpending();
96 int sigaltstack();
97 int ioctl();
98 int reboot();
99 int revoke();
100 int symlink();
101 int readlink();
102 int execve();
103 int umask();
104 int chroot();
105 int msync();
106 int vfork();
107 int sbrk();
108 int sstk();
109 int ovadvise();
110 int munmap();
111 int mprotect();
112 int madvise();
113 int mincore();
114 int getgroups();
115 int setgroups();
116 int getpgrp();
117 int setpgid();
118 int setitimer();
119 int swapon();
120 int getitimer();
121 int getdtablesize();
122 int dup2();
123 int fcntl();
124 int select();
125 int fsync();
126 int setpriority();
127 int socket();
128 int connect();
129 int getpriority();
130 int sigreturn();
131 int bind();
132 int setsockopt();
133 int listen();
134 int sigsuspend();
135 #if TRACE
136 int vtrace();
137 #else
138 #endif
139 int gettimeofday();
140 #ifdef __ppc__
141 int ppc_gettimeofday();
142 #endif
143 int getrusage();
144 int getsockopt();
145 int readv();
146 int writev();
147 int settimeofday();
148 int fchown();
149 int fchmod();
150 int rename();
151 int flock();
152 int mkfifo();
153 int sendto();
154 int shutdown();
155 int socketpair();
156 int mkdir();
157 int rmdir();
158 int utimes();
159 int futimes();
160 int adjtime();
161 int setsid();
162 int quotactl();
163 int nfssvc();
164 int statfs();
165 int fstatfs();
166 int getfh();
167 int setgid();
168 int setegid();
169 int seteuid();
170 int stat();
171 int fstat();
172 int lstat();
173 int pathconf();
174 int fpathconf();
175 int getrlimit();
176 int setrlimit();
177 int getdirentries();
178 int mmap();
179 int nosys();
180 int lseek();
181 int truncate();
182 int ftruncate();
183 int __sysctl();
184 int undelete();
185 int setprivexec();
186 int add_profil();
187
188 int kdebug_trace();
189
190 int mlock();
191 int munlock();
192 int minherit();
193 int mlockall();
194 int munlockall();
195 #if COMPAT_43
196 #define compat(name,n) syss(__CONCAT(o,name),n)
197 #define compatp(name,n) sysp(__CONCAT(o,name),n)
198 #define comaptnet(name,n) sysnets(__CONCAT(o,name),n)
199 #define comaptnetp(name,n) sysnetp(__CONCAT(o,name),n)
200
201 int ocreat();
202 int olseek();
203 int ostat();
204 int olstat();
205 int ofstat();
206 int ogetkerninfo();
207 int osmmap();
208 int ogetpagesize();
209 int ommap();
210 int owait();
211 int ogethostname();
212 int osethostname();
213 int oaccept();
214 int osend();
215 int orecv();
216 int osigvec();
217 int osigblock();
218 int osigsetmask();
219 int osigstack();
220 int orecvmsg();
221 int osendmsg();
222 int orecvfrom();
223 int osetreuid();
224 int osetregid();
225 int otruncate();
226 int oftruncate();
227 int ogetpeername();
228 int ogethostid();
229 int osethostid();
230 int ogetrlimit();
231 int osetrlimit();
232 int okillpg();
233 int oquota();
234 int ogetsockname();
235 int ogetdomainname();
236 int osetdomainname();
237 int owait3();
238 int ogetdirentries();
239
240 #if NETAT
241 int ATsocket();
242 int ATgetmsg();
243 int ATputmsg();
244 int ATPsndreq();
245 int ATPsndrsp();
246 int ATPgetreq();
247 int ATPgetrsp();
248 #endif /* NETAT */
249
250 /* Calls for supporting HFS Semantics */
251
252 int mkcomplex();
253 int statv();
254 int lstatv();
255 int fstatv();
256 int getattrlist();
257 int setattrlist();
258 int getdirentriesattr();
259 int exchangedata();
260 int checkuseraccess();
261 int searchfs();
262 int delete();
263 int copyfile();
264
265 /* end of HFS calls */
266
267 #else /* COMPAT_43 */
268 #define compat(n, name) syss(nosys,0)
269 #define compatp(n, name) sysp(nosys,0)
270 #define comaptnet(n, name) sysnets(nosys,0)
271 #define comaptnetp(n, name) sysnetp(nosys,0)
272 #endif /* COMPAT_43 */
273
274 int watchevent();
275 int waitevent();
276 int modwatch();
277 int fsctl();
278 int semsys();
279 int msgsys();
280 int shmsys();
281 int semctl();
282 int semget();
283 int semop();
284 int semconfig();
285 int msgctl();
286 int msgget();
287 int msgsnd();
288 int msgrcv();
289 int shmat();
290 int shmctl();
291 int shmdt();
292 int shmget();
293 int shm_open();
294 int shm_unlink();
295 int sem_open();
296 int sem_close();
297 int sem_unlink();
298 int sem_wait();
299 int sem_trywait();
300 int sem_post();
301 int sem_getvalue();
302 int sem_init();
303 int sem_destroy();
304
305 int issetugid();
306 int utrace();
307 int pread();
308 int pwrite();
309 int getsid();
310 int getpgid();
311
312 int __pthread_kill();
313 int sigwait();
314 int pthread_sigmask();
315 int __disable_threadsignal();
316
317 /*
318 * System call switch table.
319 */
320
321 struct sysent sysent[] = {
322 syss(nosys,0), /* 0 = indir */
323 syss(exit,1), /* 1 = exit */
324 syss(fork,0), /* 2 = fork */
325 sysp(read,3), /* 3 = read */
326 sysp(write,3), /* 4 = write */
327 syss(open,3), /* 5 = open */
328 syss(close,1), /* 6 = close */
329 syss(wait4, 4), /* 7 = wait4 */
330 compat(creat,2), /* 8 = old creat */
331 syss(link,2), /* 9 = link */
332 syss(unlink,1), /* 10 = unlink */
333 syss(nosys, 0), /* 11 was obsolete execv */
334 syss(chdir,1), /* 12 = chdir */
335 syss(fchdir,1), /* 13 = fchdir */
336 syss(mknod,3), /* 14 = mknod */
337 syss(chmod,2), /* 15 = chmod */
338 syss(chown,3), /* 16 = chown; now 3 args */
339 syss(obreak,1), /* 17 = old break */
340 #if COMPAT_GETFSSTAT
341 syss(ogetfsstat, 3), /* 18 = ogetfsstat */
342 #else
343 syss(getfsstat, 3), /* 18 = getfsstat */
344 #endif
345 compat(lseek,3), /* 19 = old lseek */
346 sysp(getpid,0), /* 20 = getpid */
347 syss(nosys, 0), /* 21 was obsolete mount */
348 syss(nosys, 0), /* 22 was obsolete umount */
349 syss(setuid,1), /* 23 = setuid */
350 sysp(getuid,0), /* 24 = getuid */
351 sysp(geteuid,0), /* 25 = geteuid */
352 syss(ptrace,4), /* 26 = ptrace */
353 sysnets(recvmsg,3), /* 27 = recvmsg */
354 sysnets(sendmsg,3), /* 28 = sendmsg */
355 sysnets(recvfrom,6), /* 29 = recvfrom */
356 sysnets(accept,3), /* 30 = accept */
357 sysnets(getpeername,3), /* 31 = getpeername */
358 sysnets(getsockname,3), /* 32 = getsockname */
359 syss(access,2), /* 33 = access */
360 syss(chflags,2), /* 34 = chflags */
361 syss(fchflags,2), /* 35 = fchflags */
362 syss(sync,0), /* 36 = sync */
363 syss(kill,2), /* 37 = kill */
364 compat(stat,2), /* 38 = old stat */
365 sysp(getppid,0), /* 39 = getppid */
366 compat(lstat,2), /* 40 = old lstat */
367 syss(dup,1), /* 41 = dup */
368 syss(pipe,0), /* 42 = pipe */
369 sysp(getegid,0), /* 43 = getegid */
370 syss(profil,4), /* 44 = profil */
371 syss(ktrace,4), /* 45 = ktrace */
372 syss(sigaction,3), /* 46 = sigaction */
373 sysp(getgid,0), /* 47 = getgid */
374 syss(sigprocmask,3), /* 48 = sigprocmask */
375 syss(getlogin,2), /* 49 = getlogin */
376 syss(setlogin,1), /* 50 = setlogin */
377 syss(acct,1), /* 51 = turn acct off/on */
378 syss(sigpending,1), /* 52 = sigpending */
379 syss(sigaltstack,2), /* 53 = sigaltstack */
380 syss(ioctl,3), /* 54 = ioctl */
381 syss(reboot,2), /* 55 = reboot */
382 syss(revoke,1), /* 56 = revoke */
383 syss(symlink,2), /* 57 = symlink */
384 syss(readlink,3), /* 58 = readlink */
385 syss(execve,3), /* 59 = execve */
386 syss(umask,1), /* 60 = umask */
387 syss(chroot,1), /* 61 = chroot */
388 compat(fstat,2), /* 62 = old fstat */
389 syss(nosys,0), /* 63 = used internally, reserved */
390 compat(getpagesize,0), /* 64 = old getpagesize */
391 syss(msync,3), /* 65 = msync */
392 syss(vfork,0), /* 66 = vfork */
393 syss(nosys,0), /* 67 was obsolete vread */
394 syss(nosys,0), /* 68 was obsolete vwrite */
395 syss(sbrk,1), /* 69 = sbrk */
396 syss(sstk,1), /* 70 = sstk */
397 compat(smmap,6), /* 71 = old mmap */
398 syss(ovadvise,1), /* 72 = old vadvise */
399 syss(munmap,2), /* 73 = munmap */
400 syss(mprotect,3), /* 74 = mprotect */
401 syss(madvise,3), /* 75 = madvise */
402 syss(nosys,0), /* 76 was obsolete vhangup */
403 syss(nosys,0), /* 77 was obsolete vlimit */
404 syss(mincore,3), /* 78 = mincore */
405 sysp(getgroups,2), /* 79 = getgroups */
406 sysp(setgroups,2), /* 80 = setgroups */
407 sysp(getpgrp,0), /* 81 = getpgrp */
408 sysp(setpgid,2), /* 82 = setpgid */
409 syss(setitimer,3), /* 83 = setitimer */
410 compat(wait,0), /* 84 = old wait */
411 syss(swapon,1), /* 85 = swapon */
412 syss(getitimer,2), /* 86 = getitimer */
413 compat(gethostname,2), /* 87 = old gethostname */
414 compat(sethostname,2), /* 88 = old sethostname */
415 sysp(getdtablesize, 0), /* 89 getdtablesize */
416 syss(dup2,2), /* 90 = dup2 */
417 syss(nosys,0), /* 91 was obsolete getdopt */
418 syss(fcntl,3), /* 92 = fcntl */
419 syss(select,5), /* 93 = select */
420 syss(nosys,0), /* 94 was obsolete setdopt */
421 syss(fsync,1), /* 95 = fsync */
422 sysp(setpriority,3), /* 96 = setpriority */
423 sysnets(socket,3), /* 97 = socket */
424 sysnets(connect,3), /* 98 = connect */
425 comaptnet(accept,3), /* 99 = accept */
426 sysp(getpriority,2), /* 100 = getpriority */
427 comaptnet(send,4), /* 101 = old send */
428 comaptnet(recv,4), /* 102 = old recv */
429 syss(sigreturn,1), /* 103 = sigreturn */
430 sysnets(bind,3), /* 104 = bind */
431 sysnets(setsockopt,5), /* 105 = setsockopt */
432 sysnets(listen,2), /* 106 = listen */
433 syss(nosys,0), /* 107 was vtimes */
434 compat(sigvec,3), /* 108 = sigvec */
435 compat(sigblock,1), /* 109 = sigblock */
436 compat(sigsetmask,1), /* 110 = sigsetmask */
437 syss(sigsuspend,1), /* 111 = sigpause */
438 compat(sigstack,2), /* 112 = sigstack */
439 comaptnet(recvmsg,3), /* 113 = recvmsg */
440 comaptnet(sendmsg,3), /* 114 = sendmsg */
441 syss(nosys,0), /* 115 = old vtrace */
442 #ifdef __ppc__
443 sysnofnl(ppc_gettimeofday,2), /* 116 = gettimeofday */
444 #else
445 sysnofnl(gettimeofday,2), /* 116 = gettimeofday */
446 #endif
447 sysp(getrusage,2), /* 117 = getrusage */
448 sysnets(getsockopt,5), /* 118 = getsockopt */
449 syss(nosys,0), /* 119 = old resuba */
450 sysp(readv,3), /* 120 = readv */
451 sysp(writev,3), /* 121 = writev */
452 syss(settimeofday,2), /* 122 = settimeofday */
453 syss(fchown,3), /* 123 = fchown */
454 syss(fchmod,2), /* 124 = fchmod */
455 comaptnet(recvfrom,6), /* 125 = recvfrom */
456 compat(setreuid,2), /* 126 = setreuid */
457 compat(setregid,2), /* 127 = setregid */
458 syss(rename,2), /* 128 = rename */
459 compat(truncate,2), /* 129 = old truncate */
460 compat(ftruncate,2), /* 130 = ftruncate */
461 syss(flock,2), /* 131 = flock */
462 syss(mkfifo,2), /* 132 = mkfifo */
463 sysnets(sendto,6), /* 133 = sendto */
464 sysnets(shutdown,2), /* 134 = shutdown */
465 sysnets(socketpair,4), /* 135 = socketpair */
466 syss(mkdir,2), /* 136 = mkdir */
467 syss(rmdir,1), /* 137 = rmdir */
468 syss(utimes,2), /* 138 = utimes */
469 syss(futimes,2), /* 139 = futimes */
470 syss(adjtime,2), /* 140 = adjtime */
471 comaptnet(getpeername,3),/* 141 = getpeername */
472 compat(gethostid,0), /* 142 = old gethostid */
473 sysp(nosys,0), /* 143 = old sethostid */
474 compat(getrlimit,2), /* 144 = old getrlimit */
475 compat(setrlimit,2), /* 145 = old setrlimit */
476 compat(killpg,2), /* 146 = old killpg */
477 syss(setsid,0), /* 147 = setsid */
478 syss(nosys,0), /* 148 was setquota */
479 syss(nosys,0), /* 149 was qquota */
480 comaptnet(getsockname,3),/* 150 = getsockname */
481 syss(getpgid,1), /* 151 = getpgid */
482 sysp(setprivexec,1),/* 152 = setprivexec */
483 #ifdef DOUBLE_ALIGN_PARAMS
484 syss(pread,5), /* 153 = pread */
485 syss(pwrite,5), /* 154 = pwrite */
486 #else
487 syss(pread,4), /* 153 = pread */
488 syss(pwrite,4), /* 154 = pwrite */
489 #endif
490 syss(nfssvc,2), /* 155 = nfs_svc */
491 compat(getdirentries,4), /* 156 = old getdirentries */
492 syss(statfs, 2), /* 157 = statfs */
493 syss(fstatfs, 2), /* 158 = fstatfs */
494 syss(unmount, 2), /* 159 = unmount */
495 syss(nosys,0), /* 160 was async_daemon */
496 syss(getfh,2), /* 161 = get file handle */
497 compat(getdomainname,2), /* 162 = getdomainname */
498 compat(setdomainname,2), /* 163 = setdomainname */
499 syss(nosys,0), /* 164 */
500 #if QUOTA
501 syss(quotactl, 4), /* 165 = quotactl */
502 #else QUOTA
503 syss(nosys, 0), /* 165 = not configured */
504 #endif /* QUOTA */
505 syss(nosys,0), /* 166 was exportfs */
506 syss(mount, 4), /* 167 = mount */
507 syss(nosys,0), /* 168 was ustat */
508 syss(nosys,0), /* 169 = nosys */
509 syss(nosys,0), /* 170 was table */
510 compat(wait3,3), /* 171 = old wait3 */
511 syss(nosys,0), /* 172 was rpause */
512 syss(nosys,0), /* 173 = nosys */
513 syss(nosys,0), /* 174 was getdents */
514 syss(nosys,0), /* 175 was gc_control */
515 syss(add_profil,4), /* 176 = add_profil */
516 syss(nosys,0), /* 177 */
517 syss(nosys,0), /* 178 */
518 syss(nosys,0), /* 179 */
519 syss(kdebug_trace,6), /* 180 */
520 syss(setgid,1), /* 181 */
521 syss(setegid,1), /* 182 */
522 syss(seteuid,1), /* 183 */
523 syss(nosys,0), /* 184 = nosys */
524 syss(nosys,0), /* 185 = nosys */
525 syss(nosys,0), /* 186 = nosys */
526 syss(nosys,0), /* 187 = nosys */
527 syss(stat,2), /* 188 = stat */
528 syss(fstat,2), /* 189 = fstat */
529 syss(lstat,2), /* 190 = lstat */
530 syss(pathconf,2), /* 191 = pathconf */
531 syss(fpathconf,2), /* 192 = fpathconf */
532 #if COMPAT_GETFSSTAT
533 syss(getfsstat,3), /* 193 = getfsstat */
534 #else
535 syss(nosys,0), /* 193 is unused */
536 #endif
537 syss(getrlimit,2), /* 194 = getrlimit */
538 syss(setrlimit,2), /* 195 = setrlimit */
539 syss(getdirentries,4), /* 196 = getdirentries */
540 #ifdef DOUBLE_ALIGN_PARAMS
541 syss(mmap,8), /* 197 = mmap */
542 #else
543 syss(mmap,7), /* 197 = mmap */
544 #endif
545 syss(nosys,0), /* 198 = __syscall */
546 #ifdef DOUBLE_ALIGN_PARAMS
547 syss(lseek,5), /* 199 = lseek */
548 #else
549 syss(lseek,4), /* 199 = lseek */
550 #endif
551 #ifdef DOUBLE_ALIGN_PARAMS
552 syss(truncate,4), /* 200 = truncate */
553 syss(ftruncate,4), /* 201 = ftruncate */
554 #else
555 syss(truncate,3), /* 200 = truncate */
556 syss(ftruncate,3), /* 201 = ftruncate */
557 #endif
558 syss(__sysctl,6), /* 202 = __sysctl */
559 sysp(mlock, 2), /* 203 = mlock */
560 syss(munlock, 2), /* 204 = munlock */
561 syss(undelete,1), /* 205 = undelete */
562 #if NETAT
563 sysnets(ATsocket,1), /* 206 = ATsocket */
564 sysnets(ATgetmsg,4), /* 207 = ATgetmsg*/
565 sysnets(ATputmsg,4), /* 208 = ATputmsg*/
566 sysnets(ATPsndreq,4), /* 209 = ATPsndreq*/
567 sysnets(ATPsndrsp,4), /* 210 = ATPsndrsp*/
568 sysnets(ATPgetreq,3), /* 211 = ATPgetreq*/
569 sysnets(ATPgetrsp,2), /* 212 = ATPgetrsp*/
570 syss(nosys,0), /* 213 = Reserved for AppleTalk */
571 syss(nosys,0), /* 214 = Reserved for AppleTalk */
572 syss(nosys,0), /* 215 = Reserved for AppleTalk */
573 #else
574 syss(nosys,0), /* 206 = Reserved for AppleTalk */
575 syss(nosys,0), /* 207 = Reserved for AppleTalk */
576 syss(nosys,0), /* 208 = Reserved for AppleTalk */
577 syss(nosys,0), /* 209 = Reserved for AppleTalk */
578 syss(nosys,0), /* 210 = Reserved for AppleTalk */
579 syss(nosys,0), /* 211 = Reserved for AppleTalk */
580 syss(nosys,0), /* 212 = Reserved for AppleTalk */
581 syss(nosys,0), /* 213 = Reserved for AppleTalk */
582 syss(nosys,0), /* 214 = Reserved for AppleTalk */
583 syss(nosys,0), /* 215 = Reserved for AppleTalk */
584 #endif /* NETAT */
585
586 /*
587 * System Calls 216 - 230 are reserved for calls to support HFS/HFS Plus
588 * file system semantics. Currently, we only use 215-227. The rest is
589 * for future expansion in anticipation of new MacOS APIs for HFS Plus.
590 * These calls are not conditionalized becuase while they are specific
591 * to HFS semantics, they are not specific to the HFS filesystem.
592 * We expect all filesystems to recognize the call and report that it is
593 * not supported or to actually implement it.
594 */
595 syss(nosys,3), /* 216 = HFS make complex file call (multipel forks */
596 syss(nosys,2), /* 217 = HFS statv extended stat call for HFS */
597 syss(nosys,2), /* 218 = HFS lstatv extended lstat call for HFS */
598 syss(nosys,2), /* 219 = HFS fstatv extended fstat call for HFS */
599 syss(getattrlist,5), /* 220 = HFS getarrtlist get attribute list cal */
600 syss(setattrlist,5), /* 221 = HFS setattrlist set attribute list */
601 syss(getdirentriesattr,8), /* 222 = HFS getdirentriesattr get directory attributes */
602 syss(exchangedata,3), /* 223 = HFS exchangedata exchange file contents */
603 #ifdef __APPLE_API_OBSOLETE
604 syss(checkuseraccess,6),/* 224 = HFS checkuseraccess check access to a file */
605 #else
606 syss(nosys,6),/* 224 = HFS checkuseraccess check access to a file */
607 #endif /* __APPLE_API_OBSOLETE */
608 syss(searchfs,6), /* 225 = HFS searchfs to implement catalog searching */
609 syss(delete,1), /* 226 = private delete (Carbon semantics) */
610 syss(copyfile,4), /* 227 = copyfile - orignally for AFP */
611 syss(nosys,0), /* 228 */
612 syss(nosys,0), /* 229 */
613 syss(nosys,0), /* 230 */
614 sysnets(watchevent,2), /* 231 */
615 sysnets(waitevent,2), /* 232 */
616 sysnets(modwatch,2), /* 233 */
617 syss(nosys,0), /* 234 */
618 syss(nosys,0), /* 235 */
619 syss(nosys,0), /* 236 */
620 syss(nosys,0), /* 237 */
621 syss(nosys,0), /* 238 */
622 syss(nosys,0), /* 239 */
623 syss(nosys,0), /* 240 */
624 syss(nosys,0), /* 241 */
625 syss(fsctl,4), /* 242 = fsctl */
626 syss(nosys,0), /* 243 */
627 syss(nosys,0), /* 244 */
628 syss(nosys,0), /* 245 */
629 syss(nosys,0), /* 246 */
630 syss(nosys,0), /* 247 */
631 syss(nosys,0), /* 248 */
632 syss(nosys,0), /* 249 */
633 syss(minherit,3), /* 250 = minherit */
634 syss(semsys,5), /* 251 = semsys */
635 syss(msgsys,6), /* 252 = msgsys */
636 syss(shmsys,4), /* 253 = shmsys */
637 syss(semctl,4), /* 254 = semctl */
638 syss(semget,3), /* 255 = semget */
639 syss(semop,3), /* 256 = semop */
640 syss(semconfig,1), /* 257 = semconfig */
641 syss(msgctl,3), /* 258 = msgctl */
642 syss(msgget,2), /* 259 = msgget */
643 syss(msgsnd,4), /* 260 = msgsnd */
644 syss(msgrcv,5), /* 261 = msgrcv */
645 syss(shmat,3), /* 262 = shmat */
646 syss(shmctl,3), /* 263 = shmctl */
647 syss(shmdt,1), /* 264 = shmdt */
648 syss(shmget,3), /* 265 = shmget */
649 syss(shm_open,3), /* 266 = shm_open */
650 syss(shm_unlink,1), /* 267 = shm_unlink */
651 syss(sem_open,4), /* 268 = sem_open */
652 syss(sem_close,1), /* 269 = sem_close */
653 syss(sem_unlink,1), /* 270 = sem_unlink */
654 syss(sem_wait,1), /* 271 = sem_wait */
655 syss(sem_trywait,1), /* 272 = sem_trywait */
656 syss(sem_post,1), /* 273 = sem_post */
657 syss(sem_getvalue,2), /* 274 = sem_getvalue */
658 syss(sem_init,3), /* 275 = sem_init */
659 syss(sem_destroy,1), /* 276 = sem_destroy */
660 syss(nosys,0), /* 277 */
661 syss(nosys,0), /* 278 */
662 syss(nosys,0), /* 279 */
663 syss(nosys,0), /* 280 */
664 syss(nosys,0), /* 281 */
665 syss(nosys,0), /* 282 */
666 syss(nosys,0), /* 283 */
667 syss(nosys,0), /* 284 */
668 syss(nosys,0), /* 285 */
669 syss(nosys,0), /* 286 */
670 syss(nosys,0), /* 287 */
671 syss(nosys,0), /* 288 */
672 syss(nosys,0), /* 289 */
673 syss(nosys,0), /* 290 */
674 syss(nosys,0), /* 291 */
675 syss(nosys,0), /* 292 */
676 syss(nosys,0), /* 293 */
677 syss(nosys,0), /* 294 */
678 syss(nosys,0), /* 295 */
679 syss(load_shared_file,7), /* 296 = load_shared_file */
680 syss(reset_shared_file,3), /* 297 = reset_shared_file */
681 syss(new_system_shared_regions,0), /* 298 = new_system_shared_regions */
682 syss(nosys,0), /* 299 */
683 syss(nosys,0), /* 300 */
684 syss(nosys,0), /* 301 */
685 syss(nosys,0), /* 302 */
686 syss(nosys,0), /* 303 */
687 syss(nosys,0), /* 304 */
688 syss(nosys,0), /* 305 */
689 syss(nosys,0), /* 306 */
690 syss(nosys,0), /* 307 */
691 syss(nosys,0), /* 308 */
692 syss(nosys,0), /* 309 */
693 syss(getsid,1), /* 310 = getsid */
694 syss(nosys,0), /* 311 */
695 syss(nosys,0), /* 312 */
696 syss(nosys,0), /* 313 */
697 syss(nosys,0), /* 314 */
698 syss(nosys,0), /* 315 */
699 syss(nosys,0), /* 316 */
700 syss(nosys,0), /* 317 */
701 syss(nosys,0), /* 318 */
702 syss(nosys,0), /* 319 */
703 syss(nosys,0), /* 320 */
704 syss(nosys,0), /* 321 */
705 syss(nosys,0), /* 322 */
706 syss(nosys,0), /* 323 */
707 syss(mlockall,1), /* 324 = mlockall*/
708 syss(munlockall,1), /* 325 = munlockall*/
709 syss(nosys,0), /* 326 */
710 sysp(issetugid,0), /* 327 = issetugid */
711 syss(__pthread_kill,2), /* 328 */
712 syss(pthread_sigmask,3), /* 329 */
713 syss(sigwait,2), /* 330 */
714 syss(__disable_threadsignal,1), /* 331 */
715 syss(nosys,0), /* 332 */
716 syss(nosys,0), /* 333 */
717 syss(nosys,0), /* 334 */
718 syss(utrace,2), /* 335 = utrace */
719 syss(nosys,0), /* 336 */
720 syss(nosys,0), /* 337 */
721 syss(nosys,0), /* 338 */
722 syss(nosys,0), /* 339 */
723 syss(nosys,0), /* 340 */
724 syss(nosys,0), /* 341 */
725 syss(nosys,0), /* 342 */
726 syss(nosys,0), /* 343 */
727 syss(nosys,0), /* 344 */
728 syss(nosys,0), /* 345 */
729 syss(nosys,0), /* 346 */
730 syss(nosys,0), /* 347 */
731 syss(nosys,0), /* 348 */
732 syss(nosys,0) /* 349 */
733 };
734 int nsysent = sizeof(sysent) / sizeof(sysent[0]);