1
2
3
4
5
6
7
8
9
10 #ifdef syscallarg
11 #undef syscallarg
12 #endif
13
14 #define syscallarg(x) \
15 union { \
16 register_t pad; \
17 struct { x datum; } le; \
18 struct { \
19 int8_t pad[ (sizeof (register_t) < sizeof (x)) \
20 ? 0 \
21 : sizeof (register_t) - sizeof (x)]; \
22 x datum; \
23 } be; \
24 }
25
26 struct hpux_sys_read_args {
27 syscallarg(int) fd;
28 syscallarg(char *) buf;
29 syscallarg(u_int) nbyte;
30 };
31
32 struct hpux_sys_write_args {
33 syscallarg(int) fd;
34 syscallarg(char *) buf;
35 syscallarg(u_int) nbyte;
36 };
37
38 struct hpux_sys_open_args {
39 syscallarg(char *) path;
40 syscallarg(int) flags;
41 syscallarg(int) mode;
42 };
43
44 struct hpux_sys_wait_args {
45 syscallarg(int *) status;
46 };
47
48 struct hpux_sys_creat_args {
49 syscallarg(char *) path;
50 syscallarg(int) mode;
51 };
52
53 struct hpux_sys_unlink_args {
54 syscallarg(char *) path;
55 };
56
57 struct hpux_sys_execv_args {
58 syscallarg(char *) path;
59 syscallarg(char **) argp;
60 };
61
62 struct hpux_sys_chdir_args {
63 syscallarg(char *) path;
64 };
65
66 struct hpux_sys_time_6x_args {
67 syscallarg(time_t *) t;
68 };
69
70 struct hpux_sys_mknod_args {
71 syscallarg(char *) path;
72 syscallarg(int) mode;
73 syscallarg(int) dev;
74 };
75
76 struct hpux_sys_chmod_args {
77 syscallarg(char *) path;
78 syscallarg(int) mode;
79 };
80
81 struct hpux_sys_chown_args {
82 syscallarg(char *) path;
83 syscallarg(int) uid;
84 syscallarg(int) gid;
85 };
86
87 struct hpux_sys_stat_6x_args {
88 syscallarg(char *) path;
89 syscallarg(struct hpux_ostat *) sb;
90 };
91
92 struct hpux_sys_stime_6x_args {
93 syscallarg(int) time;
94 };
95
96 struct hpux_sys_ptrace_args {
97 syscallarg(int) req;
98 syscallarg(int) pid;
99 syscallarg(int *) addr;
100 syscallarg(int) data;
101 };
102
103 struct hpux_sys_alarm_6x_args {
104 syscallarg(int) deltat;
105 };
106
107 struct hpux_sys_fstat_6x_args {
108 syscallarg(int) fd;
109 syscallarg(struct hpux_ostat *) sb;
110 };
111
112 struct hpux_sys_utime_6x_args {
113 syscallarg(char *) fname;
114 syscallarg(time_t *) tptr;
115 };
116
117 struct hpux_sys_stty_6x_args {
118 syscallarg(int) fd;
119 syscallarg(caddr_t) arg;
120 };
121
122 struct hpux_sys_gtty_6x_args {
123 syscallarg(int) fd;
124 syscallarg(caddr_t) arg;
125 };
126
127 struct hpux_sys_access_args {
128 syscallarg(char *) path;
129 syscallarg(int) flags;
130 };
131
132 struct hpux_sys_nice_6x_args {
133 syscallarg(int) nval;
134 };
135
136 struct hpux_sys_ftime_6x_args {
137 syscallarg(struct hpux_timeb *) tp;
138 };
139
140 struct hpux_sys_kill_args {
141 syscallarg(pid_t) pid;
142 syscallarg(int) signo;
143 };
144
145 struct hpux_sys_stat_args {
146 syscallarg(char *) path;
147 syscallarg(struct hpux_stat *) sb;
148 };
149
150 struct hpux_sys_lstat_args {
151 syscallarg(char *) path;
152 syscallarg(struct hpux_stat *) sb;
153 };
154
155 struct hpux_sys_times_6x_args {
156 syscallarg(struct tms *) tms;
157 };
158
159 struct hpux_sys_ssig_6x_args {
160 syscallarg(int) signo;
161 syscallarg(sig_t) fun;
162 };
163
164 struct hpux_sys_ioctl_args {
165 syscallarg(int) fd;
166 syscallarg(int) com;
167 syscallarg(caddr_t) data;
168 };
169
170 struct hpux_sys_symlink_args {
171 syscallarg(char *) path;
172 syscallarg(char *) link;
173 };
174
175 struct hpux_sys_utssys_args {
176 syscallarg(struct hpux_utsname *) uts;
177 syscallarg(int) dev;
178 syscallarg(int) request;
179 };
180
181 struct hpux_sys_readlink_args {
182 syscallarg(char *) path;
183 syscallarg(char *) buf;
184 syscallarg(int) count;
185 };
186
187 struct hpux_sys_execve_args {
188 syscallarg(char *) path;
189 syscallarg(char **) argp;
190 syscallarg(char **) envp;
191 };
192
193 struct hpux_sys_fcntl_args {
194 syscallarg(int) fd;
195 syscallarg(int) cmd;
196 syscallarg(int) arg;
197 };
198
199 struct hpux_sys_ulimit_args {
200 syscallarg(int) cmd;
201 syscallarg(int) newlimit;
202 };
203
204 struct hpux_sys_mmap_args {
205 syscallarg(caddr_t) addr;
206 syscallarg(size_t) len;
207 syscallarg(int) prot;
208 syscallarg(int) flags;
209 syscallarg(int) fd;
210 syscallarg(long) pos;
211 };
212
213 struct hpux_sys_getpgrp2_args {
214 syscallarg(pid_t) pid;
215 };
216
217 struct hpux_sys_setpgrp2_args {
218 syscallarg(pid_t) pid;
219 syscallarg(pid_t) pgid;
220 };
221
222 struct hpux_sys_wait3_args {
223 syscallarg(int *) status;
224 syscallarg(int) options;
225 syscallarg(int) rusage;
226 };
227
228 struct hpux_sys_fstat_args {
229 syscallarg(int) fd;
230 syscallarg(struct hpux_stat *) sb;
231 };
232
233 struct hpux_sys_sigreturn_args {
234 syscallarg(struct hpuxsigcontext *) sigcntxp;
235 };
236
237 struct hpux_sys_sigvec_args {
238 syscallarg(int) signo;
239 syscallarg(struct sigvec *) nsv;
240 syscallarg(struct sigvec *) osv;
241 };
242
243 struct hpux_sys_sigblock_args {
244 syscallarg(int) mask;
245 };
246
247 struct hpux_sys_sigsetmask_args {
248 syscallarg(int) mask;
249 };
250
251 struct hpux_sys_sigpause_args {
252 syscallarg(int) mask;
253 };
254
255 struct hpux_sys_readv_args {
256 syscallarg(int) fd;
257 syscallarg(struct iovec *) iovp;
258 syscallarg(u_int) iovcnt;
259 };
260
261 struct hpux_sys_writev_args {
262 syscallarg(int) fd;
263 syscallarg(struct iovec *) iovp;
264 syscallarg(u_int) iovcnt;
265 };
266
267 struct hpux_sys_rename_args {
268 syscallarg(char *) from;
269 syscallarg(char *) to;
270 };
271
272 struct hpux_sys_truncate_args {
273 syscallarg(char *) path;
274 syscallarg(long) length;
275 };
276
277 struct hpux_sys_sysconf_args {
278 syscallarg(int) name;
279 };
280
281 struct hpux_sys_mkdir_args {
282 syscallarg(char *) path;
283 syscallarg(int) mode;
284 };
285
286 struct hpux_sys_rmdir_args {
287 syscallarg(char *) path;
288 };
289
290 struct hpux_sys_getrlimit_args {
291 syscallarg(u_int) which;
292 syscallarg(struct ogetrlimit *) rlp;
293 };
294
295 struct hpux_sys_setrlimit_args {
296 syscallarg(u_int) which;
297 syscallarg(struct ogetrlimit *) rlp;
298 };
299
300 struct hpux_sys_rtprio_args {
301 syscallarg(pid_t) pid;
302 syscallarg(int) prio;
303 };
304
305 struct hpux_sys_netioctl_args {
306 syscallarg(int) call;
307 syscallarg(int *) args;
308 };
309
310 struct hpux_sys_lockf_args {
311 syscallarg(int) fd;
312 syscallarg(int) func;
313 syscallarg(long) size;
314 };
315
316 struct hpux_sys_shmctl_args {
317 syscallarg(int) shmid;
318 syscallarg(int) cmd;
319 syscallarg(caddr_t) buf;
320 };
321
322 struct hpux_sys_advise_args {
323 syscallarg(int) arg;
324 };
325
326 struct hpux_sys_getcontext_args {
327 syscallarg(char *) buf;
328 syscallarg(int) len;
329 };
330
331 struct hpux_sys_getaccess_args {
332 syscallarg(char *) path;
333 syscallarg(uid_t) uid;
334 syscallarg(int) ngroups;
335 syscallarg(gid_t *) gidset;
336 syscallarg(void *) label;
337 syscallarg(void *) privs;
338 };
339
340 struct hpux_sys_waitpid_args {
341 syscallarg(pid_t) pid;
342 syscallarg(int *) status;
343 syscallarg(int) options;
344 syscallarg(struct rusage *) rusage;
345 };
346
347 struct hpux_sys_sigaction_args {
348 syscallarg(int) signo;
349 syscallarg(struct hpux_sigaction *) nsa;
350 syscallarg(struct hpux_sigaction *) osa;
351 };
352
353 struct hpux_sys_sigprocmask_args {
354 syscallarg(int) how;
355 syscallarg(hpux_sigset_t *) set;
356 syscallarg(hpux_sigset_t *) oset;
357 };
358
359 struct hpux_sys_sigpending_args {
360 syscallarg(hpux_sigset_t *) set;
361 };
362
363 struct hpux_sys_sigsuspend_args {
364 syscallarg(hpux_sigset_t *) set;
365 };
366
367 struct hpux_sys_setsockopt_args {
368 syscallarg(int) s;
369 syscallarg(int) level;
370 syscallarg(int) name;
371 syscallarg(caddr_t) val;
372 syscallarg(int) valsize;
373 };
374
375 struct hpux_sys_nshmctl_args {
376 syscallarg(int) shmid;
377 syscallarg(int) cmd;
378 syscallarg(caddr_t) buf;
379 };
380
381
382
383
384
385 int sys_nosys(struct proc *, void *, register_t *);
386 int sys_exit(struct proc *, void *, register_t *);
387 int hpux_sys_fork(struct proc *, void *, register_t *);
388 int hpux_sys_read(struct proc *, void *, register_t *);
389 int hpux_sys_write(struct proc *, void *, register_t *);
390 int hpux_sys_open(struct proc *, void *, register_t *);
391 int sys_close(struct proc *, void *, register_t *);
392 int hpux_sys_wait(struct proc *, void *, register_t *);
393 int hpux_sys_creat(struct proc *, void *, register_t *);
394 int sys_link(struct proc *, void *, register_t *);
395 int hpux_sys_unlink(struct proc *, void *, register_t *);
396 int hpux_sys_execv(struct proc *, void *, register_t *);
397 int hpux_sys_chdir(struct proc *, void *, register_t *);
398 int hpux_sys_time_6x(struct proc *, void *, register_t *);
399 int hpux_sys_mknod(struct proc *, void *, register_t *);
400 int hpux_sys_chmod(struct proc *, void *, register_t *);
401 int hpux_sys_chown(struct proc *, void *, register_t *);
402 int sys_obreak(struct proc *, void *, register_t *);
403 int hpux_sys_stat_6x(struct proc *, void *, register_t *);
404 int compat_43_sys_lseek(struct proc *, void *, register_t *);
405 int sys_getpid(struct proc *, void *, register_t *);
406 int sys_setuid(struct proc *, void *, register_t *);
407 int sys_getuid(struct proc *, void *, register_t *);
408 int hpux_sys_stime_6x(struct proc *, void *, register_t *);
409 #ifdef PTRACE
410 int hpux_sys_ptrace(struct proc *, void *, register_t *);
411 #else
412 #endif
413 int hpux_sys_alarm_6x(struct proc *, void *, register_t *);
414 int hpux_sys_fstat_6x(struct proc *, void *, register_t *);
415 int hpux_sys_pause_6x(struct proc *, void *, register_t *);
416 int hpux_sys_utime_6x(struct proc *, void *, register_t *);
417 int hpux_sys_stty_6x(struct proc *, void *, register_t *);
418 int hpux_sys_gtty_6x(struct proc *, void *, register_t *);
419 int hpux_sys_access(struct proc *, void *, register_t *);
420 int hpux_sys_nice_6x(struct proc *, void *, register_t *);
421 int hpux_sys_ftime_6x(struct proc *, void *, register_t *);
422 int sys_sync(struct proc *, void *, register_t *);
423 int hpux_sys_kill(struct proc *, void *, register_t *);
424 int hpux_sys_stat(struct proc *, void *, register_t *);
425 int hpux_sys_setpgrp_6x(struct proc *, void *, register_t *);
426 int hpux_sys_lstat(struct proc *, void *, register_t *);
427 int sys_dup(struct proc *, void *, register_t *);
428 int sys_opipe(struct proc *, void *, register_t *);
429 int hpux_sys_times_6x(struct proc *, void *, register_t *);
430 int sys_profil(struct proc *, void *, register_t *);
431 int sys_setgid(struct proc *, void *, register_t *);
432 int sys_getgid(struct proc *, void *, register_t *);
433 int hpux_sys_ssig_6x(struct proc *, void *, register_t *);
434 int hpux_sys_ioctl(struct proc *, void *, register_t *);
435 int hpux_sys_symlink(struct proc *, void *, register_t *);
436 int hpux_sys_utssys(struct proc *, void *, register_t *);
437 int hpux_sys_readlink(struct proc *, void *, register_t *);
438 int hpux_sys_execve(struct proc *, void *, register_t *);
439 int sys_umask(struct proc *, void *, register_t *);
440 int sys_chroot(struct proc *, void *, register_t *);
441 int hpux_sys_fcntl(struct proc *, void *, register_t *);
442 int hpux_sys_ulimit(struct proc *, void *, register_t *);
443 int hpux_sys_vfork(struct proc *, void *, register_t *);
444 int hpux_sys_read(struct proc *, void *, register_t *);
445 int hpux_sys_write(struct proc *, void *, register_t *);
446 int hpux_sys_mmap(struct proc *, void *, register_t *);
447 int sys_munmap(struct proc *, void *, register_t *);
448 int sys_mprotect(struct proc *, void *, register_t *);
449 int sys_getgroups(struct proc *, void *, register_t *);
450 int sys_setgroups(struct proc *, void *, register_t *);
451 int hpux_sys_getpgrp2(struct proc *, void *, register_t *);
452 int hpux_sys_setpgrp2(struct proc *, void *, register_t *);
453 int sys_setitimer(struct proc *, void *, register_t *);
454 int hpux_sys_wait3(struct proc *, void *, register_t *);
455 int sys_getitimer(struct proc *, void *, register_t *);
456 int sys_dup2(struct proc *, void *, register_t *);
457 int hpux_sys_fstat(struct proc *, void *, register_t *);
458 int sys_select(struct proc *, void *, register_t *);
459 int sys_fsync(struct proc *, void *, register_t *);
460 int hpux_sys_sigreturn(struct proc *, void *, register_t *);
461 int hpux_sys_sigvec(struct proc *, void *, register_t *);
462 int hpux_sys_sigblock(struct proc *, void *, register_t *);
463 int hpux_sys_sigsetmask(struct proc *, void *, register_t *);
464 int hpux_sys_sigpause(struct proc *, void *, register_t *);
465 int compat_43_sys_sigstack(struct proc *, void *, register_t *);
466 int sys_gettimeofday(struct proc *, void *, register_t *);
467 int hpux_sys_readv(struct proc *, void *, register_t *);
468 int hpux_sys_writev(struct proc *, void *, register_t *);
469 int sys_settimeofday(struct proc *, void *, register_t *);
470 int sys_fchown(struct proc *, void *, register_t *);
471 int sys_fchmod(struct proc *, void *, register_t *);
472 int sys_setresuid(struct proc *, void *, register_t *);
473 int sys_setresgid(struct proc *, void *, register_t *);
474 int hpux_sys_rename(struct proc *, void *, register_t *);
475 int hpux_sys_truncate(struct proc *, void *, register_t *);
476 int compat_43_sys_ftruncate(struct proc *, void *, register_t *);
477 int hpux_sys_sysconf(struct proc *, void *, register_t *);
478 int hpux_sys_mkdir(struct proc *, void *, register_t *);
479 int hpux_sys_rmdir(struct proc *, void *, register_t *);
480 int hpux_sys_getrlimit(struct proc *, void *, register_t *);
481 int hpux_sys_setrlimit(struct proc *, void *, register_t *);
482 int hpux_sys_rtprio(struct proc *, void *, register_t *);
483 int hpux_sys_netioctl(struct proc *, void *, register_t *);
484 int hpux_sys_lockf(struct proc *, void *, register_t *);
485 #ifdef SYSVSEM
486 int sys_semget(struct proc *, void *, register_t *);
487 int sys___semctl(struct proc *, void *, register_t *);
488 int sys_semop(struct proc *, void *, register_t *);
489 #else
490 #endif
491 #ifdef SYSVMSG
492 int sys_msgget(struct proc *, void *, register_t *);
493 int sys_msgctl(struct proc *, void *, register_t *);
494 int sys_msgsnd(struct proc *, void *, register_t *);
495 int sys_msgrcv(struct proc *, void *, register_t *);
496 #else
497 #endif
498 #ifdef SYSVSHM
499 int sys_shmget(struct proc *, void *, register_t *);
500 int hpux_sys_shmctl(struct proc *, void *, register_t *);
501 int sys_shmat(struct proc *, void *, register_t *);
502 int sys_shmdt(struct proc *, void *, register_t *);
503 #else
504 #endif
505 int hpux_sys_advise(struct proc *, void *, register_t *);
506 int hpux_sys_getcontext(struct proc *, void *, register_t *);
507 int hpux_sys_getaccess(struct proc *, void *, register_t *);
508 int hpux_sys_waitpid(struct proc *, void *, register_t *);
509 int sys_pathconf(struct proc *, void *, register_t *);
510 int sys_fpathconf(struct proc *, void *, register_t *);
511 int compat_43_sys_getdirentries(struct proc *, void *, register_t *);
512 int compat_09_sys_getdomainname(struct proc *, void *, register_t *);
513 int compat_09_sys_setdomainname(struct proc *, void *, register_t *);
514 int hpux_sys_sigaction(struct proc *, void *, register_t *);
515 int hpux_sys_sigprocmask(struct proc *, void *, register_t *);
516 int hpux_sys_sigpending(struct proc *, void *, register_t *);
517 int hpux_sys_sigsuspend(struct proc *, void *, register_t *);
518 int compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
519 int sys_poll(struct proc *, void *, register_t *);
520 int sys_fchdir(struct proc *, void *, register_t *);
521 int compat_43_sys_accept(struct proc *, void *, register_t *);
522 int sys_bind(struct proc *, void *, register_t *);
523 int sys_connect(struct proc *, void *, register_t *);
524 int compat_43_sys_getpeername(struct proc *, void *, register_t *);
525 int compat_43_sys_getsockname(struct proc *, void *, register_t *);
526 int sys_getsockopt(struct proc *, void *, register_t *);
527 int sys_listen(struct proc *, void *, register_t *);
528 int compat_43_sys_recv(struct proc *, void *, register_t *);
529 int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
530 int compat_43_sys_recvmsg(struct proc *, void *, register_t *);
531 int compat_43_sys_send(struct proc *, void *, register_t *);
532 int compat_43_sys_sendmsg(struct proc *, void *, register_t *);
533 int sys_sendto(struct proc *, void *, register_t *);
534 int hpux_sys_setsockopt(struct proc *, void *, register_t *);
535 int sys_shutdown(struct proc *, void *, register_t *);
536 int sys_socket(struct proc *, void *, register_t *);
537 int sys_socketpair(struct proc *, void *, register_t *);
538 #ifdef SYSVSEM
539 int sys___semctl(struct proc *, void *, register_t *);
540 #else
541 #endif
542 #ifdef SYSVMSG
543 int sys_msgctl(struct proc *, void *, register_t *);
544 #else
545 #endif
546 #ifdef SYSVSHM
547 int hpux_sys_nshmctl(struct proc *, void *, register_t *);
548 #else
549 #endif