Add FreeBSD support

This commit is contained in:
Wichert Akkerman 2000-09-01 21:09:08 +00:00
parent bf79f2e16b
commit f75a9ab431
8 changed files with 1899 additions and 0 deletions

26
README-freebsd Normal file
View File

@ -0,0 +1,26 @@
Here's a preliminary port of strace to FreeBSD.
Here are some notes about it :
- This couldn't have been done without the sources of the truss
utility by Sean Eric Fagan, which were of great help.
- The tracing mecanism used by FreeBD is a lot like the SVR4 one, so
this port shares a lot of code with the SVR4 port, including the
akward event loop when tracing multiple processes.
- This works for i386 binaries, although support for alpha processor
should be quite straight forward, but I do not have an alpha to
test it on.
- Tracing linux binaries is not supported yet, but should be possible
with some work.
- There are some issues with following forks, and only a few FreeBSD
specific syscalls are decoded right now.
- This was tested on FreeBSD 4.0. I believe the tracing interface is
present since at least FreeBSD 3.0, so it "should" work on all
latest releases. I have no idea for other BSDs, though.
Gaël Roualland <gael.roualland@iname.com>

1
freebsd/i386/.cvsignore Normal file
View File

@ -0,0 +1 @@
Makefile

58
freebsd/i386/Makefile.in Normal file
View File

@ -0,0 +1,58 @@
#
# $Id$
#
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
CPP = @CPP@
SHELL = /bin/sh
DEFS = @DEFS@
LDLIBS = @LIBS@
CFLAGS = -g
LDFLAGS = -g
WARNFLAGS = @WARNFLAGS@
CPPFLAGS =
INCLUDES = -I. -I.. -I$(srcdir)
includedir = @includedir@
all: ioctlent.h errnoent.h signalent.h syscallent.h
ioctlent.raw: $(srcdir)/../ioctlent.sh
$(SHELL) $(srcdir)/../ioctlent.sh $(includedir) >$@
ioctlent.h: ioctlent.raw ioctlsort
./ioctlsort >$@
ioctlsort: ioctlsort.o
$(CC) $(LDFLAGS) ioctlsort.o -o ioctlsort
ioctlsort.o: $(srcdir)/../../ioctlsort.c
$(CC) $(WARNFLAGS) $(DEFS) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $(srcdir)/../../ioctlsort.c
ioctlsort.o: ioctlent.raw
errnoent.h: $(srcdir)/../../errnoent.sh $(includedir)/errno.h
$(SHELL) $(srcdir)/../../errnoent.sh $(includedir)/errno.h >$@
signalent.h: $(srcdir)/../../signalent.sh $(includedir)/sys/signal.h
$(SHELL) $(srcdir)/../../signalent.sh $(includedir)/sys/signal.h >$@
syscallent.h: $(srcdir)/../syscalls.pl $(srcdir)/../syscalls.cat $(srcdir)/../syscalls.print /usr/src/sys/kern/syscalls.master
perl $(srcdir)/../syscalls.pl /usr/src/sys/kern/syscalls.master $(srcdir)/../syscalls.print $(srcdir)/../syscalls.cat >$@
syscall.h: syscallent.h
clean:
rm -f ioctlent.c *.raw *.tmp *.o ioctlsort
distclean: clean
rm -f Makefile
maintainer-clean: distclean
rm -f ioctlent.h errnoent.h signalent.h dummy.h syscall.h syscallent.h

87
freebsd/i386/errnoent.h Normal file
View File

@ -0,0 +1,87 @@
"ERRNO_0", /* 0 */
"EPERM", /* 1 */
"ENOENT", /* 2 */
"ESRCH", /* 3 */
"EINTR", /* 4 */
"EIO", /* 5 */
"ENXIO", /* 6 */
"E2BIG", /* 7 */
"ENOEXEC", /* 8 */
"EBADF", /* 9 */
"ECHILD", /* 10 */
"EDEADLK", /* 11 */
"ENOMEM", /* 12 */
"EACCES", /* 13 */
"EFAULT", /* 14 */
"ENOTBLK", /* 15 */
"EBUSY", /* 16 */
"EEXIST", /* 17 */
"EXDEV", /* 18 */
"ENODEV", /* 19 */
"ENOTDIR", /* 20 */
"EISDIR", /* 21 */
"EINVAL", /* 22 */
"ENFILE", /* 23 */
"EMFILE", /* 24 */
"ENOTTY", /* 25 */
"ETXTBSY", /* 26 */
"EFBIG", /* 27 */
"ENOSPC", /* 28 */
"ESPIPE", /* 29 */
"EROFS", /* 30 */
"EMLINK", /* 31 */
"EPIPE", /* 32 */
"EDOM", /* 33 */
"ERANGE", /* 34 */
"EAGAIN", /* 35 */
"EINPROGRESS", /* 36 */
"EALREADY", /* 37 */
"ENOTSOCK", /* 38 */
"EDESTADDRREQ", /* 39 */
"EMSGSIZE", /* 40 */
"EPROTOTYPE", /* 41 */
"ENOPROTOOPT", /* 42 */
"EPROTONOSUPPORT", /* 43 */
"ESOCKTNOSUPPORT", /* 44 */
"EOPNOTSUPP", /* 45 */
"EPFNOSUPPORT", /* 46 */
"EAFNOSUPPORT", /* 47 */
"EADDRINUSE", /* 48 */
"EADDRNOTAVAIL", /* 49 */
"ENETDOWN", /* 50 */
"ENETUNREACH", /* 51 */
"ENETRESET", /* 52 */
"ECONNABORTED", /* 53 */
"ECONNRESET", /* 54 */
"ENOBUFS", /* 55 */
"EISCONN", /* 56 */
"ENOTCONN", /* 57 */
"ESHUTDOWN", /* 58 */
"ETOOMANYREFS", /* 59 */
"ETIMEDOUT", /* 60 */
"ECONNREFUSED", /* 61 */
"ELOOP", /* 62 */
"ENAMETOOLONG", /* 63 */
"EHOSTDOWN", /* 64 */
"EHOSTUNREACH", /* 65 */
"ENOTEMPTY", /* 66 */
"EPROCLIM", /* 67 */
"EUSERS", /* 68 */
"EDQUOT", /* 69 */
"ESTALE", /* 70 */
"EREMOTE", /* 71 */
"EBADRPC", /* 72 */
"ERPCMISMATCH", /* 73 */
"EPROGUNAVAIL", /* 74 */
"EPROGMISMATCH", /* 75 */
"EPROCUNAVAIL", /* 76 */
"ENOLCK", /* 77 */
"ENOSYS", /* 78 */
"EFTYPE", /* 79 */
"EAUTH", /* 80 */
"ENEEDAUTH", /* 81 */
"EIDRM", /* 82 */
"ENOMSG", /* 83 */
"EOVERFLOW", /* 84 */
"ECANCELED", /* 85 */
"ELAST", /* 86 */

