]> git.saurik.com Git - apple/xnu.git/blame - bsd/kern/init_sysent.c
xnu-344.tar.gz
[apple/xnu.git] / bsd / kern / init_sysent.c
CommitLineData
1c79356b 1/*
9bccf70c 2 * Copyright (c) 1995-1999, 2000-2002 Apple Computer, Inc. All rights reserved.
1c79356b
A
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 */
1c79356b 22
9bccf70c 23#include <sys/appleapiopts.h>
1c79356b
A
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}
9bccf70c
A
34#define sysnofnl(fn,no) {no, 0, NO_FUNNEL, fn}
35
1c79356b
A
36/*
37 * definitions
38 */
39int nosys();
40int exit();
41int fork();
42int read();
43int write();
44int open();
45int close();
46int wait4();
47int link();
48int unlink();
49int chdir();
50int fchdir();
51int mknod();
52int chmod();
53int chown();
54int obreak();
55int getfsstat();
56#if COMPAT_GETFSSTAT
57int ogetfsstat();
58#endif
59int getpid();
60int mount();
61int unmount();
62int setuid();
63int getuid();
64int geteuid();
65int ptrace();
66int recvmsg();
67int sendmsg();
68int recvfrom();
69int accept();
70int getpeername();
71int getsockname();
72int access();
73int chflags();
74int fchflags();
75int sync();
76int kill();
77int getppid();
78int dup();
79int pipe();
80int getegid();
81int profil();
82int load_shared_file();
83int reset_shared_file();
9bccf70c 84int new_system_shared_regions();
1c79356b 85int ktrace();
1c79356b
A
86int sigaction();
87int getgid();
88int sigprocmask();
89int getlogin();
90int setlogin();
91int acct();
92int sigpending();
93int sigaltstack();
94int ioctl();
95int reboot();
96int revoke();
97int symlink();
98int readlink();
99int execve();
100int umask();
101int chroot();
102int msync();
103int vfork();
104int sbrk();
105int sstk();
106int ovadvise();
107int munmap();
108int mprotect();
109int madvise();
110int mincore();
111int getgroups();
112int setgroups();
113int getpgrp();
114int setpgid();
115int setitimer();
116int swapon();
117int getitimer();
118int getdtablesize();
119int dup2();
120int fcntl();
121int select();
122int fsync();
123int setpriority();
124int socket();
125int connect();
126int getpriority();
127int sigreturn();
128int bind();
129int setsockopt();
130int listen();
131int sigsuspend();
132#if TRACE
133int vtrace();
134#else
135#endif
136int gettimeofday();
9bccf70c
A
137#ifdef __ppc__
138int ppc_gettimeofday();
139#endif
1c79356b
A
140int getrusage();
141int getsockopt();
142int readv();
143int writev();
144int settimeofday();
145int fchown();
146int fchmod();
147int rename();
148int flock();
149int mkfifo();
150int sendto();
151int shutdown();
152int socketpair();
153int mkdir();
154int rmdir();
155int utimes();
9bccf70c 156int futimes();
1c79356b
A
157int adjtime();
158int setsid();
159int quotactl();
160int nfssvc();
161int statfs();
162int fstatfs();
163int getfh();
164int setgid();
165int setegid();
166int seteuid();
1c79356b
A
167int stat();
168int fstat();
169int lstat();
170int pathconf();
171int fpathconf();
172int getrlimit();
173int setrlimit();
174int getdirentries();
175int mmap();
176int nosys();
177int lseek();
178int truncate();
179int ftruncate();
180int __sysctl();
181int undelete();
182int setprivexec();
183int add_profil();
1c79356b
A
184
185int kdebug_trace();
186
187int mlock();
188int munlock();
189int minherit();
190int mlockall();
191int 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
198int ocreat();
199int olseek();
200int ostat();
201int olstat();
1c79356b
A
202int ofstat();
203int ogetkerninfo();
204int osmmap();
205int ogetpagesize();
206int ommap();
207int owait();
208int ogethostname();
209int osethostname();
210int oaccept();
211int osend();
212int orecv();
213int osigvec();
214int osigblock();
215int osigsetmask();
216int osigstack();
217int orecvmsg();
218int osendmsg();
1c79356b
A
219int orecvfrom();
220int osetreuid();
221int osetregid();
222int otruncate();
223int oftruncate();
224int ogetpeername();
225int ogethostid();
226int osethostid();
227int ogetrlimit();
228int osetrlimit();
229int okillpg();
230int oquota();
231int ogetsockname();
232int ogetdomainname();
233int osetdomainname();
234int owait3();
1c79356b 235int ogetdirentries();
1c79356b
A
236
237#if NETAT
238int ATsocket();
239int ATgetmsg();
240int ATputmsg();
241int ATPsndreq();
242int ATPsndrsp();
243int ATPgetreq();
244int ATPgetrsp();
245#endif /* NETAT */
246
247/* Calls for supporting HFS Semantics */
248
249int mkcomplex();
250int statv();
251int lstatv();
252int fstatv();
253int getattrlist();
254int setattrlist();
255int getdirentriesattr();
256int exchangedata();
257int checkuseraccess();
258int searchfs();
259int delete();
260int copyfile();
9bccf70c 261
1c79356b
A
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
271int watchevent();
272int waitevent();
273int modwatch();
274int fsctl();
275int semsys();
276int msgsys();
277int shmsys();
278int semctl();
279int semget();
280int semop();
281int semconfig();
282int msgctl();
283int msgget();
284int msgsnd();
285int msgrcv();
286int shmat();
287int shmctl();
288int shmdt();
289int shmget();
290int shm_open();
291int shm_unlink();
292int sem_open();
293int sem_close();
294int sem_unlink();
295int sem_wait();
296int sem_trywait();
297int sem_post();
298int sem_getvalue();
299int sem_init();
300int sem_destroy();
0b4e3aa0 301
9bccf70c
A
302int issetugid();
303int utrace();
304int pread();
305int pwrite();
306int getsid();
307int getpgid();
308
309int __pthread_kill();
310int sigwait();
311int pthread_sigmask();
312int __disable_threadsignal();
313
1c79356b
A
314/*
315 * System call switch table.
316 */
1c79356b
A
317
318struct 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 */
9bccf70c 364 syss(dup,1), /* 41 = dup */
1c79356b
A
365 syss(pipe,0), /* 42 = pipe */
366 sysp(getegid,0), /* 43 = getegid */
367 syss(profil,4), /* 44 = profil */
1c79356b 368 syss(ktrace,4), /* 45 = ktrace */
1c79356b
A
369 syss(sigaction,3), /* 46 = sigaction */
370 sysp(getgid,0), /* 47 = getgid */
9bccf70c 371 syss(sigprocmask,3), /* 48 = sigprocmask */
1c79356b
A
372 syss(getlogin,2), /* 49 = getlogin */
373 syss(setlogin,1), /* 50 = setlogin */
374 syss(acct,1), /* 51 = turn acct off/on */
9bccf70c 375 syss(sigpending,1), /* 52 = sigpending */
1c79356b
A
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 */
9bccf70c 420 sysnets(socket,3), /* 97 = socket */
1c79356b
A
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 */
9bccf70c
A
427 sysnets(bind,3), /* 104 = bind */
428 sysnets(setsockopt,5), /* 105 = setsockopt */
429 sysnets(listen,2), /* 106 = listen */
1c79356b
A
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 */
9bccf70c 435 compat(sigstack,2), /* 112 = sigstack */
1c79356b
A
436 comaptnet(recvmsg,3), /* 113 = recvmsg */
437 comaptnet(sendmsg,3), /* 114 = sendmsg */
438 syss(nosys,0), /* 115 = old vtrace */
9bccf70c
A
439#ifdef __ppc__
440 sysnofnl(ppc_gettimeofday,2), /* 116 = gettimeofday */
441#else
442 sysnofnl(gettimeofday,2), /* 116 = gettimeofday */
443#endif
1c79356b 444 sysp(getrusage,2), /* 117 = getrusage */
9bccf70c 445 sysnets(getsockopt,5), /* 118 = getsockopt */
1c79356b
A
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 */
9bccf70c
A
453 compat(setreuid,2), /* 126 = setreuid */
454 compat(setregid,2), /* 127 = setregid */
1c79356b 455 syss(rename,2), /* 128 = rename */
9bccf70c 456 compat(truncate,2), /* 129 = old truncate */
1c79356b
A
457 compat(ftruncate,2), /* 130 = ftruncate */
458 syss(flock,2), /* 131 = flock */
9bccf70c 459 syss(mkfifo,2), /* 132 = mkfifo */
1c79356b 460 sysnets(sendto,6), /* 133 = sendto */
9bccf70c
A
461 sysnets(shutdown,2), /* 134 = shutdown */
462 sysnets(socketpair,4), /* 135 = socketpair */
1c79356b
A
463 syss(mkdir,2), /* 136 = mkdir */
464 syss(rmdir,1), /* 137 = rmdir */
465 syss(utimes,2), /* 138 = utimes */
9bccf70c 466 syss(futimes,2), /* 139 = futimes */
1c79356b
A
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 */
9bccf70c 478 syss(getpgid,1), /* 151 = getpgid */
1c79356b 479 sysp(setprivexec,1),/* 152 = setprivexec */
9bccf70c
A
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
1c79356b
A
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 */
1c79356b
A
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 */
9bccf70c 516 syss(kdebug_trace,6), /* 180 */
1c79356b
A
517 syss(setgid,1), /* 181 */
518 syss(setegid,1), /* 182 */
9bccf70c 519 syss(seteuid,1), /* 183 */
1c79356b
A
520 syss(nosys,0), /* 184 = nosys */
521 syss(nosys,0), /* 185 = nosys */
522 syss(nosys,0), /* 186 = nosys */
523 syss(nosys,0), /* 187 = nosys */
1c79356b
A
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
9bccf70c 530 syss(getfsstat,3), /* 193 = getfsstat */
1c79356b
A
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 */
9bccf70c 543#ifdef DOUBLE_ALIGN_PARAMS
1c79356b 544 syss(lseek,5), /* 199 = lseek */
9bccf70c
A
545#else
546 syss(lseek,4), /* 199 = lseek */
547#endif
548#ifdef DOUBLE_ALIGN_PARAMS
1c79356b
A
549 syss(truncate,4), /* 200 = truncate */
550 syss(ftruncate,4), /* 201 = ftruncate */
9bccf70c
A
551#else
552 syss(truncate,3), /* 200 = truncate */
553 syss(ftruncate,3), /* 201 = ftruncate */
554#endif
1c79356b
A
555 syss(__sysctl,6), /* 202 = __sysctl */
556 sysp(mlock, 2), /* 203 = mlock */
557 syss(munlock, 2), /* 204 = munlock */
1c79356b 558 syss(undelete,1), /* 205 = undelete */
9bccf70c
A
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 */
1c79356b 570#else
1c79356b
A
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 */
9bccf70c 600#ifdef __APPLE_API_OBSOLETE
1c79356b 601 syss(checkuseraccess,6),/* 224 = HFS checkuseraccess check access to a file */
9bccf70c
A
602#else
603 syss(nosys,6),/* 224 = HFS checkuseraccess check access to a file */
604#endif /* __APPLE_API_OBSOLETE */
1c79356b 605 syss(searchfs,6), /* 225 = HFS searchfs to implement catalog searching */
9bccf70c
A
606 syss(delete,1), /* 226 = private delete (Carbon semantics) */
607 syss(copyfile,4), /* 227 = copyfile - orignally for AFP */
1c79356b
A
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 */
9bccf70c 622 syss(fsctl,4), /* 242 = fsctl */
1c79356b
A
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 */
9bccf70c 630 syss(minherit,3), /* 250 = minherit */
1c79356b
A
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 */
9bccf70c
A
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 */
1c79356b
A
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 */
9bccf70c 690 syss(getsid,1), /* 310 = getsid */
1c79356b
A
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 */
9bccf70c
A
704 syss(mlockall,1), /* 324 = mlockall*/
705 syss(munlockall,1), /* 325 = munlockall*/
1c79356b 706 syss(nosys,0), /* 326 */
0b4e3aa0 707 sysp(issetugid,0), /* 327 = issetugid */
9bccf70c
A
708 syss(__pthread_kill,2), /* 328 */
709 syss(pthread_sigmask,3), /* 329 */
710 syss(sigwait,2), /* 330 */
711 syss(__disable_threadsignal,1), /* 331 */
1c79356b
A
712 syss(nosys,0), /* 332 */
713 syss(nosys,0), /* 333 */
714 syss(nosys,0), /* 334 */
9bccf70c 715 syss(utrace,2), /* 335 = utrace */
1c79356b
A
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};
731int nsysent = sizeof(sysent) / sizeof(sysent[0]);