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