1056
freebsd/i386/ioctlent.h Normal file

File diff suppressed because it is too large Load Diff

32
freebsd/i386/signalent.h Normal file
View File

@ -0,0 +1,32 @@
"SIG_0", /* 0 */
"SIGHUP", /* 1 */
"SIGINT", /* 2 */
"SIGQUIT", /* 3 */
"SIGILL", /* 4 */
"SIGTRAP", /* 5 */
"SIGABRT", /* 6 */
"SIGEMT", /* 7 */
"SIGFPE", /* 8 */
"SIGKILL", /* 9 */
"SIGBUS", /* 10 */
"SIGSEGV", /* 11 */
"SIGSYS", /* 12 */
"SIGPIPE", /* 13 */
"SIGALRM", /* 14 */
"SIGTERM", /* 15 */
"SIGURG", /* 16 */
"SIGSTOP", /* 17 */
"SIGTSTP", /* 18 */
"SIGCONT", /* 19 */
"SIGCHLD", /* 20 */
"SIGTTIN", /* 21 */
"SIGTTOU", /* 22 */
"SIGIO", /* 23 */
"SIGXCPU", /* 24 */
"SIGXFSZ", /* 25 */
"SIGVTALRM", /* 26 */
"SIGPROF", /* 27 */
"SIGWINCH", /* 28 */
"SIGINFO", /* 29 */
"SIGUSR1", /* 30 */
"SIGUSR2", /* 31 */

273
freebsd/i386/syscall.h Normal file
View File

