Deleted Added
full compact
svr4_proto.h (147975) svr4_proto.h (159961)
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
1/*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD: head/sys/compat/svr4/svr4_proto.h 147975 2005-07-13 20:35:09Z jhb $
6 * created from FreeBSD: src/sys/compat/svr4/syscalls.master,v 1.19 2005/07/13 20:32:42 jhb Exp
5 * $FreeBSD: head/sys/compat/svr4/svr4_proto.h 159961 2006-06-26 18:37:36Z jhb $
6 * created from FreeBSD: src/sys/compat/svr4/syscalls.master,v 1.20 2006/06/26 18:36:57 jhb Exp
7 */
8
9#ifndef _SVR4_SYSPROTO_H_
10#define _SVR4_SYSPROTO_H_
11
12#include <sys/signal.h>
13#include <sys/acl.h>
14#include <sys/thr.h>
15#include <sys/umtx.h>
16#include <posix4/_semaphore.h>
17
18#include <sys/ucontext.h>
19
20struct proc;
21
22struct thread;
23
24#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
25 0 : sizeof(register_t) - sizeof(t))
26
27#if BYTE_ORDER == LITTLE_ENDIAN
28#define PADL_(t) 0
29#define PADR_(t) PAD_(t)
30#else
31#define PADL_(t) PAD_(t)
32#define PADR_(t) 0
33#endif
34
35struct svr4_sys_open_args {
36 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
37 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
38 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
39};
40struct svr4_sys_wait_args {
41 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
42};
43struct svr4_sys_creat_args {
44 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
45 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
46};
47struct svr4_sys_execv_args {
48 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
49 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
50};
51struct svr4_sys_time_args {
52 char t_l_[PADL_(time_t *)]; time_t * t; char t_r_[PADR_(time_t *)];
53};
54struct svr4_sys_mknod_args {
55 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
56 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
57 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
58};
59struct svr4_sys_break_args {
60 char nsize_l_[PADL_(caddr_t)]; caddr_t nsize; char nsize_r_[PADR_(caddr_t)];
61};
62struct svr4_sys_stat_args {
63 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
64 char ub_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * ub; char ub_r_[PADR_(struct svr4_stat *)];
65};
66struct svr4_sys_alarm_args {
67 char sec_l_[PADL_(unsigned)]; unsigned sec; char sec_r_[PADR_(unsigned)];
68};
69struct svr4_sys_fstat_args {
70 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
71 char sb_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * sb; char sb_r_[PADR_(struct svr4_stat *)];
72};
73struct svr4_sys_pause_args {
74 register_t dummy;
75};
76struct svr4_sys_utime_args {
77 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
78 char ubuf_l_[PADL_(struct svr4_utimbuf *)]; struct svr4_utimbuf * ubuf; char ubuf_r_[PADR_(struct svr4_utimbuf *)];
79};
80struct svr4_sys_access_args {
81 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
82 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
83};
84struct svr4_sys_nice_args {
85 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
86};
87struct svr4_sys_kill_args {
88 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
89 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
90};
91struct svr4_sys_pgrpsys_args {
92 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
93 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
94 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
95};
96struct svr4_sys_times_args {
97 char tp_l_[PADL_(struct tms *)]; struct tms * tp; char tp_r_[PADR_(struct tms *)];
98};
99struct svr4_sys_signal_args {
100 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
101 char handler_l_[PADL_(svr4_sig_t)]; svr4_sig_t handler; char handler_r_[PADR_(svr4_sig_t)];
102};
103struct svr4_sys_msgsys_args {
104 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
105 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
106 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
107 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
108 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
109};
110struct svr4_sys_sysarch_args {
111 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
112 char a1_l_[PADL_(void *)]; void * a1; char a1_r_[PADR_(void *)];
113};
114struct svr4_sys_shmsys_args {
115 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
116 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
117 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
118 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
119 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
120};
121struct svr4_sys_semsys_args {
122 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
123 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
124 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
125 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
126 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
127};
128struct svr4_sys_ioctl_args {
129 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
130 char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
131 char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)];
132};
133struct svr4_sys_utssys_args {
134 char a1_l_[PADL_(void *)]; void * a1; char a1_r_[PADR_(void *)];
135 char a2_l_[PADL_(void *)]; void * a2; char a2_r_[PADR_(void *)];
136 char sel_l_[PADL_(int)]; int sel; char sel_r_[PADR_(int)];
137 char a3_l_[PADL_(void *)]; void * a3; char a3_r_[PADR_(void *)];
138};
139struct svr4_sys_execve_args {
140 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
141 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
142 char envp_l_[PADL_(char **)]; char ** envp; char envp_r_[PADR_(char **)];
143};
144struct svr4_sys_fcntl_args {
145 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
146 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
147 char arg_l_[PADL_(char *)]; char * arg; char arg_r_[PADR_(char *)];
148};
149struct svr4_sys_ulimit_args {
150 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
151 char newlimit_l_[PADL_(long)]; long newlimit; char newlimit_r_[PADR_(long)];
152};
153struct svr4_sys_getdents_args {
154 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
155 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
156 char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)];
157};
158struct svr4_sys_getmsg_args {
159 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
160 char ctl_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * ctl; char ctl_r_[PADR_(struct svr4_strbuf *)];
161 char dat_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * dat; char dat_r_[PADR_(struct svr4_strbuf *)];
162 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
163};
164struct svr4_sys_putmsg_args {
165 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
166 char ctl_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * ctl; char ctl_r_[PADR_(struct svr4_strbuf *)];
167 char dat_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * dat; char dat_r_[PADR_(struct svr4_strbuf *)];
168 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
169};
170struct svr4_sys_poll_args {
171 char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
172 char nfds_l_[PADL_(unsigned int)]; unsigned int nfds; char nfds_r_[PADR_(unsigned int)];
173 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
174};
175struct svr4_sys_lstat_args {
176 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
177 char ub_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * ub; char ub_r_[PADR_(struct svr4_stat *)];
178};
179struct svr4_sys_sigprocmask_args {
180 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
181 char set_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * set; char set_r_[PADR_(svr4_sigset_t *)];
182 char oset_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * oset; char oset_r_[PADR_(svr4_sigset_t *)];
183};
184struct svr4_sys_sigsuspend_args {
185 char ss_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * ss; char ss_r_[PADR_(svr4_sigset_t *)];
186};
187struct svr4_sys_sigaltstack_args {
188 char nss_l_[PADL_(struct svr4_sigaltstack *)]; struct svr4_sigaltstack * nss; char nss_r_[PADR_(struct svr4_sigaltstack *)];
189 char oss_l_[PADL_(struct svr4_sigaltstack *)]; struct svr4_sigaltstack * oss; char oss_r_[PADR_(struct svr4_sigaltstack *)];
190};
191struct svr4_sys_sigaction_args {
192 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
193 char nsa_l_[PADL_(struct svr4_sigaction *)]; struct svr4_sigaction * nsa; char nsa_r_[PADR_(struct svr4_sigaction *)];
194 char osa_l_[PADL_(struct svr4_sigaction *)]; struct svr4_sigaction * osa; char osa_r_[PADR_(struct svr4_sigaction *)];
195};
196struct svr4_sys_sigpending_args {
197 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
198 char mask_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * mask; char mask_r_[PADR_(svr4_sigset_t *)];
199};
200struct svr4_sys_context_args {
201 char func_l_[PADL_(int)]; int func; char func_r_[PADR_(int)];
202 char uc_l_[PADL_(struct svr4_ucontext *)]; struct svr4_ucontext * uc; char uc_r_[PADR_(struct svr4_ucontext *)];
203};
204struct svr4_sys_statvfs_args {
205 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
206 char fs_l_[PADL_(struct svr4_statvfs *)]; struct svr4_statvfs * fs; char fs_r_[PADR_(struct svr4_statvfs *)];
207};
208struct svr4_sys_fstatvfs_args {
209 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
210 char fs_l_[PADL_(struct svr4_statvfs *)]; struct svr4_statvfs * fs; char fs_r_[PADR_(struct svr4_statvfs *)];
211};
212struct svr4_sys_waitsys_args {
213 char grp_l_[PADL_(int)]; int grp; char grp_r_[PADR_(int)];
214 char id_l_[PADL_(int)]; int id; char id_r_[PADR_(int)];
215 char info_l_[PADL_(union svr4_siginfo *)]; union svr4_siginfo * info; char info_r_[PADR_(union svr4_siginfo *)];
216 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
217};
218struct svr4_sys_hrtsys_args {
219 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
220 char fun_l_[PADL_(int)]; int fun; char fun_r_[PADR_(int)];
221 char sub_l_[PADL_(int)]; int sub; char sub_r_[PADR_(int)];
222 char rv1_l_[PADL_(void *)]; void * rv1; char rv1_r_[PADR_(void *)];
223 char rv2_l_[PADL_(void *)]; void * rv2; char rv2_r_[PADR_(void *)];
224};
225struct svr4_sys_pathconf_args {
226 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
227 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
228};
229struct svr4_sys_mmap_args {
230 char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
231 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
232 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
233 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
234 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
235 char pos_l_[PADL_(svr4_off_t)]; svr4_off_t pos; char pos_r_[PADR_(svr4_off_t)];
236};
237struct svr4_sys_fpathconf_args {
238 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
239 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
240};
241struct svr4_sys_xstat_args {
242 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
243 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
244 char ub_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * ub; char ub_r_[PADR_(struct svr4_xstat *)];
245};
246struct svr4_sys_lxstat_args {
247 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
248 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
249 char ub_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * ub; char ub_r_[PADR_(struct svr4_xstat *)];
250};
251struct svr4_sys_fxstat_args {
252 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
253 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
254 char sb_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * sb; char sb_r_[PADR_(struct svr4_xstat *)];
255};
256struct svr4_sys_xmknod_args {
257 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
258 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
259 char mode_l_[PADL_(svr4_mode_t)]; svr4_mode_t mode; char mode_r_[PADR_(svr4_mode_t)];
260 char dev_l_[PADL_(svr4_dev_t)]; svr4_dev_t dev; char dev_r_[PADR_(svr4_dev_t)];
261};
262struct svr4_sys_setrlimit_args {
263 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
264 char rlp_l_[PADL_(const struct svr4_rlimit *)]; const struct svr4_rlimit * rlp; char rlp_r_[PADR_(const struct svr4_rlimit *)];
265};
266struct svr4_sys_getrlimit_args {
267 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
268 char rlp_l_[PADL_(struct svr4_rlimit *)]; struct svr4_rlimit * rlp; char rlp_r_[PADR_(struct svr4_rlimit *)];
269};
270struct svr4_sys_memcntl_args {
271 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
272 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
273 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
274 char arg_l_[PADL_(void *)]; void * arg; char arg_r_[PADR_(void *)];
275 char attr_l_[PADL_(int)]; int attr; char attr_r_[PADR_(int)];
276 char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
277};
278struct svr4_sys_uname_args {
279 char name_l_[PADL_(struct svr4_utsname *)]; struct svr4_utsname * name; char name_r_[PADR_(struct svr4_utsname *)];
280 char dummy_l_[PADL_(int)]; int dummy; char dummy_r_[PADR_(int)];
281};
282struct svr4_sys_sysconfig_args {
283 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
284};
285struct svr4_sys_systeminfo_args {
286 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
287 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
288 char len_l_[PADL_(long)]; long len; char len_r_[PADR_(long)];
289};
290struct svr4_sys_fchroot_args {
291 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
292};
293struct svr4_sys_utimes_args {
294 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
295 char tptr_l_[PADL_(struct timeval *)]; struct timeval * tptr; char tptr_r_[PADR_(struct timeval *)];
296};
297struct svr4_sys_vhangup_args {
298 register_t dummy;
299};
300struct svr4_sys_gettimeofday_args {
301 char tp_l_[PADL_(struct timeval *)]; struct timeval * tp; char tp_r_[PADR_(struct timeval *)];
302};
303struct svr4_sys_llseek_args {
304 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
305 char offset1_l_[PADL_(long)]; long offset1; char offset1_r_[PADR_(long)];
306 char offset2_l_[PADL_(long)]; long offset2; char offset2_r_[PADR_(long)];
307 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
308};
309struct svr4_sys_acl_args {
310 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
311 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
312 char num_l_[PADL_(int)]; int num; char num_r_[PADR_(int)];
313 char buf_l_[PADL_(struct svr4_aclent *)]; struct svr4_aclent * buf; char buf_r_[PADR_(struct svr4_aclent *)];
314};
315struct svr4_sys_auditsys_args {
316 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
317 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
318 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
319 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
320 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
321 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
322};
323struct svr4_sys_facl_args {
324 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
325 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
326 char num_l_[PADL_(int)]; int num; char num_r_[PADR_(int)];
327 char buf_l_[PADL_(struct svr4_aclent *)]; struct svr4_aclent * buf; char buf_r_[PADR_(struct svr4_aclent *)];
328};
329struct svr4_sys_resolvepath_args {
330 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
331 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
332 char bufsiz_l_[PADL_(size_t)]; size_t bufsiz; char bufsiz_r_[PADR_(size_t)];
333};
334struct svr4_sys_getdents64_args {
335 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
336 char dp_l_[PADL_(struct svr4_dirent64 *)]; struct svr4_dirent64 * dp; char dp_r_[PADR_(struct svr4_dirent64 *)];
337 char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)];
338};
339struct svr4_sys_mmap64_args {
340 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
341 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
342 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
343 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
344 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
345 char pos_l_[PADL_(svr4_off64_t)]; svr4_off64_t pos; char pos_r_[PADR_(svr4_off64_t)];
346};
347struct svr4_sys_stat64_args {
348 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
349 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
350};
351struct svr4_sys_lstat64_args {
352 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
353 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
354};
355struct svr4_sys_fstat64_args {
356 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
357 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
358};
359struct svr4_sys_statvfs64_args {
360 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
361 char fs_l_[PADL_(struct svr4_statvfs64 *)]; struct svr4_statvfs64 * fs; char fs_r_[PADR_(struct svr4_statvfs64 *)];
362};
363struct svr4_sys_fstatvfs64_args {
364 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
365 char fs_l_[PADL_(struct svr4_statvfs64 *)]; struct svr4_statvfs64 * fs; char fs_r_[PADR_(struct svr4_statvfs64 *)];
366};
367struct svr4_sys_setrlimit64_args {
368 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
369 char rlp_l_[PADL_(const struct svr4_rlimit64 *)]; const struct svr4_rlimit64 * rlp; char rlp_r_[PADR_(const struct svr4_rlimit64 *)];
370};
371struct svr4_sys_getrlimit64_args {
372 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
373 char rlp_l_[PADL_(struct svr4_rlimit64 *)]; struct svr4_rlimit64 * rlp; char rlp_r_[PADR_(struct svr4_rlimit64 *)];
374};
375struct svr4_sys_creat64_args {
376 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
377 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
378};
379struct svr4_sys_open64_args {
380 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
381 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
382 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
383};
384struct svr4_sys_socket_args {
385 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
386 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
387 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
388};
389struct svr4_sys_recv_args {
390 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
391 char buf_l_[PADL_(caddr_t)]; caddr_t buf; char buf_r_[PADR_(caddr_t)];
392 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
393 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
394};
395struct svr4_sys_send_args {
396 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
397 char buf_l_[PADL_(caddr_t)]; caddr_t buf; char buf_r_[PADR_(caddr_t)];
398 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
399 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
400};
401struct svr4_sys_sendto_args {
402 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
403 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
404 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
405 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
406 char to_l_[PADL_(struct sockaddr *)]; struct sockaddr * to; char to_r_[PADR_(struct sockaddr *)];
407 char tolen_l_[PADL_(int)]; int tolen; char tolen_r_[PADR_(int)];
408};
409int svr4_sys_open(struct thread *, struct svr4_sys_open_args *);
410int svr4_sys_wait(struct thread *, struct svr4_sys_wait_args *);
411int svr4_sys_creat(struct thread *, struct svr4_sys_creat_args *);
412int svr4_sys_execv(struct thread *, struct svr4_sys_execv_args *);
413int svr4_sys_time(struct thread *, struct svr4_sys_time_args *);
414int svr4_sys_mknod(struct thread *, struct svr4_sys_mknod_args *);
415int svr4_sys_break(struct thread *, struct svr4_sys_break_args *);
416int svr4_sys_stat(struct thread *, struct svr4_sys_stat_args *);
417int svr4_sys_alarm(struct thread *, struct svr4_sys_alarm_args *);
418int svr4_sys_fstat(struct thread *, struct svr4_sys_fstat_args *);
419int svr4_sys_pause(struct thread *, struct svr4_sys_pause_args *);
420int svr4_sys_utime(struct thread *, struct svr4_sys_utime_args *);
421int svr4_sys_access(struct thread *, struct svr4_sys_access_args *);
422int svr4_sys_nice(struct thread *, struct svr4_sys_nice_args *);
423int svr4_sys_kill(struct thread *, struct svr4_sys_kill_args *);
424int svr4_sys_pgrpsys(struct thread *, struct svr4_sys_pgrpsys_args *);
425int svr4_sys_times(struct thread *, struct svr4_sys_times_args *);
426int svr4_sys_signal(struct thread *, struct svr4_sys_signal_args *);
427int svr4_sys_msgsys(struct thread *, struct svr4_sys_msgsys_args *);
428int svr4_sys_sysarch(struct thread *, struct svr4_sys_sysarch_args *);
429int svr4_sys_shmsys(struct thread *, struct svr4_sys_shmsys_args *);
430int svr4_sys_semsys(struct thread *, struct svr4_sys_semsys_args *);
431int svr4_sys_ioctl(struct thread *, struct svr4_sys_ioctl_args *);
432int svr4_sys_utssys(struct thread *, struct svr4_sys_utssys_args *);
433int svr4_sys_execve(struct thread *, struct svr4_sys_execve_args *);
434int svr4_sys_fcntl(struct thread *, struct svr4_sys_fcntl_args *);
435int svr4_sys_ulimit(struct thread *, struct svr4_sys_ulimit_args *);
436int svr4_sys_getdents(struct thread *, struct svr4_sys_getdents_args *);
437int svr4_sys_getmsg(struct thread *, struct svr4_sys_getmsg_args *);
438int svr4_sys_putmsg(struct thread *, struct svr4_sys_putmsg_args *);
439int svr4_sys_poll(struct thread *, struct svr4_sys_poll_args *);
440int svr4_sys_lstat(struct thread *, struct svr4_sys_lstat_args *);
441int svr4_sys_sigprocmask(struct thread *, struct svr4_sys_sigprocmask_args *);
442int svr4_sys_sigsuspend(struct thread *, struct svr4_sys_sigsuspend_args *);
443int svr4_sys_sigaltstack(struct thread *, struct svr4_sys_sigaltstack_args *);
444int svr4_sys_sigaction(struct thread *, struct svr4_sys_sigaction_args *);
445int svr4_sys_sigpending(struct thread *, struct svr4_sys_sigpending_args *);
446int svr4_sys_context(struct thread *, struct svr4_sys_context_args *);
447int svr4_sys_statvfs(struct thread *, struct svr4_sys_statvfs_args *);
448int svr4_sys_fstatvfs(struct thread *, struct svr4_sys_fstatvfs_args *);
449int svr4_sys_waitsys(struct thread *, struct svr4_sys_waitsys_args *);
450int svr4_sys_hrtsys(struct thread *, struct svr4_sys_hrtsys_args *);
451int svr4_sys_pathconf(struct thread *, struct svr4_sys_pathconf_args *);
452int svr4_sys_mmap(struct thread *, struct svr4_sys_mmap_args *);
453int svr4_sys_fpathconf(struct thread *, struct svr4_sys_fpathconf_args *);
454int svr4_sys_xstat(struct thread *, struct svr4_sys_xstat_args *);
455int svr4_sys_lxstat(struct thread *, struct svr4_sys_lxstat_args *);
456int svr4_sys_fxstat(struct thread *, struct svr4_sys_fxstat_args *);
457int svr4_sys_xmknod(struct thread *, struct svr4_sys_xmknod_args *);
458int svr4_sys_setrlimit(struct thread *, struct svr4_sys_setrlimit_args *);
459int svr4_sys_getrlimit(struct thread *, struct svr4_sys_getrlimit_args *);
460int svr4_sys_memcntl(struct thread *, struct svr4_sys_memcntl_args *);
461int svr4_sys_uname(struct thread *, struct svr4_sys_uname_args *);
462int svr4_sys_sysconfig(struct thread *, struct svr4_sys_sysconfig_args *);
463int svr4_sys_systeminfo(struct thread *, struct svr4_sys_systeminfo_args *);
464int svr4_sys_fchroot(struct thread *, struct svr4_sys_fchroot_args *);
465int svr4_sys_utimes(struct thread *, struct svr4_sys_utimes_args *);
466int svr4_sys_vhangup(struct thread *, struct svr4_sys_vhangup_args *);
467int svr4_sys_gettimeofday(struct thread *, struct svr4_sys_gettimeofday_args *);
468int svr4_sys_llseek(struct thread *, struct svr4_sys_llseek_args *);
469int svr4_sys_acl(struct thread *, struct svr4_sys_acl_args *);
470int svr4_sys_auditsys(struct thread *, struct svr4_sys_auditsys_args *);
471int svr4_sys_facl(struct thread *, struct svr4_sys_facl_args *);
472int svr4_sys_resolvepath(struct thread *, struct svr4_sys_resolvepath_args *);
473int svr4_sys_getdents64(struct thread *, struct svr4_sys_getdents64_args *);
474int svr4_sys_mmap64(struct thread *, struct svr4_sys_mmap64_args *);
475int svr4_sys_stat64(struct thread *, struct svr4_sys_stat64_args *);
476int svr4_sys_lstat64(struct thread *, struct svr4_sys_lstat64_args *);
477int svr4_sys_fstat64(struct thread *, struct svr4_sys_fstat64_args *);
478int svr4_sys_statvfs64(struct thread *, struct svr4_sys_statvfs64_args *);
479int svr4_sys_fstatvfs64(struct thread *, struct svr4_sys_fstatvfs64_args *);
480int svr4_sys_setrlimit64(struct thread *, struct svr4_sys_setrlimit64_args *);
481int svr4_sys_getrlimit64(struct thread *, struct svr4_sys_getrlimit64_args *);
482int svr4_sys_creat64(struct thread *, struct svr4_sys_creat64_args *);
483int svr4_sys_open64(struct thread *, struct svr4_sys_open64_args *);
484int svr4_sys_socket(struct thread *, struct svr4_sys_socket_args *);
485int svr4_sys_recv(struct thread *, struct svr4_sys_recv_args *);
486int svr4_sys_send(struct thread *, struct svr4_sys_send_args *);
487int svr4_sys_sendto(struct thread *, struct svr4_sys_sendto_args *);
488
489#ifdef COMPAT_43
490
491
492#endif /* COMPAT_43 */
493
494
495#ifdef COMPAT_FREEBSD4
496
497
498#endif /* COMPAT_FREEBSD4 */
499
500#undef PAD_
501#undef PADL_
502#undef PADR_
503
504#endif /* !_SVR4_SYSPROTO_H_ */
7 */
8
9#ifndef _SVR4_SYSPROTO_H_
10#define _SVR4_SYSPROTO_H_
11
12#include <sys/signal.h>
13#include <sys/acl.h>
14#include <sys/thr.h>
15#include <sys/umtx.h>
16#include <posix4/_semaphore.h>
17
18#include <sys/ucontext.h>
19
20struct proc;
21
22struct thread;
23
24#define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
25 0 : sizeof(register_t) - sizeof(t))
26
27#if BYTE_ORDER == LITTLE_ENDIAN
28#define PADL_(t) 0
29#define PADR_(t) PAD_(t)
30#else
31#define PADL_(t) PAD_(t)
32#define PADR_(t) 0
33#endif
34
35struct svr4_sys_open_args {
36 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
37 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
38 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
39};
40struct svr4_sys_wait_args {
41 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
42};
43struct svr4_sys_creat_args {
44 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
45 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
46};
47struct svr4_sys_execv_args {
48 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
49 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
50};
51struct svr4_sys_time_args {
52 char t_l_[PADL_(time_t *)]; time_t * t; char t_r_[PADR_(time_t *)];
53};
54struct svr4_sys_mknod_args {
55 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
56 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
57 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
58};
59struct svr4_sys_break_args {
60 char nsize_l_[PADL_(caddr_t)]; caddr_t nsize; char nsize_r_[PADR_(caddr_t)];
61};
62struct svr4_sys_stat_args {
63 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
64 char ub_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * ub; char ub_r_[PADR_(struct svr4_stat *)];
65};
66struct svr4_sys_alarm_args {
67 char sec_l_[PADL_(unsigned)]; unsigned sec; char sec_r_[PADR_(unsigned)];
68};
69struct svr4_sys_fstat_args {
70 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
71 char sb_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * sb; char sb_r_[PADR_(struct svr4_stat *)];
72};
73struct svr4_sys_pause_args {
74 register_t dummy;
75};
76struct svr4_sys_utime_args {
77 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
78 char ubuf_l_[PADL_(struct svr4_utimbuf *)]; struct svr4_utimbuf * ubuf; char ubuf_r_[PADR_(struct svr4_utimbuf *)];
79};
80struct svr4_sys_access_args {
81 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
82 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
83};
84struct svr4_sys_nice_args {
85 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
86};
87struct svr4_sys_kill_args {
88 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
89 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
90};
91struct svr4_sys_pgrpsys_args {
92 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
93 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
94 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
95};
96struct svr4_sys_times_args {
97 char tp_l_[PADL_(struct tms *)]; struct tms * tp; char tp_r_[PADR_(struct tms *)];
98};
99struct svr4_sys_signal_args {
100 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
101 char handler_l_[PADL_(svr4_sig_t)]; svr4_sig_t handler; char handler_r_[PADR_(svr4_sig_t)];
102};
103struct svr4_sys_msgsys_args {
104 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
105 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
106 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
107 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
108 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
109};
110struct svr4_sys_sysarch_args {
111 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
112 char a1_l_[PADL_(void *)]; void * a1; char a1_r_[PADR_(void *)];
113};
114struct svr4_sys_shmsys_args {
115 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
116 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
117 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
118 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
119 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
120};
121struct svr4_sys_semsys_args {
122 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
123 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
124 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
125 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
126 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
127};
128struct svr4_sys_ioctl_args {
129 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
130 char com_l_[PADL_(u_long)]; u_long com; char com_r_[PADR_(u_long)];
131 char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)];
132};
133struct svr4_sys_utssys_args {
134 char a1_l_[PADL_(void *)]; void * a1; char a1_r_[PADR_(void *)];
135 char a2_l_[PADL_(void *)]; void * a2; char a2_r_[PADR_(void *)];
136 char sel_l_[PADL_(int)]; int sel; char sel_r_[PADR_(int)];
137 char a3_l_[PADL_(void *)]; void * a3; char a3_r_[PADR_(void *)];
138};
139struct svr4_sys_execve_args {
140 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
141 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
142 char envp_l_[PADL_(char **)]; char ** envp; char envp_r_[PADR_(char **)];
143};
144struct svr4_sys_fcntl_args {
145 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
146 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
147 char arg_l_[PADL_(char *)]; char * arg; char arg_r_[PADR_(char *)];
148};
149struct svr4_sys_ulimit_args {
150 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
151 char newlimit_l_[PADL_(long)]; long newlimit; char newlimit_r_[PADR_(long)];
152};
153struct svr4_sys_getdents_args {
154 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
155 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
156 char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)];
157};
158struct svr4_sys_getmsg_args {
159 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
160 char ctl_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * ctl; char ctl_r_[PADR_(struct svr4_strbuf *)];
161 char dat_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * dat; char dat_r_[PADR_(struct svr4_strbuf *)];
162 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
163};
164struct svr4_sys_putmsg_args {
165 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
166 char ctl_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * ctl; char ctl_r_[PADR_(struct svr4_strbuf *)];
167 char dat_l_[PADL_(struct svr4_strbuf *)]; struct svr4_strbuf * dat; char dat_r_[PADR_(struct svr4_strbuf *)];
168 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
169};
170struct svr4_sys_poll_args {
171 char fds_l_[PADL_(struct pollfd *)]; struct pollfd * fds; char fds_r_[PADR_(struct pollfd *)];
172 char nfds_l_[PADL_(unsigned int)]; unsigned int nfds; char nfds_r_[PADR_(unsigned int)];
173 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
174};
175struct svr4_sys_lstat_args {
176 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
177 char ub_l_[PADL_(struct svr4_stat *)]; struct svr4_stat * ub; char ub_r_[PADR_(struct svr4_stat *)];
178};
179struct svr4_sys_sigprocmask_args {
180 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
181 char set_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * set; char set_r_[PADR_(svr4_sigset_t *)];
182 char oset_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * oset; char oset_r_[PADR_(svr4_sigset_t *)];
183};
184struct svr4_sys_sigsuspend_args {
185 char ss_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * ss; char ss_r_[PADR_(svr4_sigset_t *)];
186};
187struct svr4_sys_sigaltstack_args {
188 char nss_l_[PADL_(struct svr4_sigaltstack *)]; struct svr4_sigaltstack * nss; char nss_r_[PADR_(struct svr4_sigaltstack *)];
189 char oss_l_[PADL_(struct svr4_sigaltstack *)]; struct svr4_sigaltstack * oss; char oss_r_[PADR_(struct svr4_sigaltstack *)];
190};
191struct svr4_sys_sigaction_args {
192 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
193 char nsa_l_[PADL_(struct svr4_sigaction *)]; struct svr4_sigaction * nsa; char nsa_r_[PADR_(struct svr4_sigaction *)];
194 char osa_l_[PADL_(struct svr4_sigaction *)]; struct svr4_sigaction * osa; char osa_r_[PADR_(struct svr4_sigaction *)];
195};
196struct svr4_sys_sigpending_args {
197 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
198 char mask_l_[PADL_(svr4_sigset_t *)]; svr4_sigset_t * mask; char mask_r_[PADR_(svr4_sigset_t *)];
199};
200struct svr4_sys_context_args {
201 char func_l_[PADL_(int)]; int func; char func_r_[PADR_(int)];
202 char uc_l_[PADL_(struct svr4_ucontext *)]; struct svr4_ucontext * uc; char uc_r_[PADR_(struct svr4_ucontext *)];
203};
204struct svr4_sys_statvfs_args {
205 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
206 char fs_l_[PADL_(struct svr4_statvfs *)]; struct svr4_statvfs * fs; char fs_r_[PADR_(struct svr4_statvfs *)];
207};
208struct svr4_sys_fstatvfs_args {
209 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
210 char fs_l_[PADL_(struct svr4_statvfs *)]; struct svr4_statvfs * fs; char fs_r_[PADR_(struct svr4_statvfs *)];
211};
212struct svr4_sys_waitsys_args {
213 char grp_l_[PADL_(int)]; int grp; char grp_r_[PADR_(int)];
214 char id_l_[PADL_(int)]; int id; char id_r_[PADR_(int)];
215 char info_l_[PADL_(union svr4_siginfo *)]; union svr4_siginfo * info; char info_r_[PADR_(union svr4_siginfo *)];
216 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
217};
218struct svr4_sys_hrtsys_args {
219 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
220 char fun_l_[PADL_(int)]; int fun; char fun_r_[PADR_(int)];
221 char sub_l_[PADL_(int)]; int sub; char sub_r_[PADR_(int)];
222 char rv1_l_[PADL_(void *)]; void * rv1; char rv1_r_[PADR_(void *)];
223 char rv2_l_[PADL_(void *)]; void * rv2; char rv2_r_[PADR_(void *)];
224};
225struct svr4_sys_pathconf_args {
226 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
227 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
228};
229struct svr4_sys_mmap_args {
230 char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
231 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
232 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
233 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
234 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
235 char pos_l_[PADL_(svr4_off_t)]; svr4_off_t pos; char pos_r_[PADR_(svr4_off_t)];
236};
237struct svr4_sys_fpathconf_args {
238 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
239 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
240};
241struct svr4_sys_xstat_args {
242 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
243 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
244 char ub_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * ub; char ub_r_[PADR_(struct svr4_xstat *)];
245};
246struct svr4_sys_lxstat_args {
247 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
248 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
249 char ub_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * ub; char ub_r_[PADR_(struct svr4_xstat *)];
250};
251struct svr4_sys_fxstat_args {
252 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
253 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
254 char sb_l_[PADL_(struct svr4_xstat *)]; struct svr4_xstat * sb; char sb_r_[PADR_(struct svr4_xstat *)];
255};
256struct svr4_sys_xmknod_args {
257 char two_l_[PADL_(int)]; int two; char two_r_[PADR_(int)];
258 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
259 char mode_l_[PADL_(svr4_mode_t)]; svr4_mode_t mode; char mode_r_[PADR_(svr4_mode_t)];
260 char dev_l_[PADL_(svr4_dev_t)]; svr4_dev_t dev; char dev_r_[PADR_(svr4_dev_t)];
261};
262struct svr4_sys_setrlimit_args {
263 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
264 char rlp_l_[PADL_(const struct svr4_rlimit *)]; const struct svr4_rlimit * rlp; char rlp_r_[PADR_(const struct svr4_rlimit *)];
265};
266struct svr4_sys_getrlimit_args {
267 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
268 char rlp_l_[PADL_(struct svr4_rlimit *)]; struct svr4_rlimit * rlp; char rlp_r_[PADR_(struct svr4_rlimit *)];
269};
270struct svr4_sys_memcntl_args {
271 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
272 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
273 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
274 char arg_l_[PADL_(void *)]; void * arg; char arg_r_[PADR_(void *)];
275 char attr_l_[PADL_(int)]; int attr; char attr_r_[PADR_(int)];
276 char mask_l_[PADL_(int)]; int mask; char mask_r_[PADR_(int)];
277};
278struct svr4_sys_uname_args {
279 char name_l_[PADL_(struct svr4_utsname *)]; struct svr4_utsname * name; char name_r_[PADR_(struct svr4_utsname *)];
280 char dummy_l_[PADL_(int)]; int dummy; char dummy_r_[PADR_(int)];
281};
282struct svr4_sys_sysconfig_args {
283 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
284};
285struct svr4_sys_systeminfo_args {
286 char what_l_[PADL_(int)]; int what; char what_r_[PADR_(int)];
287 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
288 char len_l_[PADL_(long)]; long len; char len_r_[PADR_(long)];
289};
290struct svr4_sys_fchroot_args {
291 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
292};
293struct svr4_sys_utimes_args {
294 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
295 char tptr_l_[PADL_(struct timeval *)]; struct timeval * tptr; char tptr_r_[PADR_(struct timeval *)];
296};
297struct svr4_sys_vhangup_args {
298 register_t dummy;
299};
300struct svr4_sys_gettimeofday_args {
301 char tp_l_[PADL_(struct timeval *)]; struct timeval * tp; char tp_r_[PADR_(struct timeval *)];
302};
303struct svr4_sys_llseek_args {
304 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
305 char offset1_l_[PADL_(long)]; long offset1; char offset1_r_[PADR_(long)];
306 char offset2_l_[PADL_(long)]; long offset2; char offset2_r_[PADR_(long)];
307 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
308};
309struct svr4_sys_acl_args {
310 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
311 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
312 char num_l_[PADL_(int)]; int num; char num_r_[PADR_(int)];
313 char buf_l_[PADL_(struct svr4_aclent *)]; struct svr4_aclent * buf; char buf_r_[PADR_(struct svr4_aclent *)];
314};
315struct svr4_sys_auditsys_args {
316 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
317 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
318 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
319 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
320 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
321 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
322};
323struct svr4_sys_facl_args {
324 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
325 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
326 char num_l_[PADL_(int)]; int num; char num_r_[PADR_(int)];
327 char buf_l_[PADL_(struct svr4_aclent *)]; struct svr4_aclent * buf; char buf_r_[PADR_(struct svr4_aclent *)];
328};
329struct svr4_sys_resolvepath_args {
330 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
331 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
332 char bufsiz_l_[PADL_(size_t)]; size_t bufsiz; char bufsiz_r_[PADR_(size_t)];
333};
334struct svr4_sys_getdents64_args {
335 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
336 char dp_l_[PADL_(struct svr4_dirent64 *)]; struct svr4_dirent64 * dp; char dp_r_[PADR_(struct svr4_dirent64 *)];
337 char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)];
338};
339struct svr4_sys_mmap64_args {
340 char addr_l_[PADL_(void *)]; void * addr; char addr_r_[PADR_(void *)];
341 char len_l_[PADL_(svr4_size_t)]; svr4_size_t len; char len_r_[PADR_(svr4_size_t)];
342 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
343 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
344 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
345 char pos_l_[PADL_(svr4_off64_t)]; svr4_off64_t pos; char pos_r_[PADR_(svr4_off64_t)];
346};
347struct svr4_sys_stat64_args {
348 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
349 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
350};
351struct svr4_sys_lstat64_args {
352 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
353 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
354};
355struct svr4_sys_fstat64_args {
356 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
357 char sb_l_[PADL_(struct svr4_stat64 *)]; struct svr4_stat64 * sb; char sb_r_[PADR_(struct svr4_stat64 *)];
358};
359struct svr4_sys_statvfs64_args {
360 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
361 char fs_l_[PADL_(struct svr4_statvfs64 *)]; struct svr4_statvfs64 * fs; char fs_r_[PADR_(struct svr4_statvfs64 *)];
362};
363struct svr4_sys_fstatvfs64_args {
364 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
365 char fs_l_[PADL_(struct svr4_statvfs64 *)]; struct svr4_statvfs64 * fs; char fs_r_[PADR_(struct svr4_statvfs64 *)];
366};
367struct svr4_sys_setrlimit64_args {
368 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
369 char rlp_l_[PADL_(const struct svr4_rlimit64 *)]; const struct svr4_rlimit64 * rlp; char rlp_r_[PADR_(const struct svr4_rlimit64 *)];
370};
371struct svr4_sys_getrlimit64_args {
372 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
373 char rlp_l_[PADL_(struct svr4_rlimit64 *)]; struct svr4_rlimit64 * rlp; char rlp_r_[PADR_(struct svr4_rlimit64 *)];
374};
375struct svr4_sys_creat64_args {
376 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
377 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
378};
379struct svr4_sys_open64_args {
380 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
381 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
382 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
383};
384struct svr4_sys_socket_args {
385 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
386 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
387 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
388};
389struct svr4_sys_recv_args {
390 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
391 char buf_l_[PADL_(caddr_t)]; caddr_t buf; char buf_r_[PADR_(caddr_t)];
392 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
393 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
394};
395struct svr4_sys_send_args {
396 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
397 char buf_l_[PADL_(caddr_t)]; caddr_t buf; char buf_r_[PADR_(caddr_t)];
398 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
399 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
400};
401struct svr4_sys_sendto_args {
402 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
403 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
404 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
405 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
406 char to_l_[PADL_(struct sockaddr *)]; struct sockaddr * to; char to_r_[PADR_(struct sockaddr *)];
407 char tolen_l_[PADL_(int)]; int tolen; char tolen_r_[PADR_(int)];
408};
409int svr4_sys_open(struct thread *, struct svr4_sys_open_args *);
410int svr4_sys_wait(struct thread *, struct svr4_sys_wait_args *);
411int svr4_sys_creat(struct thread *, struct svr4_sys_creat_args *);
412int svr4_sys_execv(struct thread *, struct svr4_sys_execv_args *);
413int svr4_sys_time(struct thread *, struct svr4_sys_time_args *);
414int svr4_sys_mknod(struct thread *, struct svr4_sys_mknod_args *);
415int svr4_sys_break(struct thread *, struct svr4_sys_break_args *);
416int svr4_sys_stat(struct thread *, struct svr4_sys_stat_args *);
417int svr4_sys_alarm(struct thread *, struct svr4_sys_alarm_args *);
418int svr4_sys_fstat(struct thread *, struct svr4_sys_fstat_args *);
419int svr4_sys_pause(struct thread *, struct svr4_sys_pause_args *);
420int svr4_sys_utime(struct thread *, struct svr4_sys_utime_args *);
421int svr4_sys_access(struct thread *, struct svr4_sys_access_args *);
422int svr4_sys_nice(struct thread *, struct svr4_sys_nice_args *);
423int svr4_sys_kill(struct thread *, struct svr4_sys_kill_args *);
424int svr4_sys_pgrpsys(struct thread *, struct svr4_sys_pgrpsys_args *);
425int svr4_sys_times(struct thread *, struct svr4_sys_times_args *);
426int svr4_sys_signal(struct thread *, struct svr4_sys_signal_args *);
427int svr4_sys_msgsys(struct thread *, struct svr4_sys_msgsys_args *);
428int svr4_sys_sysarch(struct thread *, struct svr4_sys_sysarch_args *);
429int svr4_sys_shmsys(struct thread *, struct svr4_sys_shmsys_args *);
430int svr4_sys_semsys(struct thread *, struct svr4_sys_semsys_args *);
431int svr4_sys_ioctl(struct thread *, struct svr4_sys_ioctl_args *);
432int svr4_sys_utssys(struct thread *, struct svr4_sys_utssys_args *);
433int svr4_sys_execve(struct thread *, struct svr4_sys_execve_args *);
434int svr4_sys_fcntl(struct thread *, struct svr4_sys_fcntl_args *);
435int svr4_sys_ulimit(struct thread *, struct svr4_sys_ulimit_args *);
436int svr4_sys_getdents(struct thread *, struct svr4_sys_getdents_args *);
437int svr4_sys_getmsg(struct thread *, struct svr4_sys_getmsg_args *);
438int svr4_sys_putmsg(struct thread *, struct svr4_sys_putmsg_args *);
439int svr4_sys_poll(struct thread *, struct svr4_sys_poll_args *);
440int svr4_sys_lstat(struct thread *, struct svr4_sys_lstat_args *);
441int svr4_sys_sigprocmask(struct thread *, struct svr4_sys_sigprocmask_args *);
442int svr4_sys_sigsuspend(struct thread *, struct svr4_sys_sigsuspend_args *);
443int svr4_sys_sigaltstack(struct thread *, struct svr4_sys_sigaltstack_args *);
444int svr4_sys_sigaction(struct thread *, struct svr4_sys_sigaction_args *);
445int svr4_sys_sigpending(struct thread *, struct svr4_sys_sigpending_args *);
446int svr4_sys_context(struct thread *, struct svr4_sys_context_args *);
447int svr4_sys_statvfs(struct thread *, struct svr4_sys_statvfs_args *);
448int svr4_sys_fstatvfs(struct thread *, struct svr4_sys_fstatvfs_args *);
449int svr4_sys_waitsys(struct thread *, struct svr4_sys_waitsys_args *);
450int svr4_sys_hrtsys(struct thread *, struct svr4_sys_hrtsys_args *);
451int svr4_sys_pathconf(struct thread *, struct svr4_sys_pathconf_args *);
452int svr4_sys_mmap(struct thread *, struct svr4_sys_mmap_args *);
453int svr4_sys_fpathconf(struct thread *, struct svr4_sys_fpathconf_args *);
454int svr4_sys_xstat(struct thread *, struct svr4_sys_xstat_args *);
455int svr4_sys_lxstat(struct thread *, struct svr4_sys_lxstat_args *);
456int svr4_sys_fxstat(struct thread *, struct svr4_sys_fxstat_args *);
457int svr4_sys_xmknod(struct thread *, struct svr4_sys_xmknod_args *);
458int svr4_sys_setrlimit(struct thread *, struct svr4_sys_setrlimit_args *);
459int svr4_sys_getrlimit(struct thread *, struct svr4_sys_getrlimit_args *);
460int svr4_sys_memcntl(struct thread *, struct svr4_sys_memcntl_args *);
461int svr4_sys_uname(struct thread *, struct svr4_sys_uname_args *);
462int svr4_sys_sysconfig(struct thread *, struct svr4_sys_sysconfig_args *);
463int svr4_sys_systeminfo(struct thread *, struct svr4_sys_systeminfo_args *);
464int svr4_sys_fchroot(struct thread *, struct svr4_sys_fchroot_args *);
465int svr4_sys_utimes(struct thread *, struct svr4_sys_utimes_args *);
466int svr4_sys_vhangup(struct thread *, struct svr4_sys_vhangup_args *);
467int svr4_sys_gettimeofday(struct thread *, struct svr4_sys_gettimeofday_args *);
468int svr4_sys_llseek(struct thread *, struct svr4_sys_llseek_args *);
469int svr4_sys_acl(struct thread *, struct svr4_sys_acl_args *);
470int svr4_sys_auditsys(struct thread *, struct svr4_sys_auditsys_args *);
471int svr4_sys_facl(struct thread *, struct svr4_sys_facl_args *);
472int svr4_sys_resolvepath(struct thread *, struct svr4_sys_resolvepath_args *);
473int svr4_sys_getdents64(struct thread *, struct svr4_sys_getdents64_args *);
474int svr4_sys_mmap64(struct thread *, struct svr4_sys_mmap64_args *);
475int svr4_sys_stat64(struct thread *, struct svr4_sys_stat64_args *);
476int svr4_sys_lstat64(struct thread *, struct svr4_sys_lstat64_args *);
477int svr4_sys_fstat64(struct thread *, struct svr4_sys_fstat64_args *);
478int svr4_sys_statvfs64(struct thread *, struct svr4_sys_statvfs64_args *);
479int svr4_sys_fstatvfs64(struct thread *, struct svr4_sys_fstatvfs64_args *);
480int svr4_sys_setrlimit64(struct thread *, struct svr4_sys_setrlimit64_args *);
481int svr4_sys_getrlimit64(struct thread *, struct svr4_sys_getrlimit64_args *);
482int svr4_sys_creat64(struct thread *, struct svr4_sys_creat64_args *);
483int svr4_sys_open64(struct thread *, struct svr4_sys_open64_args *);
484int svr4_sys_socket(struct thread *, struct svr4_sys_socket_args *);
485int svr4_sys_recv(struct thread *, struct svr4_sys_recv_args *);
486int svr4_sys_send(struct thread *, struct svr4_sys_send_args *);
487int svr4_sys_sendto(struct thread *, struct svr4_sys_sendto_args *);
488
489#ifdef COMPAT_43
490
491
492#endif /* COMPAT_43 */
493
494
495#ifdef COMPAT_FREEBSD4
496
497
498#endif /* COMPAT_FREEBSD4 */
499
500#undef PAD_
501#undef PADL_
502#undef PADR_
503
504#endif /* !_SVR4_SYSPROTO_H_ */