BSD 4_4_Lite2 development
authorCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 30 Jan 1995 03:18:43 +0000 (19:18 -0800)
committerCSRG <csrg@ucbvax.Berkeley.EDU>
Mon, 30 Jan 1995 03:18:43 +0000 (19:18 -0800)
Work on file usr/src/sys/hp/hpux/hpux_syscalls.c
Work on file usr/src/sys/hp/hpux/hpux_sysent.c
Work on file usr/src/sys/hp/hpux/hpux_syscall.h

Synthesized-from: CSRG/cd3/4.4BSD-Lite2

usr/src/sys/hp/hpux/hpux_syscall.h [new file with mode: 0644]
usr/src/sys/hp/hpux/hpux_syscalls.c [new file with mode: 0644]
usr/src/sys/hp/hpux/hpux_sysent.c [new file with mode: 0644]

diff --git a/usr/src/sys/hp/hpux/hpux_syscall.h b/usr/src/sys/hp/hpux/hpux_syscall.h
new file mode 100644 (file)
index 0000000..b892657
--- /dev/null
@@ -0,0 +1,141 @@
+/*
+ * System call numbers.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        %W% (Berkeley) %G%
+ */
+
+#define        SYS_exit        1
+#define        SYS_fork        2
+#define        SYS_read        3
+#define        SYS_write       4
+#define        SYS_open        5
+#define        SYS_close       6
+#define        SYS_owait       7
+#define        SYS_ocreat      8
+#define        SYS_link        9
+#define        SYS_unlink      10
+#define        SYS_execv       11
+#define        SYS_chdir       12
+                               /* 13 is old hpuxtime time */
+#define        SYS_mknod       14
+#define        SYS_chmod       15
+#define        SYS_chown       16
+#define        SYS_break       17
+                               /* 18 is old hpuxstat stat */
+#define        SYS_compat_43_lseek     19
+#define        SYS_getpid      20
+#define        SYS_setuid      23
+#define        SYS_getuid      24
+                               /* 25 is old hpuxstime stime */
+#define        SYS_ptrace      26
+                               /* 27 is old hpuxalarm alarm */
+                               /* 28 is old hpuxfstat fstat */
+                               /* 29 is old hpuxpause pause */
+                               /* 30 is old hpuxutime utime */
+                               /* 31 is old hpuxstty stty */
+                               /* 32 is old hpuxgtty gtty */
+#define        SYS_access      33
+                               /* 34 is old hpuxnice nice */
+                               /* 35 is old hpuxftime ftime */
+#define        SYS_sync        36
+#define        SYS_kill        37
+#define        SYS_stat        38
+                               /* 39 is old hpuxsetpgrp setpgrp */
+#define        SYS_lstat       40
+#define        SYS_dup 41
+#define        SYS_pipe        42
+                               /* 43 is old hpuxtimes times */
+#define        SYS_profil      44
+#define        SYS_setgid      46
+#define        SYS_getgid      47
+                               /* 48 is old hpuxssig ssig */
+#define        SYS_ioctl       54
+#define        SYS_symlink     56
+#define        SYS_utssys      57
+#define        SYS_readlink    58
+#define        SYS_execve      59
+#define        SYS_umask       60
+#define        SYS_chroot      61
+#define        SYS_fcntl       62
+#define        SYS_ulimit      63
+#define        SYS_vfork       66
+#define        SYS_vread       67
+#define        SYS_vwrite      68
+#define        SYS_mmap        71
+#define        SYS_munmap      73
+#define        SYS_getgroups   79
+#define        SYS_setgroups   80
+#define        SYS_getpgrp2    81
+#define        SYS_setpgrp2    82
+#define        SYS_setitimer   83
+#define        SYS_wait3       84
+#define        SYS_getitimer   86
+#define        SYS_dup2        90
+#define        SYS_fstat       92
+#define        SYS_select      93
+#define        SYS_fsync       95
+#define        SYS_sigreturn   103
+#define        SYS_sigvec      108
+#define        SYS_sigblock    109
+#define        SYS_sigsetmask  110
+#define        SYS_sigpause    111
+#define        SYS_compat_43_sigstack  112
+#define        SYS_gettimeofday        116
+#define        SYS_readv       120
+#define        SYS_writev      121
+#define        SYS_settimeofday        122
+#define        SYS_fchown      123
+#define        SYS_fchmod      124
+#define        SYS_setresuid   126
+#define        SYS_setresgid   127
+#define        SYS_rename      128
+                               /* 129 is old truncate */
+                               /* 130 is old ftruncate */
+#define        SYS_sysconf     132
+#define        SYS_mkdir       136
+#define        SYS_rmdir       137
+                               /* 144 is old getrlimit */
+                               /* 145 is old setrlimit */
+#define        SYS_rtprio      152
+#define        SYS_netioctl    154
+#define        SYS_lockf       155
+#define        SYS_semget      156
+#define        SYS_semctl      157
+#define        SYS_semop       158
+#define        SYS_shmget      163
+#define        SYS_shmctl      164
+#define        SYS_shmat       165
+#define        SYS_shmdt       166
+#define        SYS_m68020_advise       167
+#define        SYS_getcontext  174
+#define        SYS_getaccess   190
+#define        SYS_waitpid     200
+#define        SYS_getdirentries       231
+#define        SYS_getdomainname       232
+#define        SYS_setdomainname       236
+#define        SYS_sigaction   239
+#define        SYS_sigprocmask 240
+#define        SYS_sigpending  241
+#define        SYS_sigsuspend  242
+#define        SYS_getnumfds   268
+#define        SYS_fchdir      272
+                               /* 275 is old accept */
+#define        SYS_bind        276
+#define        SYS_connect     277
+                               /* 278 is old getpeername */
+                               /* 279 is old getsockname */
+#define        SYS_getsockopt  280
+#define        SYS_listen      281
+                               /* 282 is old recv */
+                               /* 283 is old recvfrom */
+                               /* 284 is old recvmsg */
+                               /* 285 is old send */
+                               /* 286 is old sendmsg */
+#define        SYS_sendto      287
+#define        SYS_setsockopt2 288
+#define        SYS_shutdown    289
+#define        SYS_socket      290
+#define        SYS_socketpair  291
+#define        SYS_nsemctl     312
+#define        SYS_nshmctl     314
diff --git a/usr/src/sys/hp/hpux/hpux_syscalls.c b/usr/src/sys/hp/hpux/hpux_syscalls.c
new file mode 100644 (file)
index 0000000..9e64c0e
--- /dev/null
@@ -0,0 +1,335 @@
+/*
+ * System call names.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        %W% (Berkeley) %G%
+ */
+
+char *hpuxsyscallnames[] = {
+       "#0",                   /* 0 = indir or out-of-range */
+       "exit",                 /* 1 = exit */
+       "fork",                 /* 2 = fork */
+       "read",                 /* 3 = read */
+       "write",                        /* 4 = write */
+       "open",                 /* 5 = open */
+       "close",                        /* 6 = close */
+       "owait",                        /* 7 = owait */
+       "ocreat",                       /* 8 = ocreat */
+       "link",                 /* 9 = link */
+       "unlink",                       /* 10 = unlink */
+       "execv",                        /* 11 = execv */
+       "chdir",                        /* 12 = chdir */
+       "old.time",             /* 13 = old time */
+       "mknod",                        /* 14 = mknod */
+       "chmod",                        /* 15 = chmod */
+       "chown",                        /* 16 = chown */
+       "break",                        /* 17 = break */
+       "old.stat",             /* 18 = old stat */
+       "compat_43_lseek",                      /* 19 = compat_43_lseek */
+       "getpid",                       /* 20 = getpid */
+       "mount",                        /* 21 = mount (unimplemented) */
+       "umount",                       /* 22 = umount (unimplemented) */
+       "setuid",                       /* 23 = setuid */
+       "getuid",                       /* 24 = getuid */
+       "old.stime",            /* 25 = old stime */
+       "ptrace",                       /* 26 = ptrace */
+       "old.alarm",            /* 27 = old alarm */
+       "old.fstat",            /* 28 = old fstat */
+       "old.pause",            /* 29 = old pause */
+       "old.utime",            /* 30 = old utime */
+       "old.stty",             /* 31 = old stty */
+       "old.gtty",             /* 32 = old gtty */
+       "access",                       /* 33 = access */
+       "old.nice",             /* 34 = old nice */
+       "old.ftime",            /* 35 = old ftime */
+       "sync",                 /* 36 = sync */
+       "kill",                 /* 37 = kill */
+       "stat",                 /* 38 = stat */
+       "old.setpgrp",          /* 39 = old setpgrp */
+       "lstat",                        /* 40 = lstat */
+       "dup",                  /* 41 = dup */
+       "pipe",                 /* 42 = pipe */
+       "old.times",            /* 43 = old times */
+       "profil",                       /* 44 = profil */
+       "ki_syscall",                   /* 45 = ki_syscall (unimplemented) */
+       "setgid",                       /* 46 = setgid */
+       "getgid",                       /* 47 = getgid */
+       "old.ssig",             /* 48 = old ssig */
+       "#49",                  /* 49 = reserved for USG */
+       "#50",                  /* 50 = reserved for USG */
+       "acct",                 /* 51 = acct (unimplemented) */
+       "#52",                  /* 52 = nosys */
+       "#53",                  /* 53 = nosys */
+       "ioctl",                        /* 54 = ioctl */
+       "reboot",                       /* 55 = reboot (unimplemented) */
+       "symlink",                      /* 56 = symlink */
+       "utssys",                       /* 57 = utssys */
+       "readlink",                     /* 58 = readlink */
+       "execve",                       /* 59 = execve */
+       "umask",                        /* 60 = umask */
+       "chroot",                       /* 61 = chroot */
+       "fcntl",                        /* 62 = fcntl */
+       "ulimit",                       /* 63 = ulimit */
+       "#64",                  /* 64 = nosys */
+       "#65",                  /* 65 = nosys */
+       "vfork",                        /* 66 = vfork */
+       "vread",                        /* 67 = vread */
+       "vwrite",                       /* 68 = vwrite */
+       "#69",                  /* 69 = nosys */
+       "#70",                  /* 70 = nosys */
+       "mmap",                 /* 71 = mmap */
+       "#72",                  /* 72 = nosys */
+       "munmap",                       /* 73 = munmap */
+       "mprotect",                     /* 74 = mprotect (unimplemented) */
+       "#75",                  /* 75 = nosys */
+       "#76",                  /* 76 = nosys */
+       "#77",                  /* 77 = nosys */
+       "#78",                  /* 78 = nosys */
+       "getgroups",                    /* 79 = getgroups */
+       "setgroups",                    /* 80 = setgroups */
+       "getpgrp2",                     /* 81 = getpgrp2 */
+       "setpgrp2",                     /* 82 = setpgrp2 */
+       "setitimer",                    /* 83 = setitimer */
+       "wait3",                        /* 84 = wait3 */
+       "swapon",                       /* 85 = swapon (unimplemented) */
+       "getitimer",                    /* 86 = getitimer */
+       "#87",                  /* 87 = nosys */
+       "#88",                  /* 88 = nosys */
+       "#89",                  /* 89 = nosys */
+       "dup2",                 /* 90 = dup2 */
+       "#91",                  /* 91 = nosys */
+       "fstat",                        /* 92 = fstat */
+       "select",                       /* 93 = select */
+       "#94",                  /* 94 = nosys */
+       "fsync",                        /* 95 = fsync */
+       "#96",                  /* 96 = nosys */
+       "#97",                  /* 97 = nosys */
+       "#98",                  /* 98 = nosys */
+       "#99",                  /* 99 = nosys */
+       "#100",                 /* 100 = nosys */
+       "#101",                 /* 101 = nosys */
+       "#102",                 /* 102 = nosys */
+       "sigreturn",                    /* 103 = sigreturn */
+       "#104",                 /* 104 = nosys */
+       "#105",                 /* 105 = nosys */
+       "#106",                 /* 106 = nosys */
+       "#107",                 /* 107 = nosys */
+       "sigvec",                       /* 108 = sigvec */
+       "sigblock",                     /* 109 = sigblock */
+       "sigsetmask",                   /* 110 = sigsetmask */
+       "sigpause",                     /* 111 = sigpause */
+       "compat_43_sigstack",                   /* 112 = compat_43_sigstack */
+       "#113",                 /* 113 = nosys */
+       "#114",                 /* 114 = nosys */
+       "#115",                 /* 115 = nosys */
+       "gettimeofday",                 /* 116 = gettimeofday */
+       "#117",                 /* 117 = nosys */
+       "#118",                 /* 118 = nosys */
+       "hpib_io_stub",                 /* 119 = hpib_io_stub (unimplemented) */
+       "readv",                        /* 120 = readv */
+       "writev",                       /* 121 = writev */
+       "settimeofday",                 /* 122 = settimeofday */
+       "fchown",                       /* 123 = fchown */
+       "fchmod",                       /* 124 = fchmod */
+       "#125",                 /* 125 = nosys */
+       "setresuid",                    /* 126 = setresuid */
+       "setresgid",                    /* 127 = setresgid */
+       "rename",                       /* 128 = rename */
+       "old.truncate",         /* 129 = old truncate */
+       "old.ftruncate",                /* 130 = old ftruncate */
+       "#131",                 /* 131 = nosys */
+       "sysconf",                      /* 132 = sysconf */
+       "#133",                 /* 133 = nosys */
+       "#134",                 /* 134 = nosys */
+       "#135",                 /* 135 = nosys */
+       "mkdir",                        /* 136 = mkdir */
+       "rmdir",                        /* 137 = rmdir */
+       "#138",                 /* 138 = nosys */
+       "#139",                 /* 139 = nosys */
+       "#140",                 /* 140 = nosys */
+       "#141",                 /* 141 = nosys */
+       "#142",                 /* 142 = nosys */
+       "#143",                 /* 143 = nosys */
+       "old.getrlimit",                /* 144 = old getrlimit */
+       "old.setrlimit",                /* 145 = old setrlimit */
+       "#146",                 /* 146 = nosys */
+       "#147",                 /* 147 = nosys */
+       "#148",                 /* 148 = nosys */
+       "#149",                 /* 149 = nosys */
+       "#150",                 /* 150 = nosys */
+       "privgrp",                      /* 151 = privgrp (unimplemented) */
+       "rtprio",                       /* 152 = rtprio */
+       "plock",                        /* 153 = plock (unimplemented) */
+       "netioctl",                     /* 154 = netioctl */
+       "lockf",                        /* 155 = lockf */
+       "semget",                       /* 156 = semget */
+       "semctl",                       /* 157 = semctl */
+       "semop",                        /* 158 = semop */
+       "msgget",                       /* 159 = msgget (unimplemented) */
+       "msgctl",                       /* 160 = msgctl (unimplemented) */
+       "msgsnd",                       /* 161 = msgsnd (unimplemented) */
+       "msgrcv",                       /* 162 = msgrcv (unimplemented) */
+#ifdef SYSVSHM
+       "shmget",                       /* 163 = shmget */
+       "shmctl",                       /* 164 = shmctl */
+       "shmat",                        /* 165 = shmat */
+       "shmdt",                        /* 166 = shmdt */
+#else
+       "shmget",                       /* 163 = shmget (unimplemented) */
+       "shmctl",                       /* 164 = shmctl (unimplemented) */
+       "shmat",                        /* 165 = shmat (unimplemented) */
+       "shmdt",                        /* 166 = shmdt (unimplemented) */
+#endif
+       "m68020_advise",                        /* 167 = m68020_advise */
+       "nsp_init",                     /* 168 = nsp_init (unimplemented) */
+       "cluster",                      /* 169 = cluster (unimplemented) */
+       "mkrnod",                       /* 170 = mkrnod (unimplemented) */
+       "#171",                 /* 171 = nosys */
+       "unsp_open",                    /* 172 = unsp_open (unimplemented) */
+       "#173",                 /* 173 = nosys */
+       "getcontext",                   /* 174 = getcontext */
+       "#175",                 /* 175 = nosys */
+       "#176",                 /* 176 = nosys */
+       "#177",                 /* 177 = nosys */
+       "lsync",                        /* 178 = lsync (unimplemented) */
+       "#179",                 /* 179 = nosys */
+       "mysite",                       /* 180 = mysite (unimplemented) */
+       "sitels",                       /* 181 = sitels (unimplemented) */
+       "#182",                 /* 182 = nosys */
+       "#183",                 /* 183 = nosys */
+       "dskless_stats",                        /* 184 = dskless_stats (unimplemented) */
+       "#185",                 /* 185 = nosys */
+       "setacl",                       /* 186 = setacl (unimplemented) */
+       "fsetacl",                      /* 187 = fsetacl (unimplemented) */
+       "getacl",                       /* 188 = getacl (unimplemented) */
+       "fgetacl",                      /* 189 = fgetacl (unimplemented) */
+       "getaccess",                    /* 190 = getaccess */
+       "getaudid",                     /* 191 = getaudid (unimplemented) */
+       "setaudid",                     /* 192 = setaudid (unimplemented) */
+       "getaudproc",                   /* 193 = getaudproc (unimplemented) */
+       "setaudproc",                   /* 194 = setaudproc (unimplemented) */
+       "getevent",                     /* 195 = getevent (unimplemented) */
+       "setevent",                     /* 196 = setevent (unimplemented) */
+       "audwrite",                     /* 197 = audwrite (unimplemented) */
+       "audswitch",                    /* 198 = audswitch (unimplemented) */
+       "audctl",                       /* 199 = audctl (unimplemented) */
+       "waitpid",                      /* 200 = waitpid */
+       "#201",                 /* 201 = nosys */
+       "#202",                 /* 202 = nosys */
+       "#203",                 /* 203 = nosys */
+       "#204",                 /* 204 = nosys */
+       "#205",                 /* 205 = nosys */
+       "#206",                 /* 206 = nosys */
+       "#207",                 /* 207 = nosys */
+       "#208",                 /* 208 = nosys */
+       "#209",                 /* 209 = nosys */
+       "#210",                 /* 210 = nosys */
+       "#211",                 /* 211 = nosys */
+       "#212",                 /* 212 = nosys */
+       "#213",                 /* 213 = nosys */
+       "#214",                 /* 214 = nosys */
+       "#215",                 /* 215 = nosys */
+       "#216",                 /* 216 = nosys */
+       "#217",                 /* 217 = nosys */
+       "#218",                 /* 218 = nosys */
+       "#219",                 /* 219 = nosys */
+       "#220",                 /* 220 = nosys */
+       "#221",                 /* 221 = nosys */
+       "#222",                 /* 222 = nosys */
+       "#223",                 /* 223 = nosys */
+       "#224",                 /* 224 = nosys */
+       "pathconf",                     /* 225 = pathconf (unimplemented) */
+       "fpathconf",                    /* 226 = fpathconf (unimplemented) */
+       "#227",                 /* 227 = nosys */
+       "#228",                 /* 228 = nosys */
+       "async_daemon",                 /* 229 = async_daemon (unimplemented) */
+       "nfs_fcntl",                    /* 230 = nfs_fcntl (unimplemented) */
+       "getdirentries",                        /* 231 = getdirentries */
+       "getdomainname",                        /* 232 = getdomainname */
+       "nfs_getfh",                    /* 233 = nfs_getfh (unimplemented) */
+       "vfsmount",                     /* 234 = vfsmount (unimplemented) */
+       "nfs_svc",                      /* 235 = nfs_svc (unimplemented) */
+       "setdomainname",                        /* 236 = setdomainname */
+       "statfs",                       /* 237 = statfs (unimplemented) */
+       "fstatfs",                      /* 238 = fstatfs (unimplemented) */
+       "sigaction",                    /* 239 = sigaction */
+       "sigprocmask",                  /* 240 = sigprocmask */
+       "sigpending",                   /* 241 = sigpending */
+       "sigsuspend",                   /* 242 = sigsuspend */
+       "fsctl",                        /* 243 = fsctl (unimplemented) */
+       "#244",                 /* 244 = nosys */
+       "pstat",                        /* 245 = pstat (unimplemented) */
+       "#246",                 /* 246 = nosys */
+       "#247",                 /* 247 = nosys */
+       "#248",                 /* 248 = nosys */
+       "#249",                 /* 249 = nosys */
+       "#250",                 /* 250 = nosys */
+       "#251",                 /* 251 = nosys */
+       "#252",                 /* 252 = nosys */
+       "#253",                 /* 253 = nosys */
+       "#254",                 /* 254 = nosys */
+       "#255",                 /* 255 = nosys */
+       "#256",                 /* 256 = nosys */
+       "#257",                 /* 257 = nosys */
+       "#258",                 /* 258 = nosys */
+       "#259",                 /* 259 = nosys */
+       "#260",                 /* 260 = nosys */
+       "#261",                 /* 261 = nosys */
+       "#262",                 /* 262 = nosys */
+       "#263",                 /* 263 = nosys */
+       "#264",                 /* 264 = nosys */
+       "#265",                 /* 265 = nosys */
+       "#266",                 /* 266 = nosys */
+       "#267",                 /* 267 = nosys */
+       "getnumfds",                    /* 268 = getnumfds */
+       "#269",                 /* 269 = nosys */
+       "#270",                 /* 270 = nosys */
+       "#271",                 /* 271 = nosys */
+       "fchdir",                       /* 272 = fchdir */
+       "#273",                 /* 273 = nosys */
+       "#274",                 /* 274 = nosys */
+       "old.accept",           /* 275 = old accept */
+       "bind",                 /* 276 = bind */
+       "connect",                      /* 277 = connect */
+       "old.getpeername",              /* 278 = old getpeername */
+       "old.getsockname",              /* 279 = old getsockname */
+       "getsockopt",                   /* 280 = getsockopt */
+       "listen",                       /* 281 = listen */
+       "old.recv",             /* 282 = old recv */
+       "old.recvfrom",         /* 283 = old recvfrom */
+       "old.recvmsg",          /* 284 = old recvmsg */
+       "old.send",             /* 285 = old send */
+       "old.sendmsg",          /* 286 = old sendmsg */
+       "sendto",                       /* 287 = sendto */
+       "setsockopt2",                  /* 288 = setsockopt2 */
+       "shutdown",                     /* 289 = shutdown */
+       "socket",                       /* 290 = socket */
+       "socketpair",                   /* 291 = socketpair */
+       "#292",                 /* 292 = nosys */
+       "#293",                 /* 293 = nosys */
+       "#294",                 /* 294 = nosys */
+       "#295",                 /* 295 = nosys */
+       "#296",                 /* 296 = nosys */
+       "#297",                 /* 297 = nosys */
+       "#298",                 /* 298 = nosys */
+       "#299",                 /* 299 = nosys */
+       "#300",                 /* 300 = nosys */
+       "#301",                 /* 301 = nosys */
+       "#302",                 /* 302 = nosys */
+       "#303",                 /* 303 = nosys */
+       "#304",                 /* 304 = nosys */
+       "#305",                 /* 305 = nosys */
+       "#306",                 /* 306 = nosys */
+       "#307",                 /* 307 = nosys */
+       "#308",                 /* 308 = nosys */
+       "#309",                 /* 309 = nosys */
+       "#310",                 /* 310 = nosys */
+       "#311",                 /* 311 = nosys */
+       "nsemctl",                      /* 312 = nsemctl */
+       "msgctl",                       /* 313 = msgctl (unimplemented) */
+#ifdef SYSVSHM
+       "nshmctl",                      /* 314 = nshmctl */
+#else
+       "nshmctl",                      /* 314 = nshmctl (unimplemented) */
+#endif
+};
diff --git a/usr/src/sys/hp/hpux/hpux_sysent.c b/usr/src/sys/hp/hpux/hpux_sysent.c
new file mode 100644 (file)
index 0000000..31160f5
--- /dev/null
@@ -0,0 +1,497 @@
+/*
+ * System call switch table.
+ *
+ * DO NOT EDIT-- this file is automatically generated.
+ * created from        %W% (Berkeley) %G%
+ */
+
+#include <sys/param.h>
+#include <sys/systm.h>
+
+int    nosys(),notimp();
+
+int    exit();
+int    hpuxfork();
+int    hpuxread();
+int    hpuxwrite();
+int    hpuxopen();
+int    close();
+int    hpuxwait();
+int    hpuxcreat();
+int    link();
+int    unlink();
+int    hpuxexecv();
+int    chdir();
+int    mknod();
+int    chmod();
+int    chown();
+int    obreak();
+int    compat_43_lseek();
+int    getpid();
+int    setuid();
+int    getuid();
+int    hpuxptrace();
+int    access();
+int    sync();
+int    hpuxkill();
+int    hpuxstat();
+int    hpuxlstat();
+int    hpuxdup();
+int    pipe();
+int    profil();
+int    setgid();
+int    getgid();
+int    hpuxioctl();
+int    symlink();
+int    hpuxutssys();
+int    readlink();
+int    execve();
+int    umask();
+int    chroot();
+int    hpuxfcntl();
+int    hpuxulimit();
+int    hpuxvfork();
+int    hpuxread();
+int    hpuxwrite();
+int    hpuxmmap();
+int    munmap();
+int    getgroups();
+int    setgroups();
+int    hpuxgetpgrp2();
+int    hpuxsetpgrp2();
+int    setitimer();
+int    hpuxwait3();
+int    getitimer();
+int    dup2();
+int    hpuxfstat();
+int    select();
+int    fsync();
+int    sigreturn();
+int    hpuxsigvec();
+int    hpuxsigblock();
+int    hpuxsigsetmask();
+int    hpuxsigpause();
+int    compat_43_sigstack();
+int    gettimeofday();
+int    hpuxreadv();
+int    hpuxwritev();
+int    settimeofday();
+int    fchown();
+int    fchmod();
+int    hpuxsetresuid();
+int    hpuxsetresgid();
+int    rename();
+int    hpuxsysconf();
+int    mkdir();
+int    rmdir();
+int    hpuxrtprio();
+int    hpuxnetioctl();
+int    hpuxlockf();
+int    hpuxsemget();
+int    hpuxsemctl();
+int    hpuxsemop();
+#ifdef SYSVSHM
+int    hpuxshmget();
+int    hpuxshmctl();
+int    hpuxshmat();
+int    hpuxshmdt();
+#else
+#endif
+int    hpuxadvise();
+int    hpuxgetcontext();
+int    hpuxgetaccess();
+int    hpuxwaitpid();
+int    getdirentries();
+int    hpuxgetdomainname();
+int    hpuxsetdomainname();
+int    hpuxsigaction();
+int    hpuxsigprocmask();
+int    hpuxsigpending();
+int    hpuxsigsuspend();
+int    getdtablesize();
+int    fchdir();
+int    bind();
+int    connect();
+int    getsockopt();
+int    listen();
+int    sendto();
+int    hpuxsetsockopt2();
+int    shutdown();
+int    socket();
+int    socketpair();
+int    hpuxsemctl();
+#ifdef SYSVSHM
+int    hpuxnshmctl();
+#else
+#endif
+
+#ifdef COMPAT_OHPUX
+#define compat(n, name) n, n * 4, __CONCAT(compat_43_,name)
+
+int    compat_43_hpuxtime();
+int    compat_43_hpuxstat();
+int    compat_43_hpuxstime();
+int    compat_43_hpuxalarm();
+int    compat_43_hpuxfstat();
+int    compat_43_hpuxpause();
+int    compat_43_hpuxutime();
+int    compat_43_hpuxstty();
+int    compat_43_hpuxgtty();
+int    compat_43_hpuxnice();
+int    compat_43_hpuxftime();
+int    compat_43_hpuxsetpgrp();
+int    compat_43_hpuxtimes();
+int    compat_43_hpuxssig();
+int    compat_43_truncate();
+int    compat_43_ftruncate();
+int    compat_43_getrlimit();
+int    compat_43_setrlimit();
+#ifdef SYSVSHM
+#else
+#endif
+int    compat_43_accept();
+int    compat_43_getpeername();
+int    compat_43_getsockname();
+int    compat_43_recv();
+int    compat_43_recvfrom();
+int    compat_43_recvmsg();
+int    compat_43_send();
+int    compat_43_sendmsg();
+#ifdef SYSVSHM
+#else
+#endif
+
+#else /* COMPAT_OHPUX */
+#define compat(n, name) 0, 0, nosys
+#endif /* COMPAT_OHPUX */
+
+struct sysent hpuxsysent[] = {
+       { 0, 0, nosys },                        /* 0 = indir or out-of-range */
+       { 1, 4, exit },                 /* 1 = exit */
+       { 0, 0, hpuxfork },                     /* 2 = fork */
+       { 3, 12, hpuxread },                    /* 3 = read */
+       { 3, 12, hpuxwrite },                   /* 4 = write */
+       { 3, 12, hpuxopen },                    /* 5 = open */
+       { 1, 4, close },                        /* 6 = close */
+       { 1, 4, hpuxwait },                     /* 7 = owait */
+       { 2, 8, hpuxcreat },                    /* 8 = ocreat */
+       { 2, 8, link },                 /* 9 = link */
+       { 1, 4, unlink },                       /* 10 = unlink */
+       { 2, 8, hpuxexecv },                    /* 11 = execv */
+       { 1, 4, chdir },                        /* 12 = chdir */
+       { compat(1,hpuxtime) },         /* 13 = old time */
+       { 3, 12, mknod },                       /* 14 = mknod */
+       { 2, 8, chmod },                        /* 15 = chmod */
+       { 3, 12, chown },                       /* 16 = chown */
+       { 1, 4, obreak },                       /* 17 = break */
+       { compat(2,hpuxstat) },         /* 18 = old stat */
+       { 3, 12, compat_43_lseek },                     /* 19 = compat_43_lseek */
+       { 0, 0, getpid },                       /* 20 = getpid */
+       { 3, 12, notimp },                      /* 21 = mount (unimplemented) */
+       { 1, 4, notimp },                       /* 22 = umount (unimplemented) */
+       { 1, 4, setuid },                       /* 23 = setuid */
+       { 0, 0, getuid },                       /* 24 = getuid */
+       { compat(1,hpuxstime) },                /* 25 = old stime */
+       { 4, 16, hpuxptrace },                  /* 26 = ptrace */
+       { compat(1,hpuxalarm) },                /* 27 = old alarm */
+       { compat(2,hpuxfstat) },                /* 28 = old fstat */
+       { compat(0,hpuxpause) },                /* 29 = old pause */
+       { compat(2,hpuxutime) },                /* 30 = old utime */
+       { compat(2,hpuxstty) },         /* 31 = old stty */
+       { compat(2,hpuxgtty) },         /* 32 = old gtty */
+       { 2, 8, access },                       /* 33 = access */
+       { compat(1,hpuxnice) },         /* 34 = old nice */
+       { compat(1,hpuxftime) },                /* 35 = old ftime */
+       { 0, 0, sync },                 /* 36 = sync */
+       { 2, 8, hpuxkill },                     /* 37 = kill */
+       { 2, 8, hpuxstat },                     /* 38 = stat */
+       { compat(1,hpuxsetpgrp) },              /* 39 = old setpgrp */
+       { 2, 8, hpuxlstat },                    /* 40 = lstat */
+       { 1, 4, hpuxdup },                      /* 41 = dup */
+       { 0, 0, pipe },                 /* 42 = pipe */
+       { compat(1,hpuxtimes) },                /* 43 = old times */
+       { 4, 16, profil },                      /* 44 = profil */
+       { 4, 16, notimp },                      /* 45 = ki_syscall (unimplemented) */
+       { 1, 4, setgid },                       /* 46 = setgid */
+       { 0, 0, getgid },                       /* 47 = getgid */
+       { compat(2,hpuxssig) },         /* 48 = old ssig */
+       { 0, 0, nosys },                        /* 49 = reserved for USG */
+       { 0, 0, nosys },                        /* 50 = reserved for USG */
+       { 1, 4, notimp },                       /* 51 = acct (unimplemented) */
+       { 0, 0, nosys },                        /* 52 = nosys */
+       { 0, 0, nosys },                        /* 53 = nosys */
+       { 3, 12, hpuxioctl },                   /* 54 = ioctl */
+       { 4, 16, notimp },                      /* 55 = reboot (unimplemented) */
+       { 2, 8, symlink },                      /* 56 = symlink */
+       { 3, 12, hpuxutssys },                  /* 57 = utssys */
+       { 3, 12, readlink },                    /* 58 = readlink */
+       { 3, 12, execve },                      /* 59 = execve */
+       { 1, 4, umask },                        /* 60 = umask */
+       { 1, 4, chroot },                       /* 61 = chroot */
+       { 3, 12, hpuxfcntl },                   /* 62 = fcntl */
+       { 2, 8, hpuxulimit },                   /* 63 = ulimit */
+       { 0, 0, nosys },                        /* 64 = nosys */
+       { 0, 0, nosys },                        /* 65 = nosys */
+       { 0, 0, hpuxvfork },                    /* 66 = vfork */
+       { 0, 0, hpuxread },                     /* 67 = vread */
+       { 0, 0, hpuxwrite },                    /* 68 = vwrite */
+       { 0, 0, nosys },                        /* 69 = nosys */
+       { 0, 0, nosys },                        /* 70 = nosys */
+       { 6, 24, hpuxmmap },                    /* 71 = mmap */
+       { 0, 0, nosys },                        /* 72 = nosys */
+       { 2, 8, munmap },                       /* 73 = munmap */
+       { 3, 12, notimp },                      /* 74 = mprotect (unimplemented) */
+       { 0, 0, nosys },                        /* 75 = nosys */
+       { 0, 0, nosys },                        /* 76 = nosys */
+       { 0, 0, nosys },                        /* 77 = nosys */
+       { 0, 0, nosys },                        /* 78 = nosys */
+       { 2, 8, getgroups },                    /* 79 = getgroups */
+       { 2, 8, setgroups },                    /* 80 = setgroups */
+       { 1, 4, hpuxgetpgrp2 },                 /* 81 = getpgrp2 */
+       { 2, 8, hpuxsetpgrp2 },                 /* 82 = setpgrp2 */
+       { 3, 12, setitimer },                   /* 83 = setitimer */
+       { 3, 12, hpuxwait3 },                   /* 84 = wait3 */
+       { 5, 20, notimp },                      /* 85 = swapon (unimplemented) */
+       { 2, 8, getitimer },                    /* 86 = getitimer */
+       { 0, 0, nosys },                        /* 87 = nosys */
+       { 0, 0, nosys },                        /* 88 = nosys */
+       { 0, 0, nosys },                        /* 89 = nosys */
+       { 2, 8, dup2 },                 /* 90 = dup2 */
+       { 0, 0, nosys },                        /* 91 = nosys */
+       { 2, 8, hpuxfstat },                    /* 92 = fstat */
+       { 5, 20, select },                      /* 93 = select */
+       { 0, 0, nosys },                        /* 94 = nosys */
+       { 1, 4, fsync },                        /* 95 = fsync */
+       { 0, 0, nosys },                        /* 96 = nosys */
+       { 0, 0, nosys },                        /* 97 = nosys */
+       { 0, 0, nosys },                        /* 98 = nosys */
+       { 0, 0, nosys },                        /* 99 = nosys */
+       { 0, 0, nosys },                        /* 100 = nosys */
+       { 0, 0, nosys },                        /* 101 = nosys */
+       { 0, 0, nosys },                        /* 102 = nosys */
+       { 1, 4, sigreturn },                    /* 103 = sigreturn */
+       { 0, 0, nosys },                        /* 104 = nosys */
+       { 0, 0, nosys },                        /* 105 = nosys */
+       { 0, 0, nosys },                        /* 106 = nosys */
+       { 0, 0, nosys },                        /* 107 = nosys */
+       { 3, 12, hpuxsigvec },                  /* 108 = sigvec */
+       { 1, 4, hpuxsigblock },                 /* 109 = sigblock */
+       { 1, 4, hpuxsigsetmask },                       /* 110 = sigsetmask */
+       { 1, 4, hpuxsigpause },                 /* 111 = sigpause */
+       { 2, 8, compat_43_sigstack },                   /* 112 = compat_43_sigstack */
+       { 0, 0, nosys },                        /* 113 = nosys */
+       { 0, 0, nosys },                        /* 114 = nosys */
+       { 0, 0, nosys },                        /* 115 = nosys */
+       { 2, 8, gettimeofday },                 /* 116 = gettimeofday */
+       { 0, 0, nosys },                        /* 117 = nosys */
+       { 0, 0, nosys },                        /* 118 = nosys */
+       { 3, 12, notimp },                      /* 119 = hpib_io_stub (unimplemented) */
+       { 3, 12, hpuxreadv },                   /* 120 = readv */
+       { 3, 12, hpuxwritev },                  /* 121 = writev */
+       { 2, 8, settimeofday },                 /* 122 = settimeofday */
+       { 3, 12, fchown },                      /* 123 = fchown */
+       { 2, 8, fchmod },                       /* 124 = fchmod */
+       { 0, 0, nosys },                        /* 125 = nosys */
+       { 3, 12, hpuxsetresuid },                       /* 126 = setresuid */
+       { 3, 12, hpuxsetresgid },                       /* 127 = setresgid */
+       { 2, 8, rename },                       /* 128 = rename */
+       { compat(2,truncate) },         /* 129 = old truncate */
+       { compat(2,ftruncate) },                /* 130 = old ftruncate */
+       { 0, 0, nosys },                        /* 131 = nosys */
+       { 1, 4, hpuxsysconf },                  /* 132 = sysconf */
+       { 0, 0, nosys },                        /* 133 = nosys */
+       { 0, 0, nosys },                        /* 134 = nosys */
+       { 0, 0, nosys },                        /* 135 = nosys */
+       { 2, 8, mkdir },                        /* 136 = mkdir */
+       { 1, 4, rmdir },                        /* 137 = rmdir */
+       { 0, 0, nosys },                        /* 138 = nosys */
+       { 0, 0, nosys },                        /* 139 = nosys */
+       { 0, 0, nosys },                        /* 140 = nosys */
+       { 0, 0, nosys },                        /* 141 = nosys */
+       { 0, 0, nosys },                        /* 142 = nosys */
+       { 0, 0, nosys },                        /* 143 = nosys */
+       { compat(2,getrlimit) },                /* 144 = old getrlimit */
+       { compat(2,setrlimit) },                /* 145 = old setrlimit */
+       { 0, 0, nosys },                        /* 146 = nosys */
+       { 0, 0, nosys },                        /* 147 = nosys */
+       { 0, 0, nosys },                        /* 148 = nosys */
+       { 0, 0, nosys },                        /* 149 = nosys */
+       { 0, 0, nosys },                        /* 150 = nosys */
+       { 3, 12, notimp },                      /* 151 = privgrp (unimplemented) */
+       { 2, 8, hpuxrtprio },                   /* 152 = rtprio */
+       { 1, 4, notimp },                       /* 153 = plock (unimplemented) */
+       { 2, 8, hpuxnetioctl },                 /* 154 = netioctl */
+       { 4, 16, hpuxlockf },                   /* 155 = lockf */
+       { 3, 12, hpuxsemget },                  /* 156 = semget */
+       { 4, 16, hpuxsemctl },                  /* 157 = semctl */
+       { 3, 12, hpuxsemop },                   /* 158 = semop */
+       { 2, 8, notimp },                       /* 159 = msgget (unimplemented) */
+       { 3, 12, notimp },                      /* 160 = msgctl (unimplemented) */
+       { 4, 16, notimp },                      /* 161 = msgsnd (unimplemented) */
+       { 5, 20, notimp },                      /* 162 = msgrcv (unimplemented) */
+#ifdef SYSVSHM
+       { 3, 12, hpuxshmget },                  /* 163 = shmget */
+       { 3, 12, hpuxshmctl },                  /* 164 = shmctl */
+       { 3, 12, hpuxshmat },                   /* 165 = shmat */
+       { 1, 4, hpuxshmdt },                    /* 166 = shmdt */
+#else
+       { 3, 12, notimp },                      /* 163 = shmget (unimplemented) */
+       { 3, 12, notimp },                      /* 164 = shmctl (unimplemented) */
+       { 3, 12, notimp },                      /* 165 = shmat (unimplemented) */
+       { 1, 4, notimp },                       /* 166 = shmdt (unimplemented) */
+#endif
+       { 1, 4, hpuxadvise },                   /* 167 = m68020_advise */
+       { 2, 8, notimp },                       /* 168 = nsp_init (unimplemented) */
+       { 3, 12, notimp },                      /* 169 = cluster (unimplemented) */
+       { 4, 16, notimp },                      /* 170 = mkrnod (unimplemented) */
+       { 0, 0, nosys },                        /* 171 = nosys */
+       { 0, 0, notimp },                       /* 172 = unsp_open (unimplemented) */
+       { 0, 0, nosys },                        /* 173 = nosys */
+       { 3, 12, hpuxgetcontext },                      /* 174 = getcontext */
+       { 0, 0, nosys },                        /* 175 = nosys */
+       { 0, 0, nosys },                        /* 176 = nosys */
+       { 0, 0, nosys },                        /* 177 = nosys */
+       { 0, 0, notimp },                       /* 178 = lsync (unimplemented) */
+       { 0, 0, nosys },                        /* 179 = nosys */
+       { 0, 0, notimp },                       /* 180 = mysite (unimplemented) */
+       { 1, 4, notimp },                       /* 181 = sitels (unimplemented) */
+       { 0, 0, nosys },                        /* 182 = nosys */
+       { 0, 0, nosys },                        /* 183 = nosys */
+       { 4, 16, notimp },                      /* 184 = dskless_stats (unimplemented) */
+       { 0, 0, nosys },                        /* 185 = nosys */
+       { 3, 12, notimp },                      /* 186 = setacl (unimplemented) */
+       { 3, 12, notimp },                      /* 187 = fsetacl (unimplemented) */
+       { 3, 12, notimp },                      /* 188 = getacl (unimplemented) */
+       { 3, 12, notimp },                      /* 189 = fgetacl (unimplemented) */
+       { 6, 24, hpuxgetaccess },                       /* 190 = getaccess */
+       { 0, 0, notimp },                       /* 191 = getaudid (unimplemented) */
+       { 1, 4, notimp },                       /* 192 = setaudid (unimplemented) */
+       { 0, 0, notimp },                       /* 193 = getaudproc (unimplemented) */
+       { 1, 4, notimp },                       /* 194 = setaudproc (unimplemented) */
+       { 2, 8, notimp },                       /* 195 = getevent (unimplemented) */
+       { 2, 8, notimp },                       /* 196 = setevent (unimplemented) */
+       { 1, 4, notimp },                       /* 197 = audwrite (unimplemented) */
+       { 1, 4, notimp },                       /* 198 = audswitch (unimplemented) */
+       { 4, 16, notimp },                      /* 199 = audctl (unimplemented) */
+       { 3, 12, hpuxwaitpid },                 /* 200 = waitpid */
+       { 0, 0, nosys },                        /* 201 = nosys */
+       { 0, 0, nosys },                        /* 202 = nosys */
+       { 0, 0, nosys },                        /* 203 = nosys */
+       { 0, 0, nosys },                        /* 204 = nosys */
+       { 0, 0, nosys },                        /* 205 = nosys */
+       { 0, 0, nosys },                        /* 206 = nosys */
+       { 0, 0, nosys },                        /* 207 = nosys */
+       { 0, 0, nosys },                        /* 208 = nosys */
+       { 0, 0, nosys },                        /* 209 = nosys */
+       { 0, 0, nosys },                        /* 210 = nosys */
+       { 0, 0, nosys },                        /* 211 = nosys */
+       { 0, 0, nosys },                        /* 212 = nosys */
+       { 0, 0, nosys },                        /* 213 = nosys */
+       { 0, 0, nosys },                        /* 214 = nosys */
+       { 0, 0, nosys },                        /* 215 = nosys */
+       { 0, 0, nosys },                        /* 216 = nosys */
+       { 0, 0, nosys },                        /* 217 = nosys */
+       { 0, 0, nosys },                        /* 218 = nosys */
+       { 0, 0, nosys },                        /* 219 = nosys */
+       { 0, 0, nosys },                        /* 220 = nosys */
+       { 0, 0, nosys },                        /* 221 = nosys */
+       { 0, 0, nosys },                        /* 222 = nosys */
+       { 0, 0, nosys },                        /* 223 = nosys */
+       { 0, 0, nosys },                        /* 224 = nosys */
+       { 2, 8, notimp },                       /* 225 = pathconf (unimplemented) */
+       { 2, 8, notimp },                       /* 226 = fpathconf (unimplemented) */
+       { 0, 0, nosys },                        /* 227 = nosys */
+       { 0, 0, nosys },                        /* 228 = nosys */
+       { 0, 0, notimp },                       /* 229 = async_daemon (unimplemented) */
+       { 3, 12, notimp },                      /* 230 = nfs_fcntl (unimplemented) */
+       { 4, 16, getdirentries },                       /* 231 = getdirentries */
+       { 2, 8, hpuxgetdomainname },                    /* 232 = getdomainname */
+       { 2, 8, notimp },                       /* 233 = nfs_getfh (unimplemented) */
+       { 4, 16, notimp },                      /* 234 = vfsmount (unimplemented) */
+       { 1, 4, notimp },                       /* 235 = nfs_svc (unimplemented) */
+       { 2, 8, hpuxsetdomainname },                    /* 236 = setdomainname */
+       { 2, 8, notimp },                       /* 237 = statfs (unimplemented) */
+       { 2, 8, notimp },                       /* 238 = fstatfs (unimplemented) */
+       { 3, 12, hpuxsigaction },                       /* 239 = sigaction */
+       { 3, 12, hpuxsigprocmask },                     /* 240 = sigprocmask */
+       { 1, 4, hpuxsigpending },                       /* 241 = sigpending */
+       { 1, 4, hpuxsigsuspend },                       /* 242 = sigsuspend */
+       { 4, 16, notimp },                      /* 243 = fsctl (unimplemented) */
+       { 0, 0, nosys },                        /* 244 = nosys */
+       { 3, 12, notimp },                      /* 245 = pstat (unimplemented) */
+       { 0, 0, nosys },                        /* 246 = nosys */
+       { 0, 0, nosys },                        /* 247 = nosys */
+       { 0, 0, nosys },                        /* 248 = nosys */
+       { 0, 0, nosys },                        /* 249 = nosys */
+       { 0, 0, nosys },                        /* 250 = nosys */
+       { 0, 0, nosys },                        /* 251 = nosys */
+       { 0, 0, nosys },                        /* 252 = nosys */
+       { 0, 0, nosys },                        /* 253 = nosys */
+       { 0, 0, nosys },                        /* 254 = nosys */
+       { 0, 0, nosys },                        /* 255 = nosys */
+       { 0, 0, nosys },                        /* 256 = nosys */
+       { 0, 0, nosys },                        /* 257 = nosys */
+       { 0, 0, nosys },                        /* 258 = nosys */
+       { 0, 0, nosys },                        /* 259 = nosys */
+       { 0, 0, nosys },                        /* 260 = nosys */
+       { 0, 0, nosys },                        /* 261 = nosys */
+       { 0, 0, nosys },                        /* 262 = nosys */
+       { 0, 0, nosys },                        /* 263 = nosys */
+       { 0, 0, nosys },                        /* 264 = nosys */
+       { 0, 0, nosys },                        /* 265 = nosys */
+       { 0, 0, nosys },                        /* 266 = nosys */
+       { 0, 0, nosys },                        /* 267 = nosys */
+       { 0, 0, getdtablesize },                        /* 268 = getnumfds */
+       { 0, 0, nosys },                        /* 269 = nosys */
+       { 0, 0, nosys },                        /* 270 = nosys */
+       { 0, 0, nosys },                        /* 271 = nosys */
+       { 1, 4, fchdir },                       /* 272 = fchdir */
+       { 0, 0, nosys },                        /* 273 = nosys */
+       { 0, 0, nosys },                        /* 274 = nosys */
+       { compat(3,accept) },           /* 275 = old accept */
+       { 3, 12, bind },                        /* 276 = bind */
+       { 3, 12, connect },                     /* 277 = connect */
+       { compat(3,getpeername) },              /* 278 = old getpeername */
+       { compat(3,getsockname) },              /* 279 = old getsockname */
+       { 5, 20, getsockopt },                  /* 280 = getsockopt */
+       { 2, 8, 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, 24, sendto },                      /* 287 = sendto */
+       { 5, 20, hpuxsetsockopt2 },                     /* 288 = setsockopt2 */
+       { 2, 8, shutdown },                     /* 289 = shutdown */
+       { 3, 12, socket },                      /* 290 = socket */
+       { 4, 16, socketpair },                  /* 291 = socketpair */
+       { 0, 0, nosys },                        /* 292 = nosys */
+       { 0, 0, nosys },                        /* 293 = nosys */
+       { 0, 0, nosys },                        /* 294 = nosys */
+       { 0, 0, nosys },                        /* 295 = nosys */
+       { 0, 0, nosys },                        /* 296 = nosys */
+       { 0, 0, nosys },                        /* 297 = nosys */
+       { 0, 0, nosys },                        /* 298 = nosys */
+       { 0, 0, nosys },                        /* 299 = nosys */
+       { 0, 0, nosys },                        /* 300 = nosys */
+       { 0, 0, nosys },                        /* 301 = nosys */
+       { 0, 0, nosys },                        /* 302 = nosys */
+       { 0, 0, nosys },                        /* 303 = nosys */
+       { 0, 0, nosys },                        /* 304 = nosys */
+       { 0, 0, nosys },                        /* 305 = nosys */
+       { 0, 0, nosys },                        /* 306 = nosys */
+       { 0, 0, nosys },                        /* 307 = nosys */
+       { 0, 0, nosys },                        /* 308 = nosys */
+       { 0, 0, nosys },                        /* 309 = nosys */
+       { 0, 0, nosys },                        /* 310 = nosys */
+       { 0, 0, nosys },                        /* 311 = nosys */
+       { 4, 16, hpuxsemctl },                  /* 312 = nsemctl */
+       { 3, 12, notimp },                      /* 313 = msgctl (unimplemented) */
+#ifdef SYSVSHM
+       { 3, 12, hpuxnshmctl },                 /* 314 = nshmctl */
+#else
+       { 3, 12, notimp },                      /* 314 = nshmctl (unimplemented) */
+#endif
+};
+
+int    hpuxnsysent = sizeof(hpuxsysent) / sizeof(hpuxsysent[0]);