2 * Copyright (c) 1995-1999, 2000-2002 Apple Computer, Inc. All rights reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
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
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.
23 * @APPLE_LICENSE_HEADER_END@
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>
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}
85 int load_shared_file();
86 int reset_shared_file();
87 int new_system_shared_regions();
141 int ppc_gettimeofday();
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)
235 int ogetdomainname();
236 int osetdomainname();
238 int ogetdirentries();
250 /* Calls for supporting HFS Semantics */
258 int getdirentriesattr();
260 int checkuseraccess();
265 /* end of HFS calls */
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 */
312 int __pthread_kill();
314 int pthread_sigmask();
315 int __disable_threadsignal();
318 * System call switch table.
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 */
341 syss(ogetfsstat
, 3), /* 18 = ogetfsstat */
343 syss(getfsstat
, 3), /* 18 = getfsstat */
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 */
443 sysnofnl(ppc_gettimeofday
,2), /* 116 = gettimeofday */
445 sysnofnl(gettimeofday
,2), /* 116 = gettimeofday */
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 */
487 syss(pread
,4), /* 153 = pread */
488 syss(pwrite
,4), /* 154 = pwrite */
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 */
501 syss(quotactl
, 4), /* 165 = quotactl */
503 syss(nosys
, 0), /* 165 = not configured */
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 */
533 syss(getfsstat
,3), /* 193 = getfsstat */
535 syss(nosys
,0), /* 193 is unused */
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 */
543 syss(mmap
,7), /* 197 = mmap */
545 syss(nosys
,0), /* 198 = __syscall */
546 #ifdef DOUBLE_ALIGN_PARAMS
547 syss(lseek
,5), /* 199 = lseek */
549 syss(lseek
,4), /* 199 = lseek */
551 #ifdef DOUBLE_ALIGN_PARAMS
552 syss(truncate
,4), /* 200 = truncate */
553 syss(ftruncate
,4), /* 201 = ftruncate */
555 syss(truncate
,3), /* 200 = truncate */
556 syss(ftruncate
,3), /* 201 = ftruncate */
558 syss(__sysctl
,6), /* 202 = __sysctl */
559 sysp(mlock
, 2), /* 203 = mlock */
560 syss(munlock
, 2), /* 204 = munlock */
561 syss(undelete
,1), /* 205 = undelete */
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 */
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 */
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.
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 */
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 */
734 int nsysent
= sizeof(sysent
) / sizeof(sysent
[0]);