2 * System call prototypes.
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD: src/sys/svr4/svr4_proto.h,v 1.6.2.4 2001/10/05 07:38:44 peter Exp $
6 * $DragonFly: src/sys/emulation/svr4/Attic/svr4_proto.h,v 1.2 2003/06/17 04:28:57 dillon Exp $
7 * created from FreeBSD: src/sys/svr4/syscalls.master,v 1.6.2.2 2001/10/05 07:34:37 peter Exp
10 #ifndef _SVR4_SYSPROTO_H_
11 #define _SVR4_SYSPROTO_H_
13 #include <sys/signal.h>
19 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
20 0 : sizeof(register_t) - sizeof(t))
22 struct svr4_sys_open_args {
23 char * path; char path_[PAD_(char *)];
24 int flags; char flags_[PAD_(int)];
25 int mode; char mode_[PAD_(int)];
27 struct svr4_sys_wait_args {
28 int * status; char status_[PAD_(int *)];
30 struct svr4_sys_creat_args {
31 char * path; char path_[PAD_(char *)];
32 int mode; char mode_[PAD_(int)];
34 struct svr4_sys_execv_args {
35 char * path; char path_[PAD_(char *)];
36 char ** argp; char argp_[PAD_(char **)];
38 struct svr4_sys_time_args {
39 time_t * t; char t_[PAD_(time_t *)];
41 struct svr4_sys_mknod_args {
42 char * path; char path_[PAD_(char *)];
43 int mode; char mode_[PAD_(int)];
44 int dev; char dev_[PAD_(int)];
46 struct svr4_sys_break_args {
47 caddr_t nsize; char nsize_[PAD_(caddr_t)];
49 struct svr4_sys_stat_args {
50 char * path; char path_[PAD_(char *)];
51 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
53 struct svr4_sys_alarm_args {
54 unsigned sec; char sec_[PAD_(unsigned)];
56 struct svr4_sys_fstat_args {
57 int fd; char fd_[PAD_(int)];
58 struct svr4_stat * sb; char sb_[PAD_(struct svr4_stat *)];
60 struct svr4_sys_pause_args {
63 struct svr4_sys_utime_args {
64 char * path; char path_[PAD_(char *)];
65 struct svr4_utimbuf * ubuf; char ubuf_[PAD_(struct svr4_utimbuf *)];
67 struct svr4_sys_access_args {
68 char * path; char path_[PAD_(char *)];
69 int flags; char flags_[PAD_(int)];
71 struct svr4_sys_nice_args {
72 int prio; char prio_[PAD_(int)];
74 struct svr4_sys_kill_args {
75 int pid; char pid_[PAD_(int)];
76 int signum; char signum_[PAD_(int)];
78 struct svr4_sys_pgrpsys_args {
79 int cmd; char cmd_[PAD_(int)];
80 int pid; char pid_[PAD_(int)];
81 int pgid; char pgid_[PAD_(int)];
83 struct svr4_sys_times_args {
84 struct tms * tp; char tp_[PAD_(struct tms *)];
86 struct svr4_sys_signal_args {
87 int signum; char signum_[PAD_(int)];
88 svr4_sig_t handler; char handler_[PAD_(svr4_sig_t)];
91 struct svr4_sys_msgsys_args {
92 int what; char what_[PAD_(int)];
93 int a2; char a2_[PAD_(int)];
94 int a3; char a3_[PAD_(int)];
95 int a4; char a4_[PAD_(int)];
96 int a5; char a5_[PAD_(int)];
100 struct svr4_sys_sysarch_args {
101 int op; char op_[PAD_(int)];
102 void * a1; char a1_[PAD_(void *)];
104 struct svr4_sys_ioctl_args {
105 int fd; char fd_[PAD_(int)];
106 u_long com; char com_[PAD_(u_long)];
107 caddr_t data; char data_[PAD_(caddr_t)];
109 struct svr4_sys_utssys_args {
110 void * a1; char a1_[PAD_(void *)];
111 void * a2; char a2_[PAD_(void *)];
112 int sel; char sel_[PAD_(int)];
113 void * a3; char a3_[PAD_(void *)];
115 struct svr4_sys_execve_args {
116 char * path; char path_[PAD_(char *)];
117 char ** argp; char argp_[PAD_(char **)];
118 char ** envp; char envp_[PAD_(char **)];
120 struct svr4_sys_fcntl_args {
121 int fd; char fd_[PAD_(int)];
122 int cmd; char cmd_[PAD_(int)];
123 char * arg; char arg_[PAD_(char *)];
125 struct svr4_sys_ulimit_args {
126 int cmd; char cmd_[PAD_(int)];
127 long newlimit; char newlimit_[PAD_(long)];
129 struct svr4_sys_getdents_args {
130 int fd; char fd_[PAD_(int)];
131 char * buf; char buf_[PAD_(char *)];
132 int nbytes; char nbytes_[PAD_(int)];
134 struct svr4_sys_getmsg_args {
135 int fd; char fd_[PAD_(int)];
136 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
137 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
138 int * flags; char flags_[PAD_(int *)];
140 struct svr4_sys_putmsg_args {
141 int fd; char fd_[PAD_(int)];
142 struct svr4_strbuf * ctl; char ctl_[PAD_(struct svr4_strbuf *)];
143 struct svr4_strbuf * dat; char dat_[PAD_(struct svr4_strbuf *)];
144 int flags; char flags_[PAD_(int)];
146 struct svr4_sys_poll_args {
147 struct pollfd * fds; char fds_[PAD_(struct pollfd *)];
148 unsigned int nfds; char nfds_[PAD_(unsigned int)];
149 int timeout; char timeout_[PAD_(int)];
151 struct svr4_sys_lstat_args {
152 char * path; char path_[PAD_(char *)];
153 struct svr4_stat * ub; char ub_[PAD_(struct svr4_stat *)];
155 struct svr4_sys_sigprocmask_args {
156 int how; char how_[PAD_(int)];
157 svr4_sigset_t * set; char set_[PAD_(svr4_sigset_t *)];
158 svr4_sigset_t * oset; char oset_[PAD_(svr4_sigset_t *)];
160 struct svr4_sys_sigsuspend_args {
161 svr4_sigset_t * ss; char ss_[PAD_(svr4_sigset_t *)];
163 struct svr4_sys_sigaltstack_args {
164 struct svr4_sigaltstack * nss; char nss_[PAD_(struct svr4_sigaltstack *)];
165 struct svr4_sigaltstack * oss; char oss_[PAD_(struct svr4_sigaltstack *)];
167 struct svr4_sys_sigaction_args {
168 int signum; char signum_[PAD_(int)];
169 struct svr4_sigaction * nsa; char nsa_[PAD_(struct svr4_sigaction *)];
170 struct svr4_sigaction * osa; char osa_[PAD_(struct svr4_sigaction *)];
172 struct svr4_sys_sigpending_args {
173 int what; char what_[PAD_(int)];
174 svr4_sigset_t * mask; char mask_[PAD_(svr4_sigset_t *)];
176 struct svr4_sys_context_args {
177 int func; char func_[PAD_(int)];
178 struct svr4_ucontext * uc; char uc_[PAD_(struct svr4_ucontext *)];
180 struct svr4_sys_statvfs_args {
181 char * path; char path_[PAD_(char *)];
182 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
184 struct svr4_sys_fstatvfs_args {
185 int fd; char fd_[PAD_(int)];
186 struct svr4_statvfs * fs; char fs_[PAD_(struct svr4_statvfs *)];
188 struct svr4_sys_waitsys_args {
189 int grp; char grp_[PAD_(int)];
190 int id; char id_[PAD_(int)];
191 union svr4_siginfo * info; char info_[PAD_(union svr4_siginfo *)];
192 int options; char options_[PAD_(int)];
194 struct svr4_sys_hrtsys_args {
195 int cmd; char cmd_[PAD_(int)];
196 int fun; char fun_[PAD_(int)];
197 int sub; char sub_[PAD_(int)];
198 void * rv1; char rv1_[PAD_(void *)];
199 void * rv2; char rv2_[PAD_(void *)];
201 struct svr4_sys_pathconf_args {
202 char * path; char path_[PAD_(char *)];
203 int name; char name_[PAD_(int)];
205 struct svr4_sys_mmap_args {
206 caddr_t addr; char addr_[PAD_(caddr_t)];
207 svr4_size_t len; char len_[PAD_(svr4_size_t)];
208 int prot; char prot_[PAD_(int)];
209 int flags; char flags_[PAD_(int)];
210 int fd; char fd_[PAD_(int)];
211 svr4_off_t pos; char pos_[PAD_(svr4_off_t)];
213 struct svr4_sys_fpathconf_args {
214 int fd; char fd_[PAD_(int)];
215 int name; char name_[PAD_(int)];
217 struct svr4_sys_xstat_args {
218 int two; char two_[PAD_(int)];
219 char * path; char path_[PAD_(char *)];
220 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
222 struct svr4_sys_lxstat_args {
223 int two; char two_[PAD_(int)];
224 char * path; char path_[PAD_(char *)];
225 struct svr4_xstat * ub; char ub_[PAD_(struct svr4_xstat *)];
227 struct svr4_sys_fxstat_args {
228 int two; char two_[PAD_(int)];
229 int fd; char fd_[PAD_(int)];
230 struct svr4_xstat * sb; char sb_[PAD_(struct svr4_xstat *)];
232 struct svr4_sys_xmknod_args {
233 int two; char two_[PAD_(int)];
234 char * path; char path_[PAD_(char *)];
235 svr4_mode_t mode; char mode_[PAD_(svr4_mode_t)];
236 svr4_dev_t dev; char dev_[PAD_(svr4_dev_t)];
238 struct svr4_sys_setrlimit_args {
239 int which; char which_[PAD_(int)];
240 const struct svr4_rlimit * rlp; char rlp_[PAD_(const struct svr4_rlimit *)];
242 struct svr4_sys_getrlimit_args {
243 int which; char which_[PAD_(int)];
244 struct svr4_rlimit * rlp; char rlp_[PAD_(struct svr4_rlimit *)];
246 struct svr4_sys_memcntl_args {
247 void * addr; char addr_[PAD_(void *)];
248 svr4_size_t len; char len_[PAD_(svr4_size_t)];
249 int cmd; char cmd_[PAD_(int)];
250 void * arg; char arg_[PAD_(void *)];
251 int attr; char attr_[PAD_(int)];
252 int mask; char mask_[PAD_(int)];
254 struct svr4_sys_uname_args {
255 struct svr4_utsname * name; char name_[PAD_(struct svr4_utsname *)];
256 int dummy; char dummy_[PAD_(int)];
258 struct svr4_sys_sysconfig_args {
259 int name; char name_[PAD_(int)];
261 struct svr4_sys_systeminfo_args {
262 int what; char what_[PAD_(int)];
263 char * buf; char buf_[PAD_(char *)];
264 long len; char len_[PAD_(long)];
266 struct svr4_sys_fchroot_args {
267 int fd; char fd_[PAD_(int)];
269 struct svr4_sys_utimes_args {
270 char * path; char path_[PAD_(char *)];
271 struct timeval * tptr; char tptr_[PAD_(struct timeval *)];
273 struct svr4_sys_vhangup_args {
276 struct svr4_sys_gettimeofday_args {
277 struct timeval * tp; char tp_[PAD_(struct timeval *)];
279 struct svr4_sys_llseek_args {
280 int fd; char fd_[PAD_(int)];
281 long offset1; char offset1_[PAD_(long)];
282 long offset2; char offset2_[PAD_(long)];
283 int whence; char whence_[PAD_(int)];
285 struct svr4_sys_acl_args {
286 char * path; char path_[PAD_(char *)];
287 int cmd; char cmd_[PAD_(int)];
288 int num; char num_[PAD_(int)];
289 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
291 struct svr4_sys_auditsys_args {
292 int code; char code_[PAD_(int)];
293 int a1; char a1_[PAD_(int)];
294 int a2; char a2_[PAD_(int)];
295 int a3; char a3_[PAD_(int)];
296 int a4; char a4_[PAD_(int)];
297 int a5; char a5_[PAD_(int)];
299 struct svr4_sys_facl_args {
300 int fd; char fd_[PAD_(int)];
301 int cmd; char cmd_[PAD_(int)];
302 int num; char num_[PAD_(int)];
303 struct svr4_aclent * buf; char buf_[PAD_(struct svr4_aclent *)];
305 struct svr4_sys_resolvepath_args {
306 const char * path; char path_[PAD_(const char *)];
307 char * buf; char buf_[PAD_(char *)];
308 size_t bufsiz; char bufsiz_[PAD_(size_t)];
310 struct svr4_sys_getdents64_args {
311 int fd; char fd_[PAD_(int)];
312 struct svr4_dirent64 * dp; char dp_[PAD_(struct svr4_dirent64 *)];
313 int nbytes; char nbytes_[PAD_(int)];
315 struct svr4_sys_mmap64_args {
316 void * addr; char addr_[PAD_(void *)];
317 svr4_size_t len; char len_[PAD_(svr4_size_t)];
318 int prot; char prot_[PAD_(int)];
319 int flags; char flags_[PAD_(int)];
320 int fd; char fd_[PAD_(int)];
321 svr4_off64_t pos; char pos_[PAD_(svr4_off64_t)];
323 struct svr4_sys_stat64_args {
324 char * path; char path_[PAD_(char *)];
325 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
327 struct svr4_sys_lstat64_args {
328 char * path; char path_[PAD_(char *)];
329 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
331 struct svr4_sys_fstat64_args {
332 int fd; char fd_[PAD_(int)];
333 struct svr4_stat64 * sb; char sb_[PAD_(struct svr4_stat64 *)];
335 struct svr4_sys_statvfs64_args {
336 char * path; char path_[PAD_(char *)];
337 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
339 struct svr4_sys_fstatvfs64_args {
340 int fd; char fd_[PAD_(int)];
341 struct svr4_statvfs64 * fs; char fs_[PAD_(struct svr4_statvfs64 *)];
343 struct svr4_sys_setrlimit64_args {
344 int which; char which_[PAD_(int)];
345 const struct svr4_rlimit64 * rlp; char rlp_[PAD_(const struct svr4_rlimit64 *)];
347 struct svr4_sys_getrlimit64_args {
348 int which; char which_[PAD_(int)];
349 struct svr4_rlimit64 * rlp; char rlp_[PAD_(struct svr4_rlimit64 *)];
351 struct svr4_sys_creat64_args {
352 char * path; char path_[PAD_(char *)];
353 int mode; char mode_[PAD_(int)];
355 struct svr4_sys_open64_args {
356 char * path; char path_[PAD_(char *)];
357 int flags; char flags_[PAD_(int)];
358 int mode; char mode_[PAD_(int)];
360 struct svr4_sys_socket_args {
361 int domain; char domain_[PAD_(int)];
362 int type; char type_[PAD_(int)];
363 int protocol; char protocol_[PAD_(int)];
365 struct svr4_sys_recv_args {
366 int s; char s_[PAD_(int)];
367 caddr_t buf; char buf_[PAD_(caddr_t)];
368 int len; char len_[PAD_(int)];
369 int flags; char flags_[PAD_(int)];
371 struct svr4_sys_send_args {
372 int s; char s_[PAD_(int)];
373 caddr_t buf; char buf_[PAD_(caddr_t)];
374 int len; char len_[PAD_(int)];
375 int flags; char flags_[PAD_(int)];
377 struct svr4_sys_sendto_args {
378 int s; char s_[PAD_(int)];
379 void * buf; char buf_[PAD_(void *)];
380 size_t len; char len_[PAD_(size_t)];
381 int flags; char flags_[PAD_(int)];
382 struct sockaddr * to; char to_[PAD_(struct sockaddr *)];
383 int tolen; char tolen_[PAD_(int)];
385 int svr4_sys_open __P((struct proc *, struct svr4_sys_open_args *));
386 int svr4_sys_wait __P((struct proc *, struct svr4_sys_wait_args *));
387 int svr4_sys_creat __P((struct proc *, struct svr4_sys_creat_args *));
388 int svr4_sys_execv __P((struct proc *, struct svr4_sys_execv_args *));
389 int svr4_sys_time __P((struct proc *, struct svr4_sys_time_args *));
390 int svr4_sys_mknod __P((struct proc *, struct svr4_sys_mknod_args *));
391 int svr4_sys_break __P((struct proc *, struct svr4_sys_break_args *));
392 int svr4_sys_stat __P((struct proc *, struct svr4_sys_stat_args *));
393 int svr4_sys_alarm __P((struct proc *, struct svr4_sys_alarm_args *));
394 int svr4_sys_fstat __P((struct proc *, struct svr4_sys_fstat_args *));
395 int svr4_sys_pause __P((struct proc *, struct svr4_sys_pause_args *));
396 int svr4_sys_utime __P((struct proc *, struct svr4_sys_utime_args *));
397 int svr4_sys_access __P((struct proc *, struct svr4_sys_access_args *));
398 int svr4_sys_nice __P((struct proc *, struct svr4_sys_nice_args *));
399 int svr4_sys_kill __P((struct proc *, struct svr4_sys_kill_args *));
400 int svr4_sys_pgrpsys __P((struct proc *, struct svr4_sys_pgrpsys_args *));
401 int svr4_sys_times __P((struct proc *, struct svr4_sys_times_args *));
402 int svr4_sys_signal __P((struct proc *, struct svr4_sys_signal_args *));
404 int svr4_sys_msgsys __P((struct proc *, struct svr4_sys_msgsys_args *));
407 int svr4_sys_sysarch __P((struct proc *, struct svr4_sys_sysarch_args *));
408 int svr4_sys_ioctl __P((struct proc *, struct svr4_sys_ioctl_args *));
409 int svr4_sys_utssys __P((struct proc *, struct svr4_sys_utssys_args *));
410 int svr4_sys_execve __P((struct proc *, struct svr4_sys_execve_args *));
411 int svr4_sys_fcntl __P((struct proc *, struct svr4_sys_fcntl_args *));
412 int svr4_sys_ulimit __P((struct proc *, struct svr4_sys_ulimit_args *));
413 int svr4_sys_getdents __P((struct proc *, struct svr4_sys_getdents_args *));
414 int svr4_sys_getmsg __P((struct proc *, struct svr4_sys_getmsg_args *));
415 int svr4_sys_putmsg __P((struct proc *, struct svr4_sys_putmsg_args *));
416 int svr4_sys_poll __P((struct proc *, struct svr4_sys_poll_args *));
417 int svr4_sys_lstat __P((struct proc *, struct svr4_sys_lstat_args *));
418 int svr4_sys_sigprocmask __P((struct proc *, struct svr4_sys_sigprocmask_args *));
419 int svr4_sys_sigsuspend __P((struct proc *, struct svr4_sys_sigsuspend_args *));
420 int svr4_sys_sigaltstack __P((struct proc *, struct svr4_sys_sigaltstack_args *));
421 int svr4_sys_sigaction __P((struct proc *, struct svr4_sys_sigaction_args *));
422 int svr4_sys_sigpending __P((struct proc *, struct svr4_sys_sigpending_args *));
423 int svr4_sys_context __P((struct proc *, struct svr4_sys_context_args *));
424 int svr4_sys_statvfs __P((struct proc *, struct svr4_sys_statvfs_args *));
425 int svr4_sys_fstatvfs __P((struct proc *, struct svr4_sys_fstatvfs_args *));
426 int svr4_sys_waitsys __P((struct proc *, struct svr4_sys_waitsys_args *));
427 int svr4_sys_hrtsys __P((struct proc *, struct svr4_sys_hrtsys_args *));
428 int svr4_sys_pathconf __P((struct proc *, struct svr4_sys_pathconf_args *));
429 int svr4_sys_mmap __P((struct proc *, struct svr4_sys_mmap_args *));
430 int svr4_sys_fpathconf __P((struct proc *, struct svr4_sys_fpathconf_args *));
431 int svr4_sys_xstat __P((struct proc *, struct svr4_sys_xstat_args *));
432 int svr4_sys_lxstat __P((struct proc *, struct svr4_sys_lxstat_args *));
433 int svr4_sys_fxstat __P((struct proc *, struct svr4_sys_fxstat_args *));
434 int svr4_sys_xmknod __P((struct proc *, struct svr4_sys_xmknod_args *));
435 int svr4_sys_setrlimit __P((struct proc *, struct svr4_sys_setrlimit_args *));
436 int svr4_sys_getrlimit __P((struct proc *, struct svr4_sys_getrlimit_args *));
437 int svr4_sys_memcntl __P((struct proc *, struct svr4_sys_memcntl_args *));
438 int svr4_sys_uname __P((struct proc *, struct svr4_sys_uname_args *));
439 int svr4_sys_sysconfig __P((struct proc *, struct svr4_sys_sysconfig_args *));
440 int svr4_sys_systeminfo __P((struct proc *, struct svr4_sys_systeminfo_args *));
441 int svr4_sys_fchroot __P((struct proc *, struct svr4_sys_fchroot_args *));
442 int svr4_sys_utimes __P((struct proc *, struct svr4_sys_utimes_args *));
443 int svr4_sys_vhangup __P((struct proc *, struct svr4_sys_vhangup_args *));
444 int svr4_sys_gettimeofday __P((struct proc *, struct svr4_sys_gettimeofday_args *));
445 int svr4_sys_llseek __P((struct proc *, struct svr4_sys_llseek_args *));
446 int svr4_sys_acl __P((struct proc *, struct svr4_sys_acl_args *));
447 int svr4_sys_auditsys __P((struct proc *, struct svr4_sys_auditsys_args *));
448 int svr4_sys_facl __P((struct proc *, struct svr4_sys_facl_args *));
449 int svr4_sys_resolvepath __P((struct proc *, struct svr4_sys_resolvepath_args *));
450 int svr4_sys_getdents64 __P((struct proc *, struct svr4_sys_getdents64_args *));
451 int svr4_sys_mmap64 __P((struct proc *, struct svr4_sys_mmap64_args *));
452 int svr4_sys_stat64 __P((struct proc *, struct svr4_sys_stat64_args *));
453 int svr4_sys_lstat64 __P((struct proc *, struct svr4_sys_lstat64_args *));
454 int svr4_sys_fstat64 __P((struct proc *, struct svr4_sys_fstat64_args *));
455 int svr4_sys_statvfs64 __P((struct proc *, struct svr4_sys_statvfs64_args *));
456 int svr4_sys_fstatvfs64 __P((struct proc *, struct svr4_sys_fstatvfs64_args *));
457 int svr4_sys_setrlimit64 __P((struct proc *, struct svr4_sys_setrlimit64_args *));
458 int svr4_sys_getrlimit64 __P((struct proc *, struct svr4_sys_getrlimit64_args *));
459 int svr4_sys_creat64 __P((struct proc *, struct svr4_sys_creat64_args *));
460 int svr4_sys_open64 __P((struct proc *, struct svr4_sys_open64_args *));
461 int svr4_sys_socket __P((struct proc *, struct svr4_sys_socket_args *));
462 int svr4_sys_recv __P((struct proc *, struct svr4_sys_recv_args *));
463 int svr4_sys_send __P((struct proc *, struct svr4_sys_send_args *));
464 int svr4_sys_sendto __P((struct proc *, struct svr4_sys_sendto_args *));
472 #endif /* COMPAT_43 */
476 #endif /* !_SVR4_SYSPROTO_H_ */