/* * System call switch table. * * DO NOT EDIT-- this file is automatically generated. * created from: NetBSD syscalls.master,v 1.5 1994/06/30 16:42:48 */ #include #include int nosys(),notimp(); int exit(); int hpux_fork(); int hpux_read(); int hpux_write(); int hpux_open(); int close(); int hpux_wait(); int hpux_creat(); int link(); int unlink(); int hpux_execv(); int chdir(); int mknod(); int chmod(); int chown(); int obreak(); int olseek(); int getpid(); int setuid(); int getuid(); int hpux_ptrace(); int access(); int sync(); int hpux_kill(); int hpux_stat(); int hpux_lstat(); int hpux_dup(); int pipe(); int profil(); int setgid(); int getgid(); int hpux_ioctl(); int symlink(); int hpux_utssys(); int readlink(); int execve(); int umask(); int chroot(); int hpux_fcntl(); int hpux_ulimit(); int hpux_vfork(); int hpux_read(); int hpux_write(); int hpux_mmap(); int munmap(); int getgroups(); int setgroups(); int hpux_getpgrp2(); int hpux_setpgrp2(); int setitimer(); int hpux_wait3(); int getitimer(); int dup2(); int hpux_fstat(); int select(); int fsync(); int sigreturn(); int hpux_sigvec(); int hpux_sigblock(); int hpux_sigsetmask(); int hpux_sigpause(); int osigstack(); int gettimeofday(); int hpux_readv(); int hpux_writev(); int settimeofday(); int fchown(); int fchmod(); int hpux_setresuid(); int hpux_setresgid(); int rename(); int hpux_sysconf(); int mkdir(); int rmdir(); int hpux_rtprio(); int hpux_netioctl(); int hpux_lockf(); #ifdef SYSVSEM int semget(); int semctl(); int semop(); #else #endif #ifdef SYSVMSG int msgget(); int msgctl(); int msgsnd(); int msgrcv(); #else #endif #ifdef SYSVSHM int shmget(); int hpux_shmctl(); int shmat(); int shmdt(); #else #endif int hpux_advise(); int hpux_getcontext(); int hpux_getaccess(); int hpux_waitpid(); int hpux_sigaction(); int hpux_sigprocmask(); int hpux_sigpending(); int hpux_sigsuspend(); int fchdir(); int bind(); int connect(); int getsockopt(); int listen(); int sendto(); int hpux_setsockopt2(); int shutdown(); int socket(); int socketpair(); #ifdef SYSVSHM int semctl(); #else #endif #ifdef SYSVMSG int msgctl(); #else #endif #ifdef SYSVSHM int hpux_nshmctl(); #else #endif #ifdef COMPAT_OHPUX #define compat(n, name) n, __CONCAT(o,name) int ohpux_time(); int ohpux_stat(); int ohpux_stime(); int ohpux_alarm(); int ohpux_fstat(); int ohpux_pause(); int ohpux_utime(); int ohpux_stty(); int ohpux_gtty(); int ohpux_nice(); int ohpux_ftime(); int ohpux_setpgrp(); int ohpux_times(); int ohpux_ssig(); int otruncate(); int oftruncate(); int ogetrlimit(); int osetrlimit(); #ifdef SYSVSEM #else #endif #ifdef SYSVMSG #else #endif #ifdef SYSVSHM #else #endif int ogetdirentries(); int ogetdomainname(); int osetdomainname(); int ogetdtablesize(); int oaccept(); int ogetpeername(); int ogetsockname(); int orecv(); int orecvfrom(); int orecvmsg(); int osend(); int osendmsg(); #ifdef SYSVSHM #else #endif #ifdef SYSVMSG #else #endif #ifdef SYSVSHM #else #endif #else /* COMPAT_OHPUX */ #define compat(n, name) 0, nosys #endif /* COMPAT_OHPUX */ struct sysent hpux_sysent[] = { { 0, nosys }, /* 0 = indir or out-of-range */ { 1, exit }, /* 1 = exit */ { 0, hpux_fork }, /* 2 = fork */ { 3, hpux_read }, /* 3 = read */ { 3, hpux_write }, /* 4 = write */ { 3, hpux_open }, /* 5 = open */ { 1, close }, /* 6 = close */ { 1, hpux_wait }, /* 7 = owait */ { 2, hpux_creat }, /* 8 = ocreat */ { 2, link }, /* 9 = link */ { 1, unlink }, /* 10 = unlink */ { 2, hpux_execv }, /* 11 = execv */ { 1, chdir }, /* 12 = chdir */ { compat(1,hpux_time) }, /* 13 = old time */ { 3, mknod }, /* 14 = mknod */ { 2, chmod }, /* 15 = chmod */ { 3, chown }, /* 16 = chown */ { 1, obreak }, /* 17 = break */ { compat(2,hpux_stat) }, /* 18 = old stat */ { 3, olseek }, /* 19 = olseek */ { 0, getpid }, /* 20 = getpid */ { 3, notimp }, /* 21 = mount (unimplemented) */ { 1, notimp }, /* 22 = umount (unimplemented) */ { 1, setuid }, /* 23 = setuid */ { 0, getuid }, /* 24 = getuid */ { compat(1,hpux_stime) }, /* 25 = old stime */ { 4, hpux_ptrace }, /* 26 = ptrace */ { compat(1,hpux_alarm) }, /* 27 = old alarm */ { compat(2,hpux_fstat) }, /* 28 = old fstat */ { compat(0,hpux_pause) }, /* 29 = old pause */ { compat(2,hpux_utime) }, /* 30 = old utime */ { compat(2,hpux_stty) }, /* 31 = old stty */ { compat(2,hpux_gtty) }, /* 32 = old gtty */ { 2, access }, /* 33 = access */ { compat(1,hpux_nice) }, /* 34 = old nice */ { compat(1,hpux_ftime) }, /* 35 = old ftime */ { 0, sync }, /* 36 = sync */ { 2, hpux_kill }, /* 37 = kill */ { 2, hpux_stat }, /* 38 = stat */ { compat(1,hpux_setpgrp) }, /* 39 = old setpgrp */ { 2, hpux_lstat }, /* 40 = lstat */ { 1, hpux_dup }, /* 41 = dup */ { 0, pipe }, /* 42 = pipe */ { compat(1,hpux_times) }, /* 43 = old times */ { 4, profil }, /* 44 = profil */ { 4, notimp }, /* 45 = ki_syscall (unimplemented) */ { 1, setgid }, /* 46 = setgid */ { 0, getgid }, /* 47 = getgid */ { compat(2,hpux_ssig) }, /* 48 = old ssig */ { 0, nosys }, /* 49 = reserved for USG */ { 0, nosys }, /* 50 = reserved for USG */ { 1, notimp }, /* 51 = acct (unimplemented) */ { 0, nosys }, /* 52 = nosys */ { 0, nosys }, /* 53 = nosys */ { 3, hpux_ioctl }, /* 54 = ioctl */ { 4, notimp }, /* 55 = reboot (unimplemented) */ { 2, symlink }, /* 56 = symlink */ { 3, hpux_utssys }, /* 57 = utssys */ { 3, readlink }, /* 58 = readlink */ { 3, execve }, /* 59 = execve */ { 1, umask }, /* 60 = umask */ { 1, chroot }, /* 61 = chroot */ { 3, hpux_fcntl }, /* 62 = fcntl */ { 2, hpux_ulimit }, /* 63 = ulimit */ { 0, nosys }, /* 64 = nosys */ { 0, nosys }, /* 65 = nosys */ { 0, hpux_vfork }, /* 66 = vfork */ { 0, hpux_read }, /* 67 = vread */ { 0, hpux_write }, /* 68 = vwrite */ { 0, nosys }, /* 69 = nosys */ { 0, nosys }, /* 70 = nosys */ { 6, hpux_mmap }, /* 71 = mmap */ { 0, nosys }, /* 72 = nosys */ { 2, munmap }, /* 73 = munmap */ { 3, notimp }, /* 74 = mprotect (unimplemented) */ { 0, nosys }, /* 75 = nosys */ { 0, nosys }, /* 76 = nosys */ { 0, nosys }, /* 77 = nosys */ { 0, nosys }, /* 78 = nosys */ { 2, getgroups }, /* 79 = getgroups */ { 2, setgroups }, /* 80 = setgroups */ { 1, hpux_getpgrp2 }, /* 81 = getpgrp2 */ { 2, hpux_setpgrp2 }, /* 82 = setpgrp2 */ { 3, setitimer }, /* 83 = setitimer */ { 3, hpux_wait3 }, /* 84 = wait3 */ { 5, notimp }, /* 85 = swapon (unimplemented) */ { 2, getitimer }, /* 86 = getitimer */ { 0, nosys }, /* 87 = nosys */ { 0, nosys }, /* 88 = nosys */ { 0, nosys }, /* 89 = nosys */ { 2, dup2 }, /* 90 = dup2 */ { 0, nosys }, /* 91 = nosys */ { 2, hpux_fstat }, /* 92 = fstat */ { 5, select }, /* 93 = select */ { 0, nosys }, /* 94 = nosys */ { 1, fsync }, /* 95 = fsync */ { 0, nosys }, /* 96 = nosys */ { 0, nosys }, /* 97 = nosys */ { 0, nosys }, /* 98 = nosys */ { 0, nosys }, /* 99 = nosys */ { 0, nosys }, /* 100 = nosys */ { 0, nosys }, /* 101 = nosys */ { 0, nosys }, /* 102 = nosys */ { 1, sigreturn }, /* 103 = sigreturn */ { 0, nosys }, /* 104 = nosys */ { 0, nosys }, /* 105 = nosys */ { 0, nosys }, /* 106 = nosys */ { 0, nosys }, /* 107 = nosys */ { 3, hpux_sigvec }, /* 108 = sigvec */ { 1, hpux_sigblock }, /* 109 = sigblock */ { 1, hpux_sigsetmask }, /* 110 = sigsetmask */ { 1, hpux_sigpause }, /* 111 = sigpause */ { 2, osigstack }, /* 112 = osigstack */ { 0, nosys }, /* 113 = nosys */ { 0, nosys }, /* 114 = nosys */ { 0, nosys }, /* 115 = nosys */ { 2, gettimeofday }, /* 116 = gettimeofday */ { 0, nosys }, /* 117 = nosys */ { 0, nosys }, /* 118 = nosys */ { 3, notimp }, /* 119 = hpib_io_stub (unimplemented) */ { 3, hpux_readv }, /* 120 = readv */ { 3, hpux_writev }, /* 121 = writev */ { 2, settimeofday }, /* 122 = settimeofday */ { 3, fchown }, /* 123 = fchown */ { 2, fchmod }, /* 124 = fchmod */ { 0, nosys }, /* 125 = nosys */ { 3, hpux_setresuid }, /* 126 = setresuid */ { 3, hpux_setresgid }, /* 127 = setresgid */ { 2, rename }, /* 128 = rename */ { compat(2,truncate) }, /* 129 = old truncate */ { compat(2,ftruncate) }, /* 130 = old ftruncate */ { 0, nosys }, /* 131 = nosys */ { 1, hpux_sysconf }, /* 132 = sysconf */ { 0, nosys }, /* 133 = nosys */ { 0, nosys }, /* 134 = nosys */ { 0, nosys }, /* 135 = nosys */ { 2, mkdir }, /* 136 = mkdir */ { 1, rmdir }, /* 137 = rmdir */ { 0, nosys }, /* 138 = nosys */ { 0, nosys }, /* 139 = nosys */ { 0, nosys }, /* 140 = nosys */ { 0, nosys }, /* 141 = nosys */ { 0, nosys }, /* 142 = nosys */ { 0, nosys }, /* 143 = nosys */ { compat(2,getrlimit) }, /* 144 = old getrlimit */ { compat(2,setrlimit) }, /* 145 = old setrlimit */ { 0, nosys }, /* 146 = nosys */ { 0, nosys }, /* 147 = nosys */ { 0, nosys }, /* 148 = nosys */ { 0, nosys }, /* 149 = nosys */ { 0, nosys }, /* 150 = nosys */ { 3, notimp }, /* 151 = privgrp (unimplemented) */ { 2, hpux_rtprio }, /* 152 = rtprio */ { 1, notimp }, /* 153 = plock (unimplemented) */ { 2, hpux_netioctl }, /* 154 = netioctl */ { 4, hpux_lockf }, /* 155 = lockf */ #ifdef SYSVSEM { 3, semget }, /* 156 = semget */ { 4, semctl }, /* 157 = semctl */ { 3, semop }, /* 158 = semop */ #else { 3, notimp }, /* 156 = semget (unimplemented) */ { 4, notimp }, /* 157 = semctl (unimplemented) */ { 3, notimp }, /* 158 = semop (unimplemented) */ #endif #ifdef SYSVMSG { 2, msgget }, /* 159 = msgget */ { 3, msgctl }, /* 160 = msgctl */ { 4, msgsnd }, /* 161 = msgsnd */ { 5, msgrcv }, /* 162 = msgrcv */ #else { 2, notimp }, /* 159 = msgget (unimplemented) */ { 3, notimp }, /* 160 = msgctl (unimplemented) */ { 4, notimp }, /* 161 = msgsnd (unimplemented) */ { 5, notimp }, /* 162 = msgrcv (unimplemented) */ #endif #ifdef SYSVSHM { 3, shmget }, /* 163 = shmget */ { 3, hpux_shmctl }, /* 164 = shmctl */ { 3, shmat }, /* 165 = shmat */ { 1, shmdt }, /* 166 = shmdt */ #else { 3, notimp }, /* 163 = shmget (unimplemented) */ { 3, notimp }, /* 164 = shmctl (unimplemented) */ { 3, notimp }, /* 165 = shmat (unimplemented) */ { 1, notimp }, /* 166 = shmdt (unimplemented) */ #endif { 1, hpux_advise }, /* 167 = m68020_advise */ { 2, notimp }, /* 168 = nsp_init (unimplemented) */ { 3, notimp }, /* 169 = cluster (unimplemented) */ { 4, notimp }, /* 170 = mkrnod (unimplemented) */ { 0, nosys }, /* 171 = nosys */ { 0, notimp }, /* 172 = unsp_open (unimplemented) */ { 0, nosys }, /* 173 = nosys */ { 3, hpux_getcontext }, /* 174 = getcontext */ { 0, nosys }, /* 175 = nosys */ { 0, nosys }, /* 176 = nosys */ { 0, nosys }, /* 177 = nosys */ { 0, notimp }, /* 178 = lsync (unimplemented) */ { 0, nosys }, /* 179 = nosys */ { 0, notimp }, /* 180 = mysite (unimplemented) */ { 1, notimp }, /* 181 = sitels (unimplemented) */ { 0, nosys }, /* 182 = nosys */ { 0, nosys }, /* 183 = nosys */ { 4, notimp }, /* 184 = dskless_stats (unimplemented) */ { 0, nosys }, /* 185 = nosys */ { 3, notimp }, /* 186 = setacl (unimplemented) */ { 3, notimp }, /* 187 = fsetacl (unimplemented) */ { 3, notimp }, /* 188 = getacl (unimplemented) */ { 3, notimp }, /* 189 = fgetacl (unimplemented) */ { 6, hpux_getaccess }, /* 190 = getaccess */ { 0, notimp }, /* 191 = getaudid (unimplemented) */ { 1, notimp }, /* 192 = setaudid (unimplemented) */ { 0, notimp }, /* 193 = getaudproc (unimplemented) */ { 1, notimp }, /* 194 = setaudproc (unimplemented) */ { 2, notimp }, /* 195 = getevent (unimplemented) */ { 2, notimp }, /* 196 = setevent (unimplemented) */ { 1, notimp }, /* 197 = audwrite (unimplemented) */ { 1, notimp }, /* 198 = audswitch (unimplemented) */ { 4, notimp }, /* 199 = audctl (unimplemented) */ { 3, hpux_waitpid }, /* 200 = waitpid */ { 0, nosys }, /* 201 = nosys */ { 0, nosys }, /* 202 = nosys */ { 0, nosys }, /* 203 = nosys */ { 0, nosys }, /* 204 = nosys */ { 0, nosys }, /* 205 = nosys */ { 0, nosys }, /* 206 = nosys */ { 0, nosys }, /* 207 = nosys */ { 0, nosys }, /* 208 = nosys */ { 0, nosys }, /* 209 = nosys */ { 0, nosys }, /* 210 = nosys */ { 0, nosys }, /* 211 = nosys */ { 0, nosys }, /* 212 = nosys */ { 0, nosys }, /* 213 = nosys */ { 0, nosys }, /* 214 = nosys */ { 0, nosys }, /* 215 = nosys */ { 0, nosys }, /* 216 = nosys */ { 0, nosys }, /* 217 = nosys */ { 0, nosys }, /* 218 = nosys */ { 0, nosys }, /* 219 = nosys */ { 0, nosys }, /* 220 = nosys */ { 0, nosys }, /* 221 = nosys */ { 0, nosys }, /* 222 = nosys */ { 0, nosys }, /* 223 = nosys */ { 0, nosys }, /* 224 = nosys */ { 2, notimp }, /* 225 = pathconf (unimplemented) */ { 2, notimp }, /* 226 = fpathconf (unimplemented) */ { 0, nosys }, /* 227 = nosys */ { 0, nosys }, /* 228 = nosys */ { 0, notimp }, /* 229 = async_daemon (unimplemented) */ { 3, notimp }, /* 230 = nfs_fcntl (unimplemented) */ { compat(4,getdirentries) }, /* 231 = old getdirentries */ { compat(2,getdomainname) }, /* 232 = old getdomainname */ { 2, notimp }, /* 233 = nfs_getfh (unimplemented) */ { 4, notimp }, /* 234 = vfsmount (unimplemented) */ { 1, notimp }, /* 235 = nfs_svc (unimplemented) */ { compat(2,setdomainname) }, /* 236 = old setdomainname */ { 2, notimp }, /* 237 = statfs (unimplemented) */ { 2, notimp }, /* 238 = fstatfs (unimplemented) */ { 3, hpux_sigaction }, /* 239 = sigaction */ { 3, hpux_sigprocmask }, /* 240 = sigprocmask */ { 1, hpux_sigpending }, /* 241 = sigpending */ { 1, hpux_sigsuspend }, /* 242 = sigsuspend */ { 4, notimp }, /* 243 = fsctl (unimplemented) */ { 0, nosys }, /* 244 = nosys */ { 3, notimp }, /* 245 = pstat (unimplemented) */ { 0, nosys }, /* 246 = nosys */ { 0, nosys }, /* 247 = nosys */ { 0, nosys }, /* 248 = nosys */ { 0, nosys }, /* 249 = nosys */ { 0, nosys }, /* 250 = nosys */ { 0, nosys }, /* 251 = nosys */ { 0, nosys }, /* 252 = nosys */ { 0, nosys }, /* 253 = nosys */ { 0, nosys }, /* 254 = nosys */ { 0, nosys }, /* 255 = nosys */ { 0, nosys }, /* 256 = nosys */ { 0, nosys }, /* 257 = nosys */ { 0, nosys }, /* 258 = nosys */ { 0, nosys }, /* 259 = nosys */ { 0, nosys }, /* 260 = nosys */ { 0, nosys }, /* 261 = nosys */ { 0, nosys }, /* 262 = nosys */ { 0, nosys }, /* 263 = nosys */ { 0, nosys }, /* 264 = nosys */ { 0, nosys }, /* 265 = nosys */ { 0, nosys }, /* 266 = nosys */ { 0, nosys }, /* 267 = nosys */ { compat(0,getdtablesize) }, /* 268 = old getnumfds */ { 0, nosys }, /* 269 = nosys */ { 0, nosys }, /* 270 = nosys */ { 0, nosys }, /* 271 = nosys */ { 1, fchdir }, /* 272 = fchdir */ { 0, nosys }, /* 273 = nosys */ { 0, nosys }, /* 274 = nosys */ { compat(3,accept) }, /* 275 = old accept */ { 3, bind }, /* 276 = bind */ { 3, connect }, /* 277 = connect */ { compat(3,getpeername) }, /* 278 = old getpeername */ { compat(3,getsockname) }, /* 279 = old getsockname */ { 5, getsockopt }, /* 280 = getsockopt */ { 2, listen }, /* 281 = listen */ { compat(4,recv) }, /* 282 = old recv */ { compat(6,recvfrom) }, /* 283 = old recvfrom */ { compat(3,recvmsg) }, /* 284 = old recvmsg */ { compat(4,send) }, /* 285 = old send */ { compat(3,sendmsg) }, /* 286 = old sendmsg */ { 6, sendto }, /* 287 = sendto */ { 5, hpux_setsockopt2 }, /* 288 = setsockopt2 */ { 2, shutdown }, /* 289 = shutdown */ { 3, socket }, /* 290 = socket */ { 4, socketpair }, /* 291 = socketpair */ { 0, nosys }, /* 292 = nosys */ { 0, nosys }, /* 293 = nosys */ { 0, nosys }, /* 294 = nosys */ { 0, nosys }, /* 295 = nosys */ { 0, nosys }, /* 296 = nosys */ { 0, nosys }, /* 297 = nosys */ { 0, nosys }, /* 298 = nosys */ { 0, nosys }, /* 299 = nosys */ { 0, nosys }, /* 300 = nosys */ { 0, nosys }, /* 301 = nosys */ { 0, nosys }, /* 302 = nosys */ { 0, nosys }, /* 303 = nosys */ { 0, nosys }, /* 304 = nosys */ { 0, nosys }, /* 305 = nosys */ { 0, nosys }, /* 306 = nosys */ { 0, nosys }, /* 307 = nosys */ { 0, nosys }, /* 308 = nosys */ { 0, nosys }, /* 309 = nosys */ { 0, nosys }, /* 310 = nosys */ { 0, nosys }, /* 311 = nosys */ #ifdef SYSVSHM { 4, semctl }, /* 312 = nsemctl */ #else { 4, notimp }, /* 312 = nsemctl (unimplemented) */ #endif #ifdef SYSVMSG { 3, msgctl }, /* 313 = nmsgctl */ #else { 3, notimp }, /* 313 = nmsgctl (unimplemented) */ #endif #ifdef SYSVSHM { 3, hpux_nshmctl }, /* 314 = nshmctl */ #else { 3, notimp }, /* 314 = nshmctl (unimplemented) */ #endif }; int hpux_nsysent = sizeof(hpux_sysent) / sizeof(hpux_sysent[0]);