svr4_sysent.c revision 52334
1/* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically generated. 5 * $FreeBSD: head/sys/compat/svr4/svr4_sysent.c 52334 1999-10-17 14:50:13Z newton $ 6 * created from; @(#)syscalls.master 8.1 (Berkeley) 7/19/93 7 */ 8 9#include <sys/types.h> 10#include <sys/sysent.h> 11#include <sys/sysproto.h> 12#include <netinet/in.h> 13#include <svr4/svr4_types.h> 14#include <svr4/svr4_signal.h> 15#include <svr4/svr4_proto.h> 16 17/* The casts are bogus but will do for now. */ 18struct sysent svr4_sysent[] = { 19 { 0, (sy_call_t *)nosys }, /* 0 = unused */ 20 { 1, (sy_call_t *)exit }, /* 1 = exit */ 21 { 0, (sy_call_t *)fork }, /* 2 = fork */ 22 { 3, (sy_call_t *)read }, /* 3 = read */ 23 { 3, (sy_call_t *)write }, /* 4 = write */ 24 { 3, (sy_call_t *)svr4_sys_open }, /* 5 = svr4_sys_open */ 25 { 1, (sy_call_t *)close }, /* 6 = close */ 26 { 1, (sy_call_t *)svr4_sys_wait }, /* 7 = svr4_sys_wait */ 27 { 2, (sy_call_t *)svr4_sys_creat }, /* 8 = svr4_sys_creat */ 28 { 2, (sy_call_t *)link }, /* 9 = link */ 29 { 1, (sy_call_t *)unlink }, /* 10 = unlink */ 30 { 2, (sy_call_t *)svr4_sys_execv }, /* 11 = svr4_sys_execv */ 31 { 1, (sy_call_t *)chdir }, /* 12 = chdir */ 32 { 1, (sy_call_t *)svr4_sys_time }, /* 13 = svr4_sys_time */ 33 { 3, (sy_call_t *)svr4_sys_mknod }, /* 14 = svr4_sys_mknod */ 34 { 2, (sy_call_t *)chmod }, /* 15 = chmod */ 35 { 3, (sy_call_t *)chown }, /* 16 = chown */ 36 { 1, (sy_call_t *)svr4_sys_break }, /* 17 = svr4_sys_break */ 37 { 2, (sy_call_t *)svr4_sys_stat }, /* 18 = svr4_sys_stat */ 38 { 3, (sy_call_t *)lseek }, /* 19 = lseek */ 39 { 0, (sy_call_t *)getpid }, /* 20 = getpid */ 40 { 0, (sy_call_t *)nosys }, /* 21 = old_mount */ 41 { 0, (sy_call_t *)nosys }, /* 22 = sysv_umount */ 42 { 1, (sy_call_t *)setuid }, /* 23 = setuid */ 43 { 0, (sy_call_t *)getuid }, /* 24 = getuid */ 44 { 0, (sy_call_t *)nosys }, /* 25 = stime */ 45 { 0, (sy_call_t *)nosys }, /* 26 = ptrace */ 46 { 1, (sy_call_t *)svr4_sys_alarm }, /* 27 = svr4_sys_alarm */ 47 { 2, (sy_call_t *)svr4_sys_fstat }, /* 28 = svr4_sys_fstat */ 48 { 0, (sy_call_t *)svr4_sys_pause }, /* 29 = svr4_sys_pause */ 49 { 2, (sy_call_t *)svr4_sys_utime }, /* 30 = svr4_sys_utime */ 50 { 0, (sy_call_t *)nosys }, /* 31 = stty */ 51 { 0, (sy_call_t *)nosys }, /* 32 = gtty */ 52 { 2, (sy_call_t *)svr4_sys_access }, /* 33 = svr4_sys_access */ 53 { 1, (sy_call_t *)svr4_sys_nice }, /* 34 = svr4_sys_nice */ 54 { 0, (sy_call_t *)nosys }, /* 35 = statfs */ 55 { 0, (sy_call_t *)sync }, /* 36 = sync */ 56 { 2, (sy_call_t *)svr4_sys_kill }, /* 37 = svr4_sys_kill */ 57 { 0, (sy_call_t *)nosys }, /* 38 = fstatfs */ 58 { 3, (sy_call_t *)svr4_sys_pgrpsys }, /* 39 = svr4_sys_pgrpsys */ 59 { 0, (sy_call_t *)nosys }, /* 40 = xenix */ 60 { 1, (sy_call_t *)dup }, /* 41 = dup */ 61 { 0, (sy_call_t *)pipe }, /* 42 = pipe */ 62 { 1, (sy_call_t *)svr4_sys_times }, /* 43 = svr4_sys_times */ 63 { 0, (sy_call_t *)nosys }, /* 44 = profil */ 64 { 0, (sy_call_t *)nosys }, /* 45 = plock */ 65 { 1, (sy_call_t *)setgid }, /* 46 = setgid */ 66 { 0, (sy_call_t *)getgid }, /* 47 = getgid */ 67 { 2, (sy_call_t *)svr4_sys_signal }, /* 48 = svr4_sys_signal */ 68#if defined(NOTYET) 69 { 5, (sy_call_t *)svr4_sys_msgsys }, /* 49 = svr4_sys_msgsys */ 70#else 71 { 0, (sy_call_t *)nosys }, /* 49 = msgsys */ 72#endif 73 { 2, (sy_call_t *)svr4_sys_sysarch }, /* 50 = svr4_sys_sysarch */ 74 { 0, (sy_call_t *)nosys }, /* 51 = acct */ 75 { 0, (sy_call_t *)nosys }, /* 52 = shmsys */ 76 { 0, (sy_call_t *)nosys }, /* 53 = semsys */ 77 { 3, (sy_call_t *)svr4_sys_ioctl }, /* 54 = svr4_sys_ioctl */ 78 { 0, (sy_call_t *)nosys }, /* 55 = uadmin */ 79 { 0, (sy_call_t *)nosys }, /* 56 = exch */ 80 { 4, (sy_call_t *)svr4_sys_utssys }, /* 57 = svr4_sys_utssys */ 81 { 1, (sy_call_t *)fsync }, /* 58 = fsync */ 82 { 3, (sy_call_t *)svr4_sys_execve }, /* 59 = svr4_sys_execve */ 83 { 1, (sy_call_t *)umask }, /* 60 = umask */ 84 { 1, (sy_call_t *)chroot }, /* 61 = chroot */ 85 { 3, (sy_call_t *)svr4_sys_fcntl }, /* 62 = svr4_sys_fcntl */ 86 { 2, (sy_call_t *)svr4_sys_ulimit }, /* 63 = svr4_sys_ulimit */ 87 { 0, (sy_call_t *)nosys }, /* 64 = reserved */ 88 { 0, (sy_call_t *)nosys }, /* 65 = reserved */ 89 { 0, (sy_call_t *)nosys }, /* 66 = reserved */ 90 { 0, (sy_call_t *)nosys }, /* 67 = reserved */ 91 { 0, (sy_call_t *)nosys }, /* 68 = reserved */ 92 { 0, (sy_call_t *)nosys }, /* 69 = reserved */ 93 { 0, (sy_call_t *)nosys }, /* 70 = advfs */ 94 { 0, (sy_call_t *)nosys }, /* 71 = unadvfs */ 95 { 0, (sy_call_t *)nosys }, /* 72 = rmount */ 96 { 0, (sy_call_t *)nosys }, /* 73 = rumount */ 97 { 0, (sy_call_t *)nosys }, /* 74 = rfstart */ 98 { 0, (sy_call_t *)nosys }, /* 75 = sigret */ 99 { 0, (sy_call_t *)nosys }, /* 76 = rdebug */ 100 { 0, (sy_call_t *)nosys }, /* 77 = rfstop */ 101 { 0, (sy_call_t *)nosys }, /* 78 = rfsys */ 102 { 1, (sy_call_t *)rmdir }, /* 79 = rmdir */ 103 { 2, (sy_call_t *)mkdir }, /* 80 = mkdir */ 104 { 3, (sy_call_t *)svr4_sys_getdents }, /* 81 = svr4_sys_getdents */ 105 { 0, (sy_call_t *)nosys }, /* 82 = libattach */ 106 { 0, (sy_call_t *)nosys }, /* 83 = libdetach */ 107 { 0, (sy_call_t *)nosys }, /* 84 = sysfs */ 108 { 4, (sy_call_t *)svr4_sys_getmsg }, /* 85 = svr4_sys_getmsg */ 109 { 4, (sy_call_t *)svr4_sys_putmsg }, /* 86 = svr4_sys_putmsg */ 110 { 3, (sy_call_t *)svr4_sys_poll }, /* 87 = svr4_sys_poll */ 111 { 2, (sy_call_t *)svr4_sys_lstat }, /* 88 = svr4_sys_lstat */ 112 { 2, (sy_call_t *)symlink }, /* 89 = symlink */ 113 { 3, (sy_call_t *)readlink }, /* 90 = readlink */ 114 { 2, (sy_call_t *)getgroups }, /* 91 = getgroups */ 115 { 2, (sy_call_t *)setgroups }, /* 92 = setgroups */ 116 { 2, (sy_call_t *)fchmod }, /* 93 = fchmod */ 117 { 3, (sy_call_t *)fchown }, /* 94 = fchown */ 118 { 3, (sy_call_t *)svr4_sys_sigprocmask }, /* 95 = svr4_sys_sigprocmask */ 119 { 1, (sy_call_t *)svr4_sys_sigsuspend }, /* 96 = svr4_sys_sigsuspend */ 120 { 2, (sy_call_t *)svr4_sys_sigaltstack }, /* 97 = svr4_sys_sigaltstack */ 121 { 3, (sy_call_t *)svr4_sys_sigaction }, /* 98 = svr4_sys_sigaction */ 122 { 2, (sy_call_t *)svr4_sys_sigpending }, /* 99 = svr4_sys_sigpending */ 123 { 2, (sy_call_t *)svr4_sys_context }, /* 100 = svr4_sys_context */ 124 { 0, (sy_call_t *)nosys }, /* 101 = evsys */ 125 { 0, (sy_call_t *)nosys }, /* 102 = evtrapret */ 126 { 2, (sy_call_t *)svr4_sys_statvfs }, /* 103 = svr4_sys_statvfs */ 127 { 2, (sy_call_t *)svr4_sys_fstatvfs }, /* 104 = svr4_sys_fstatvfs */ 128 { 0, (sy_call_t *)nosys }, /* 105 = whoknows */ 129 { 0, (sy_call_t *)nosys }, /* 106 = nfssvc */ 130 { 4, (sy_call_t *)svr4_sys_waitsys }, /* 107 = svr4_sys_waitsys */ 131 { 0, (sy_call_t *)nosys }, /* 108 = sigsendsys */ 132 { 5, (sy_call_t *)svr4_sys_hrtsys }, /* 109 = svr4_sys_hrtsys */ 133 { 0, (sy_call_t *)nosys }, /* 110 = acancel */ 134 { 0, (sy_call_t *)nosys }, /* 111 = async */ 135 { 0, (sy_call_t *)nosys }, /* 112 = priocntlsys */ 136 { 2, (sy_call_t *)svr4_sys_pathconf }, /* 113 = svr4_sys_pathconf */ 137 { 0, (sy_call_t *)nosys }, /* 114 = mincore */ 138 { 6, (sy_call_t *)svr4_sys_mmap }, /* 115 = svr4_sys_mmap */ 139 { 3, (sy_call_t *)mprotect }, /* 116 = mprotect */ 140 { 2, (sy_call_t *)munmap }, /* 117 = munmap */ 141 { 2, (sy_call_t *)svr4_sys_fpathconf }, /* 118 = svr4_sys_fpathconf */ 142 { 0, (sy_call_t *)vfork }, /* 119 = vfork */ 143 { 1, (sy_call_t *)fchdir }, /* 120 = fchdir */ 144 { 3, (sy_call_t *)readv }, /* 121 = readv */ 145 { 3, (sy_call_t *)writev }, /* 122 = writev */ 146 { 3, (sy_call_t *)svr4_sys_xstat }, /* 123 = svr4_sys_xstat */ 147 { 3, (sy_call_t *)svr4_sys_lxstat }, /* 124 = svr4_sys_lxstat */ 148 { 3, (sy_call_t *)svr4_sys_fxstat }, /* 125 = svr4_sys_fxstat */ 149 { 4, (sy_call_t *)svr4_sys_xmknod }, /* 126 = svr4_sys_xmknod */ 150 { 0, (sy_call_t *)nosys }, /* 127 = clocal */ 151 { 2, (sy_call_t *)svr4_sys_setrlimit }, /* 128 = svr4_sys_setrlimit */ 152 { 2, (sy_call_t *)svr4_sys_getrlimit }, /* 129 = svr4_sys_getrlimit */ 153 { 3, (sy_call_t *)lchown }, /* 130 = lchown */ 154 { 6, (sy_call_t *)svr4_sys_memcntl }, /* 131 = svr4_sys_memcntl */ 155 { 0, (sy_call_t *)nosys }, /* 132 = getpmsg */ 156 { 0, (sy_call_t *)nosys }, /* 133 = putpmsg */ 157 { 2, (sy_call_t *)rename }, /* 134 = rename */ 158 { 2, (sy_call_t *)svr4_sys_uname }, /* 135 = svr4_sys_uname */ 159 { 1, (sy_call_t *)setegid }, /* 136 = setegid */ 160 { 1, (sy_call_t *)svr4_sys_sysconfig }, /* 137 = svr4_sys_sysconfig */ 161 { 2, (sy_call_t *)adjtime }, /* 138 = adjtime */ 162 { 3, (sy_call_t *)svr4_sys_systeminfo }, /* 139 = svr4_sys_systeminfo */ 163 { 0, (sy_call_t *)nosys }, /* 140 = notused */ 164 { 1, (sy_call_t *)seteuid }, /* 141 = seteuid */ 165 { 0, (sy_call_t *)nosys }, /* 142 = vtrace */ 166 { 0, (sy_call_t *)nosys }, /* 143 = { */ 167 { 0, (sy_call_t *)nosys }, /* 144 = sigtimedwait */ 168 { 0, (sy_call_t *)nosys }, /* 145 = lwp_info */ 169 { 0, (sy_call_t *)nosys }, /* 146 = yield */ 170 { 0, (sy_call_t *)nosys }, /* 147 = lwp_sema_wait */ 171 { 0, (sy_call_t *)nosys }, /* 148 = lwp_sema_post */ 172 { 0, (sy_call_t *)nosys }, /* 149 = lwp_sema_trywait */ 173 { 0, (sy_call_t *)nosys }, /* 150 = notused */ 174 { 0, (sy_call_t *)nosys }, /* 151 = notused */ 175 { 0, (sy_call_t *)nosys }, /* 152 = modctl */ 176 { 1, (sy_call_t *)svr4_sys_fchroot }, /* 153 = svr4_sys_fchroot */ 177 { 2, (sy_call_t *)svr4_sys_utimes }, /* 154 = svr4_sys_utimes */ 178 { 0, (sy_call_t *)svr4_sys_vhangup }, /* 155 = svr4_sys_vhangup */ 179 { 1, (sy_call_t *)svr4_sys_gettimeofday }, /* 156 = svr4_sys_gettimeofday */ 180 { 2, (sy_call_t *)getitimer }, /* 157 = getitimer */ 181 { 3, (sy_call_t *)setitimer }, /* 158 = setitimer */ 182 { 0, (sy_call_t *)nosys }, /* 159 = lwp_create */ 183 { 0, (sy_call_t *)nosys }, /* 160 = lwp_exit */ 184 { 0, (sy_call_t *)nosys }, /* 161 = lwp_suspend */ 185 { 0, (sy_call_t *)nosys }, /* 162 = lwp_continue */ 186 { 0, (sy_call_t *)nosys }, /* 163 = lwp_kill */ 187 { 0, (sy_call_t *)nosys }, /* 164 = lwp_self */ 188 { 0, (sy_call_t *)nosys }, /* 165 = lwp_getprivate */ 189 { 0, (sy_call_t *)nosys }, /* 166 = lwp_setprivate */ 190 { 0, (sy_call_t *)nosys }, /* 167 = lwp_wait */ 191 { 0, (sy_call_t *)nosys }, /* 168 = lwp_mutex_unlock */ 192 { 0, (sy_call_t *)nosys }, /* 169 = lwp_mutex_lock */ 193 { 0, (sy_call_t *)nosys }, /* 170 = lwp_cond_wait */ 194 { 0, (sy_call_t *)nosys }, /* 171 = lwp_cond_signal */ 195 { 0, (sy_call_t *)nosys }, /* 172 = lwp_cond_broadcast */ 196 { 0, (sy_call_t *)nosys }, /* 173 = { */ 197 { 0, (sy_call_t *)nosys }, /* 174 = { */ 198 { 4, (sy_call_t *)svr4_sys_llseek }, /* 175 = svr4_sys_llseek */ 199 { 0, (sy_call_t *)nosys }, /* 176 = inst_sync */ 200 { 0, (sy_call_t *)nosys }, /* 177 = whoknows */ 201 { 0, (sy_call_t *)nosys }, /* 178 = kaio */ 202 { 0, (sy_call_t *)nosys }, /* 179 = whoknows */ 203 { 0, (sy_call_t *)nosys }, /* 180 = whoknows */ 204 { 0, (sy_call_t *)nosys }, /* 181 = whoknows */ 205 { 0, (sy_call_t *)nosys }, /* 182 = whoknows */ 206 { 0, (sy_call_t *)nosys }, /* 183 = whoknows */ 207 { 0, (sy_call_t *)nosys }, /* 184 = tsolsys */ 208 { 4, (sy_call_t *)svr4_sys_acl }, /* 185 = svr4_sys_acl */ 209 { 6, (sy_call_t *)svr4_sys_auditsys }, /* 186 = svr4_sys_auditsys */ 210 { 0, (sy_call_t *)nosys }, /* 187 = processor_bind */ 211 { 0, (sy_call_t *)nosys }, /* 188 = processor_info */ 212 { 0, (sy_call_t *)nosys }, /* 189 = p_online */ 213 { 0, (sy_call_t *)nosys }, /* 190 = sigqueue */ 214 { 0, (sy_call_t *)nosys }, /* 191 = clock_gettime */ 215 { 0, (sy_call_t *)nosys }, /* 192 = clock_settime */ 216 { 0, (sy_call_t *)nosys }, /* 193 = clock_getres */ 217 { 0, (sy_call_t *)nosys }, /* 194 = timer_create */ 218 { 0, (sy_call_t *)nosys }, /* 195 = timer_delete */ 219 { 0, (sy_call_t *)nosys }, /* 196 = timer_settime */ 220 { 0, (sy_call_t *)nosys }, /* 197 = timer_gettime */ 221 { 0, (sy_call_t *)nosys }, /* 198 = timer_overrun */ 222 { 2, (sy_call_t *)nanosleep }, /* 199 = nanosleep */ 223 { 4, (sy_call_t *)svr4_sys_facl }, /* 200 = svr4_sys_facl */ 224 { 0, (sy_call_t *)nosys }, /* 201 = door */ 225 { 2, (sy_call_t *)setreuid }, /* 202 = setreuid */ 226 { 2, (sy_call_t *)setregid }, /* 203 = setregid */ 227 { 0, (sy_call_t *)nosys }, /* 204 = install_utrap */ 228 { 0, (sy_call_t *)nosys }, /* 205 = signotify */ 229 { 0, (sy_call_t *)nosys }, /* 206 = schedctl */ 230 { 0, (sy_call_t *)nosys }, /* 207 = pset */ 231 { 0, (sy_call_t *)nosys }, /* 208 = whoknows */ 232 { 3, (sy_call_t *)svr4_sys_resolvepath }, /* 209 = svr4_sys_resolvepath */ 233 { 0, (sy_call_t *)nosys }, /* 210 = signotifywait */ 234 { 0, (sy_call_t *)nosys }, /* 211 = lwp_sigredirect */ 235 { 0, (sy_call_t *)nosys }, /* 212 = lwp_alarm */ 236 { 3, (sy_call_t *)svr4_sys_getdents64 }, /* 213 = svr4_sys_getdents64 */ 237 { 6, (sy_call_t *)svr4_sys_mmap64 }, /* 214 = svr4_sys_mmap64 */ 238 { 2, (sy_call_t *)svr4_sys_stat64 }, /* 215 = svr4_sys_stat64 */ 239 { 2, (sy_call_t *)svr4_sys_lstat64 }, /* 216 = svr4_sys_lstat64 */ 240 { 2, (sy_call_t *)svr4_sys_fstat64 }, /* 217 = svr4_sys_fstat64 */ 241 { 2, (sy_call_t *)svr4_sys_statvfs64 }, /* 218 = svr4_sys_statvfs64 */ 242 { 2, (sy_call_t *)svr4_sys_fstatvfs64 }, /* 219 = svr4_sys_fstatvfs64 */ 243 { 2, (sy_call_t *)svr4_sys_setrlimit64 }, /* 220 = svr4_sys_setrlimit64 */ 244 { 2, (sy_call_t *)svr4_sys_getrlimit64 }, /* 221 = svr4_sys_getrlimit64 */ 245 { 0, (sy_call_t *)nosys }, /* 222 = pread64 */ 246 { 0, (sy_call_t *)nosys }, /* 223 = pwrite64 */ 247 { 2, (sy_call_t *)svr4_sys_creat64 }, /* 224 = svr4_sys_creat64 */ 248 { 3, (sy_call_t *)svr4_sys_open64 }, /* 225 = svr4_sys_open64 */ 249 { 0, (sy_call_t *)nosys }, /* 226 = rpcsys */ 250 { 0, (sy_call_t *)nosys }, /* 227 = whoknows */ 251 { 0, (sy_call_t *)nosys }, /* 228 = whoknows */ 252 { 0, (sy_call_t *)nosys }, /* 229 = whoknows */ 253 { 3, (sy_call_t *)svr4_sys_socket }, /* 230 = svr4_sys_socket */ 254 { 4, (sy_call_t *)socketpair }, /* 231 = socketpair */ 255 { 3, (sy_call_t *)bind }, /* 232 = bind */ 256 { 2, (sy_call_t *)listen }, /* 233 = listen */ 257 { 3, (sy_call_t *)accept }, /* 234 = accept */ 258 { 3, (sy_call_t *)connect }, /* 235 = connect */ 259 { 2, (sy_call_t *)shutdown }, /* 236 = shutdown */ 260 { 4, (sy_call_t *)svr4_sys_recv }, /* 237 = svr4_sys_recv */ 261 { 6, (sy_call_t *)recvfrom }, /* 238 = recvfrom */ 262 { 3, (sy_call_t *)recvmsg }, /* 239 = recvmsg */ 263 { 4, (sy_call_t *)svr4_sys_send }, /* 240 = svr4_sys_send */ 264 { 3, (sy_call_t *)sendmsg }, /* 241 = sendmsg */ 265 { 6, (sy_call_t *)svr4_sys_sendto }, /* 242 = svr4_sys_sendto */ 266 { 3, (sy_call_t *)getpeername }, /* 243 = getpeername */ 267 { 3, (sy_call_t *)getsockname }, /* 244 = getsockname */ 268 { 5, (sy_call_t *)getsockopt }, /* 245 = getsockopt */ 269 { 5, (sy_call_t *)setsockopt }, /* 246 = setsockopt */ 270 { 0, (sy_call_t *)nosys }, /* 247 = sockconfig */ 271 { 0, (sy_call_t *)nosys }, /* 248 = { */ 272 { 0, (sy_call_t *)nosys }, /* 249 = { */ 273}; 274