home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / sys / hp300 / hpux / hpux_syscalls.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-08  |  10.3 KB  |  332 lines

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