|
|
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 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: *
1.1.1.2 ! root 40: * from: @(#)hpux_syscalls.c 7.2 (Berkeley) 12/5/90
! 41: * hpux_syscalls.c,v 1.2 1993/05/22 07:58:08 cgd Exp
1.1 root 42: */
43:
44: #ifdef HPUXCOMPAT
45:
46: /*
47: * HPUX System call names.
48: */
49: char *hpuxsyscallnames[] = {
50: "indir", /* 0 = indir */
51: "exit", /* 1 = exit */
52: "fork", /* 2 = fork */
53: "read", /* 3 = read */
54: "write", /* 4 = write */
55: "open", /* 5 = open */
56: "close", /* 6 = close */
57: "wait", /* 7 = old wait */
58: "creat", /* 8 = creat */
59: "link", /* 9 = link */
60: "unlink", /* 10 = unlink */
61: "execv", /* 11 = execv */
62: "chdir", /* 12 = chdir */
63: "old time", /* 13 = old time */
64: "mknod", /* 14 = mknod */
65: "chmod", /* 15 = chmod */
66: "chown", /* 16 = chown; now 3 args */
67: "old break", /* 17 = old break */
68: "old stat", /* 18 = old stat */
69: "lseek", /* 19 = lseek */
70: "getpid", /* 20 = getpid */
71: "mount", /* 21 = mount */
72: "umount", /* 22 = umount */
73: "old setuid", /* 23 = old setuid */
74: "getuid", /* 24 = getuid */
75: "old stime", /* 25 = old stime */
76: "ptrace", /* 26 = ptrace */
77: "old alarm", /* 27 = old alarm */
78: "old fstat", /* 28 = old fstat */
79: "old pause", /* 29 = old pause */
80: "old utime", /* 30 = old utime */
81: "old stty", /* 31 = old stty */
82: "old gtty", /* 32 = old gtty */
83: "access", /* 33 = access */
84: "old nice", /* 34 = old nice */
85: "old ftime", /* 35 = old ftime */
86: "sync", /* 36 = sync */
87: "kill", /* 37 = kill */
88: "stat", /* 38 = stat */
89: "old setpgrp", /* 39 = old setpgrp */
90: "lstat", /* 40 = lstat */
91: "dup", /* 41 = dup */
92: "pipe", /* 42 = pipe */
93: "old times", /* 43 = old times */
94: "profil", /* 44 = profil */
95: "ki_syscall", /* 45 = ki_syscall */
96: "old setgid", /* 46 = old setgid */
97: "getgid", /* 47 = getgid */
98: "old signal", /* 48 = old sig */
99: "#49", /* 49 = reserved for USG */
100: "#50", /* 50 = reserved for USG */
101: "acct", /* 51 = turn acct off/on */
102: "old phys - nosys", /* 52 = old set phys addr */
103: "old lock - nosys", /* 53 = old lock in core */
104: "ioctl", /* 54 = ioctl */
105: "reboot", /* 55 = reboot */
106: "old mpx - nosys", /* 56 = old mpxchan */
107: "utssys", /* 57 = utssys */
108: "readlink", /* 58 = readlink */
109: "execve", /* 59 = execve */
110: "umask", /* 60 = umask */
111: "chroot", /* 61 = chroot */
112: "fcntl", /* 62 = fcntl */
113: "ulimit", /* 63 = ulimit */
114: "#64", /* 64 = nosys */
115: "#65", /* 65 = nosys */
116: "vfork", /* 66 = vfork */
117: "old vread - read", /* 67 = old vread */
118: "old vwrite - write", /* 68 = old vwrite */
119: "#69", /* 69 = nosys */
120: "#70", /* 70 = nosys */
121: "#71", /* 71 = nosys */
122: "#72", /* 72 = nosys */
123: "#73", /* 73 = nosys */
124: "mprotect", /* 74 = mprotect */
125: "#75", /* 75 = nosys */
126: "#76", /* 76 = nosys */
127: "#77", /* 77 = nosys */
128: "#78", /* 78 = nosys */
129: "getgroups", /* 79 = getgroups */
130: "setgroups", /* 80 = setgroups */
131: "getpgrp2", /* 81 = getpgrp2 */
132: "setpgrp2", /* 82 = setpgrp2 */
133: "setitimer", /* 83 = setitimer */
134: "wait3", /* 84 = wait3 */
135: "swapon", /* 85 = swapon */
136: "getitimer", /* 86 = getitimer */
137: "#87", /* 87 = nosys */
138: "#88", /* 88 = nosys */
139: "#89", /* 89 = nosys */
140: "dup2", /* 90 = dup2 */
141: "#91", /* 91 = nosys */
142: "fstat", /* 92 = fstat */
143: "select", /* 93 = select */
144: "#94", /* 94 = nosys */
145: "fsync", /* 95 = fsync */
146: "#96", /* 96 = nosys */
147: "#97", /* 97 = nosys */
148: "#98", /* 98 = nosys */
149: "#99", /* 99 = nosys */
150: "#100", /* 100 = nosys */
151: "#101", /* 101 = nosys */
152: "#102", /* 102 = nosys */
153: "sigreturn", /* 103 = BSD sigreturn */
154: "#104", /* 104 = nosys */
155: "#105", /* 105 = nosys */
156: "#106", /* 106 = nosys */
157: "#107", /* 107 = nosys */
158: "sigvec", /* 108 = sigvec */
159: "sigblock", /* 109 = sigblock */
160: "sigsetmask", /* 110 = sigsetmask */
161: "sigpause", /* 111 = sigpause */
162: "sigstack", /* 112 = sigstack */
163: "#113", /* 113 = nosys */
164: "#114", /* 114 = nosys */
165: "#115", /* 115 = nosys */
166: "gettimeofday", /* 116 = gettimeofday */
167: "#117", /* 117 = nosys */
168: "#118", /* 118 = nosys */
169: "hpib_io_stub", /* 119 = hpib_io_stub */
170: "readv", /* 120 = readv */
171: "writev", /* 121 = writev */
172: "settimeofday", /* 122 = settimeofday */
173: "fchown", /* 123 = fchown */
174: "fchmod", /* 124 = fchmod */
175: "#125", /* 125 = nosys */
176: "setresuid", /* 126 = setresuid */
177: "setresgid", /* 127 = setresgid */
178: "rename", /* 128 = rename */
179: "truncate", /* 129 = truncate */
180: "ftruncate", /* 130 = ftruncate */
181: "#131", /* 131 = nosys */
182: "sysconf", /* 132 = sysconf */
183: "#133", /* 133 = nosys */
184: "#134", /* 134 = nosys */
185: "#135", /* 135 = nosys */
186: "mkdir", /* 136 = mkdir */
187: "rmdir", /* 137 = rmdir */
188: "utimes", /* 138 = utimes */
189: "#139", /* 139 = nosys */
190: "#140", /* 140 = nosys */
191: "#141", /* 141 = nosys */
192: "#142", /* 142 = nosys */
193: "#143", /* 143 = nosys */
194: "#144", /* 144 = nosys */
195: "#145", /* 145 = nosys */
196: "#146", /* 146 = nosys */
197: "#147", /* 147 = nosys */
198: "#148", /* 148 = nosys */
199: "#149", /* 149 = nosys */
200: "#150", /* 150 = nosys */
201: /*
202: * HPUX specific syscalls
203: */
204: "privgrp", /* 151 = privgrp */
205: "rtprio", /* 152 = rtprio */
206: "plock", /* 153 = plock */
207: "netioctl", /* 154 = netioctl */
208: "lockf", /* 155 = lockf */
209: "semget", /* 156 = semget */
210: "semctl", /* 157 = semctl */
211: "semop", /* 158 = semop */
212: "msgget", /* 159 = msgget */
213: "msgctl", /* 160 = msgctl */
214: "msgsnd", /* 161 = msgsnd */
215: "msgrcv", /* 162 = msgrcv */
216: "shmget", /* 163 = shmget */
217: "shmctl", /* 164 = shmctl */
218: "shmat", /* 165 = shmat */
219: "shmdt", /* 166 = shmdt */
220: "m68020_advise", /* 167 = m68020_advise */
221: "#168", /* 168 = nosys */
222: "cluster", /* 169 = cluster */
223: "mkrnod", /* 170 = mkrnod */
224: "#171", /* 171 = nosys */
225: "#172", /* 172 = nosys */
226: "#173", /* 173 = nosys */
227: "getcontext", /* 174 = getcontext */
228: "#175", /* 175 = nosys */
229: "#176", /* 176 = nosys */
230: "#177", /* 177 = nosys */
231: "lsync", /* 178 = lsync */
232: "#179", /* 179 = nosys */
233: "mysite", /* 180 = mysite */
234: "returnzero", /* 181 = returnzero */
235: "#182", /* 182 = nosys */
236: "#183", /* 183 = nosys */
237: "#184", /* 184 = nosys */
238: "#185", /* 185 = nosys */
239: "setacl", /* 186 = setacl */
240: "fsetacl", /* 187 = fsetacl */
241: "getacl", /* 188 = getacl */
242: "fgetacl", /* 189 = fgetacl */
243: "getaccess", /* 190 = getaccess */
244: "getaudid", /* 191 = getaudid */
245: "setaudid", /* 192 = setaudid */
246: "getaudproc", /* 193 = getaudproc */
247: "setaudproc", /* 194 = setaudproc */
248: "getevent", /* 195 = getevent */
249: "setevent", /* 196 = setevent */
250: "audwrite", /* 197 = audwrite */
251: "audswitch", /* 198 = audswitch */
252: "audctl", /* 199 = audctl */
253: "waitpid", /* 200 = waitpid */
254: "#201", /* 201 = nosys */
255: "netioctl", /* 202 = netioctl */
256: "#203", /* 203 = nosys */
257: "#204", /* 204 = nosys */
258: "#205", /* 205 = nosys */
259: "#206", /* 206 = nosys */
260: "#207", /* 207 = nosys */
261: "#208", /* 208 = nosys */
262: "#209", /* 209 = nosys */
263: "#210", /* 210 = nosys */
264: "#211", /* 211 = nosys */
265: "#212", /* 212 = nosys */
266: "#213", /* 213 = nosys */
267: "#214", /* 214 = nosys */
268: "#215", /* 215 = nosys */
269: "#216", /* 216 = nosys */
270: "#217", /* 217 = nosys */
271: "#218", /* 218 = nosys */
272: "#219", /* 219 = nosys */
273: "#220", /* 220 = nosys */
274: "#221", /* 221 = nosys */
275: "#222", /* 222 = nosys */
276: "#223", /* 223 = nosys */
277: "#224", /* 224 = nosys */
278: "pathconf", /* 225 = pathconf */
279: "fpathconf", /* 226 = fpathconf */
280: "#227", /* 227 = nosys */
281: "#228", /* 228 = nosys */
282: "async_daemon", /* 229 = aync_daemon */
283: "nfs_fcntl", /* 230 = nfs_fcntl */
284: "getdirentries", /* 231 = getdirentries */
285: "getdomainname", /* 232 = getdomainname */
286: "nfs_getfh", /* 233 = nfs_getfh */
287: "vfsmount", /* 234 = vfsmount */
288: "nfs_svc", /* 235 = nfs_svc */
289: "fstatfs", /* 236 = setdomainname */
290: "statfs", /* 237 = statfs */
291: "fstatfs", /* 238 = fstatfs */
292: "sigaction", /* 239 = sigaction */
293: "sigprocmask", /* 240 = sigprocmask */
294: "sigpending", /* 241 = sigpending */
295: "sigsuspend", /* 242 = sigsuspend */
296: };
297:
298: char *hpuxbsdipcnames[] = {
299: "socket",
300: "listen",
301: "bind",
302: "accept",
303: "connect",
304: "recv",
305: "send",
306: "shutdown",
307: "getsockname",
308: "setsockopt",
309: "sendto",
310: "recvfrom",
311: "getpeername",
312: "0x3FB",
313: "0x3FC",
314: "0x3FD",
315: "0x3FE",
316: "0x3FF",
317: "0x400",
318: "0x401",
319: "0x402",
320: "0x403",
321: "0x404",
322: "0x405",
323: "0x406",
324: "0x407",
325: "0x408",
326: "0x409",
327: "0x40A",
328: "getsockopt",
329: "0x40C",
330: "0x40D"
331: };
332: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.