@ -0,0 +1,273 @@
/*
* Automatically generated by ./../syscalls.pl on Fri Sep 1 17:43:23 2000
*/
#define sys_syscall printargs
int sys_exit();
int sys_fork();
int sys_read();
int sys_write();
int sys_open();
int sys_close();
int sys_wait4();
int sys_creat();
int sys_link();
int sys_unlink();
int sys_chdir();
int sys_fchdir();
int sys_mknod();
int sys_chmod();
int sys_chown();
#define sys_break printargs
#define sys_getfsstat printargs
int sys_lseek();
int sys_getpid();
#define sys_mount printargs
#define sys_unmount printargs
#define sys_setuid printargs
int sys_getuid();
#define sys_geteuid printargs
int sys_ptrace();
int sys_recvmsg();
int sys_sendmsg();
int sys_recvfrom();
int sys_accept();
int sys_getpeername();
int sys_getsockname();
int sys_access();
int sys_chflags();
int sys_fchflags();
#define sys_sync printargs
int sys_kill();
int sys_stat();
#define sys_getppid printargs
int sys_lstat();
int sys_dup();
int sys_pipe();
#define sys_getegid printargs
#define sys_profil printargs
#define sys_ktrace printargs
int sys_sigaction();
int sys_getgid();
int sys_sigprocmask();
#define sys_getlogin printargs
#define sys_setlogin printargs
#define sys_acct printargs
int sys_sigpending();
int sys_sigaltstack();
int sys_ioctl();
#define sys_reboot printargs
#define sys_revoke printargs
int sys_symlink();
int sys_readlink();
int sys_execve();
int sys_umask();
int sys_chroot();
int sys_fstat();
#define sys_getkerninfo printargs
int sys_getpagesize();
int sys_msync();
int sys_vfork();
int sys_sbrk();
#define sys_sstk printargs
int sys_mmap();
#define sys_vadvise printargs
int sys_munmap();
int sys_mprotect();
#define sys_madvise printargs
int sys_mincore();
int sys_getgroups();
int sys_setgroups();
int sys_getpgrp();
int sys_setpgid();
int sys_setitimer();
int sys_wait();
#define sys_swapon printargs
int sys_getitimer();
int sys_gethostname();
int sys_sethostname();
int sys_getdtablesize();
int sys_dup2();
int sys_fcntl();
int sys_select();
int sys_fsync();
int sys_setpriority();
int sys_socket();
int sys_connect();
int sys_accept();
int sys_getpriority();
int sys_send();
int sys_recv();
#define sys_sigreturn printargs
int sys_bind();
int sys_setsockopt();
int sys_listen();
int sys_sigvec();
int sys_sigblock();
int sys_sigsetmask();
int sys_sigsuspend();
int sys_sigstack();
int sys_recvmsg();
int sys_sendmsg();
int sys_gettimeofday();
int sys_getrusage();
int sys_getsockopt();
int sys_readv();
int sys_writev();
int sys_settimeofday();
int sys_fchown();
int sys_fchmod();
int sys_recvfrom();
int sys_setreuid();
int sys_setregid();
int sys_rename();
int sys_truncate();
int sys_ftruncate();
int sys_flock();
int sys_mkfifo();
int sys_sendto();
int sys_shutdown();
int sys_socketpair();
int sys_mkdir();
int sys_rmdir();
int sys_utimes();
int sys_adjtime();
int sys_getpeername();
int sys_gethostid();
#define sys_sethostid printargs
int sys_getrlimit();
int sys_setrlimit();
int sys_killpg();
int sys_setsid();
int sys_quotactl();
#define sys_quota printargs
int sys_getsockname();
#define sys_nfssvc printargs
int sys_getdirentries();
int sys_statfs();
int sys_fstatfs();
#define sys_getfh printargs
int sys_getdomainname();
int sys_setdomainname();
int sys_uname();
#define sys_sysarch printargs
#define sys_rtprio printargs
#define sys_semsys printargs
#define sys_msgsys printargs
#define sys_shmsys printargs
int sys_pread();
int sys_pwrite();
#define sys_ntp_adjtime printargs
#define sys_setgid printargs
#define sys_setegid printargs
#define sys_seteuid printargs
int sys_stat();
int sys_fstat();
int sys_lstat();
int sys_pathconf();
int sys_fpathconf();
int sys_getrlimit();
int sys_setrlimit();
int sys_getdirentries();
int sys_mmap();
#define sys___syscall printargs
int sys_lseek();
int sys_truncate();
int sys_ftruncate();
int sys___sysctl();
#define sys_mlock printargs
#define sys_munlock printargs
#define sys_undelete printargs
#define sys_futimes printargs
int sys_getpgid();
int sys_poll();
#define sys___semctl printargs
int sys_semget();
int sys_semop();
#define sys_semconfig printargs
int sys_msgctl();
int sys_msgget();
int sys_msgsnd();
int sys_msgrcv();
int sys_shmat();
int sys_shmctl();
int sys_shmdt();
int sys_shmget();
#define sys_clock_gettime printargs
#define sys_clock_settime printargs
#define sys_clock_getres printargs
#define sys_nanosleep printargs
#define sys_minherit printargs
#define sys_rfork printargs
#define sys_openbsd_poll printargs
#define sys_issetugid printargs
#define sys_lchown printargs
int sys_getdents();
#define sys_lchmod printargs
#define sys_netbsd_lchown printargs
#define sys_lutimes printargs
#define sys_netbsd_msync printargs
#define sys_nstat printargs
#define sys_nfstat printargs
#define sys_nlstat printargs
#define sys_fhstatfs printargs
#define sys_fhopen printargs
#define sys_fhstat printargs
#define sys_modnext printargs
#define sys_modstat printargs
#define sys_modfnext printargs
#define sys_modfind printargs
#define sys_kldload printargs
#define sys_kldunload printargs
#define sys_kldfind printargs
#define sys_kldnext printargs
#define sys_kldstat printargs
#define sys_kldfirstmod printargs
int sys_getsid();
int sys_setresuid();
int sys_setresgid();
#define sys_aio_return printargs
#define sys_aio_suspend printargs
#define sys_aio_cancel printargs
#define sys_aio_error printargs
#define sys_aio_read printargs
#define sys_aio_write printargs
#define sys_lio_listio printargs
#define sys_yield printargs
#define sys_thr_sleep printargs
#define sys_thr_wakeup printargs
#define sys_mlockall printargs
#define sys_munlockall printargs
int sys___getcwd();
#define sys_sched_setparam printargs
#define sys_sched_getparam printargs
#define sys_sched_setscheduler printargs
#define sys_sched_getscheduler printargs
#define sys_sched_yield printargs
#define sys_sched_get_priority_max printargs
#define sys_sched_get_priority_min printargs
#define sys_sched_rr_get_interval printargs
#define sys_utrace printargs
int sys_sendfile();
#define sys_kldsym printargs
#define sys_jail printargs
int sys_sigprocmask();
int sys_sigsuspend();
int sys_sigaction();
int sys_sigpending();
#define sys_sigreturn printargs
#define sys___acl_get_file printargs
#define sys___acl_set_file printargs
#define sys___acl_get_fd printargs
#define sys___acl_set_fd printargs
#define sys___acl_delete_file printargs
#define sys___acl_delete_fd printargs
#define sys___acl_aclcheck_file printargs
#define sys___acl_aclcheck_fd printargs
#define sys_extattrctl printargs
#define sys_extattr_set_file printargs
#define sys_extattr_get_file printargs
#define sys_extattr_delete_file printargs
#define sys_aio_waitcomplete printargs
#define sys_getresuid printargs
#define sys_getresgid printargs

366
freebsd/i386/syscallent.h Normal file
View File

