2 * System call prototypes.
4 * DO NOT EDIT-- this file is automatically generated.
6 * created from FreeBSD: src/sys/ia64/ia32/syscalls.master,v 1.2 2002/07/20 02:56:10 peter Exp
9 #ifndef _IA32_SYSPROTO_H_
10 #define _IA32_SYSPROTO_H_
12 #include <sys/signal.h>
20 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21 0 : sizeof(register_t) - sizeof(t))
23 #if BYTE_ORDER == LITTLE_ENDIAN
25 #define PADR_(t) PAD_(t)
27 #define PADL_(t) PAD_(t)
31 struct ia32_open_args {
32 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
33 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
34 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
36 struct ia32_wait4_args {
37 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
38 char status_l_[PADL_(int *)]; int * status; char status_r_[PADR_(int *)];
39 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
40 char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
42 struct ia32_getfsstat_args {
43 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
44 char bufsize_l_[PADL_(long)]; long bufsize; char bufsize_r_[PADR_(long)];
45 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
47 struct ia32_access_args {
48 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
49 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
51 struct ia32_chflags_args {
52 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
53 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
55 struct ia32_sigaltstack_args {
56 char ss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * ss; char ss_r_[PADR_(struct sigaltstack32 *)];
57 char oss_l_[PADL_(struct sigaltstack32 *)]; struct sigaltstack32 * oss; char oss_r_[PADR_(struct sigaltstack32 *)];
59 struct ia32_execve_args {
60 char fname_l_[PADL_(char *)]; char * fname; char fname_r_[PADR_(char *)];
61 char argv_l_[PADL_(u_int32_t *)]; u_int32_t * argv; char argv_r_[PADR_(u_int32_t *)];
62 char envv_l_[PADL_(u_int32_t *)]; u_int32_t * envv; char envv_r_[PADR_(u_int32_t *)];
64 struct ia32_setitimer_args {
65 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
66 char itv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * itv; char itv_r_[PADR_(struct itimerval32 *)];
67 char oitv_l_[PADL_(struct itimerval32 *)]; struct itimerval32 * oitv; char oitv_r_[PADR_(struct itimerval32 *)];
69 struct ia32_select_args {
70 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
71 char in_l_[PADL_(fd_set *)]; fd_set * in; char in_r_[PADR_(fd_set *)];
72 char ou_l_[PADL_(fd_set *)]; fd_set * ou; char ou_r_[PADR_(fd_set *)];
73 char ex_l_[PADL_(fd_set *)]; fd_set * ex; char ex_r_[PADR_(fd_set *)];
74 char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
76 struct ia32_gettimeofday_args {
77 char tp_l_[PADL_(struct timeval32 *)]; struct timeval32 * tp; char tp_r_[PADR_(struct timeval32 *)];
78 char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
80 struct ia32_getrusage_args {
81 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
82 char rusage_l_[PADL_(struct rusage32 *)]; struct rusage32 * rusage; char rusage_r_[PADR_(struct rusage32 *)];
84 struct ia32_readv_args {
85 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
86 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
87 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
89 struct ia32_writev_args {
90 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
91 char iovp_l_[PADL_(struct iovec32 *)]; struct iovec32 * iovp; char iovp_r_[PADR_(struct iovec32 *)];
92 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
94 struct ia32_settimeofday_args {
95 char tv_l_[PADL_(struct timeval32 *)]; struct timeval32 * tv; char tv_r_[PADR_(struct timeval32 *)];
96 char tzp_l_[PADL_(struct timezone *)]; struct timezone * tzp; char tzp_r_[PADR_(struct timezone *)];
98 struct ia32_utimes_args {
99 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
100 char tptr_l_[PADL_(struct timeval32 *)]; struct timeval32 * tptr; char tptr_r_[PADR_(struct timeval32 *)];
102 struct ia32_adjtime_args {
103 char delta_l_[PADL_(struct timeval32 *)]; struct timeval32 * delta; char delta_r_[PADR_(struct timeval32 *)];
104 char olddelta_l_[PADL_(struct timeval32 *)]; struct timeval32 * olddelta; char olddelta_r_[PADR_(struct timeval32 *)];
106 struct ia32_statfs_args {
107 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
108 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
110 struct ia32_fstatfs_args {
111 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112 char buf_l_[PADL_(struct statfs32 *)]; struct statfs32 * buf; char buf_r_[PADR_(struct statfs32 *)];
114 struct ia32_semsys_args {
115 char which_l_[PADL_(int)]; int which; char which_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)];
121 struct ia32_msgsys_args {
122 char which_l_[PADL_(int)]; int which; char which_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 char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
129 struct ia32_shmsys_args {
130 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
131 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
132 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
133 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
135 struct ia32_pread_args {
136 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
137 char buf_l_[PADL_(void *)]; void * buf; char buf_r_[PADR_(void *)];
138 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
139 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
140 char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
141 char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
143 struct ia32_pwrite_args {
144 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
145 char buf_l_[PADL_(const void *)]; const void * buf; char buf_r_[PADR_(const void *)];
146 char nbyte_l_[PADL_(size_t)]; size_t nbyte; char nbyte_r_[PADR_(size_t)];
147 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
148 char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
149 char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
151 struct ia32_stat_args {
152 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
153 char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
155 struct ia32_fstat_args {
156 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
157 char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
159 struct ia32_lstat_args {
160 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
161 char ub_l_[PADL_(struct stat32 *)]; struct stat32 * ub; char ub_r_[PADR_(struct stat32 *)];
163 struct ia32_mmap_args {
164 char addr_l_[PADL_(caddr_t)]; caddr_t addr; char addr_r_[PADR_(caddr_t)];
165 char len_l_[PADL_(size_t)]; size_t len; char len_r_[PADR_(size_t)];
166 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
167 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
168 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
169 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
170 char poslo_l_[PADL_(u_int32_t)]; u_int32_t poslo; char poslo_r_[PADR_(u_int32_t)];
171 char poshi_l_[PADL_(u_int32_t)]; u_int32_t poshi; char poshi_r_[PADR_(u_int32_t)];
173 struct ia32_lseek_args {
174 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
175 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
176 char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
177 char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
178 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
180 struct ia32_truncate_args {
181 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
182 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
183 char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
184 char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
186 struct ia32_ftruncate_args {
187 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
188 char pad_l_[PADL_(int)]; int pad; char pad_r_[PADR_(int)];
189 char lengthlo_l_[PADL_(u_int32_t)]; u_int32_t lengthlo; char lengthlo_r_[PADR_(u_int32_t)];
190 char lengthhi_l_[PADL_(u_int32_t)]; u_int32_t lengthhi; char lengthhi_r_[PADR_(u_int32_t)];
192 struct ia32_sysctl_args {
193 char name_l_[PADL_(int *)]; int * name; char name_r_[PADR_(int *)];
194 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
195 char old_l_[PADL_(void *)]; void * old; char old_r_[PADR_(void *)];
196 char oldlenp_l_[PADL_(u_int32_t *)]; u_int32_t * oldlenp; char oldlenp_r_[PADR_(u_int32_t *)];
197 char new_l_[PADL_(void *)]; void * new; char new_r_[PADR_(void *)];
198 char newlen_l_[PADL_(u_int32_t)]; u_int32_t newlen; char newlen_r_[PADR_(u_int32_t)];
200 struct ia32_sendfile_args {
201 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
202 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
203 char offsetlo_l_[PADL_(u_int32_t)]; u_int32_t offsetlo; char offsetlo_r_[PADR_(u_int32_t)];
204 char offsethi_l_[PADL_(u_int32_t)]; u_int32_t offsethi; char offsethi_r_[PADR_(u_int32_t)];
205 char nbytes_l_[PADL_(size_t)]; size_t nbytes; char nbytes_r_[PADR_(size_t)];
206 char hdtr_l_[PADL_(struct sf_hdtr *)]; struct sf_hdtr * hdtr; char hdtr_r_[PADR_(struct sf_hdtr *)];
207 char sbytes_l_[PADL_(off_t *)]; off_t * sbytes; char sbytes_r_[PADR_(off_t *)];
208 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
210 struct ia32_sigaction_args {
211 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
212 char act_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * act; char act_r_[PADR_(struct sigaction32 *)];
213 char oact_l_[PADL_(struct sigaction32 *)]; struct sigaction32 * oact; char oact_r_[PADR_(struct sigaction32 *)];
215 int ia32_open(struct thread *, struct ia32_open_args *);
216 int ia32_wait4(struct thread *, struct ia32_wait4_args *);
217 int ia32_getfsstat(struct thread *, struct ia32_getfsstat_args *);
218 int ia32_access(struct thread *, struct ia32_access_args *);
219 int ia32_chflags(struct thread *, struct ia32_chflags_args *);
220 int ia32_sigaltstack(struct thread *, struct ia32_sigaltstack_args *);
221 int ia32_execve(struct thread *, struct ia32_execve_args *);
222 int ia32_setitimer(struct thread *, struct ia32_setitimer_args *);
223 int ia32_select(struct thread *, struct ia32_select_args *);
224 int ia32_gettimeofday(struct thread *, struct ia32_gettimeofday_args *);
225 int ia32_getrusage(struct thread *, struct ia32_getrusage_args *);
226 int ia32_readv(struct thread *, struct ia32_readv_args *);
227 int ia32_writev(struct thread *, struct ia32_writev_args *);
228 int ia32_settimeofday(struct thread *, struct ia32_settimeofday_args *);
229 int ia32_utimes(struct thread *, struct ia32_utimes_args *);
230 int ia32_adjtime(struct thread *, struct ia32_adjtime_args *);
231 int ia32_statfs(struct thread *, struct ia32_statfs_args *);
232 int ia32_fstatfs(struct thread *, struct ia32_fstatfs_args *);
233 int ia32_semsys(struct thread *, struct ia32_semsys_args *);
234 int ia32_msgsys(struct thread *, struct ia32_msgsys_args *);
235 int ia32_shmsys(struct thread *, struct ia32_shmsys_args *);
236 int ia32_pread(struct thread *, struct ia32_pread_args *);
237 int ia32_pwrite(struct thread *, struct ia32_pwrite_args *);
238 int ia32_stat(struct thread *, struct ia32_stat_args *);
239 int ia32_fstat(struct thread *, struct ia32_fstat_args *);
240 int ia32_lstat(struct thread *, struct ia32_lstat_args *);
241 int ia32_mmap(struct thread *, struct ia32_mmap_args *);
242 int ia32_lseek(struct thread *, struct ia32_lseek_args *);
243 int ia32_truncate(struct thread *, struct ia32_truncate_args *);
244 int ia32_ftruncate(struct thread *, struct ia32_ftruncate_args *);
245 int ia32_sysctl(struct thread *, struct ia32_sysctl_args *);
246 int ia32_sendfile(struct thread *, struct ia32_sendfile_args *);
247 int ia32_sigaction(struct thread *, struct ia32_sigaction_args *);
252 #endif /* COMPAT_43 */
255 #ifdef COMPAT_FREEBSD4
258 #endif /* COMPAT_FREEBSD4 */
264 #endif /* !_IA32_SYSPROTO_H_ */