/* $NetBSD: sunos32_sysent.c,v 1.2 2001/02/04 09:48:44 mrg Exp $ */ /* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * created from; NetBSD: syscalls.master,v 1.2 2001/02/04 09:47:22 mrg Exp */ #if defined(_KERNEL) && !defined(_LKM) #include "opt_nfsserver.h" #include "opt_sysv.h" #include "fs_nfs.h" #endif #include #include #include #include #include #include #include #include #include #include #include #include #define s(type) sizeof(type) struct sysent sunos32_sysent[] = { { 0, 0, 0, sys_nosys }, /* 0 = syscall */ { 1, s(struct netbsd32_exit_args), 0, netbsd32_exit }, /* 1 = netbsd32_exit */ { 0, 0, 0, sys_fork }, /* 2 = fork */ { 3, s(struct netbsd32_read_args), 0, netbsd32_read }, /* 3 = netbsd32_read */ { 3, s(struct netbsd32_write_args), 0, netbsd32_write }, /* 4 = netbsd32_write */ { 3, s(struct sunos32_sys_open_args), 0, sunos32_sys_open }, /* 5 = open */ { 1, s(struct netbsd32_close_args), 0, netbsd32_close }, /* 6 = netbsd32_close */ { 4, s(struct sunos32_sys_wait4_args), 0, sunos32_sys_wait4 }, /* 7 = wait4 */ { 2, s(struct sunos32_sys_creat_args), 0, sunos32_sys_creat }, /* 8 = creat */ { 2, s(struct netbsd32_link_args), 0, netbsd32_link }, /* 9 = netbsd32_link */ { 1, s(struct netbsd32_unlink_args), 0, netbsd32_unlink }, /* 10 = netbsd32_unlink */ { 2, s(struct sunos32_sys_execv_args), 0, sunos32_sys_execv }, /* 11 = execv */ { 1, s(struct netbsd32_chdir_args), 0, netbsd32_chdir }, /* 12 = netbsd32_chdir */ { 0, 0, 0, sys_nosys }, /* 13 = obsolete old_time */ { 3, s(struct sunos32_sys_mknod_args), 0, sunos32_sys_mknod }, /* 14 = mknod */ { 2, s(struct netbsd32_chmod_args), 0, netbsd32_chmod }, /* 15 = netbsd32_chmod */ { 3, s(struct netbsd32_chown_args), 0, netbsd32_chown }, /* 16 = netbsd32_chown */ { 1, s(struct netbsd32_break_args), 0, netbsd32_break }, /* 17 = netbsd32_break */ { 0, 0, 0, sys_nosys }, /* 18 = obsolete old_stat */ { 3, s(struct compat_43_netbsd32_olseek_args), 0, compat_43_netbsd32_olseek }, /* 19 = compat_43_netbsd32_olseek */ { 0, 0, 0, sys_getpid_with_ppid }, /* 20 = getpid_with_ppid */ { 0, 0, 0, sys_nosys }, /* 21 = obsolete sunos_old_mount */ { 0, 0, 0, sys_nosys }, /* 22 = unimplemented System V umount */ { 1, s(struct netbsd32_setuid_args), 0, netbsd32_setuid }, /* 23 = netbsd32_setuid */ { 0, 0, 0, sys_getuid_with_euid }, /* 24 = getuid_with_euid */ { 1, s(struct sunos32_sys_stime_args), 0, sunos32_sys_stime }, /* 25 = stime */ { 5, s(struct sunos32_sys_ptrace_args), 0, sunos32_sys_ptrace }, /* 26 = ptrace */ { 0, 0, 0, sys_nosys }, /* 27 = unimplemented old_sunos_alarm */ { 0, 0, 0, sys_nosys }, /* 28 = unimplemented old_sunos_fstat */ { 0, 0, 0, sys_nosys }, /* 29 = unimplemented old_sunos_pause */ { 0, 0, 0, sys_nosys }, /* 30 = unimplemented old_sunos_utime */ { 0, 0, 0, sys_nosys }, /* 31 = unimplemented old_sunos_stty */ { 0, 0, 0, sys_nosys }, /* 32 = unimplemented old_sunos_gtty */ { 2, s(struct sunos32_sys_access_args), 0, sunos32_sys_access }, /* 33 = access */ { 0, 0, 0, sys_nosys }, /* 34 = unimplemented old_sunos_nice */ { 0, 0, 0, sys_nosys }, /* 35 = unimplemented old_sunos_ftime */ { 0, 0, 0, sys_sync }, /* 36 = sync */ { 2, s(struct netbsd32_kill_args), 0, netbsd32_kill }, /* 37 = netbsd32_kill */ { 2, s(struct sunos32_sys_stat_args), 0, sunos32_sys_stat }, /* 38 = stat */ { 0, 0, 0, sys_nosys }, /* 39 = unimplemented sunos_setpgrp */ { 2, s(struct sunos32_sys_lstat_args), 0, sunos32_sys_lstat }, /* 40 = lstat */ { 1, s(struct netbsd32_dup_args), 0, netbsd32_dup }, /* 41 = netbsd32_dup */ { 0, 0, 0, sys_pipe }, /* 42 = pipe */ { 0, 0, 0, sys_nosys }, /* 43 = unimplemented sunos_times */ { 4, s(struct netbsd32_profil_args), 0, netbsd32_profil }, /* 44 = netbsd32_profil */ { 0, 0, 0, sys_nosys }, /* 45 = unimplemented */ { 1, s(struct netbsd32_setgid_args), 0, netbsd32_setgid }, /* 46 = netbsd32_setgid */ { 0, 0, 0, sys_getgid_with_egid }, /* 47 = getgid_with_egid */ { 0, 0, 0, sys_nosys }, /* 48 = unimplemented sunos_ssig */ { 0, 0, 0, sys_nosys }, /* 49 = unimplemented reserved for USG */ { 0, 0, 0, sys_nosys }, /* 50 = unimplemented reserved for USG */ { 1, s(struct netbsd32_acct_args), 0, netbsd32_acct }, /* 51 = netbsd32_acct */ { 0, 0, 0, sys_nosys }, /* 52 = unimplemented */ { 4, s(struct sunos32_sys_mctl_args), 0, sunos32_sys_mctl }, /* 53 = mctl */ { 3, s(struct sunos32_sys_ioctl_args), 0, sunos32_sys_ioctl }, /* 54 = ioctl */ { 2, s(struct sunos32_sys_reboot_args), 0, sunos32_sys_reboot }, /* 55 = reboot */ { 0, 0, 0, sys_nosys }, /* 56 = obsolete sunos_owait3 */ { 2, s(struct netbsd32_symlink_args), 0, netbsd32_symlink }, /* 57 = netbsd32_symlink */ { 3, s(struct netbsd32_readlink_args), 0, netbsd32_readlink }, /* 58 = netbsd32_readlink */ { 3, s(struct sunos32_sys_execve_args), 0, sunos32_sys_execve }, /* 59 = execve */ { 1, s(struct netbsd32_umask_args), 0, netbsd32_umask }, /* 60 = netbsd32_umask */ { 1, s(struct netbsd32_chroot_args), 0, netbsd32_chroot }, /* 61 = netbsd32_chroot */ { 2, s(struct compat_43_netbsd32_fstat43_args), 0, compat_43_netbsd32_fstat43 }, /* 62 = compat_43_netbsd32_fstat43 */ { 0, 0, 0, sys_nosys }, /* 63 = unimplemented */ { 0, 0, 0, compat_43_sys_getpagesize }, /* 64 = ogetpagesize */ { 3, s(struct sunos32_sys_omsync_args), 0, sunos32_sys_omsync }, /* 65 = omsync */ { 0, 0, 0, sys_vfork }, /* 66 = vfork */ { 0, 0, 0, sys_nosys }, /* 67 = obsolete vread */ { 0, 0, 0, sys_nosys }, /* 68 = obsolete vwrite */ { 1, s(struct netbsd32_sbrk_args), 0, netbsd32_sbrk }, /* 69 = netbsd32_sbrk */ { 1, s(struct netbsd32_sstk_args), 0, netbsd32_sstk }, /* 70 = netbsd32_sstk */ { 6, s(struct sunos32_sys_mmap_args), 0, sunos32_sys_mmap }, /* 71 = mmap */ { 1, s(struct netbsd32_ovadvise_args), 0, netbsd32_ovadvise }, /* 72 = vadvise */ { 2, s(struct netbsd32_munmap_args), 0, netbsd32_munmap }, /* 73 = netbsd32_munmap */ { 3, s(struct netbsd32_mprotect_args), 0, netbsd32_mprotect }, /* 74 = netbsd32_mprotect */ { 3, s(struct netbsd32_madvise_args), 0, netbsd32_madvise }, /* 75 = netbsd32_madvise */ { 0, 0, 0, sunos32_sys_vhangup }, /* 76 = vhangup */ { 0, 0, 0, sys_nosys }, /* 77 = unimplemented vlimit */ { 3, s(struct netbsd32_mincore_args), 0, netbsd32_mincore }, /* 78 = netbsd32_mincore */ { 2, s(struct netbsd32_getgroups_args), 0, netbsd32_getgroups }, /* 79 = netbsd32_getgroups */ { 2, s(struct netbsd32_setgroups_args), 0, netbsd32_setgroups }, /* 80 = netbsd32_setgroups */ { 0, 0, 0, sys_getpgrp }, /* 81 = getpgrp */ { 2, s(struct sunos32_sys_setpgrp_args), 0, sunos32_sys_setpgrp }, /* 82 = setpgrp */ { 3, s(struct netbsd32_setitimer_args), 0, netbsd32_setitimer }, /* 83 = netbsd32_setitimer */ { 0, 0, 0, sys_nosys }, /* 84 = unimplemented { int sunos32_sys_wait ( void ) ; } */ { 1, s(struct compat_12_netbsd32_oswapon_args), 0, compat_12_netbsd32_oswapon }, /* 85 = compat_12_netbsd32_oswapon */ { 2, s(struct netbsd32_getitimer_args), 0, netbsd32_getitimer }, /* 86 = netbsd32_getitimer */ { 2, s(struct compat_43_netbsd32_ogethostname_args), 0, compat_43_netbsd32_ogethostname }, /* 87 = compat_43_netbsd32_ogethostname */ { 2, s(struct compat_43_netbsd32_osethostname_args), 0, compat_43_netbsd32_osethostname }, /* 88 = compat_43_netbsd32_osethostname */ { 0, 0, 0, compat_43_sys_getdtablesize }, /* 89 = ogetdtablesize */ { 2, s(struct netbsd32_dup2_args), 0, netbsd32_dup2 }, /* 90 = netbsd32_dup2 */ { 0, 0, 0, sys_nosys }, /* 91 = unimplemented getdopt */ { 3, s(struct sunos32_sys_fcntl_args), 0, sunos32_sys_fcntl }, /* 92 = fcntl */ { 5, s(struct sys_select_args), 0, sys_select }, /* 93 = select */ { 0, 0, 0, sys_nosys }, /* 94 = unimplemented setdopt */ { 1, s(struct netbsd32_fsync_args), 0, netbsd32_fsync }, /* 95 = netbsd32_fsync */ { 3, s(struct netbsd32_setpriority_args), 0, netbsd32_setpriority }, /* 96 = netbsd32_setpriority */ { 3, s(struct netbsd32_socket_args), 0, netbsd32_socket }, /* 97 = netbsd32_socket */ { 3, s(struct netbsd32_connect_args), 0, netbsd32_connect }, /* 98 = netbsd32_connect */ { 3, s(struct compat_43_netbsd32_oaccept_args), 0, compat_43_netbsd32_oaccept }, /* 99 = compat_43_netbsd32_oaccept */ { 2, s(struct netbsd32_getpriority_args), 0, netbsd32_getpriority }, /* 100 = netbsd32_getpriority */ { 4, s(struct compat_43_netbsd32_osend_args), 0, compat_43_netbsd32_osend }, /* 101 = compat_43_netbsd32_osend */ { 4, s(struct compat_43_netbsd32_orecv_args), 0, compat_43_netbsd32_orecv }, /* 102 = compat_43_netbsd32_orecv */ { 0, 0, 0, sys_nosys }, /* 103 = unimplemented old socketaddr */ { 3, s(struct netbsd32_bind_args), 0, netbsd32_bind }, /* 104 = netbsd32_bind */ { 5, s(struct sunos32_sys_setsockopt_args), 0, sunos32_sys_setsockopt }, /* 105 = setsockopt */ { 2, s(struct netbsd32_listen_args), 0, netbsd32_listen }, /* 106 = netbsd32_listen */ { 0, 0, 0, sys_nosys }, /* 107 = unimplemented vtimes */ { 3, s(struct sunos32_sys_sigvec_args), 0, sunos32_sys_sigvec }, /* 108 = sigvec */ { 1, s(struct compat_43_netbsd32_sigblock_args), 0, compat_43_netbsd32_sigblock }, /* 109 = compat_43_netbsd32_sigblock */ { 1, s(struct compat_43_netbsd32_sigsetmask_args), 0, compat_43_netbsd32_sigsetmask }, /* 110 = compat_43_netbsd32_sigsetmask */ { 1, s(struct sunos32_sys_sigsuspend_args), 0, sunos32_sys_sigsuspend }, /* 111 = sigsuspend */ { 2, s(struct compat_43_netbsd32_osigstack_args), 0, compat_43_netbsd32_osigstack }, /* 112 = compat_43_netbsd32_osigstack */ { 3, s(struct compat_43_netbsd32_orecvmsg_args), 0, compat_43_netbsd32_orecvmsg }, /* 113 = compat_43_netbsd32_orecvmsg */ { 3, s(struct compat_43_netbsd32_osendmsg_args), 0, compat_43_netbsd32_osendmsg }, /* 114 = compat_43_netbsd32_osendmsg */ { 0, 0, 0, sys_nosys }, /* 115 = obsolete vtrace */ { 2, s(struct netbsd32_gettimeofday_args), 0, netbsd32_gettimeofday }, /* 116 = netbsd32_gettimeofday */ { 2, s(struct netbsd32_getrusage_args), 0, netbsd32_getrusage }, /* 117 = netbsd32_getrusage */ { 5, s(struct netbsd32_getsockopt_args), 0, netbsd32_getsockopt }, /* 118 = netbsd32_getsockopt */ { 0, 0, 0, sys_nosys }, /* 119 = unimplemented */ { 3, s(struct netbsd32_readv_args), 0, netbsd32_readv }, /* 120 = netbsd32_readv */ { 3, s(struct netbsd32_writev_args), 0, netbsd32_writev }, /* 121 = netbsd32_writev */ { 2, s(struct netbsd32_settimeofday_args), 0, netbsd32_settimeofday }, /* 122 = netbsd32_settimeofday */ { 3, s(struct netbsd32_fchown_args), 0, netbsd32_fchown }, /* 123 = netbsd32_fchown */ { 2, s(struct netbsd32_fchmod_args), 0, netbsd32_fchmod }, /* 124 = netbsd32_fchmod */ { 6, s(struct compat_43_netbsd32_orecvfrom_args), 0, compat_43_netbsd32_orecvfrom }, /* 125 = compat_43_netbsd32_orecvfrom */ { 2, s(struct netbsd32_setreuid_args), 0, netbsd32_setreuid }, /* 126 = netbsd32_setreuid */ { 2, s(struct netbsd32_setregid_args), 0, netbsd32_setregid }, /* 127 = netbsd32_setregid */ { 2, s(struct netbsd32_rename_args), 0, netbsd32_rename }, /* 128 = netbsd32_rename */ { 2, s(struct compat_43_netbsd32_otruncate_args), 0, compat_43_netbsd32_otruncate }, /* 129 = compat_43_netbsd32_otruncate */ { 2, s(struct compat_43_netbsd32_oftruncate_args), 0, compat_43_netbsd32_oftruncate }, /* 130 = compat_43_netbsd32_oftruncate */ { 2, s(struct netbsd32_flock_args), 0, netbsd32_flock }, /* 131 = netbsd32_flock */ { 0, 0, 0, sys_nosys }, /* 132 = unimplemented */ { 6, s(struct netbsd32_sendto_args), 0, netbsd32_sendto }, /* 133 = netbsd32_sendto */ { 2, s(struct netbsd32_shutdown_args), 0, netbsd32_shutdown }, /* 134 = netbsd32_shutdown */ { 4, s(struct netbsd32_socketpair_args), 0, netbsd32_socketpair }, /* 135 = netbsd32_socketpair */ { 2, s(struct netbsd32_mkdir_args), 0, netbsd32_mkdir }, /* 136 = netbsd32_mkdir */ { 1, s(struct netbsd32_rmdir_args), 0, netbsd32_rmdir }, /* 137 = netbsd32_rmdir */ { 2, s(struct netbsd32_utimes_args), 0, netbsd32_utimes }, /* 138 = netbsd32_utimes */ { 1, s(struct sunos_sys_sigreturn_args), 0, sunos_sys_sigreturn }, /* 139 = sigreturn */ { 2, s(struct netbsd32_adjtime_args), 0, netbsd32_adjtime }, /* 140 = netbsd32_adjtime */ { 3, s(struct compat_43_netbsd32_ogetpeername_args), 0, compat_43_netbsd32_ogetpeername }, /* 141 = compat_43_netbsd32_ogetpeername */ { 0, 0, 0, compat_43_sys_gethostid }, /* 142 = gethostid */ { 0, 0, 0, sys_nosys }, /* 143 = unimplemented old sethostid */ { 2, s(struct sunos32_sys_getrlimit_args), 0, sunos32_sys_getrlimit }, /* 144 = getrlimit */ { 2, s(struct sunos32_sys_setrlimit_args), 0, sunos32_sys_setrlimit }, /* 145 = setrlimit */ { 2, s(struct compat_43_netbsd32_killpg_args), 0, compat_43_netbsd32_killpg }, /* 146 = compat_43_netbsd32_killpg */ { 0, 0, 0, sys_nosys }, /* 147 = unimplemented */ { 0, 0, 0, sys_nosys }, /* 148 = unimplemented */ { 0, 0, 0, sys_nosys }, /* 149 = unimplemented */ { 3, s(struct compat_43_netbsd32_ogetsockname_args), 0, compat_43_netbsd32_ogetsockname }, /* 150 = compat_43_netbsd32_ogetsockname */ { 0, 0, 0, sys_nosys }, /* 151 = unimplemented getmsg */ { 0, 0, 0, sys_nosys }, /* 152 = unimplemented putmsg */ { 3, s(struct netbsd32_poll_args), 0, netbsd32_poll }, /* 153 = netbsd32_poll */ { 0, 0, 0, sys_nosys }, /* 154 = unimplemented */ #ifdef NFSSERVER { 1, s(struct sunos32_sys_nfssvc_args), 0, sunos32_sys_nfssvc }, /* 155 = nfssvc */ #else { 0, 0, 0, sys_nosys }, /* 155 = unimplemented */ #endif { 4, s(struct compat_43_netbsd32_ogetdirentries_args), 0, compat_43_netbsd32_ogetdirentries },/* 156 = compat_43_netbsd32_ogetdirentries */ { 2, s(struct sunos32_sys_statfs_args), 0, sunos32_sys_statfs }, /* 157 = statfs */ { 2, s(struct sunos32_sys_fstatfs_args), 0, sunos32_sys_fstatfs }, /* 158 = fstatfs */ { 1, s(struct sunos32_sys_unmount_args), 0, sunos32_sys_unmount }, /* 159 = unmount */ #ifdef NFS { 0, 0, 0, async_daemon }, /* 160 = async_daemon */ { 2, s(struct sys_getfh_args), 0, sys_getfh }, /* 161 = getfh */ #else { 0, 0, 0, sys_nosys }, /* 160 = unimplemented */ { 0, 0, 0, sys_nosys }, /* 161 = unimplemented */ #endif { 2, s(struct compat_09_netbsd32_ogetdomainname_args), 0, compat_09_netbsd32_ogetdomainname },/* 162 = compat_09_netbsd32_ogetdomainname */ { 2, s(struct compat_09_netbsd32_osetdomainname_args), 0, compat_09_netbsd32_osetdomainname },/* 163 = compat_09_netbsd32_osetdomainname */ { 0, 0, 0, sys_nosys }, /* 164 = unimplemented rtschedule */ { 4, s(struct sunos32_sys_quotactl_args), 0, sunos32_sys_quotactl }, /* 165 = quotactl */ { 2, s(struct sunos32_sys_exportfs_args), 0, sunos32_sys_exportfs }, /* 166 = exportfs */ { 4, s(struct sunos32_sys_mount_args), 0, sunos32_sys_mount }, /* 167 = mount */ { 2, s(struct sunos32_sys_ustat_args), 0, sunos32_sys_ustat }, /* 168 = ustat */ #ifdef SYSVSEM { 5, s(struct netbsd32_compat_10_sys_semsys_args), 0, netbsd32_compat_10_sys_semsys }, /* 169 = osemsys */ #else { 0, 0, 0, sys_nosys }, /* 169 = unimplemented semsys */ #endif #ifdef SYSVMSG { 6, s(struct netbsd32_compat_10_sys_msgsys_args), 0, netbsd32_compat_10_sys_msgsys }, /* 170 = omsgsys */ #else { 0, 0, 0, sys_nosys }, /* 170 = unimplemented msgsys */ #endif #ifdef SYSVSHM { 4, s(struct netbsd32_compat_10_sys_shmsys_args), 0, netbsd32_compat_10_sys_shmsys }, /* 171 = oshmsys */ #else { 0, 0, 0, sys_nosys }, /* 171 = unimplemented shmsys */ #endif { 1, s(struct sunos32_sys_auditsys_args), 0, sunos32_sys_auditsys }, /* 172 = auditsys */ { 0, 0, 0, sys_nosys }, /* 173 = unimplemented rfssys */ { 3, s(struct sunos32_sys_getdents_args), 0, sunos32_sys_getdents }, /* 174 = getdents */ { 0, 0, 0, sys_setsid }, /* 175 = setsid */ { 1, s(struct netbsd32_fchdir_args), 0, netbsd32_fchdir }, /* 176 = netbsd32_fchdir */ { 1, s(struct netbsd32_fchroot_args), 0, netbsd32_fchroot }, /* 177 = netbsd32_fchroot */ { 0, 0, 0, sys_nosys }, /* 178 = unimplemented vpixsys */ { 0, 0, 0, sys_nosys }, /* 179 = unimplemented aioread */ { 0, 0, 0, sys_nosys }, /* 180 = unimplemented aiowrite */ { 0, 0, 0, sys_nosys }, /* 181 = unimplemented aiowait */ { 0, 0, 0, sys_nosys }, /* 182 = unimplemented aiocancel */ { 1, s(struct sunos32_sys_sigpending_args), 0, sunos32_sys_sigpending }, /* 183 = sigpending */ { 0, 0, 0, sys_nosys }, /* 184 = unimplemented */ { 2, s(struct netbsd32_setpgid_args), 0, netbsd32_setpgid }, /* 185 = netbsd32_setpgid */ { 2, s(struct netbsd32_pathconf_args), 0, netbsd32_pathconf }, /* 186 = netbsd32_pathconf */ { 2, s(struct netbsd32_fpathconf_args), 0, netbsd32_fpathconf }, /* 187 = netbsd32_fpathconf */ { 1, s(struct sunos32_sys_sysconf_args), 0, sunos32_sys_sysconf }, /* 188 = sysconf */ { 1, s(struct sunos32_sys_uname_args), 0, sunos32_sys_uname }, /* 189 = uname */ };