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