@ -0,0 +1,366 @@
/*
* Automatically generated by ./../syscalls.pl on Fri Sep 1 17:43:23 2000
*/
{ 1, 0, sys_syscall, "syscall" }, /* 0 */
{ 1, 0, sys_exit, "exit" }, /* 1 */
{ 1, TP, sys_fork, "fork" }, /* 2 */
{ 3, 0, sys_read, "read" }, /* 3 */
{ 3, 0, sys_write, "write" }, /* 4 */
{ 3, TF, sys_open, "open" }, /* 5 */
{ 1, TF, sys_close, "close" }, /* 6 */
{ 4, TP, sys_wait4, "wait4" }, /* 7 */
{ 2, TF, sys_creat, "creat" }, /* 8 */
{ 2, TF, sys_link, "link" }, /* 9 */
{ 1, TF, sys_unlink, "unlink" }, /* 10 */
{ -1, 0, printargs, "SYS_11" }, /* 11 */
{ 1, TF, sys_chdir, "chdir" }, /* 12 */
{ 1, TF, sys_fchdir, "fchdir" }, /* 13 */
{ 3, TF, sys_mknod, "mknod" }, /* 14 */
{ 2, TF, sys_chmod, "chmod" }, /* 15 */
{ 3, TF, sys_chown, "chown" }, /* 16 */
{ 1, 0, sys_break, "break" }, /* 17 */
{ 3, 0, sys_getfsstat, "getfsstat" }, /* 18 */
{ 3, 0, sys_lseek, "lseek" }, /* 19 */
{ 1, 0, sys_getpid, "getpid" }, /* 20 */
{ 4, TF, sys_mount, "mount" }, /* 21 */
{ 2, TF, sys_unmount, "unmount" }, /* 22 */
{ 1, 0, sys_setuid, "setuid" }, /* 23 */
{ 1, 0, sys_getuid, "getuid" }, /* 24 */
{ 1, 0, sys_geteuid, "geteuid" }, /* 25 */
{ 4, 0, sys_ptrace, "ptrace" }, /* 26 */
{ 3, TN, sys_recvmsg, "recvmsg" }, /* 27 */
{ 3, TN, sys_sendmsg, "sendmsg" }, /* 28 */
{ 6, TN, sys_recvfrom, "recvfrom" }, /* 29 */
{ 3, TN, sys_accept, "accept" }, /* 30 */
{ 3, TN, sys_getpeername, "getpeername" }, /* 31 */
{ 3, TN, sys_getsockname, "getsockname" }, /* 32 */
{ 2, TF, sys_access, "access" }, /* 33 */
{ 2, TF, sys_chflags, "chflags" }, /* 34 */
{ 2, TF, sys_fchflags, "fchflags" }, /* 35 */
{ 1, 0, sys_sync, "sync" }, /* 36 */
{ 2, TS, sys_kill, "kill" }, /* 37 */
{ 2, TF, sys_stat, "stat" }, /* 38 */
{ 1, 0, sys_getppid, "getppid" }, /* 39 */
{ 2, TF, sys_lstat, "lstat" }, /* 40 */
{ 1, 0, sys_dup, "dup" }, /* 41 */
{ 1, 0, sys_pipe, "pipe" }, /* 42 */
{ 1, 0, sys_getegid, "getegid" }, /* 43 */
{ 4, 0, sys_profil, "profil" }, /* 44 */
{ 4, 0, sys_ktrace, "ktrace" }, /* 45 */
{ 3, TS, sys_sigaction, "sigaction" }, /* 46 */
{ 1, 0, sys_getgid, "getgid" }, /* 47 */
{ 2, TS, sys_sigprocmask, "sigprocmask" }, /* 48 */
{ 2, 0, sys_getlogin, "getlogin" }, /* 49 */
{ 1, 0, sys_setlogin, "setlogin" }, /* 50 */
{ 1, TF, sys_acct, "acct" }, /* 51 */
{ 1, TS, sys_sigpending, "sigpending" }, /* 52 */
{ 2, TS, sys_sigaltstack, "sigaltstack" }, /* 53 */
{ 3, 0, sys_ioctl, "ioctl" }, /* 54 */
{ 1, 0, sys_reboot, "reboot" }, /* 55 */
{ 1, 0, sys_revoke, "revoke" }, /* 56 */
{ 2, TF, sys_symlink, "symlink" }, /* 57 */
{ 3, TF, sys_readlink, "readlink" }, /* 58 */
{ 3, TF|TP, sys_execve, "execve" }, /* 59 */
{ 1, 0, sys_umask, "umask" }, /* 60 */
{ 1, TF, sys_chroot, "chroot" }, /* 61 */
{ 2, TF, sys_fstat, "fstat" }, /* 62 */
{ 4, 0, sys_getkerninfo, "getkerninfo" }, /* 63 */
{ 1, 0, sys_getpagesize, "getpagesize" }, /* 64 */
{ 3, 0, sys_msync, "msync" }, /* 65 */
{ 1, TP, sys_vfork, "vfork" }, /* 66 */
{ -1, 0, printargs, "SYS_67" }, /* 67 */
{ -1, 0, printargs, "SYS_68" }, /* 68 */
{ 1, 0, sys_sbrk, "sbrk" }, /* 69 */
{ 1, 0, sys_sstk, "sstk" }, /* 70 */
{ 6, 0, sys_mmap, "mmap" }, /* 71 */
{ 1, 0, sys_vadvise, "vadvise" }, /* 72 */
{ 2, 0, sys_munmap, "munmap" }, /* 73 */
{ 3, 0, sys_mprotect, "mprotect" }, /* 74 */
{ 3, 0, sys_madvise, "madvise" }, /* 75 */
{ -1, 0, printargs, "SYS_76" }, /* 76 */
{ -1, 0, printargs, "SYS_77" }, /* 77 */
{ 3, 0, sys_mincore, "mincore" }, /* 78 */
{ 2, 0, sys_getgroups, "getgroups" }, /* 79 */
{ 2, 0, sys_setgroups, "setgroups" }, /* 80 */
{ 1, 0, sys_getpgrp, "getpgrp" }, /* 81 */
{ 2, 0, sys_setpgid, "setpgid" }, /* 82 */
{ 3, 0, sys_setitimer, "setitimer" }, /* 83 */
{ 1, TP, sys_wait, "wait" }, /* 84 */
{ 1, TF, sys_swapon, "swapon" }, /* 85 */
{ 2, 0, sys_getitimer, "getitimer" }, /* 86 */
{ 2, 0, sys_gethostname, "gethostname" }, /* 87 */
{ 2, 0, sys_sethostname, "sethostname" }, /* 88 */
{ 1, 0, sys_getdtablesize, "getdtablesize" }, /* 89 */
{ 2, 0, sys_dup2, "dup2" }, /* 90 */
{ -1, 0, printargs, "SYS_91" }, /* 91 */
{ 3, 0, sys_fcntl, "fcntl" }, /* 92 */
{ 5, 0, sys_select, "select" }, /* 93 */
{ -1, 0, printargs, "SYS_94" }, /* 94 */
{ 1, 0, sys_fsync, "fsync" }, /* 95 */
{ 3, 0, sys_setpriority, "setpriority" }, /* 96 */
{ 3, TN, sys_socket, "socket" }, /* 97 */
{ 3, TN, sys_connect, "connect" }, /* 98 */
{ 3, TN, sys_accept, "accept" }, /* 99 */
{ 2, 0, sys_getpriority, "getpriority" }, /* 100 */
{ 4, TN, sys_send, "send" }, /* 101 */
{ 4, TN, sys_recv, "recv" }, /* 102 */
{ 1, TS, sys_sigreturn, "sigreturn" }, /* 103 */
{ 3, TN, sys_bind, "bind" }, /* 104 */
{ 5, TN, sys_setsockopt, "setsockopt" }, /* 105 */
{ 2, TN, sys_listen, "listen" }, /* 106 */
{ -1, 0, printargs, "SYS_107" }, /* 107 */
{ 3, TS, sys_sigvec, "sigvec" }, /* 108 */
{ 1, TS, sys_sigblock, "sigblock" }, /* 109 */
{ 1, TS, sys_sigsetmask, "sigsetmask" }, /* 110 */
{ 1, TS, sys_sigsuspend, "sigsuspend" }, /* 111 */
{ 2, TS, sys_sigstack, "sigstack" }, /* 112 */
{ 3, TN, sys_recvmsg, "recvmsg" }, /* 113 */
{ 3, TN, sys_sendmsg, "sendmsg" }, /* 114 */
{ -1, 0, printargs, "SYS_115" }, /* 115 */
{ 2, 0, sys_gettimeofday, "gettimeofday" }, /* 116 */
{ 2, 0, sys_getrusage, "getrusage" }, /* 117 */
{ 5, TN, sys_getsockopt, "getsockopt" }, /* 118 */
{ -1, 0, printargs, "SYS_119" }, /* 119 */
{ 3, 0, sys_readv, "readv" }, /* 120 */
{ 3, 0, sys_writev, "writev" }, /* 121 */
{ 2, 0, sys_settimeofday, "settimeofday" }, /* 122 */
{ 3, 0, sys_fchown, "fchown" }, /* 123 */
{ 2, 0, sys_fchmod, "fchmod" }, /* 124 */
{ 6, TN, sys_recvfrom, "recvfrom" }, /* 125 */
{ 2, 0, sys_setreuid, "setreuid" }, /* 126 */
{ 2, 0, sys_setregid, "setregid" }, /* 127 */
{ 2, TF, sys_rename, "rename" }, /* 128 */
{ 2, TF, sys_truncate, "truncate" }, /* 129 */
{ 2, 0, sys_ftruncate, "ftruncate" }, /* 130 */
{ 2, 0, sys_flock, "flock" }, /* 131 */
{ 2, 0, sys_mkfifo, "mkfifo" }, /* 132 */
{ 6, TN, sys_sendto, "sendto" }, /* 133 */
{ 2, TN, sys_shutdown, "shutdown" }, /* 134 */
{ 4, TN, sys_socketpair, "socketpair" }, /* 135 */
{ 2, TF, sys_mkdir, "mkdir" }, /* 136 */
{ 1, TF, sys_rmdir, "rmdir" }, /* 137 */
{ 2, TF, sys_utimes, "utimes" }, /* 138 */
{ -1, 0, printargs, "SYS_139" }, /* 139 */
{ 2, 0, sys_adjtime, "adjtime" }, /* 140 */
{ 3, TN, sys_getpeername, "getpeername" }, /* 141 */
{ 1, 0, sys_gethostid, "gethostid" }, /* 142 */
{ 1, 0, sys_sethostid, "sethostid" }, /* 143 */
{ 2, 0, sys_getrlimit, "getrlimit" }, /* 144 */
{ 2, 0, sys_setrlimit, "setrlimit" }, /* 145 */
{ 2, TS, sys_killpg, "killpg" }, /* 146 */
{ 1, 0, sys_setsid, "setsid" }, /* 147 */
{ 4, 0, sys_quotactl, "quotactl" }, /* 148 */
{ 1, 0, sys_quota, "quota" }, /* 149 */
{ 3, TN, sys_getsockname, "getsockname" }, /* 150 */
{ -1, 0, printargs, "SYS_151" }, /* 151 */
{ -1, 0, printargs, "SYS_152" }, /* 152 */
{ -1, 0, printargs, "SYS_153" }, /* 153 */
{ -1, 0, printargs, "SYS_154" }, /* 154 */
{ 2, 0, sys_nfssvc, "nfssvc" }, /* 155 */
{ 4, 0, sys_getdirentries, "getdirentries" }, /* 156 */
{ 2, TF, sys_statfs, "statfs" }, /* 157 */
{ 2, 0, sys_fstatfs, "fstatfs" }, /* 158 */
{ -1, 0, printargs, "SYS_159" }, /* 159 */
{ -1, 0, printargs, "SYS_160" }, /* 160 */
{ 2, 0, sys_getfh, "getfh" }, /* 161 */
{ 2, 0, sys_getdomainname, "getdomainname" }, /* 162 */
{ 2, 0, sys_setdomainname, "setdomainname" }, /* 163 */
{ 1, 0, sys_uname, "uname" }, /* 164 */
{ 2, 0, sys_sysarch, "sysarch" }, /* 165 */
{ 3, 0, sys_rtprio, "rtprio" }, /* 166 */
{ -1, 0, printargs, "SYS_167" }, /* 167 */
{ -1, 0, printargs, "SYS_168" }, /* 168 */
{ 5, TI, sys_semsys, "semsys" }, /* 169 */
{ 6, TI, sys_msgsys, "msgsys" }, /* 170 */
{ 4, TI, sys_shmsys, "shmsys" }, /* 171 */
{ -1, 0, printargs, "SYS_172" }, /* 172 */
{ 5, TF, sys_pread, "pread" }, /* 173 */
{ 5, TF, sys_pwrite, "pwrite" }, /* 174 */
{ -1, 0, printargs, "SYS_175" }, /* 175 */
{ 1, 0, sys_ntp_adjtime, "ntp_adjtime" }, /* 176 */
{ -1, 0, printargs, "SYS_177" }, /* 177 */
{ -1, 0, printargs, "SYS_178" }, /* 178 */
{ -1, 0, printargs, "SYS_179" }, /* 179 */
{ -1, 0, printargs, "SYS_180" }, /* 180 */
{ 1, 0, sys_setgid, "setgid" }, /* 181 */
{ 1, 0, sys_setegid, "setegid" }, /* 182 */
{ 1, 0, sys_seteuid, "seteuid" }, /* 183 */
{ -1, 0, printargs, "SYS_184" }, /* 184 */
{ -1, 0, printargs, "SYS_185" }, /* 185 */
{ -1, 0, printargs, "SYS_186" }, /* 186 */
{ -1, 0, printargs, "SYS_187" }, /* 187 */
{ 2, TF, sys_stat, "stat" }, /* 188 */
{ 2, TF, sys_fstat, "fstat" }, /* 189 */
{ 2, TF, sys_lstat, "lstat" }, /* 190 */
{ 2, TF, sys_pathconf, "pathconf" }, /* 191 */
{ 2, 0, sys_fpathconf, "fpathconf" }, /* 192 */
{ -1, 0, printargs, "SYS_193" }, /* 193 */
{ 2, 0, sys_getrlimit, "getrlimit" }, /* 194 */
{ 2, 0, sys_setrlimit, "setrlimit" }, /* 195 */
{ 4, 0, sys_getdirentries, "getdirentries" }, /* 196 */
{ 7, 0, sys_mmap, "mmap" }, /* 197 */
{ 1, 0, sys___syscall, "__syscall" }, /* 198 */
{ 4, 0, sys_lseek, "lseek" }, /* 199 */
{ 3, TF, sys_truncate, "truncate" }, /* 200 */
{ 3, 0, sys_ftruncate, "ftruncate" }, /* 201 */
{ 6, 0, sys___sysctl, "__sysctl" }, /* 202 */
{ 2, 0, sys_mlock, "mlock" }, /* 203 */
{ 2, 0, sys_munlock, "munlock" }, /* 204 */
{ 1, 0, sys_undelete, "undelete" }, /* 205 */
{ 2, 0, sys_futimes, "futimes" }, /* 206 */
{ 1, 0, sys_getpgid, "getpgid" }, /* 207 */
{ -1, 0, printargs, "SYS_208" }, /* 208 */
{ 3, TN, sys_poll, "poll" }, /* 209 */
{ -1, 0, printargs, "SYS_210" }, /* 210 */
{ -1, 0, printargs, "SYS_211" }, /* 211 */
{ -1, 0, printargs, "SYS_212" }, /* 212 */
{ -1, 0, printargs, "SYS_213" }, /* 213 */
{ -1, 0, printargs, "SYS_214" }, /* 214 */
{ -1, 0, printargs, "SYS_215" }, /* 215 */
{ -1, 0, printargs, "SYS_216" }, /* 216 */
{ -1, 0, printargs, "SYS_217" }, /* 217 */
{ -1, 0, printargs, "SYS_218" }, /* 218 */
{ -1, 0, printargs, "SYS_219" }, /* 219 */
{ 4, 0, sys___semctl, "__semctl" }, /* 220 */
{ 3, TI, sys_semget, "semget" }, /* 221 */
{ 3, TI, sys_semop, "semop" }, /* 222 */
{ 1, 0, sys_semconfig, "semconfig" }, /* 223 */
{ 3, TI, sys_msgctl, "msgctl" }, /* 224 */
{ 2, TI, sys_msgget, "msgget" }, /* 225 */
{ 4, TI, sys_msgsnd, "msgsnd" }, /* 226 */
{ 5, TI, sys_msgrcv, "msgrcv" }, /* 227 */
{ 3, TI, sys_shmat, "shmat" }, /* 228 */
{ 3, TI, sys_shmctl, "shmctl" }, /* 229 */
{ 1, TI, sys_shmdt, "shmdt" }, /* 230 */
{ 3, TI, sys_shmget, "shmget" }, /* 231 */
{ 2, 0, sys_clock_gettime, "clock_gettime" }, /* 232 */
{ 2, 0, sys_clock_settime, "clock_settime" }, /* 233 */
{ 2, 0, sys_clock_getres, "clock_getres" }, /* 234 */
{ -1, 0, printargs, "SYS_235" }, /* 235 */
{ -1, 0, printargs, "SYS_236" }, /* 236 */
{ -1, 0, printargs, "SYS_237" }, /* 237 */
{ -1, 0, printargs, "SYS_238" }, /* 238 */
{ -1, 0, printargs, "SYS_239" }, /* 239 */
{ 2, 0, sys_nanosleep, "nanosleep" }, /* 240 */
{ -1, 0, printargs, "SYS_241" }, /* 241 */
{ -1, 0, printargs, "SYS_242" }, /* 242 */
{ -1, 0, printargs, "SYS_243" }, /* 243 */
{ -1, 0, printargs, "SYS_244" }, /* 244 */
{ -1, 0, printargs, "SYS_245" }, /* 245 */
{ -1, 0, printargs, "SYS_246" }, /* 246 */
{ -1, 0, printargs, "SYS_247" }, /* 247 */
{ -1, 0, printargs, "SYS_248" }, /* 248 */
{ -1, 0, printargs, "SYS_249" }, /* 249 */
{ 3, 0, sys_minherit, "minherit" }, /* 250 */
{ 1, 0, sys_rfork, "rfork" }, /* 251 */
{ 3, 0, sys_openbsd_poll, "openbsd_poll" }, /* 252 */
{ 1, 0, sys_issetugid, "issetugid" }, /* 253 */
{ 3, TF, sys_lchown, "lchown" }, /* 254 */
{ -1, 0, printargs, "SYS_255" }, /* 255 */
{ -1, 0, printargs, "SYS_256" }, /* 256 */
{ -1, 0, printargs, "SYS_257" }, /* 257 */
{ -1, 0, printargs, "SYS_258" }, /* 258 */
{ -1, 0, printargs, "SYS_259" }, /* 259 */
{ -1, 0, printargs, "SYS_260" }, /* 260 */
{ -1, 0, printargs, "SYS_261" }, /* 261 */
{ -1, 0, printargs, "SYS_262" }, /* 262 */
{ -1, 0, printargs, "SYS_263" }, /* 263 */
{ -1, 0, printargs, "SYS_264" }, /* 264 */
{ -1, 0, printargs, "SYS_265" }, /* 265 */
{ -1, 0, printargs, "SYS_266" }, /* 266 */
{ -1, 0, printargs, "SYS_267" }, /* 267 */
{ -1, 0, printargs, "SYS_268" }, /* 268 */
{ -1, 0, printargs, "SYS_269" }, /* 269 */
{ -1, 0, printargs, "SYS_270" }, /* 270 */
{ -1, 0, printargs, "SYS_271" }, /* 271 */
{ 3, 0, sys_getdents, "getdents" }, /* 272 */
{ -1, 0, printargs, "SYS_273" }, /* 273 */
{ 2, 0, sys_lchmod, "lchmod" }, /* 274 */
{ 3, 0, sys_netbsd_lchown, "netbsd_lchown" }, /* 275 */
{ 2, 0, sys_lutimes, "lutimes" }, /* 276 */
{ 3, 0, sys_netbsd_msync, "netbsd_msync" }, /* 277 */
{ 2, 0, sys_nstat, "nstat" }, /* 278 */
{ 2, 0, sys_nfstat, "nfstat" }, /* 279 */
{ 2, 0, sys_nlstat, "nlstat" }, /* 280 */
{ -1, 0, printargs, "SYS_281" }, /* 281 */
{ -1, 0, printargs, "SYS_282" }, /* 282 */
{ -1, 0, printargs, "SYS_283" }, /* 283 */
{ -1, 0, printargs, "SYS_284" }, /* 284 */
{ -1, 0, printargs, "SYS_285" }, /* 285 */
{ -1, 0, printargs, "SYS_286" }, /* 286 */
{ -1, 0, printargs, "SYS_287" }, /* 287 */
{ -1, 0, printargs, "SYS_288" }, /* 288 */
{ -1, 0, printargs, "SYS_289" }, /* 289 */
{ -1, 0, printargs, "SYS_290" }, /* 290 */
{ -1, 0, printargs, "SYS_291" }, /* 291 */
{ -1, 0, printargs, "SYS_292" }, /* 292 */
{ -1, 0, printargs, "SYS_293" }, /* 293 */
{ -1, 0, printargs, "SYS_294" }, /* 294 */
{ -1, 0, printargs, "SYS_295" }, /* 295 */
{ -1, 0, printargs, "SYS_296" }, /* 296 */
{ 2, 0, sys_fhstatfs, "fhstatfs" }, /* 297 */
{ 2, 0, sys_fhopen, "fhopen" }, /* 298 */
{ 2, 0, sys_fhstat, "fhstat" }, /* 299 */
{ 1, 0, sys_modnext, "modnext" }, /* 300 */
{ 2, 0, sys_modstat, "modstat" }, /* 301 */
{ 1, 0, sys_modfnext, "modfnext" }, /* 302 */
{ 1, 0, sys_modfind, "modfind" }, /* 303 */
{ 1, 0, sys_kldload, "kldload" }, /* 304 */
{ 1, 0, sys_kldunload, "kldunload" }, /* 305 */
{ 1, 0, sys_kldfind, "kldfind" }, /* 306 */
{ 1, 0, sys_kldnext, "kldnext" }, /* 307 */
{ 2, 0, sys_kldstat, "kldstat" }, /* 308 */
{ 1, 0, sys_kldfirstmod, "kldfirstmod" }, /* 309 */
{ 1, 0, sys_getsid, "getsid" }, /* 310 */
{ 3, 0, sys_setresuid, "setresuid" }, /* 311 */
{ 3, 0, sys_setresgid, "setresgid" }, /* 312 */
{ -1, 0, printargs, "SYS_313" }, /* 313 */
{ 1, 0, sys_aio_return, "aio_return" }, /* 314 */
{ 3, 0, sys_aio_suspend, "aio_suspend" }, /* 315 */
{ 2, 0, sys_aio_cancel, "aio_cancel" }, /* 316 */
{ 1, 0, sys_aio_error, "aio_error" }, /* 317 */
{ 1, 0, sys_aio_read, "aio_read" }, /* 318 */
{ 1, 0, sys_aio_write, "aio_write" }, /* 319 */
{ 4, 0, sys_lio_listio, "lio_listio" }, /* 320 */
{ 1, 0, sys_yield, "yield" }, /* 321 */
{ 1, 0, sys_thr_sleep, "thr_sleep" }, /* 322 */
{ 1, 0, sys_thr_wakeup, "thr_wakeup" }, /* 323 */
{ 1, 0, sys_mlockall, "mlockall" }, /* 324 */
{ 1, 0, sys_munlockall, "munlockall" }, /* 325 */
{ 2, 0, sys___getcwd, "__getcwd" }, /* 326 */
{ 2, 0, sys_sched_setparam, "sched_setparam" }, /* 327 */
{ 2, 0, sys_sched_getparam, "sched_getparam" }, /* 328 */
{ 3, 0, sys_sched_setscheduler, "sched_setscheduler" }, /* 329 */
{ 1, 0, sys_sched_getscheduler, "sched_getscheduler" }, /* 330 */
{ 1, 0, sys_sched_yield, "sched_yield" }, /* 331 */
{ 1, 0, sys_sched_get_priority_max, "sched_get_priority_max" }, /* 332 */
{ 1, 0, sys_sched_get_priority_min, "sched_get_priority_min" }, /* 333 */
{ 2, 0, sys_sched_rr_get_interval, "sched_rr_get_interval" }, /* 334 */
{ 2, 0, sys_utrace, "utrace" }, /* 335 */
{ 7, TF, sys_sendfile, "sendfile" }, /* 336 */
{ 3, 0, sys_kldsym, "kldsym" }, /* 337 */
{ 1, 0, sys_jail, "jail" }, /* 338 */
{ -1, 0, printargs, "SYS_339" }, /* 339 */
{ 3, TS, sys_sigprocmask, "sigprocmask" }, /* 340 */
{ 1, TS, sys_sigsuspend, "sigsuspend" }, /* 341 */
{ 3, TS, sys_sigaction, "sigaction" }, /* 342 */
{ 1, TS, sys_sigpending, "sigpending" }, /* 343 */
{ 1, TS, sys_sigreturn, "sigreturn" }, /* 344 */
{ -1, 0, printargs, "SYS_345" }, /* 345 */
{ -1, 0, printargs, "SYS_346" }, /* 346 */
{ 3, 0, sys___acl_get_file, "__acl_get_file" }, /* 347 */
{ 3, 0, sys___acl_set_file, "__acl_set_file" }, /* 348 */
{ 3, 0, sys___acl_get_fd, "__acl_get_fd" }, /* 349 */
{ 3, 0, sys___acl_set_fd, "__acl_set_fd" }, /* 350 */
{ 2, 0, sys___acl_delete_file, "__acl_delete_file" }, /* 351 */
{ 2, 0, sys___acl_delete_fd, "__acl_delete_fd" }, /* 352 */
{ 3, 0, sys___acl_aclcheck_file, "__acl_aclcheck_file" }, /* 353 */
{ 3, 0, sys___acl_aclcheck_fd, "__acl_aclcheck_fd" }, /* 354 */
{ 4, 0, sys_extattrctl, "extattrctl" }, /* 355 */
{ 4, 0, sys_extattr_set_file, "extattr_set_file" }, /* 356 */
{ 4, 0, sys_extattr_get_file, "extattr_get_file" }, /* 357 */
{ 2, 0, sys_extattr_delete_file, "extattr_delete_file" }, /* 358 */
{ 2, 0, sys_aio_waitcomplete, "aio_waitcomplete" }, /* 359 */
{ 3, 0, sys_getresuid, "getresuid" }, /* 360 */
{ 3, 0, sys_getresgid, "getresgid" }, /* 361 */