1 /* 2 * System call switch table. 3 * 4 * DO NOT EDIT-- this file is automatically generated. 5 * created from FreeBSD 6 */ 7 8 #include <sys/param.h> 9 #include <sys/sysent.h> 10 #include <sys/sysproto.h> 11 12 #ifdef COMPAT_43 13 #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name) 14 #else 15 #define compat(n, name) 0, (sy_call_t *)nosys 16 #endif 17 18 /* The casts are bogus but will do for now. */ 19 struct sysent sysent[] = { 20 { 0, (sy_call_t *)nosys }, /* 0 = syscall */ 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 *)open }, /* 5 = open */ 26 { 1, (sy_call_t *)close }, /* 6 = close */ 27 { 4, (sy_call_t *)wait4 }, /* 7 = wait4 */ 28 { compat(2,creat) }, /* 8 = old creat */ 29 { 2, (sy_call_t *)link }, /* 9 = link */ 30 { 1, (sy_call_t *)unlink }, /* 10 = unlink */ 31 { 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */ 32 { 1, (sy_call_t *)chdir }, /* 12 = chdir */ 33 { 1, (sy_call_t *)fchdir }, /* 13 = fchdir */ 34 { 3, (sy_call_t *)mknod }, /* 14 = mknod */ 35 { 2, (sy_call_t *)chmod }, /* 15 = chmod */ 36 { 3, (sy_call_t *)chown }, /* 16 = chown */ 37 { 1, (sy_call_t *)obreak }, /* 17 = break */ 38 { 3, (sy_call_t *)getfsstat }, /* 18 = getfsstat */ 39 { compat(3,lseek) }, /* 19 = old lseek */ 40 { 0, (sy_call_t *)getpid }, /* 20 = getpid */ 41 { 4, (sy_call_t *)mount }, /* 21 = mount */ 42 { 2, (sy_call_t *)unmount }, /* 22 = unmount */ 43 { 1, (sy_call_t *)setuid }, /* 23 = setuid */ 44 { 0, (sy_call_t *)getuid }, /* 24 = getuid */ 45 { 0, (sy_call_t *)geteuid }, /* 25 = geteuid */ 46 { 4, (sy_call_t *)ptrace }, /* 26 = ptrace */ 47 { 3, (sy_call_t *)recvmsg }, /* 27 = recvmsg */ 48 { 3, (sy_call_t *)sendmsg }, /* 28 = sendmsg */ 49 { 6, (sy_call_t *)recvfrom }, /* 29 = recvfrom */ 50 { 3, (sy_call_t *)accept }, /* 30 = accept */ 51 { 3, (sy_call_t *)getpeername }, /* 31 = getpeername */ 52 { 3, (sy_call_t *)getsockname }, /* 32 = getsockname */ 53 { 2, (sy_call_t *)access }, /* 33 = access */ 54 { 2, (sy_call_t *)chflags }, /* 34 = chflags */ 55 { 2, (sy_call_t *)fchflags }, /* 35 = fchflags */ 56 { 0, (sy_call_t *)sync }, /* 36 = sync */ 57 { 2, (sy_call_t *)kill }, /* 37 = kill */ 58 { compat(2,stat) }, /* 38 = old stat */ 59 { 0, (sy_call_t *)getppid }, /* 39 = getppid */ 60 { compat(2,lstat) }, /* 40 = old lstat */ 61 { 1, (sy_call_t *)dup }, /* 41 = dup */ 62 { 0, (sy_call_t *)pipe }, /* 42 = pipe */ 63 { 0, (sy_call_t *)getegid }, /* 43 = getegid */ 64 { 4, (sy_call_t *)profil }, /* 44 = profil */ 65 { 4, (sy_call_t *)ktrace }, /* 45 = ktrace */ 66 { 3, (sy_call_t *)sigaction }, /* 46 = sigaction */ 67 { 0, (sy_call_t *)getgid }, /* 47 = getgid */ 68 { 2, (sy_call_t *)sigprocmask }, /* 48 = sigprocmask */ 69 { 2, (sy_call_t *)getlogin }, /* 49 = getlogin */ 70 { 1, (sy_call_t *)setlogin }, /* 50 = setlogin */ 71 { 1, (sy_call_t *)acct }, /* 51 = acct */ 72 { 0, (sy_call_t *)sigpending }, /* 52 = sigpending */ 73 { 2, (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */ 74 { 3, (sy_call_t *)ioctl }, /* 54 = ioctl */ 75 { 1, (sy_call_t *)reboot }, /* 55 = reboot */ 76 { 1, (sy_call_t *)revoke }, /* 56 = revoke */ 77 { 2, (sy_call_t *)symlink }, /* 57 = symlink */ 78 { 3, (sy_call_t *)readlink }, /* 58 = readlink */ 79 { 3, (sy_call_t *)execve }, /* 59 = execve */ 80 { 1, (sy_call_t *)umask }, /* 60 = umask */ 81 { 1, (sy_call_t *)chroot }, /* 61 = chroot */ 82 { compat(2,fstat) }, /* 62 = old fstat */ 83 { compat(4,getkerninfo) }, /* 63 = old getkerninfo */ 84 { compat(0,getpagesize) }, /* 64 = old getpagesize */ 85 { 3, (sy_call_t *)msync }, /* 65 = msync */ 86 { 0, (sy_call_t *)vfork }, /* 66 = vfork */ 87 { 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */ 88 { 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */ 89 { 1, (sy_call_t *)sbrk }, /* 69 = sbrk */ 90 { 1, (sy_call_t *)sstk }, /* 70 = sstk */ 91 { compat(6,mmap) }, /* 71 = old mmap */ 92 { 1, (sy_call_t *)ovadvise }, /* 72 = vadvise */ 93 { 2, (sy_call_t *)munmap }, /* 73 = munmap */ 94 { 3, (sy_call_t *)mprotect }, /* 74 = mprotect */ 95 { 3, (sy_call_t *)madvise }, /* 75 = madvise */ 96 { 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */ 97 { 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */ 98 { 3, (sy_call_t *)mincore }, /* 78 = mincore */ 99 { 2, (sy_call_t *)getgroups }, /* 79 = getgroups */ 100 { 2, (sy_call_t *)setgroups }, /* 80 = setgroups */ 101 { 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */ 102 { 2, (sy_call_t *)setpgid }, /* 82 = setpgid */ 103 { 3, (sy_call_t *)setitimer }, /* 83 = setitimer */ 104 { compat(0,wait) }, /* 84 = old wait */ 105 { 1, (sy_call_t *)swapon }, /* 85 = swapon */ 106 { 2, (sy_call_t *)getitimer }, /* 86 = getitimer */ 107 { compat(2,gethostname) }, /* 87 = old gethostname */ 108 { compat(2,sethostname) }, /* 88 = old sethostname */ 109 { 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */ 110 { 2, (sy_call_t *)dup2 }, /* 90 = dup2 */ 111 { 0, (sy_call_t *)nosys }, /* 91 = getdopt */ 112 { 3, (sy_call_t *)fcntl }, /* 92 = fcntl */ 113 { 5, (sy_call_t *)select }, /* 93 = select */ 114 { 0, (sy_call_t *)nosys }, /* 94 = setdopt */ 115 { 1, (sy_call_t *)fsync }, /* 95 = fsync */ 116 { 3, (sy_call_t *)setpriority }, /* 96 = setpriority */ 117 { 3, (sy_call_t *)socket }, /* 97 = socket */ 118 { 3, (sy_call_t *)connect }, /* 98 = connect */ 119 { compat(3,accept) }, /* 99 = old accept */ 120 { 2, (sy_call_t *)getpriority }, /* 100 = getpriority */ 121 { compat(4,send) }, /* 101 = old send */ 122 { compat(4,recv) }, /* 102 = old recv */ 123 { 1, (sy_call_t *)sigreturn }, /* 103 = sigreturn */ 124 { 3, (sy_call_t *)bind }, /* 104 = bind */ 125 { 5, (sy_call_t *)setsockopt }, /* 105 = setsockopt */ 126 { 2, (sy_call_t *)listen }, /* 106 = listen */ 127 { 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */ 128 { compat(3,sigvec) }, /* 108 = old sigvec */ 129 { compat(1,sigblock) }, /* 109 = old sigblock */ 130 { compat(1,sigsetmask) }, /* 110 = old sigsetmask */ 131 { 1, (sy_call_t *)sigsuspend }, /* 111 = sigsuspend */ 132 { compat(2,sigstack) }, /* 112 = old sigstack */ 133 { compat(3,recvmsg) }, /* 113 = old recvmsg */ 134 { compat(3,sendmsg) }, /* 114 = old sendmsg */ 135 { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */ 136 { 2, (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */ 137 { 2, (sy_call_t *)getrusage }, /* 117 = getrusage */ 138 { 5, (sy_call_t *)getsockopt }, /* 118 = getsockopt */ 139 { 0, (sy_call_t *)nosys }, /* 119 = resuba */ 140 { 3, (sy_call_t *)readv }, /* 120 = readv */ 141 { 3, (sy_call_t *)writev }, /* 121 = writev */ 142 { 2, (sy_call_t *)settimeofday }, /* 122 = settimeofday */ 143 { 3, (sy_call_t *)fchown }, /* 123 = fchown */ 144 { 2, (sy_call_t *)fchmod }, /* 124 = fchmod */ 145 { compat(6,recvfrom) }, /* 125 = old recvfrom */ 146 { 2, (sy_call_t *)setreuid }, /* 126 = setreuid */ 147 { 2, (sy_call_t *)setregid }, /* 127 = setregid */ 148 { 2, (sy_call_t *)rename }, /* 128 = rename */ 149 { compat(2,truncate) }, /* 129 = old truncate */ 150 { compat(2,ftruncate) }, /* 130 = old ftruncate */ 151 { 2, (sy_call_t *)flock }, /* 131 = flock */ 152 { 2, (sy_call_t *)mkfifo }, /* 132 = mkfifo */ 153 { 6, (sy_call_t *)sendto }, /* 133 = sendto */ 154 { 2, (sy_call_t *)shutdown }, /* 134 = shutdown */ 155 { 4, (sy_call_t *)socketpair }, /* 135 = socketpair */ 156 { 2, (sy_call_t *)mkdir }, /* 136 = mkdir */ 157 { 1, (sy_call_t *)rmdir }, /* 137 = rmdir */ 158 { 2, (sy_call_t *)utimes }, /* 138 = utimes */ 159 { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */ 160 { 2, (sy_call_t *)adjtime }, /* 140 = adjtime */ 161 { compat(3,getpeername) }, /* 141 = old getpeername */ 162 { compat(0,gethostid) }, /* 142 = old gethostid */ 163 { compat(1,sethostid) }, /* 143 = old sethostid */ 164 { compat(2,getrlimit) }, /* 144 = old getrlimit */ 165 { compat(2,setrlimit) }, /* 145 = old setrlimit */ 166 { compat(2,killpg) }, /* 146 = old killpg */ 167 { 0, (sy_call_t *)setsid }, /* 147 = setsid */ 168 { 4, (sy_call_t *)quotactl }, /* 148 = quotactl */ 169 { compat(0,quota) }, /* 149 = old quota */ 170 { compat(3,getsockname) }, /* 150 = old getsockname */ 171 { 0, (sy_call_t *)nosys }, /* 151 = sem_lock */ 172 { 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */ 173 { 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */ 174 { 0, (sy_call_t *)nosys }, /* 154 = nosys */ 175 #ifdef NFS 176 { 2, (sy_call_t *)nfssvc }, /* 155 = nfssvc */ 177 #else 178 { 0, (sy_call_t *)nosys }, /* 155 = nosys */ 179 #endif 180 { compat(4,getdirentries) }, /* 156 = old getdirentries */ 181 { 2, (sy_call_t *)statfs }, /* 157 = statfs */ 182 { 2, (sy_call_t *)fstatfs }, /* 158 = fstatfs */ 183 { 0, (sy_call_t *)nosys }, /* 159 = nosys */ 184 { 0, (sy_call_t *)nosys }, /* 160 = nosys */ 185 #if defined(NFS) && !defined (NFS_NOSERVER) 186 { 2, (sy_call_t *)getfh }, /* 161 = getfh */ 187 #else 188 { 0, (sy_call_t *)nosys }, /* 161 = nosys */ 189 #endif 190 { 2, (sy_call_t *)getdomainname }, /* 162 = getdomainname */ 191 { 2, (sy_call_t *)setdomainname }, /* 163 = setdomainname */ 192 { 1, (sy_call_t *)uname }, /* 164 = uname */ 193 { 2, (sy_call_t *)sysarch }, /* 165 = sysarch */ 194 { 3, (sy_call_t *)rtprio }, /* 166 = rtprio */ 195 { 0, (sy_call_t *)nosys }, /* 167 = nosys */ 196 { 0, (sy_call_t *)nosys }, /* 168 = nosys */ 197 { 5, (sy_call_t *)semsys }, /* 169 = semsys */ 198 { 6, (sy_call_t *)msgsys }, /* 170 = msgsys */ 199 { 4, (sy_call_t *)shmsys }, /* 171 = shmsys */ 200 { 0, (sy_call_t *)nosys }, /* 172 = nosys */ 201 { 0, (sy_call_t *)nosys }, /* 173 = nosys */ 202 { 0, (sy_call_t *)nosys }, /* 174 = nosys */ 203 { 0, (sy_call_t *)nosys }, /* 175 = nosys */ 204 { 1, (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */ 205 { 0, (sy_call_t *)nosys }, /* 177 = sfork */ 206 { 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */ 207 { 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */ 208 { 0, (sy_call_t *)nosys }, /* 180 = nosys */ 209 { 1, (sy_call_t *)setgid }, /* 181 = setgid */ 210 { 1, (sy_call_t *)setegid }, /* 182 = setegid */ 211 { 1, (sy_call_t *)seteuid }, /* 183 = seteuid */ 212 #ifdef LFS 213 { 3, (sy_call_t *)lfs_bmapv }, /* 184 = lfs_bmapv */ 214 { 3, (sy_call_t *)lfs_markv }, /* 185 = lfs_markv */ 215 { 2, (sy_call_t *)lfs_segclean }, /* 186 = lfs_segclean */ 216 { 2, (sy_call_t *)lfs_segwait }, /* 187 = lfs_segwait */ 217 #else 218 { 0, (sy_call_t *)nosys }, /* 184 = nosys */ 219 { 0, (sy_call_t *)nosys }, /* 185 = nosys */ 220 { 0, (sy_call_t *)nosys }, /* 186 = nosys */ 221 { 0, (sy_call_t *)nosys }, /* 187 = nosys */ 222 #endif 223 { 2, (sy_call_t *)stat }, /* 188 = stat */ 224 { 2, (sy_call_t *)fstat }, /* 189 = fstat */ 225 { 2, (sy_call_t *)lstat }, /* 190 = lstat */ 226 { 2, (sy_call_t *)pathconf }, /* 191 = pathconf */ 227 { 2, (sy_call_t *)fpathconf }, /* 192 = fpathconf */ 228 { 0, (sy_call_t *)nosys }, /* 193 = nosys */ 229 { 2, (sy_call_t *)getrlimit }, /* 194 = getrlimit */ 230 { 2, (sy_call_t *)setrlimit }, /* 195 = setrlimit */ 231 { 4, (sy_call_t *)getdirentries }, /* 196 = getdirentries */ 232 { 8, (sy_call_t *)mmap }, /* 197 = mmap */ 233 { 0, (sy_call_t *)nosys }, /* 198 = __syscall */ 234 { 5, (sy_call_t *)lseek }, /* 199 = lseek */ 235 { 4, (sy_call_t *)truncate }, /* 200 = truncate */ 236 { 4, (sy_call_t *)ftruncate }, /* 201 = ftruncate */ 237 { 6, (sy_call_t *)__sysctl }, /* 202 = __sysctl */ 238 { 2, (sy_call_t *)mlock }, /* 203 = mlock */ 239 { 2, (sy_call_t *)munlock }, /* 204 = munlock */ 240 { 2, (sy_call_t *)utrace }, /* 205 = utrace */ 241 { 1, (sy_call_t *)undelete }, /* 206 = undelete */ 242 { 0, (sy_call_t *)nosys }, /* 207 = nosys */ 243 { 0, (sy_call_t *)nosys }, /* 208 = nosys */ 244 { 0, (sy_call_t *)nosys }, /* 209 = nosys */ 245 { 0, (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */ 246 { 0, (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */ 247 { 0, (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */ 248 { 0, (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */ 249 { 0, (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */ 250 { 0, (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */ 251 { 0, (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */ 252 { 0, (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */ 253 { 0, (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */ 254 { 0, (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */ 255 { 4, (sy_call_t *)__semctl }, /* 220 = __semctl */ 256 { 3, (sy_call_t *)semget }, /* 221 = semget */ 257 { 3, (sy_call_t *)semop }, /* 222 = semop */ 258 { 1, (sy_call_t *)semconfig }, /* 223 = semconfig */ 259 { 3, (sy_call_t *)msgctl }, /* 224 = msgctl */ 260 { 2, (sy_call_t *)msgget }, /* 225 = msgget */ 261 { 4, (sy_call_t *)msgsnd }, /* 226 = msgsnd */ 262 { 5, (sy_call_t *)msgrcv }, /* 227 = msgrcv */ 263 { 3, (sy_call_t *)shmat }, /* 228 = shmat */ 264 { 3, (sy_call_t *)shmctl }, /* 229 = shmctl */ 265 { 1, (sy_call_t *)shmdt }, /* 230 = shmdt */ 266 { 3, (sy_call_t *)shmget }, /* 231 = shmget */ 267 { 0, (sy_call_t *)nosys }, /* 232 = nosys */ 268 { 0, (sy_call_t *)nosys }, /* 233 = nosys */ 269 { 0, (sy_call_t *)nosys }, /* 234 = nosys */ 270 { 0, (sy_call_t *)nosys }, /* 235 = nosys */ 271 { 0, (sy_call_t *)nosys }, /* 236 = nosys */ 272 { 0, (sy_call_t *)nosys }, /* 237 = nosys */ 273 { 0, (sy_call_t *)nosys }, /* 238 = nosys */ 274 { 0, (sy_call_t *)nosys }, /* 239 = nosys */ 275 { 0, (sy_call_t *)nosys }, /* 240 = nosys */ 276 { 0, (sy_call_t *)nosys }, /* 241 = nosys */ 277 { 0, (sy_call_t *)nosys }, /* 242 = nosys */ 278 { 0, (sy_call_t *)nosys }, /* 243 = nosys */ 279 { 0, (sy_call_t *)nosys }, /* 244 = nosys */ 280 { 0, (sy_call_t *)nosys }, /* 245 = nosys */ 281 { 0, (sy_call_t *)nosys }, /* 246 = nosys */ 282 { 0, (sy_call_t *)nosys }, /* 247 = nosys */ 283 { 0, (sy_call_t *)nosys }, /* 248 = nosys */ 284 { 0, (sy_call_t *)nosys }, /* 249 = nosys */ 285 { 3, (sy_call_t *)minherit }, /* 250 = minherit */ 286 { 1, (sy_call_t *)rfork }, /* 251 = rfork */ 287 }; 288