2 * System call prototypes.
4 * DO NOT EDIT-- this file is automatically generated.
5 * $DragonFly: src/sys/emulation/svr4/Attic/svr4_proto.h,v 1.8 2003/08/12 02:36:15 dillon Exp $
6 * created from DragonFly: src/sys/emulation/svr4/syscalls.master,v 1.3 2003/08/07 21:17:19 dillon Exp
9 #ifndef _SVR4_SYSPROTO_H_
10 #define _SVR4_SYSPROTO_H_
12 #include <sys/signal.h>
16 #include <sys/msgport.h>
18 #include <sys/sysmsg.h>
20 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
23 struct svr4_sys_open_args {
28 char * path; char path_[PAD_(char *)];
29 int flags; char flags_[PAD_(int)];
30 int mode; char mode_[PAD_(int)];
32 struct svr4_sys_wait_args {
37 int * status; char status_[PAD_(int *)];
39 struct svr4_sys_creat_args {
44 char * path; char path_[PAD_(char *)];
45 int mode; char mode_[PAD_(int)];
47 struct svr4_sys_execv_args {
52 char * path; char path_[PAD_(char *)];
53 char ** argp; char argp_[PAD_(char **)];
55 struct svr4_sys_time_args {
60 time_t * t; char t_[PAD_(time_t *)];
62 struct svr4_sys_mknod_args {
67 char * path; char path_[PAD_(char *)];
68 int mode; char mode_[PAD_(int)];
69 int dev; char dev_[PAD_(int)];
71 struct svr4_sys_break_args {
76 caddr_t nsize; char nsize_[PAD_(caddr_t)];
78 struct svr4_sys_stat_args {
83 char * path; char path_[PAD_(char *)];
84 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
86 struct svr4_sys_alarm_args {
91 unsigned sec; char sec_[PAD_(unsigned)];
93 struct svr4_sys_fstat_args {
98 int fd; char fd_[PAD_(int)];
99 struct svr4_stat * sb; char sb_[PAD_(struct svr4_stat *)];
101 struct svr4_sys_pause_args {
108 struct svr4_sys_utime_args {
113 char * path; char path_[PAD_(char *)];
114 struct svr4_utimbuf * ubuf; char ubuf_[PAD_(struct svr4_utimbuf *)];
116 struct svr4_sys_access_args {
121 char * path; char path_[PAD_(char *)];
122 int flags; char flags_[PAD_(int)];
124 struct svr4_sys_nice_args {
129 int prio; char prio_[PAD_(int)];
131 struct svr4_sys_kill_args {
136 int pid; char pid_[PAD_(int)];
137 int signum; char signum_[PAD_(int)];
139 struct svr4_sys_pgrpsys_args {
144 int cmd; char cmd_[PAD_(int)];
145 int pid; char pid_[PAD_(int)];
146 int pgid; char pgid_[PAD_(int)];
148 struct svr4_sys_times_args {
153 struct tms * tp; char tp_[PAD_(struct tms *)];
155 struct svr4_sys_signal_args {
160 int signum; char signum_[PAD_(int)];
161 svr4_sig_t handler; char handler_[PAD_(svr4_sig_t)];
164 struct svr4_sys_msgsys_args {
169 int what; char what_[PAD_(int)];
170 int a2; char a2_[PAD_(int)];
171 int a3; char a3_[PAD_(int)];
172 int a4; char a4_[PAD_(int)];
173 int a5; char a5_[PAD_(int)];
177 struct svr4_sys_sysarch_args {
182 int op; char op_[PAD_(int)];
183 void * a1; char a1_[PAD_(void *)];
185 struct svr4_sys_ioctl_args {
190 int fd; char fd_[PAD_(int)];
191 u_long com; char com_[PAD_(u_long)];
192 caddr_t data; char data_[PAD_(caddr_t)];
194 struct svr4_sys_utssys_args {
199 void * a1; char a1_[PAD_(void *)];
200 void * a2; char a2_[PAD_(void *)];
201 int sel; char sel_[PAD_(int)];
202 void * a3; char a3_[PAD_(void *)];
204 struct svr4_sys_execve_args {
209 char * path; char path_[PAD_(char *)];
210 char ** argp; char argp_[PAD_(char **)];
211 char ** envp; char envp_[PAD_(char **)];
213 struct svr4_sys_fcntl_args {
218 int fd; char fd_[PAD_(int)];
219 int cmd; char cmd_[PAD_(int)];
220 char * arg; char arg_[PAD_(char *)];
222 struct svr4_sys_ulimit_args {
227 int cmd; char cmd_[PAD_(int)];
228 long newlimit; char newlimit_[PAD_(long)];
230 struct svr4_sys_getdents_args {
235 int fd; char fd_[PAD_(int)];
236 char * buf; char buf_[PAD_(char *)];
237 int nbytes; char nbytes_[PAD_(int)];
239 struct svr4_sys_getmsg_args {
244 int fd; char fd_[PAD_(int)];
245 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
246 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
247 int * flags; char flags_[PAD_(int *)];
249 struct svr4_sys_putmsg_args {
254 int fd; char fd_[PAD_(int)];
255 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
256 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
257 int flags; char flags_[PAD_(int)];
259 struct svr4_sys_poll_args {
264 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
265 unsigned int nfds; char nfds_[PAD_(unsigned int)];
266 int timeout; char timeout_[PAD_(int)];
268 struct svr4_sys_lstat_args {
273 char * path; char path_[PAD_(char *)];
274 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
276 struct svr4_sys_sigprocmask_args {
281 int how; char how_[PAD_(int)];
282 svr4_sigset_t * set; char set_[PAD_(svr4_sigset_t *)];
283 svr4_sigset_t * oset; char oset_[PAD_(svr4_sigset_t *)];
285 struct svr4_sys_sigsuspend_args {
290 svr4_sigset_t * ss; char ss_[PAD_(svr4_sigset_t *)];
292 struct svr4_sys_sigaltstack_args {
297 struct svr4_sigaltstack * nss; char nss_[PAD_(struct svr4_sigaltstack *)];
298 struct svr4_sigaltstack * oss; char oss_[PAD_(struct svr4_sigaltstack *)];
300 struct svr4_sys_sigaction_args {
305 int signum; char signum_[PAD_(int)];
306 struct svr4_sigaction * nsa; char nsa_[PAD_(struct svr4_sigaction *)];
307 struct svr4_sigaction * osa; char osa_[PAD_(struct svr4_sigaction *)];
309 struct svr4_sys_sigpending_args {
314 int what; char what_[PAD_(int)];
315 svr4_sigset_t * mask; char mask_[PAD_(svr4_sigset_t *)];
317 struct svr4_sys_context_args {
322 int func; char func_[PAD_(int)];
323 struct svr4_ucontext * uc; char uc_[PAD_(struct svr4_ucontext *)];
325 struct svr4_sys_statvfs_args {
330 char * path; char path_[PAD_(char *)];
331 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
333 struct svr4_sys_fstatvfs_args {
338 int fd; char fd_[PAD_(int)];
339 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
341 struct svr4_sys_waitsys_args {
346 int grp; char grp_[PAD_(int)];
347 int id; char id_[PAD_(int)];
348 union svr4_siginfo * info; char info_[PAD_(union svr4_siginfo *)];
349 int options; char options_[PAD_(int)];
351 struct svr4_sys_hrtsys_args {
356 int cmd; char cmd_[PAD_(int)];
357 int fun; char fun_[PAD_(int)];
358 int sub; char sub_[PAD_(int)];
359 void * rv1; char rv1_[PAD_(void *)];
360 void * rv2; char rv2_[PAD_(void *)];
362 struct svr4_sys_pathconf_args {
367 char * path; char path_[PAD_(char *)];
368 int name; char name_[PAD_(int)];
370 struct svr4_sys_mmap_args {
375 caddr_t addr; char addr_[PAD_(caddr_t)];
376 svr4_size_t len; char len_[PAD_(svr4_size_t)];
377 int prot; char prot_[PAD_(int)];
378 int flags; char flags_[PAD_(int)];
379 int fd; char fd_[PAD_(int)];
380 svr4_off_t pos; char pos_[PAD_(svr4_off_t)];
382 struct svr4_sys_fpathconf_args {
387 int fd; char fd_[PAD_(int)];
388 int name; char name_[PAD_(int)];
390 struct svr4_sys_xstat_args {
395 int two; char two_[PAD_(int)];
396 char * path; char path_[PAD_(char *)];
397 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
399 struct svr4_sys_lxstat_args {
404 int two; char two_[PAD_(int)];
405 char * path; char path_[PAD_(char *)];
406 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
408 struct svr4_sys_fxstat_args {
413 int two; char two_[PAD_(int)];
414 int fd; char fd_[PAD_(int)];
415 struct svr4_xstat * sb; char sb_[PAD_(struct svr4_xstat *)];
417 struct svr4_sys_xmknod_args {
422 int two; char two_[PAD_(int)];
423 char * path; char path_[PAD_(char *)];
424 svr4_mode_t mode; char mode_[PAD_(svr4_mode_t)];
425 svr4_dev_t dev; char dev_[PAD_(svr4_dev_t)];
427 struct svr4_sys_setrlimit_args {
432 int which; char which_[PAD_(int)];
433 const struct svr4_rlimit * rlp; char rlp_[PAD_(const struct svr4_rlimit *)];
435 struct svr4_sys_getrlimit_args {
440 int which; char which_[PAD_(int)];
441 struct svr4_rlimit * rlp; char rlp_[PAD_(struct svr4_rlimit *)];
443 struct svr4_sys_memcntl_args {
448 void * addr; char addr_[PAD_(void *)];
449 svr4_size_t len; char len_[PAD_(svr4_size_t)];
450 int cmd; char cmd_[PAD_(int)];
451 void * arg; char arg_[PAD_(void *)];
452 int attr; char attr_[PAD_(int)];
453 int mask; char mask_[PAD_(int)];
455 struct svr4_sys_uname_args {
460 struct svr4_utsname * name; char name_[PAD_(struct svr4_utsname *)];
461 int dummy; char dummy_[PAD_(int)];
463 struct svr4_sys_sysconfig_args {
468 int name; char name_[PAD_(int)];
470 struct svr4_sys_systeminfo_args {
475 int what; char what_[PAD_(int)];
476 char * buf; char buf_[PAD_(char *)];
477 long len; char len_[PAD_(long)];
479 struct svr4_sys_fchroot_args {
484 int fd; char fd_[PAD_(int)];
486 struct svr4_sys_utimes_args {
491 char * path; char path_[PAD_(char *)];
492 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
494 struct svr4_sys_vhangup_args {
501 struct svr4_sys_gettimeofday_args {
506 struct timeval * tp; char tp_[PAD_(struct timeval *)];
508 struct svr4_sys_llseek_args {
513 int fd; char fd_[PAD_(int)];
514 long offset1; char offset1_[PAD_(long)];
515 long offset2; char offset2_[PAD_(long)];
516 int whence; char whence_[PAD_(int)];
518 struct svr4_sys_acl_args {
523 char * path; char path_[PAD_(char *)];
524 int cmd; char cmd_[PAD_(int)];
525 int num; char num_[PAD_(int)];
526 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
528 struct svr4_sys_auditsys_args {
533 int code; char code_[PAD_(int)];
534 int a1; char a1_[PAD_(int)];
535 int a2; char a2_[PAD_(int)];
536 int a3; char a3_[PAD_(int)];
537 int a4; char a4_[PAD_(int)];
538 int a5; char a5_[PAD_(int)];
540 struct svr4_sys_facl_args {
545 int fd; char fd_[PAD_(int)];
546 int cmd; char cmd_[PAD_(int)];
547 int num; char num_[PAD_(int)];
548 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
550 struct svr4_sys_resolvepath_args {
555 const char * path; char path_[PAD_(const char *)];
556 char * buf; char buf_[PAD_(char *)];
557 size_t bufsiz; char bufsiz_[PAD_(size_t)];
559 struct svr4_sys_getdents64_args {
564 int fd; char fd_[PAD_(int)];
565 struct svr4_dirent64 * dp; char dp_[PAD_(struct svr4_dirent64 *)];
566 int nbytes; char nbytes_[PAD_(int)];
568 struct svr4_sys_mmap64_args {
573 void * addr; char addr_[PAD_(void *)];
574 svr4_size_t len; char len_[PAD_(svr4_size_t)];
575 int prot; char prot_[PAD_(int)];
576 int flags; char flags_[PAD_(int)];
577 int fd; char fd_[PAD_(int)];
578 svr4_off64_t pos; char pos_[PAD_(svr4_off64_t)];
580 struct svr4_sys_stat64_args {
585 char * path; char path_[PAD_(char *)];
586 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
588 struct svr4_sys_lstat64_args {
593 char * path; char path_[PAD_(char *)];
594 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
596 struct svr4_sys_fstat64_args {
601 int fd; char fd_[PAD_(int)];
602 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
604 struct svr4_sys_statvfs64_args {
609 char * path; char path_[PAD_(char *)];
610 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
612 struct svr4_sys_fstatvfs64_args {
617 int fd; char fd_[PAD_(int)];
618 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
620 struct svr4_sys_setrlimit64_args {
625 int which; char which_[PAD_(int)];
626 const struct svr4_rlimit64 * rlp; char rlp_[PAD_(const struct svr4_rlimit64 *)];
628 struct svr4_sys_getrlimit64_args {
633 int which; char which_[PAD_(int)];
634 struct svr4_rlimit64 * rlp; char rlp_[PAD_(struct svr4_rlimit64 *)];
636 struct svr4_sys_creat64_args {
641 char * path; char path_[PAD_(char *)];
642 int mode; char mode_[PAD_(int)];
644 struct svr4_sys_open64_args {
649 char * path; char path_[PAD_(char *)];
650 int flags; char flags_[PAD_(int)];
651 int mode; char mode_[PAD_(int)];
653 struct svr4_sys_socket_args {
658 int domain; char domain_[PAD_(int)];
659 int type; char type_[PAD_(int)];
660 int protocol; char protocol_[PAD_(int)];
662 struct svr4_sys_recv_args {
667 int s; char s_[PAD_(int)];
668 caddr_t buf; char buf_[PAD_(caddr_t)];
669 int len; char len_[PAD_(int)];
670 int flags; char flags_[PAD_(int)];
672 struct svr4_sys_send_args {
677 int s; char s_[PAD_(int)];
678 caddr_t buf; char buf_[PAD_(caddr_t)];
679 int len; char len_[PAD_(int)];
680 int flags; char flags_[PAD_(int)];
682 struct svr4_sys_sendto_args {
687 int s; char s_[PAD_(int)];
688 void * buf; char buf_[PAD_(void *)];
689 size_t len; char len_[PAD_(size_t)];
690 int flags; char flags_[PAD_(int)];
691 struct sockaddr * to; char to_[PAD_(struct sockaddr *)];
692 int tolen; char tolen_[PAD_(int)];
697 int svr4_sys_open __P((struct svr4_sys_open_args *));
698 int svr4_sys_wait __P((struct svr4_sys_wait_args *));
699 int svr4_sys_creat __P((struct svr4_sys_creat_args *));
700 int svr4_sys_execv __P((struct svr4_sys_execv_args *));
701 int svr4_sys_time __P((struct svr4_sys_time_args *));
702 int svr4_sys_mknod __P((struct svr4_sys_mknod_args *));
703 int svr4_sys_break __P((struct svr4_sys_break_args *));
704 int svr4_sys_stat __P((struct svr4_sys_stat_args *));
705 int svr4_sys_alarm __P((struct svr4_sys_alarm_args *));
706 int svr4_sys_fstat __P((struct svr4_sys_fstat_args *));
707 int svr4_sys_pause __P((struct svr4_sys_pause_args *));
708 int svr4_sys_utime __P((struct svr4_sys_utime_args *));
709 int svr4_sys_access __P((struct svr4_sys_access_args *));
710 int svr4_sys_nice __P((struct svr4_sys_nice_args *));
711 int svr4_sys_kill __P((struct svr4_sys_kill_args *));
712 int svr4_sys_pgrpsys __P((struct svr4_sys_pgrpsys_args *));
713 int svr4_sys_times __P((struct svr4_sys_times_args *));
714 int svr4_sys_signal __P((struct svr4_sys_signal_args *));
716 int svr4_sys_msgsys __P((struct svr4_sys_msgsys_args *));
719 int svr4_sys_sysarch __P((struct svr4_sys_sysarch_args *));
720 int svr4_sys_ioctl __P((struct svr4_sys_ioctl_args *));
721 int svr4_sys_utssys __P((struct svr4_sys_utssys_args *));
722 int svr4_sys_execve __P((struct svr4_sys_execve_args *));
723 int svr4_sys_fcntl __P((struct svr4_sys_fcntl_args *));
724 int svr4_sys_ulimit __P((struct svr4_sys_ulimit_args *));
725 int svr4_sys_getdents __P((struct svr4_sys_getdents_args *));
726 int svr4_sys_getmsg __P((struct svr4_sys_getmsg_args *));
727 int svr4_sys_putmsg __P((struct svr4_sys_putmsg_args *));
728 int svr4_sys_poll __P((struct svr4_sys_poll_args *));
729 int svr4_sys_lstat __P((struct svr4_sys_lstat_args *));
730 int svr4_sys_sigprocmask __P((struct svr4_sys_sigprocmask_args *));
731 int svr4_sys_sigsuspend __P((struct svr4_sys_sigsuspend_args *));
732 int svr4_sys_sigaltstack __P((struct svr4_sys_sigaltstack_args *));
733 int svr4_sys_sigaction __P((struct svr4_sys_sigaction_args *));
734 int svr4_sys_sigpending __P((struct svr4_sys_sigpending_args *));
735 int svr4_sys_context __P((struct svr4_sys_context_args *));
736 int svr4_sys_statvfs __P((struct svr4_sys_statvfs_args *));
737 int svr4_sys_fstatvfs __P((struct svr4_sys_fstatvfs_args *));
738 int svr4_sys_waitsys __P((struct svr4_sys_waitsys_args *));
739 int svr4_sys_hrtsys __P((struct svr4_sys_hrtsys_args *));
740 int svr4_sys_pathconf __P((struct svr4_sys_pathconf_args *));
741 int svr4_sys_mmap __P((struct svr4_sys_mmap_args *));
742 int svr4_sys_fpathconf __P((struct svr4_sys_fpathconf_args *));
743 int svr4_sys_xstat __P((struct svr4_sys_xstat_args *));
744 int svr4_sys_lxstat __P((struct svr4_sys_lxstat_args *));
745 int svr4_sys_fxstat __P((struct svr4_sys_fxstat_args *));
746 int svr4_sys_xmknod __P((struct svr4_sys_xmknod_args *));
747 int svr4_sys_setrlimit __P((struct svr4_sys_setrlimit_args *));
748 int svr4_sys_getrlimit __P((struct svr4_sys_getrlimit_args *));
749 int svr4_sys_memcntl __P((struct svr4_sys_memcntl_args *));
750 int svr4_sys_uname __P((struct svr4_sys_uname_args *));
751 int svr4_sys_sysconfig __P((struct svr4_sys_sysconfig_args *));
752 int svr4_sys_systeminfo __P((struct svr4_sys_systeminfo_args *));
753 int svr4_sys_fchroot __P((struct svr4_sys_fchroot_args *));
754 int svr4_sys_utimes __P((struct svr4_sys_utimes_args *));
755 int svr4_sys_vhangup __P((struct svr4_sys_vhangup_args *));
756 int svr4_sys_gettimeofday __P((struct svr4_sys_gettimeofday_args *));
757 int svr4_sys_llseek __P((struct svr4_sys_llseek_args *));
758 int svr4_sys_acl __P((struct svr4_sys_acl_args *));
759 int svr4_sys_auditsys __P((struct svr4_sys_auditsys_args *));
760 int svr4_sys_facl __P((struct svr4_sys_facl_args *));
761 int svr4_sys_resolvepath __P((struct svr4_sys_resolvepath_args *));
762 int svr4_sys_getdents64 __P((struct svr4_sys_getdents64_args *));
763 int svr4_sys_mmap64 __P((struct svr4_sys_mmap64_args *));
764 int svr4_sys_stat64 __P((struct svr4_sys_stat64_args *));
765 int svr4_sys_lstat64 __P((struct svr4_sys_lstat64_args *));
766 int svr4_sys_fstat64 __P((struct svr4_sys_fstat64_args *));
767 int svr4_sys_statvfs64 __P((struct svr4_sys_statvfs64_args *));
768 int svr4_sys_fstatvfs64 __P((struct svr4_sys_fstatvfs64_args *));
769 int svr4_sys_setrlimit64 __P((struct svr4_sys_setrlimit64_args *));
770 int svr4_sys_getrlimit64 __P((struct svr4_sys_getrlimit64_args *));
771 int svr4_sys_creat64 __P((struct svr4_sys_creat64_args *));
772 int svr4_sys_open64 __P((struct svr4_sys_open64_args *));
773 int svr4_sys_socket __P((struct svr4_sys_socket_args *));
774 int svr4_sys_recv __P((struct svr4_sys_recv_args *));
775 int svr4_sys_send __P((struct svr4_sys_send_args *));
776 int svr4_sys_sendto __P((struct svr4_sys_sendto_args *));
791 #endif /* COMPAT_43 */
795 #endif /* !_SVR4_SYSPROTO_H_ */