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