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