Annotation of 43BSDReno/sys/hpux/hpux_syscalls.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1988 University of Utah.
        !             3:  * Copyright (c) 1990 The Regents of the University of California.
        !             4:  * All rights reserved.
        !             5:  *
        !             6:  * This code is derived from software contributed to Berkeley by
        !             7:  * the Systems Programming Group of the University of Utah Computer
        !             8:  * Science Department.
        !             9:  *
        !            10:  * Redistribution is only permitted until one year after the first shipment
        !            11:  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
        !            12:  * binary forms are permitted provided that: (1) source distributions retain
        !            13:  * this entire copyright notice and comment, and (2) distributions including
        !            14:  * binaries display the following acknowledgement:  This product includes
        !            15:  * software developed by the University of California, Berkeley and its
        !            16:  * contributors'' in the documentation or other materials provided with the
        !            17:  * distribution and in all advertising materials mentioning features or use
        !            18:  * of this software.  Neither the name of the University nor the names of
        !            19:  * its contributors may be used to endorse or promote products derived from
        !            20:  * this software without specific prior written permission.
        !            21:  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            22:  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            23:  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            24:  *
        !            25:  * from: Utah $Hdr: hpux_syscalls.c 1.8 89/08/23$
        !            26:  *
        !            27:  *     @(#)hpux_syscalls.c     7.1 (Berkeley) 5/8/90
        !            28:  */
        !            29: 
        !            30: #ifdef HPUXCOMPAT
        !            31: 
        !            32: /*
        !            33:  * HPUX System call names.
        !            34:  */
        !            35: char *hpuxsyscallnames[] = {
        !            36:        "indir",                /*   0 = indir */
        !            37:        "exit",                 /*   1 = exit */
        !            38:        "fork",                 /*   2 = fork */
        !            39:        "read",                 /*   3 = read */
        !            40:        "write",                /*   4 = write */
        !            41:        "open",                 /*   5 = open */
        !            42:        "close",                /*   6 = close */
        !            43:        "wait",                 /*   7 = old wait */
        !            44:        "creat",                /*   8 = creat */
        !            45:        "link",                 /*   9 = link */
        !            46:        "unlink",               /*  10 = unlink */
        !            47:        "execv",                /*  11 = execv */
        !            48:        "chdir",                /*  12 = chdir */
        !            49:        "old time",             /*  13 = old time */
        !            50:        "mknod",                /*  14 = mknod */
        !            51:        "chmod",                /*  15 = chmod */
        !            52:        "chown",                /*  16 = chown; now 3 args */
        !            53:        "old break",            /*  17 = old break */
        !            54:        "old stat",             /*  18 = old stat */
        !            55:        "lseek",                /*  19 = lseek */
        !            56:        "getpid",               /*  20 = getpid */
        !            57:        "mount",                /*  21 = mount */
        !            58:        "umount",               /*  22 = umount */
        !            59:        "old setuid",           /*  23 = old setuid */
        !            60:        "getuid",               /*  24 = getuid */
        !            61:        "old stime",            /*  25 = old stime */
        !            62:        "ptrace",               /*  26 = ptrace */
        !            63:        "old alarm",            /*  27 = old alarm */
        !            64:        "old fstat",            /*  28 = old fstat */
        !            65:        "old pause",            /*  29 = old pause */
        !            66:        "old utime",            /*  30 = old utime */
        !            67:        "old stty",             /*  31 = old stty */
        !            68:        "old gtty",             /*  32 = old gtty */
        !            69:        "access",               /*  33 = access */
        !            70:        "old nice",             /*  34 = old nice */
        !            71:        "old ftime",            /*  35 = old ftime */
        !            72:        "sync",                 /*  36 = sync */
        !            73:        "kill",                 /*  37 = kill */
        !            74:        "stat",                 /*  38 = stat */
        !            75:        "old setpgrp",          /*  39 = old setpgrp */
        !            76:        "lstat",                /*  40 = lstat */
        !            77:        "dup",                  /*  41 = dup */
        !            78:        "pipe",                 /*  42 = pipe */
        !            79:        "old times",            /*  43 = old times */
        !            80:        "profil",               /*  44 = profil */
        !            81:        "ki_syscall",           /*  45 = ki_syscall */
        !            82:        "old setgid",           /*  46 = old setgid */
        !            83:        "getgid",               /*  47 = getgid */
        !            84:        "old signal",           /*  48 = old sig */
        !            85:        "#49",                  /*  49 = reserved for USG */
        !            86:        "#50",                  /*  50 = reserved for USG */
        !            87:        "acct",                 /*  51 = turn acct off/on */
        !            88:        "old phys - nosys",     /*  52 = old set phys addr */
        !            89:        "old lock - nosys",     /*  53 = old lock in core */
        !            90:        "ioctl",                /*  54 = ioctl */
        !            91:        "reboot",               /*  55 = reboot */
        !            92:        "old mpx - nosys",      /*  56 = old mpxchan */
        !            93:        "uname",                /*  57 = uname */
        !            94:        "readlink",             /*  58 = readlink */
        !            95:        "execve",               /*  59 = execve */
        !            96:        "umask",                /*  60 = umask */
        !            97:        "chroot",               /*  61 = chroot */
        !            98:        "fcntl",                /*  62 = fcntl */
        !            99:        "ulimit",               /*  63 = ulimit */
        !           100:        "#64",                  /*  64 = nosys */
        !           101:        "#65",                  /*  65 = nosys */
        !           102:        "vfork",                /*  66 = vfork */
        !           103:        "old vread - read",     /*  67 = old vread */
        !           104:        "old vwrite - write",   /*  68 = old vwrite */
        !           105:        "#69",                  /*  69 = nosys */
        !           106:        "#70",                  /*  70 = nosys */
        !           107:        "#71",                  /*  71 = nosys */
        !           108:        "#72",                  /*  72 = nosys */
        !           109:        "#73",                  /*  73 = nosys */
        !           110:        "mprotect",             /*  74 = mprotect */
        !           111:        "#75",                  /*  75 = nosys */
        !           112:        "#76",                  /*  76 = nosys */
        !           113:        "#77",                  /*  77 = nosys */
        !           114:        "#78",                  /*  78 = nosys */
        !           115:        "getgroups",            /*  79 = getgroups */
        !           116:        "setgroups",            /*  80 = setgroups */
        !           117:        "getpgrp2",             /*  81 = getpgrp2 */
        !           118:        "setpgrp2",             /*  82 = setpgrp2 */
        !           119:        "setitimer",            /*  83 = setitimer */
        !           120:        "wait3",                /*  84 = wait3 */
        !           121:        "swapon",               /*  85 = swapon */
        !           122:        "getitimer",            /*  86 = getitimer */
        !           123:        "#87",                  /*  87 = nosys */
        !           124:        "#88",                  /*  88 = nosys */
        !           125:        "#89",                  /*  89 = nosys */
        !           126:        "dup2",                 /*  90 = dup2 */
        !           127:        "#91",                  /*  91 = nosys */
        !           128:        "fstat",                /*  92 = fstat */
        !           129:        "select",               /*  93 = select */
        !           130:        "#94",                  /*  94 = nosys */
        !           131:        "fsync",                /*  95 = fsync */
        !           132:        "#96",                  /*  96 = nosys */
        !           133:        "#97",                  /*  97 = nosys */
        !           134:        "#98",                  /*  98 = nosys */
        !           135:        "#99",                  /*  99 = nosys */
        !           136:        "#100",                 /* 100 = nosys */
        !           137:        "#101",                 /* 101 = nosys */
        !           138:        "#102",                 /* 102 = nosys */
        !           139:        "sigreturn",            /* 103 = BSD sigreturn */
        !           140:        "#104",                 /* 104 = nosys */
        !           141:        "#105",                 /* 105 = nosys */
        !           142:        "#106",                 /* 106 = nosys */
        !           143:        "#107",                 /* 107 = nosys */
        !           144:        "sigvec",               /* 108 = sigvec */
        !           145:        "sigblock",             /* 109 = sigblock */
        !           146:        "sigsetmask",           /* 110 = sigsetmask */
        !           147:        "sigpause",             /* 111 = sigpause */
        !           148:        "sigstack",             /* 112 = sigstack */
        !           149:        "#113",                 /* 113 = nosys */
        !           150:        "#114",                 /* 114 = nosys */
        !           151:        "#115",                 /* 115 = nosys */
        !           152:        "gettimeofday",         /* 116 = gettimeofday */
        !           153:        "#117",                 /* 117 = nosys */
        !           154:        "#118",                 /* 118 = nosys */
        !           155:        "hpib_io_stub",         /* 119 = hpib_io_stub */
        !           156:        "readv",                /* 120 = readv */
        !           157:        "writev",               /* 121 = writev */
        !           158:        "settimeofday",         /* 122 = settimeofday */
        !           159:        "fchown",               /* 123 = fchown */
        !           160:        "fchmod",               /* 124 = fchmod */
        !           161:        "#125",                 /* 125 = nosys */
        !           162:        "setresuid",            /* 126 = setresuid */
        !           163:        "setresgid",            /* 127 = setresgid */
        !           164:        "rename",               /* 128 = rename */
        !           165:        "truncate",             /* 129 = truncate */
        !           166:        "ftruncate",            /* 130 = ftruncate */
        !           167:        "#131",                 /* 131 = nosys */
        !           168:        "sysconf",              /* 132 = sysconf */
        !           169:        "#133",                 /* 133 = nosys */
        !           170:        "#134",                 /* 134 = nosys */
        !           171:        "#135",                 /* 135 = nosys */
        !           172:        "mkdir",                /* 136 = mkdir */
        !           173:        "rmdir",                /* 137 = rmdir */
        !           174:        "utimes",               /* 138 = utimes */
        !           175:        "#139",                 /* 139 = nosys */
        !           176:        "#140",                 /* 140 = nosys */
        !           177:        "#141",                 /* 141 = nosys */
        !           178:        "#142",                 /* 142 = nosys */
        !           179:        "#143",                 /* 143 = nosys */
        !           180:        "#144",                 /* 144 = nosys */
        !           181:        "#145",                 /* 145 = nosys */
        !           182:        "#146",                 /* 146 = nosys */
        !           183:        "#147",                 /* 147 = nosys */
        !           184:        "#148",                 /* 148 = nosys */
        !           185:        "#149",                 /* 149 = nosys */
        !           186:        "#150",                 /* 150 = nosys */
        !           187:        /*
        !           188:         * HPUX specific syscalls
        !           189:         */
        !           190:        "privgrp",                      /* 151 = privgrp */
        !           191:        "rtprio",                       /* 152 = rtprio */
        !           192:        "plock",                        /* 153 = plock */
        !           193:        "netioctl",                     /* 154 = netioctl */
        !           194:        "lockf",                        /* 155 = lockf */
        !           195:        "semget",                       /* 156 = semget */
        !           196:        "semctl",                       /* 157 = semctl */
        !           197:        "semop",                        /* 158 = semop */
        !           198:        "msgget",                       /* 159 = msgget */
        !           199:        "msgctl",                       /* 160 = msgctl */
        !           200:        "msgsnd",                       /* 161 = msgsnd */
        !           201:        "msgrcv",                       /* 162 = msgrcv */
        !           202:        "shmget",                       /* 163 = shmget */
        !           203:        "shmctl",                       /* 164 = shmctl */
        !           204:        "shmat",                        /* 165 = shmat */
        !           205:        "shmdt",                        /* 166 = shmdt */
        !           206:        "m68020_advise",                /* 167 = m68020_advise */
        !           207:        "#168",                         /* 168 = nosys */
        !           208:        "cluster",                      /* 169 = cluster */
        !           209:        "mkrnod",                       /* 170 = mkrnod */
        !           210:        "#171",                         /* 171 = nosys */
        !           211:        "#172",                         /* 172 = nosys */
        !           212:        "#173",                         /* 173 = nosys */
        !           213:        "getcontext",                   /* 174 = getcontext */
        !           214:        "#175",                         /* 175 = nosys */
        !           215:        "#176",                         /* 176 = nosys */
        !           216:        "#177",                         /* 177 = nosys */
        !           217:        "lsync",                        /* 178 = lsync */
        !           218:        "#179",                         /* 179 = nosys */
        !           219:        "mysite",                       /* 180 = mysite */
        !           220:        "returnzero",                   /* 181 = returnzero */
        !           221:        "#182",                         /* 182 = nosys */
        !           222:        "#183",                         /* 183 = nosys */
        !           223:        "#184",                         /* 184 = nosys */
        !           224:        "#185",                         /* 185 = nosys */
        !           225:        "setacl",                       /* 186 = setacl */
        !           226:        "fsetacl",                      /* 187 = fsetacl */
        !           227:        "getacl",                       /* 188 = getacl */
        !           228:        "fgetacl",                      /* 189 = fgetacl */
        !           229:        "getaccess",                    /* 190 = getaccess */
        !           230:        "getaudid",                     /* 191 = getaudid */
        !           231:        "setaudid",                     /* 192 = setaudid */
        !           232:        "getaudproc",                   /* 193 = getaudproc */
        !           233:        "setaudproc",                   /* 194 = setaudproc */
        !           234:        "getevent",                     /* 195 = getevent */
        !           235:        "setevent",                     /* 196 = setevent */
        !           236:        "audwrite",                     /* 197 = audwrite */
        !           237:        "audswitch",                    /* 198 = audswitch */
        !           238:        "audctl",                       /* 199 = audctl */
        !           239:        "waitpid",                      /* 200 = waitpid */
        !           240:        "#201",                         /* 201 = nosys */
        !           241:        "netioctl",                     /* 202 = netioctl */
        !           242:        "#203",                         /* 203 = nosys */
        !           243:        "#204",                         /* 204 = nosys */
        !           244:        "#205",                         /* 205 = nosys */
        !           245:        "#206",                         /* 206 = nosys */
        !           246:        "#207",                         /* 207 = nosys */
        !           247:        "#208",                         /* 208 = nosys */
        !           248:        "#209",                         /* 209 = nosys */
        !           249:        "#210",                         /* 210 = nosys */
        !           250:        "#211",                         /* 211 = nosys */
        !           251:        "#212",                         /* 212 = nosys */
        !           252:        "#213",                         /* 213 = nosys */
        !           253:        "#214",                         /* 214 = nosys */
        !           254:        "#215",                         /* 215 = nosys */
        !           255:        "#216",                         /* 216 = nosys */
        !           256:        "#217",                         /* 217 = nosys */
        !           257:        "#218",                         /* 218 = nosys */
        !           258:        "#219",                         /* 219 = nosys */
        !           259:        "#220",                         /* 220 = nosys */
        !           260:        "#221",                         /* 221 = nosys */
        !           261:        "#222",                         /* 222 = nosys */
        !           262:        "#223",                         /* 223 = nosys */
        !           263:        "#224",                         /* 224 = nosys */
        !           264:        "pathconf",                     /* 225 = pathconf */
        !           265:        "fpathconf",                    /* 226 = fpathconf */
        !           266:        "#227",                         /* 227 = nosys */
        !           267:        "#228",                         /* 228 = nosys */
        !           268:        "async_daemon",                 /* 229 = aync_daemon */
        !           269:        "nfs_fcntl",                    /* 230 = nfs_fcntl */
        !           270:        "getdirentries",                /* 231 = getdirentries */
        !           271:        "getdomainname",                /* 232 = getdomainname */
        !           272:        "nfs_getfh",                    /* 233 = nfs_getfh */
        !           273:        "vfsmount",                     /* 234 = vfsmount */
        !           274:        "nfs_svc",                      /* 235 = nfs_svc */
        !           275:        "fstatfs",                      /* 236 = setdomainname */
        !           276:        "statfs",                       /* 237 = statfs */
        !           277:        "fstatfs",                      /* 238 = fstatfs */
        !           278:        "sigaction",                    /* 239 = sigaction */
        !           279:        "sigprocmask",                  /* 240 = sigprocmask */
        !           280:        "sigpending",                   /* 241 = sigpending */
        !           281:        "sigsuspend",                   /* 242 = sigsuspend */
        !           282: };
        !           283: 
        !           284: char *hpuxbsdipcnames[] = {
        !           285:        "socket",
        !           286:        "listen",
        !           287:        "bind",
        !           288:        "accept",
        !           289:        "connect",
        !           290:        "recv",
        !           291:        "send",
        !           292:        "shutdown",
        !           293:        "getsockname",
        !           294:        "setsockopt",
        !           295:        "sendto",
        !           296:        "recvfrom",
        !           297:        "getpeername",
        !           298:        "0x3FB",
        !           299:        "0x3FC",
        !           300:        "0x3FD",
        !           301:        "0x3FE",
        !           302:        "0x3FF",
        !           303:        "0x400",
        !           304:        "0x401",
        !           305:        "0x402",
        !           306:        "0x403",
        !           307:        "0x404",
        !           308:        "0x405",
        !           309:        "0x406",
        !           310:        "0x407",
        !           311:        "0x408",
        !           312:        "0x409",
        !           313:        "0x40A",
        !           314:        "getsockopt",
        !           315:        "0x40C",
        !           316:        "0x40D"
        !           317: };
        !           318: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.