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.3 2003/06/23 17:55:49 dillon Exp $
6 * created from TurtleBSD: src/sys/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 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
17 0 : sizeof(register_t) - sizeof(t))
19 struct svr4_sys_open_args {
20 char * path; char path_[PAD_(char *)];
21 int flags; char flags_[PAD_(int)];
22 int mode; char mode_[PAD_(int)];
24 struct svr4_sys_wait_args {
25 int * status; char status_[PAD_(int *)];
27 struct svr4_sys_creat_args {
28 char * path; char path_[PAD_(char *)];
29 int mode; char mode_[PAD_(int)];
31 struct svr4_sys_execv_args {
32 char * path; char path_[PAD_(char *)];
33 char ** argp; char argp_[PAD_(char **)];
35 struct svr4_sys_time_args {
36 time_t * t; char t_[PAD_(time_t *)];
38 struct svr4_sys_mknod_args {
39 char * path; char path_[PAD_(char *)];
40 int mode; char mode_[PAD_(int)];
41 int dev; char dev_[PAD_(int)];
43 struct svr4_sys_break_args {
44 caddr_t nsize; char nsize_[PAD_(caddr_t)];
46 struct svr4_sys_stat_args {
47 char * path; char path_[PAD_(char *)];
48 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
50 struct svr4_sys_alarm_args {
51 unsigned sec; char sec_[PAD_(unsigned)];
53 struct svr4_sys_fstat_args {
54 int fd; char fd_[PAD_(int)];
55 struct svr4_stat * sb; char sb_[PAD_(struct svr4_stat *)];
57 struct svr4_sys_pause_args {
60 struct svr4_sys_utime_args {
61 char * path; char path_[PAD_(char *)];
62 struct svr4_utimbuf * ubuf; char ubuf_[PAD_(struct svr4_utimbuf *)];
64 struct svr4_sys_access_args {
65 char * path; char path_[PAD_(char *)];
66 int flags; char flags_[PAD_(int)];
68 struct svr4_sys_nice_args {
69 int prio; char prio_[PAD_(int)];
71 struct svr4_sys_kill_args {
72 int pid; char pid_[PAD_(int)];
73 int signum; char signum_[PAD_(int)];
75 struct svr4_sys_pgrpsys_args {
76 int cmd; char cmd_[PAD_(int)];
77 int pid; char pid_[PAD_(int)];
78 int pgid; char pgid_[PAD_(int)];
80 struct svr4_sys_times_args {
81 struct tms * tp; char tp_[PAD_(struct tms *)];
83 struct svr4_sys_signal_args {
84 int signum; char signum_[PAD_(int)];
85 svr4_sig_t handler; char handler_[PAD_(svr4_sig_t)];
88 struct svr4_sys_msgsys_args {
89 int what; char what_[PAD_(int)];
90 int a2; char a2_[PAD_(int)];
91 int a3; char a3_[PAD_(int)];
92 int a4; char a4_[PAD_(int)];
93 int a5; char a5_[PAD_(int)];
97 struct svr4_sys_sysarch_args {
98 int op; char op_[PAD_(int)];
99 void * a1; char a1_[PAD_(void *)];
101 struct svr4_sys_ioctl_args {
102 int fd; char fd_[PAD_(int)];
103 u_long com; char com_[PAD_(u_long)];
104 caddr_t data; char data_[PAD_(caddr_t)];
106 struct svr4_sys_utssys_args {
107 void * a1; char a1_[PAD_(void *)];
108 void * a2; char a2_[PAD_(void *)];
109 int sel; char sel_[PAD_(int)];
110 void * a3; char a3_[PAD_(void *)];
112 struct svr4_sys_execve_args {
113 char * path; char path_[PAD_(char *)];
114 char ** argp; char argp_[PAD_(char **)];
115 char ** envp; char envp_[PAD_(char **)];
117 struct svr4_sys_fcntl_args {
118 int fd; char fd_[PAD_(int)];
119 int cmd; char cmd_[PAD_(int)];
120 char * arg; char arg_[PAD_(char *)];
122 struct svr4_sys_ulimit_args {
123 int cmd; char cmd_[PAD_(int)];
124 long newlimit; char newlimit_[PAD_(long)];
126 struct svr4_sys_getdents_args {
127 int fd; char fd_[PAD_(int)];
128 char * buf; char buf_[PAD_(char *)];
129 int nbytes; char nbytes_[PAD_(int)];
131 struct svr4_sys_getmsg_args {
132 int fd; char fd_[PAD_(int)];
133 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
134 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
135 int * flags; char flags_[PAD_(int *)];
137 struct svr4_sys_putmsg_args {
138 int fd; char fd_[PAD_(int)];
139 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
140 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
141 int flags; char flags_[PAD_(int)];
143 struct svr4_sys_poll_args {
144 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
145 unsigned int nfds; char nfds_[PAD_(unsigned int)];
146 int timeout; char timeout_[PAD_(int)];
148 struct svr4_sys_lstat_args {
149 char * path; char path_[PAD_(char *)];
150 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
152 struct svr4_sys_sigprocmask_args {
153 int how; char how_[PAD_(int)];
154 svr4_sigset_t * set; char set_[PAD_(svr4_sigset_t *)];
155 svr4_sigset_t * oset; char oset_[PAD_(svr4_sigset_t *)];
157 struct svr4_sys_sigsuspend_args {
158 svr4_sigset_t * ss; char ss_[PAD_(svr4_sigset_t *)];
160 struct svr4_sys_sigaltstack_args {
161 struct svr4_sigaltstack * nss; char nss_[PAD_(struct svr4_sigaltstack *)];
162 struct svr4_sigaltstack * oss; char oss_[PAD_(struct svr4_sigaltstack *)];
164 struct svr4_sys_sigaction_args {
165 int signum; char signum_[PAD_(int)];
166 struct svr4_sigaction * nsa; char nsa_[PAD_(struct svr4_sigaction *)];
167 struct svr4_sigaction * osa; char osa_[PAD_(struct svr4_sigaction *)];
169 struct svr4_sys_sigpending_args {
170 int what; char what_[PAD_(int)];
171 svr4_sigset_t * mask; char mask_[PAD_(svr4_sigset_t *)];
173 struct svr4_sys_context_args {
174 int func; char func_[PAD_(int)];
175 struct svr4_ucontext * uc; char uc_[PAD_(struct svr4_ucontext *)];
177 struct svr4_sys_statvfs_args {
178 char * path; char path_[PAD_(char *)];
179 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
181 struct svr4_sys_fstatvfs_args {
182 int fd; char fd_[PAD_(int)];
183 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
185 struct svr4_sys_waitsys_args {
186 int grp; char grp_[PAD_(int)];
187 int id; char id_[PAD_(int)];
188 union svr4_siginfo * info; char info_[PAD_(union svr4_siginfo *)];
189 int options; char options_[PAD_(int)];
191 struct svr4_sys_hrtsys_args {
192 int cmd; char cmd_[PAD_(int)];
193 int fun; char fun_[PAD_(int)];
194 int sub; char sub_[PAD_(int)];
195 void * rv1; char rv1_[PAD_(void *)];
196 void * rv2; char rv2_[PAD_(void *)];
198 struct svr4_sys_pathconf_args {
199 char * path; char path_[PAD_(char *)];
200 int name; char name_[PAD_(int)];
202 struct svr4_sys_mmap_args {
203 caddr_t addr; char addr_[PAD_(caddr_t)];
204 svr4_size_t len; char len_[PAD_(svr4_size_t)];
205 int prot; char prot_[PAD_(int)];
206 int flags; char flags_[PAD_(int)];
207 int fd; char fd_[PAD_(int)];
208 svr4_off_t pos; char pos_[PAD_(svr4_off_t)];
210 struct svr4_sys_fpathconf_args {
211 int fd; char fd_[PAD_(int)];
212 int name; char name_[PAD_(int)];
214 struct svr4_sys_xstat_args {
215 int two; char two_[PAD_(int)];
216 char * path; char path_[PAD_(char *)];
217 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
219 struct svr4_sys_lxstat_args {
220 int two; char two_[PAD_(int)];
221 char * path; char path_[PAD_(char *)];
222 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
224 struct svr4_sys_fxstat_args {
225 int two; char two_[PAD_(int)];
226 int fd; char fd_[PAD_(int)];
227 struct svr4_xstat * sb; char sb_[PAD_(struct svr4_xstat *)];
229 struct svr4_sys_xmknod_args {
230 int two; char two_[PAD_(int)];
231 char * path; char path_[PAD_(char *)];
232 svr4_mode_t mode; char mode_[PAD_(svr4_mode_t)];
233 svr4_dev_t dev; char dev_[PAD_(svr4_dev_t)];
235 struct svr4_sys_setrlimit_args {
236 int which; char which_[PAD_(int)];
237 const struct svr4_rlimit * rlp; char rlp_[PAD_(const struct svr4_rlimit *)];
239 struct svr4_sys_getrlimit_args {
240 int which; char which_[PAD_(int)];
241 struct svr4_rlimit * rlp; char rlp_[PAD_(struct svr4_rlimit *)];
243 struct svr4_sys_memcntl_args {
244 void * addr; char addr_[PAD_(void *)];
245 svr4_size_t len; char len_[PAD_(svr4_size_t)];
246 int cmd; char cmd_[PAD_(int)];
247 void * arg; char arg_[PAD_(void *)];
248 int attr; char attr_[PAD_(int)];
249 int mask; char mask_[PAD_(int)];
251 struct svr4_sys_uname_args {
252 struct svr4_utsname * name; char name_[PAD_(struct svr4_utsname *)];
253 int dummy; char dummy_[PAD_(int)];
255 struct svr4_sys_sysconfig_args {
256 int name; char name_[PAD_(int)];
258 struct svr4_sys_systeminfo_args {
259 int what; char what_[PAD_(int)];
260 char * buf; char buf_[PAD_(char *)];
261 long len; char len_[PAD_(long)];
263 struct svr4_sys_fchroot_args {
264 int fd; char fd_[PAD_(int)];
266 struct svr4_sys_utimes_args {
267 char * path; char path_[PAD_(char *)];
268 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
270 struct svr4_sys_vhangup_args {
273 struct svr4_sys_gettimeofday_args {
274 struct timeval * tp; char tp_[PAD_(struct timeval *)];
276 struct svr4_sys_llseek_args {
277 int fd; char fd_[PAD_(int)];
278 long offset1; char offset1_[PAD_(long)];
279 long offset2; char offset2_[PAD_(long)];
280 int whence; char whence_[PAD_(int)];
282 struct svr4_sys_acl_args {
283 char * path; char path_[PAD_(char *)];
284 int cmd; char cmd_[PAD_(int)];
285 int num; char num_[PAD_(int)];
286 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
288 struct svr4_sys_auditsys_args {
289 int code; char code_[PAD_(int)];
290 int a1; char a1_[PAD_(int)];
291 int a2; char a2_[PAD_(int)];
292 int a3; char a3_[PAD_(int)];
293 int a4; char a4_[PAD_(int)];
294 int a5; char a5_[PAD_(int)];
296 struct svr4_sys_facl_args {
297 int fd; char fd_[PAD_(int)];
298 int cmd; char cmd_[PAD_(int)];
299 int num; char num_[PAD_(int)];
300 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
302 struct svr4_sys_resolvepath_args {
303 const char * path; char path_[PAD_(const char *)];
304 char * buf; char buf_[PAD_(char *)];
305 size_t bufsiz; char bufsiz_[PAD_(size_t)];
307 struct svr4_sys_getdents64_args {
308 int fd; char fd_[PAD_(int)];
309 struct svr4_dirent64 * dp; char dp_[PAD_(struct svr4_dirent64 *)];
310 int nbytes; char nbytes_[PAD_(int)];
312 struct svr4_sys_mmap64_args {
313 void * addr; char addr_[PAD_(void *)];
314 svr4_size_t len; char len_[PAD_(svr4_size_t)];
315 int prot; char prot_[PAD_(int)];
316 int flags; char flags_[PAD_(int)];
317 int fd; char fd_[PAD_(int)];
318 svr4_off64_t pos; char pos_[PAD_(svr4_off64_t)];
320 struct svr4_sys_stat64_args {
321 char * path; char path_[PAD_(char *)];
322 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
324 struct svr4_sys_lstat64_args {
325 char * path; char path_[PAD_(char *)];
326 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
328 struct svr4_sys_fstat64_args {
329 int fd; char fd_[PAD_(int)];
330 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
332 struct svr4_sys_statvfs64_args {
333 char * path; char path_[PAD_(char *)];
334 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
336 struct svr4_sys_fstatvfs64_args {
337 int fd; char fd_[PAD_(int)];
338 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
340 struct svr4_sys_setrlimit64_args {
341 int which; char which_[PAD_(int)];
342 const struct svr4_rlimit64 * rlp; char rlp_[PAD_(const struct svr4_rlimit64 *)];
344 struct svr4_sys_getrlimit64_args {
345 int which; char which_[PAD_(int)];
346 struct svr4_rlimit64 * rlp; char rlp_[PAD_(struct svr4_rlimit64 *)];
348 struct svr4_sys_creat64_args {
349 char * path; char path_[PAD_(char *)];
350 int mode; char mode_[PAD_(int)];
352 struct svr4_sys_open64_args {
353 char * path; char path_[PAD_(char *)];
354 int flags; char flags_[PAD_(int)];
355 int mode; char mode_[PAD_(int)];
357 struct svr4_sys_socket_args {
358 int domain; char domain_[PAD_(int)];
359 int type; char type_[PAD_(int)];
360 int protocol; char protocol_[PAD_(int)];
362 struct svr4_sys_recv_args {
363 int s; char s_[PAD_(int)];
364 caddr_t buf; char buf_[PAD_(caddr_t)];
365 int len; char len_[PAD_(int)];
366 int flags; char flags_[PAD_(int)];
368 struct svr4_sys_send_args {
369 int s; char s_[PAD_(int)];
370 caddr_t buf; char buf_[PAD_(caddr_t)];
371 int len; char len_[PAD_(int)];
372 int flags; char flags_[PAD_(int)];
374 struct svr4_sys_sendto_args {
375 int s; char s_[PAD_(int)];
376 void * buf; char buf_[PAD_(void *)];
377 size_t len; char len_[PAD_(size_t)];
378 int flags; char flags_[PAD_(int)];
379 struct sockaddr * to; char to_[PAD_(struct sockaddr *)];
380 int tolen; char tolen_[PAD_(int)];
382 int svr4_sys_open __P((struct svr4_sys_open_args *));
383 int svr4_sys_wait __P((struct svr4_sys_wait_args *));
384 int svr4_sys_creat __P((struct svr4_sys_creat_args *));
385 int svr4_sys_execv __P((struct svr4_sys_execv_args *));
386 int svr4_sys_time __P((struct svr4_sys_time_args *));
387 int svr4_sys_mknod __P((struct svr4_sys_mknod_args *));
388 int svr4_sys_break __P((struct svr4_sys_break_args *));
389 int svr4_sys_stat __P((struct svr4_sys_stat_args *));
390 int svr4_sys_alarm __P((struct svr4_sys_alarm_args *));
391 int svr4_sys_fstat __P((struct svr4_sys_fstat_args *));
392 int svr4_sys_pause __P((struct svr4_sys_pause_args *));
393 int svr4_sys_utime __P((struct svr4_sys_utime_args *));
394 int svr4_sys_access __P((struct svr4_sys_access_args *));
395 int svr4_sys_nice __P((struct svr4_sys_nice_args *));
396 int svr4_sys_kill __P((struct svr4_sys_kill_args *));
397 int svr4_sys_pgrpsys __P((struct svr4_sys_pgrpsys_args *));
398 int svr4_sys_times __P((struct svr4_sys_times_args *));
399 int svr4_sys_signal __P((struct svr4_sys_signal_args *));
401 int svr4_sys_msgsys __P((struct svr4_sys_msgsys_args *));
404 int svr4_sys_sysarch __P((struct svr4_sys_sysarch_args *));
405 int svr4_sys_ioctl __P((struct svr4_sys_ioctl_args *));
406 int svr4_sys_utssys __P((struct svr4_sys_utssys_args *));
407 int svr4_sys_execve __P((struct svr4_sys_execve_args *));
408 int svr4_sys_fcntl __P((struct svr4_sys_fcntl_args *));
409 int svr4_sys_ulimit __P((struct svr4_sys_ulimit_args *));
410 int svr4_sys_getdents __P((struct svr4_sys_getdents_args *));
411 int svr4_sys_getmsg __P((struct svr4_sys_getmsg_args *));
412 int svr4_sys_putmsg __P((struct svr4_sys_putmsg_args *));
413 int svr4_sys_poll __P((struct svr4_sys_poll_args *));
414 int svr4_sys_lstat __P((struct svr4_sys_lstat_args *));
415 int svr4_sys_sigprocmask __P((struct svr4_sys_sigprocmask_args *));
416 int svr4_sys_sigsuspend __P((struct svr4_sys_sigsuspend_args *));
417 int svr4_sys_sigaltstack __P((struct svr4_sys_sigaltstack_args *));
418 int svr4_sys_sigaction __P((struct svr4_sys_sigaction_args *));
419 int svr4_sys_sigpending __P((struct svr4_sys_sigpending_args *));
420 int svr4_sys_context __P((struct svr4_sys_context_args *));
421 int svr4_sys_statvfs __P((struct svr4_sys_statvfs_args *));
422 int svr4_sys_fstatvfs __P((struct svr4_sys_fstatvfs_args *));
423 int svr4_sys_waitsys __P((struct svr4_sys_waitsys_args *));
424 int svr4_sys_hrtsys __P((struct svr4_sys_hrtsys_args *));
425 int svr4_sys_pathconf __P((struct svr4_sys_pathconf_args *));
426 int svr4_sys_mmap __P((struct svr4_sys_mmap_args *));
427 int svr4_sys_fpathconf __P((struct svr4_sys_fpathconf_args *));
428 int svr4_sys_xstat __P((struct svr4_sys_xstat_args *));
429 int svr4_sys_lxstat __P((struct svr4_sys_lxstat_args *));
430 int svr4_sys_fxstat __P((struct svr4_sys_fxstat_args *));
431 int svr4_sys_xmknod __P((struct svr4_sys_xmknod_args *));
432 int svr4_sys_setrlimit __P((struct svr4_sys_setrlimit_args *));
433 int svr4_sys_getrlimit __P((struct svr4_sys_getrlimit_args *));
434 int svr4_sys_memcntl __P((struct svr4_sys_memcntl_args *));
435 int svr4_sys_uname __P((struct svr4_sys_uname_args *));
436 int svr4_sys_sysconfig __P((struct svr4_sys_sysconfig_args *));
437 int svr4_sys_systeminfo __P((struct svr4_sys_systeminfo_args *));
438 int svr4_sys_fchroot __P((struct svr4_sys_fchroot_args *));
439 int svr4_sys_utimes __P((struct svr4_sys_utimes_args *));
440 int svr4_sys_vhangup __P((struct svr4_sys_vhangup_args *));
441 int svr4_sys_gettimeofday __P((struct svr4_sys_gettimeofday_args *));
442 int svr4_sys_llseek __P((struct svr4_sys_llseek_args *));
443 int svr4_sys_acl __P((struct svr4_sys_acl_args *));
444 int svr4_sys_auditsys __P((struct svr4_sys_auditsys_args *));
445 int svr4_sys_facl __P((struct svr4_sys_facl_args *));
446 int svr4_sys_resolvepath __P((struct svr4_sys_resolvepath_args *));
447 int svr4_sys_getdents64 __P((struct svr4_sys_getdents64_args *));
448 int svr4_sys_mmap64 __P((struct svr4_sys_mmap64_args *));
449 int svr4_sys_stat64 __P((struct svr4_sys_stat64_args *));
450 int svr4_sys_lstat64 __P((struct svr4_sys_lstat64_args *));
451 int svr4_sys_fstat64 __P((struct svr4_sys_fstat64_args *));
452 int svr4_sys_statvfs64 __P((struct svr4_sys_statvfs64_args *));
453 int svr4_sys_fstatvfs64 __P((struct svr4_sys_fstatvfs64_args *));
454 int svr4_sys_setrlimit64 __P((struct svr4_sys_setrlimit64_args *));
455 int svr4_sys_getrlimit64 __P((struct svr4_sys_getrlimit64_args *));
456 int svr4_sys_creat64 __P((struct svr4_sys_creat64_args *));
457 int svr4_sys_open64 __P((struct svr4_sys_open64_args *));
458 int svr4_sys_socket __P((struct svr4_sys_socket_args *));
459 int svr4_sys_recv __P((struct svr4_sys_recv_args *));
460 int svr4_sys_send __P((struct svr4_sys_send_args *));
461 int svr4_sys_sendto __P((struct svr4_sys_sendto_args *));
469 #endif /* COMPAT_43 */
473 #endif /* !_SVR4_SYSPROTO_H_ */