1: /*
   2:  * Copyright (c) 1982, 1986 Regents of the University of California.
   3:  * All rights reserved.  The Berkeley software License Agreement
   4:  * specifies the terms and conditions for redistribution.
   5:  *
   6:  *	@(#)syscalls.c	7.1 (Berkeley) 6/5/86
   7:  */
   8: 
   9: /*
  10:  * System call names.
  11:  */
  12: char *syscallnames[] = {
  13:     "indir",        /*   0 = indir */
  14:     "exit",         /*   1 = exit */
  15:     "fork",         /*   2 = fork */
  16:     "read",         /*   3 = read */
  17:     "write",        /*   4 = write */
  18:     "open",         /*   5 = open */
  19:     "close",        /*   6 = close */
  20:     "old wait",     /*   7 = old wait */
  21:     "creat",        /*   8 = creat */
  22:     "link",         /*   9 = link */
  23:     "unlink",       /*  10 = unlink */
  24:     "execv",        /*  11 = execv */
  25:     "chdir",        /*  12 = chdir */
  26:     "old time",     /*  13 = old time */
  27:     "mknod",        /*  14 = mknod */
  28:     "chmod",        /*  15 = chmod */
  29:     "chown",        /*  16 = chown; now 3 args */
  30:     "old break",        /*  17 = old break */
  31:     "old stat",     /*  18 = old stat */
  32:     "lseek",        /*  19 = lseek */
  33:     "getpid",       /*  20 = getpid */
  34:     "mount",        /*  21 = mount */
  35:     "umount",       /*  22 = umount */
  36:     "old setuid",       /*  23 = old setuid */
  37:     "getuid",       /*  24 = getuid */
  38:     "old stime",        /*  25 = old stime */
  39:     "ptrace",       /*  26 = ptrace */
  40:     "old alarm",        /*  27 = old alarm */
  41:     "old fstat",        /*  28 = old fstat */
  42:     "old pause",        /*  29 = old pause */
  43:     "old utime",        /*  30 = old utime */
  44:     "old stty - nosys", /*  31 = old stty */
  45:     "old gtty - nosys", /*  32 = old gtty */
  46:     "access",       /*  33 = access */
  47:     "old nice",     /*  34 = old nice */
  48:     "old ftime",        /*  35 = old ftime */
  49:     "sync",         /*  36 = sync */
  50:     "kill",         /*  37 = kill */
  51:     "stat",         /*  38 = stat */
  52:     "old setpgrp",      /*  39 = old setpgrp */
  53:     "lstat",        /*  40 = lstat */
  54:     "dup",          /*  41 = dup */
  55:     "pipe",         /*  42 = pipe */
  56:     "old times",        /*  43 = old times */
  57:     "profil",       /*  44 = profil */
  58:     "#45",          /*  45 = nosys */
  59:     "old setgid",       /*  46 = old setgid */
  60:     "getgid",       /*  47 = getgid */
  61:     "old signal",       /*  48 = old sig */
  62:     "#49",          /*  49 = reserved for USG */
  63:     "#50",          /*  50 = reserved for USG */
  64:     "acct",         /*  51 = turn acct off/on */
  65:     "old phys - nosys", /*  52 = old set phys addr */
  66:     "old lock - nosys", /*  53 = old lock in core */
  67:     "ioctl",        /*  54 = ioctl */
  68:     "reboot",       /*  55 = reboot */
  69:     "old mpx - nosys",  /*  56 = old mpxchan */
  70:     "symlink",      /*  57 = symlink */
  71:     "readlink",     /*  58 = readlink */
  72:     "execve",       /*  59 = execve */
  73:     "umask",        /*  60 = umask */
  74:     "chroot",       /*  61 = chroot */
  75:     "fstat",        /*  62 = fstat */
  76:     "#63",          /*  63 = used internally */
  77:     "getpagesize",      /*  64 = getpagesize */
  78:     "mremap",       /*  65 = mremap */
  79:     "vfork",        /*  66 = vfork */
  80:     "old vread - read", /*  67 = old vread */
  81:     "old vwrite - write",   /*  68 = old vwrite */
  82:     "sbrk",         /*  69 = sbrk */
  83:     "sstk",         /*  70 = sstk */
  84:     "mmap",         /*  71 = mmap */
  85:     "old vadvise",      /*  72 = old vadvise */
  86:     "munmap",       /*  73 = munmap */
  87:     "mprotect",     /*  74 = mprotect */
  88:     "madvise",      /*  75 = madvise */
  89:     "vhangup",      /*  76 = vhangup */
  90:     "old vlimit",       /*  77 = old vlimit */
  91:     "mincore",      /*  78 = mincore */
  92:     "getgroups",        /*  79 = getgroups */
  93:     "setgroups",        /*  80 = setgroups */
  94:     "getpgrp",      /*  81 = getpgrp */
  95:     "setpgrp",      /*  82 = setpgrp */
  96:     "setitimer",        /*  83 = setitimer */
  97:     "wait",         /*  84 = wait */
  98:     "swapon",       /*  85 = swapon */
  99:     "getitimer",        /*  86 = getitimer */
 100:     "gethostname",      /*  87 = gethostname */
 101:     "sethostname",      /*  88 = sethostname */
 102:     "getdtablesize",    /*  89 = getdtablesize */
 103:     "dup2",         /*  90 = dup2 */
 104:     "getdopt",      /*  91 = getdopt */
 105:     "fcntl",        /*  92 = fcntl */
 106:     "select",       /*  93 = select */
 107:     "setdopt",      /*  94 = setdopt */
 108:     "fsync",        /*  95 = fsync */
 109:     "setpriority",      /*  96 = setpriority */
 110:     "socket",       /*  97 = socket */
 111:     "connect",      /*  98 = connect */
 112:     "accept",       /*  99 = accept */
 113:     "getpriority",      /* 100 = getpriority */
 114:     "send",         /* 101 = send */
 115:     "recv",         /* 102 = recv */
 116:     "sigreturn",        /* 103 = sigreturn */
 117:     "bind",         /* 104 = bind */
 118:     "setsockopt",       /* 105 = setsockopt */
 119:     "listen",       /* 106 = listen */
 120:     "old vtimes",       /* 107 = old vtimes */
 121:     "sigvec",       /* 108 = sigvec */
 122:     "sigblock",     /* 109 = sigblock */
 123:     "sigsetmask",       /* 110 = sigsetmask */
 124:     "sigpause",     /* 111 = sigpause */
 125:     "sigstack",     /* 112 = sigstack */
 126:     "recvmsg",      /* 113 = recvmsg */
 127:     "sendmsg",      /* 114 = sendmsg */
 128: #ifdef TRACE
 129:     "old vtrace",       /* 115 = old vtrace */
 130: #else
 131:     "#115",         /* 115 = nosys */
 132: #endif
 133:     "gettimeofday",     /* 116 = gettimeofday */
 134:     "getrusage",        /* 117 = getrusage */
 135:     "getsockopt",       /* 118 = getsockopt */
 136: #ifdef vax
 137:     "resuba",       /* 119 = resuba */
 138: #else
 139:     "#119",         /* 119 = nosys */
 140: #endif
 141:     "readv",        /* 120 = readv */
 142:     "writev",       /* 121 = writev */
 143:     "settimeofday",     /* 122 = settimeofday */
 144:     "fchown",       /* 123 = fchown */
 145:     "fchmod",       /* 124 = fchmod */
 146:     "recvfrom",     /* 125 = recvfrom */
 147:     "setreuid",     /* 126 = setreuid */
 148:     "setregid",     /* 127 = setregid */
 149:     "rename",       /* 128 = rename */
 150:     "truncate",     /* 129 = truncate */
 151:     "ftruncate",        /* 130 = ftruncate */
 152:     "flock",        /* 131 = flock */
 153:     "old portal - nosys",   /* 132 = old portal */
 154:     "sendto",       /* 133 = sendto */
 155:     "shutdown",     /* 134 = shutdown */
 156:     "socketpair",       /* 135 = socketpair */
 157:     "mkdir",        /* 136 = mkdir */
 158:     "rmdir",        /* 137 = rmdir */
 159:     "utimes",       /* 138 = utimes */
 160:     "4.2 sigreturn",    /* 139 = old 4.2 sigreturn */
 161:     "adjtime",      /* 140 = adjtime */
 162:     "getpeername",      /* 141 = getpeername */
 163:     "gethostid",        /* 142 = gethostid */
 164:     "sethostid",        /* 143 = sethostid */
 165:     "getrlimit",        /* 144 = getrlimit */
 166:     "setrlimit",        /* 145 = setrlimit */
 167:     "killpg",       /* 146 = killpg */
 168:     "#147",         /* 147 = nosys */
 169:     "setquota",     /* 148 = setquota */
 170:     "quota",        /* 149 = quota */
 171:     "getsockname",      /* 150 = getsockname */
 172: };

Defined variables

syscallnames defined in line 12; used 1 times

Usage of this include

syscalls.c used 1 times
Last modified: 1986-06-05
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 599
Valid CSS Valid XHTML 1.0 Strict