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.7 2003/08/07 21:17:19 dillon Exp $
6 * created from DragonFly: src/sys/emulation/svr4/syscalls.master,v 1.2 2003/06/17 04:28:58 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 {
25 char * path; char path_[PAD_(char *)];
26 int flags; char flags_[PAD_(int)];
27 int mode; char mode_[PAD_(int)];
29 struct svr4_sys_wait_args {
31 int * status; char status_[PAD_(int *)];
33 struct svr4_sys_creat_args {
35 char * path; char path_[PAD_(char *)];
36 int mode; char mode_[PAD_(int)];
38 struct svr4_sys_execv_args {
40 char * path; char path_[PAD_(char *)];
41 char ** argp; char argp_[PAD_(char **)];
43 struct svr4_sys_time_args {
45 time_t * t; char t_[PAD_(time_t *)];
47 struct svr4_sys_mknod_args {
49 char * path; char path_[PAD_(char *)];
50 int mode; char mode_[PAD_(int)];
51 int dev; char dev_[PAD_(int)];
53 struct svr4_sys_break_args {
55 caddr_t nsize; char nsize_[PAD_(caddr_t)];
57 struct svr4_sys_stat_args {
59 char * path; char path_[PAD_(char *)];
60 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
62 struct svr4_sys_alarm_args {
64 unsigned sec; char sec_[PAD_(unsigned)];
66 struct svr4_sys_fstat_args {
68 int fd; char fd_[PAD_(int)];
69 struct svr4_stat * sb; char sb_[PAD_(struct svr4_stat *)];
71 struct svr4_sys_pause_args {
75 struct svr4_sys_utime_args {
77 char * path; char path_[PAD_(char *)];
78 struct svr4_utimbuf * ubuf; char ubuf_[PAD_(struct svr4_utimbuf *)];
80 struct svr4_sys_access_args {
82 char * path; char path_[PAD_(char *)];
83 int flags; char flags_[PAD_(int)];
85 struct svr4_sys_nice_args {
87 int prio; char prio_[PAD_(int)];
89 struct svr4_sys_kill_args {
91 int pid; char pid_[PAD_(int)];
92 int signum; char signum_[PAD_(int)];
94 struct svr4_sys_pgrpsys_args {
96 int cmd; char cmd_[PAD_(int)];
97 int pid; char pid_[PAD_(int)];
98 int pgid; char pgid_[PAD_(int)];
100 struct svr4_sys_times_args {
102 struct tms * tp; char tp_[PAD_(struct tms *)];
104 struct svr4_sys_signal_args {
106 int signum; char signum_[PAD_(int)];
107 svr4_sig_t handler; char handler_[PAD_(svr4_sig_t)];
110 struct svr4_sys_msgsys_args {
112 int what; char what_[PAD_(int)];
113 int a2; char a2_[PAD_(int)];
114 int a3; char a3_[PAD_(int)];
115 int a4; char a4_[PAD_(int)];
116 int a5; char a5_[PAD_(int)];
120 struct svr4_sys_sysarch_args {
122 int op; char op_[PAD_(int)];
123 void * a1; char a1_[PAD_(void *)];
125 struct svr4_sys_ioctl_args {
127 int fd; char fd_[PAD_(int)];
128 u_long com; char com_[PAD_(u_long)];
129 caddr_t data; char data_[PAD_(caddr_t)];
131 struct svr4_sys_utssys_args {
133 void * a1; char a1_[PAD_(void *)];
134 void * a2; char a2_[PAD_(void *)];
135 int sel; char sel_[PAD_(int)];
136 void * a3; char a3_[PAD_(void *)];
138 struct svr4_sys_execve_args {
140 char * path; char path_[PAD_(char *)];
141 char ** argp; char argp_[PAD_(char **)];
142 char ** envp; char envp_[PAD_(char **)];
144 struct svr4_sys_fcntl_args {
146 int fd; char fd_[PAD_(int)];
147 int cmd; char cmd_[PAD_(int)];
148 char * arg; char arg_[PAD_(char *)];
150 struct svr4_sys_ulimit_args {
152 int cmd; char cmd_[PAD_(int)];
153 long newlimit; char newlimit_[PAD_(long)];
155 struct svr4_sys_getdents_args {
157 int fd; char fd_[PAD_(int)];
158 char * buf; char buf_[PAD_(char *)];
159 int nbytes; char nbytes_[PAD_(int)];
161 struct svr4_sys_getmsg_args {
163 int fd; char fd_[PAD_(int)];
164 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
165 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
166 int * flags; char flags_[PAD_(int *)];
168 struct svr4_sys_putmsg_args {
170 int fd; char fd_[PAD_(int)];
171 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
172 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
173 int flags; char flags_[PAD_(int)];
175 struct svr4_sys_poll_args {
177 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
178 unsigned int nfds; char nfds_[PAD_(unsigned int)];
179 int timeout; char timeout_[PAD_(int)];
181 struct svr4_sys_lstat_args {
183 char * path; char path_[PAD_(char *)];
184 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
186 struct svr4_sys_sigprocmask_args {
188 int how; char how_[PAD_(int)];
189 svr4_sigset_t * set; char set_[PAD_(svr4_sigset_t *)];
190 svr4_sigset_t * oset; char oset_[PAD_(svr4_sigset_t *)];
192 struct svr4_sys_sigsuspend_args {
194 svr4_sigset_t * ss; char ss_[PAD_(svr4_sigset_t *)];
196 struct svr4_sys_sigaltstack_args {
198 struct svr4_sigaltstack * nss; char nss_[PAD_(struct svr4_sigaltstack *)];
199 struct svr4_sigaltstack * oss; char oss_[PAD_(struct svr4_sigaltstack *)];
201 struct svr4_sys_sigaction_args {
203 int signum; char signum_[PAD_(int)];
204 struct svr4_sigaction * nsa; char nsa_[PAD_(struct svr4_sigaction *)];
205 struct svr4_sigaction * osa; char osa_[PAD_(struct svr4_sigaction *)];
207 struct svr4_sys_sigpending_args {
209 int what; char what_[PAD_(int)];
210 svr4_sigset_t * mask; char mask_[PAD_(svr4_sigset_t *)];
212 struct svr4_sys_context_args {
214 int func; char func_[PAD_(int)];
215 struct svr4_ucontext * uc; char uc_[PAD_(struct svr4_ucontext *)];
217 struct svr4_sys_statvfs_args {
219 char * path; char path_[PAD_(char *)];
220 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
222 struct svr4_sys_fstatvfs_args {
224 int fd; char fd_[PAD_(int)];
225 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
227 struct svr4_sys_waitsys_args {
229 int grp; char grp_[PAD_(int)];
230 int id; char id_[PAD_(int)];
231 union svr4_siginfo * info; char info_[PAD_(union svr4_siginfo *)];
232 int options; char options_[PAD_(int)];
234 struct svr4_sys_hrtsys_args {
236 int cmd; char cmd_[PAD_(int)];
237 int fun; char fun_[PAD_(int)];
238 int sub; char sub_[PAD_(int)];
239 void * rv1; char rv1_[PAD_(void *)];
240 void * rv2; char rv2_[PAD_(void *)];
242 struct svr4_sys_pathconf_args {
244 char * path; char path_[PAD_(char *)];
245 int name; char name_[PAD_(int)];
247 struct svr4_sys_mmap_args {
249 caddr_t addr; char addr_[PAD_(caddr_t)];
250 svr4_size_t len; char len_[PAD_(svr4_size_t)];
251 int prot; char prot_[PAD_(int)];
252 int flags; char flags_[PAD_(int)];
253 int fd; char fd_[PAD_(int)];
254 svr4_off_t pos; char pos_[PAD_(svr4_off_t)];
256 struct svr4_sys_fpathconf_args {
258 int fd; char fd_[PAD_(int)];
259 int name; char name_[PAD_(int)];
261 struct svr4_sys_xstat_args {
263 int two; char two_[PAD_(int)];
264 char * path; char path_[PAD_(char *)];
265 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
267 struct svr4_sys_lxstat_args {
269 int two; char two_[PAD_(int)];
270 char * path; char path_[PAD_(char *)];
271 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
273 struct svr4_sys_fxstat_args {
275 int two; char two_[PAD_(int)];
276 int fd; char fd_[PAD_(int)];
277 struct svr4_xstat * sb; char sb_[PAD_(struct svr4_xstat *)];
279 struct svr4_sys_xmknod_args {
281 int two; char two_[PAD_(int)];
282 char * path; char path_[PAD_(char *)];
283 svr4_mode_t mode; char mode_[PAD_(svr4_mode_t)];
284 svr4_dev_t dev; char dev_[PAD_(svr4_dev_t)];
286 struct svr4_sys_setrlimit_args {
288 int which; char which_[PAD_(int)];
289 const struct svr4_rlimit * rlp; char rlp_[PAD_(const struct svr4_rlimit *)];
291 struct svr4_sys_getrlimit_args {
293 int which; char which_[PAD_(int)];
294 struct svr4_rlimit * rlp; char rlp_[PAD_(struct svr4_rlimit *)];
296 struct svr4_sys_memcntl_args {
298 void * addr; char addr_[PAD_(void *)];
299 svr4_size_t len; char len_[PAD_(svr4_size_t)];
300 int cmd; char cmd_[PAD_(int)];
301 void * arg; char arg_[PAD_(void *)];
302 int attr; char attr_[PAD_(int)];
303 int mask; char mask_[PAD_(int)];
305 struct svr4_sys_uname_args {
307 struct svr4_utsname * name; char name_[PAD_(struct svr4_utsname *)];
308 int dummy; char dummy_[PAD_(int)];
310 struct svr4_sys_sysconfig_args {
312 int name; char name_[PAD_(int)];
314 struct svr4_sys_systeminfo_args {
316 int what; char what_[PAD_(int)];
317 char * buf; char buf_[PAD_(char *)];
318 long len; char len_[PAD_(long)];
320 struct svr4_sys_fchroot_args {
322 int fd; char fd_[PAD_(int)];
324 struct svr4_sys_utimes_args {
326 char * path; char path_[PAD_(char *)];
327 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
329 struct svr4_sys_vhangup_args {
333 struct svr4_sys_gettimeofday_args {
335 struct timeval * tp; char tp_[PAD_(struct timeval *)];
337 struct svr4_sys_llseek_args {
339 int fd; char fd_[PAD_(int)];
340 long offset1; char offset1_[PAD_(long)];
341 long offset2; char offset2_[PAD_(long)];
342 int whence; char whence_[PAD_(int)];
344 struct svr4_sys_acl_args {
346 char * path; char path_[PAD_(char *)];
347 int cmd; char cmd_[PAD_(int)];
348 int num; char num_[PAD_(int)];
349 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
351 struct svr4_sys_auditsys_args {
353 int code; char code_[PAD_(int)];
354 int a1; char a1_[PAD_(int)];
355 int a2; char a2_[PAD_(int)];
356 int a3; char a3_[PAD_(int)];
357 int a4; char a4_[PAD_(int)];
358 int a5; char a5_[PAD_(int)];
360 struct svr4_sys_facl_args {
362 int fd; char fd_[PAD_(int)];
363 int cmd; char cmd_[PAD_(int)];
364 int num; char num_[PAD_(int)];
365 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
367 struct svr4_sys_resolvepath_args {
369 const char * path; char path_[PAD_(const char *)];
370 char * buf; char buf_[PAD_(char *)];
371 size_t bufsiz; char bufsiz_[PAD_(size_t)];
373 struct svr4_sys_getdents64_args {
375 int fd; char fd_[PAD_(int)];
376 struct svr4_dirent64 * dp; char dp_[PAD_(struct svr4_dirent64 *)];
377 int nbytes; char nbytes_[PAD_(int)];
379 struct svr4_sys_mmap64_args {
381 void * addr; char addr_[PAD_(void *)];
382 svr4_size_t len; char len_[PAD_(svr4_size_t)];
383 int prot; char prot_[PAD_(int)];
384 int flags; char flags_[PAD_(int)];
385 int fd; char fd_[PAD_(int)];
386 svr4_off64_t pos; char pos_[PAD_(svr4_off64_t)];
388 struct svr4_sys_stat64_args {
390 char * path; char path_[PAD_(char *)];
391 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
393 struct svr4_sys_lstat64_args {
395 char * path; char path_[PAD_(char *)];
396 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
398 struct svr4_sys_fstat64_args {
400 int fd; char fd_[PAD_(int)];
401 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
403 struct svr4_sys_statvfs64_args {
405 char * path; char path_[PAD_(char *)];
406 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
408 struct svr4_sys_fstatvfs64_args {
410 int fd; char fd_[PAD_(int)];
411 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
413 struct svr4_sys_setrlimit64_args {
415 int which; char which_[PAD_(int)];
416 const struct svr4_rlimit64 * rlp; char rlp_[PAD_(const struct svr4_rlimit64 *)];
418 struct svr4_sys_getrlimit64_args {
420 int which; char which_[PAD_(int)];
421 struct svr4_rlimit64 * rlp; char rlp_[PAD_(struct svr4_rlimit64 *)];
423 struct svr4_sys_creat64_args {
425 char * path; char path_[PAD_(char *)];
426 int mode; char mode_[PAD_(int)];
428 struct svr4_sys_open64_args {
430 char * path; char path_[PAD_(char *)];
431 int flags; char flags_[PAD_(int)];
432 int mode; char mode_[PAD_(int)];
434 struct svr4_sys_socket_args {
436 int domain; char domain_[PAD_(int)];
437 int type; char type_[PAD_(int)];
438 int protocol; char protocol_[PAD_(int)];
440 struct svr4_sys_recv_args {
442 int s; char s_[PAD_(int)];
443 caddr_t buf; char buf_[PAD_(caddr_t)];
444 int len; char len_[PAD_(int)];
445 int flags; char flags_[PAD_(int)];
447 struct svr4_sys_send_args {
449 int s; char s_[PAD_(int)];
450 caddr_t buf; char buf_[PAD_(caddr_t)];
451 int len; char len_[PAD_(int)];
452 int flags; char flags_[PAD_(int)];
454 struct svr4_sys_sendto_args {
456 int s; char s_[PAD_(int)];
457 void * buf; char buf_[PAD_(void *)];
458 size_t len; char len_[PAD_(size_t)];
459 int flags; char flags_[PAD_(int)];
460 struct sockaddr * to; char to_[PAD_(struct sockaddr *)];
461 int tolen; char tolen_[PAD_(int)];
466 int svr4_sys_open __P((struct svr4_sys_open_args *));
467 int svr4_sys_wait __P((struct svr4_sys_wait_args *));
468 int svr4_sys_creat __P((struct svr4_sys_creat_args *));
469 int svr4_sys_execv __P((struct svr4_sys_execv_args *));
470 int svr4_sys_time __P((struct svr4_sys_time_args *));
471 int svr4_sys_mknod __P((struct svr4_sys_mknod_args *));
472 int svr4_sys_break __P((struct svr4_sys_break_args *));
473 int svr4_sys_stat __P((struct svr4_sys_stat_args *));
474 int svr4_sys_alarm __P((struct svr4_sys_alarm_args *));
475 int svr4_sys_fstat __P((struct svr4_sys_fstat_args *));
476 int svr4_sys_pause __P((struct svr4_sys_pause_args *));
477 int svr4_sys_utime __P((struct svr4_sys_utime_args *));
478 int svr4_sys_access __P((struct svr4_sys_access_args *));
479 int svr4_sys_nice __P((struct svr4_sys_nice_args *));
480 int svr4_sys_kill __P((struct svr4_sys_kill_args *));
481 int svr4_sys_pgrpsys __P((struct svr4_sys_pgrpsys_args *));
482 int svr4_sys_times __P((struct svr4_sys_times_args *));
483 int svr4_sys_signal __P((struct svr4_sys_signal_args *));
485 int svr4_sys_msgsys __P((struct svr4_sys_msgsys_args *));
488 int svr4_sys_sysarch __P((struct svr4_sys_sysarch_args *));
489 int svr4_sys_ioctl __P((struct svr4_sys_ioctl_args *));
490 int svr4_sys_utssys __P((struct svr4_sys_utssys_args *));
491 int svr4_sys_execve __P((struct svr4_sys_execve_args *));
492 int svr4_sys_fcntl __P((struct svr4_sys_fcntl_args *));
493 int svr4_sys_ulimit __P((struct svr4_sys_ulimit_args *));
494 int svr4_sys_getdents __P((struct svr4_sys_getdents_args *));
495 int svr4_sys_getmsg __P((struct svr4_sys_getmsg_args *));
496 int svr4_sys_putmsg __P((struct svr4_sys_putmsg_args *));
497 int svr4_sys_poll __P((struct svr4_sys_poll_args *));
498 int svr4_sys_lstat __P((struct svr4_sys_lstat_args *));
499 int svr4_sys_sigprocmask __P((struct svr4_sys_sigprocmask_args *));
500 int svr4_sys_sigsuspend __P((struct svr4_sys_sigsuspend_args *));
501 int svr4_sys_sigaltstack __P((struct svr4_sys_sigaltstack_args *));
502 int svr4_sys_sigaction __P((struct svr4_sys_sigaction_args *));
503 int svr4_sys_sigpending __P((struct svr4_sys_sigpending_args *));
504 int svr4_sys_context __P((struct svr4_sys_context_args *));
505 int svr4_sys_statvfs __P((struct svr4_sys_statvfs_args *));
506 int svr4_sys_fstatvfs __P((struct svr4_sys_fstatvfs_args *));
507 int svr4_sys_waitsys __P((struct svr4_sys_waitsys_args *));
508 int svr4_sys_hrtsys __P((struct svr4_sys_hrtsys_args *));
509 int svr4_sys_pathconf __P((struct svr4_sys_pathconf_args *));
510 int svr4_sys_mmap __P((struct svr4_sys_mmap_args *));
511 int svr4_sys_fpathconf __P((struct svr4_sys_fpathconf_args *));
512 int svr4_sys_xstat __P((struct svr4_sys_xstat_args *));
513 int svr4_sys_lxstat __P((struct svr4_sys_lxstat_args *));
514 int svr4_sys_fxstat __P((struct svr4_sys_fxstat_args *));
515 int svr4_sys_xmknod __P((struct svr4_sys_xmknod_args *));
516 int svr4_sys_setrlimit __P((struct svr4_sys_setrlimit_args *));
517 int svr4_sys_getrlimit __P((struct svr4_sys_getrlimit_args *));
518 int svr4_sys_memcntl __P((struct svr4_sys_memcntl_args *));
519 int svr4_sys_uname __P((struct svr4_sys_uname_args *));
520 int svr4_sys_sysconfig __P((struct svr4_sys_sysconfig_args *));
521 int svr4_sys_systeminfo __P((struct svr4_sys_systeminfo_args *));
522 int svr4_sys_fchroot __P((struct svr4_sys_fchroot_args *));
523 int svr4_sys_utimes __P((struct svr4_sys_utimes_args *));
524 int svr4_sys_vhangup __P((struct svr4_sys_vhangup_args *));
525 int svr4_sys_gettimeofday __P((struct svr4_sys_gettimeofday_args *));
526 int svr4_sys_llseek __P((struct svr4_sys_llseek_args *));
527 int svr4_sys_acl __P((struct svr4_sys_acl_args *));
528 int svr4_sys_auditsys __P((struct svr4_sys_auditsys_args *));
529 int svr4_sys_facl __P((struct svr4_sys_facl_args *));
530 int svr4_sys_resolvepath __P((struct svr4_sys_resolvepath_args *));
531 int svr4_sys_getdents64 __P((struct svr4_sys_getdents64_args *));
532 int svr4_sys_mmap64 __P((struct svr4_sys_mmap64_args *));
533 int svr4_sys_stat64 __P((struct svr4_sys_stat64_args *));
534 int svr4_sys_lstat64 __P((struct svr4_sys_lstat64_args *));
535 int svr4_sys_fstat64 __P((struct svr4_sys_fstat64_args *));
536 int svr4_sys_statvfs64 __P((struct svr4_sys_statvfs64_args *));
537 int svr4_sys_fstatvfs64 __P((struct svr4_sys_fstatvfs64_args *));
538 int svr4_sys_setrlimit64 __P((struct svr4_sys_setrlimit64_args *));
539 int svr4_sys_getrlimit64 __P((struct svr4_sys_getrlimit64_args *));
540 int svr4_sys_creat64 __P((struct svr4_sys_creat64_args *));
541 int svr4_sys_open64 __P((struct svr4_sys_open64_args *));
542 int svr4_sys_socket __P((struct svr4_sys_socket_args *));
543 int svr4_sys_recv __P((struct svr4_sys_recv_args *));
544 int svr4_sys_send __P((struct svr4_sys_send_args *));
545 int svr4_sys_sendto __P((struct svr4_sys_sendto_args *));
560 #endif /* COMPAT_43 */
564 #endif /* !_SVR4_SYSPROTO_H_ */