1 /*
2 * System call prototypes.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * $FreeBSD$
6 * created from FreeBSD: src/sys/i386/ibcs2/syscalls.master,v 1.18.2.1 2004/09/03 15:30:20 jhb Exp
7 */
8
9 #ifndef _IBCS2_SYSPROTO_H_
10 #define _IBCS2_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
20 struct proc;
21
22 struct 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
35 struct ibcs2_read_args {
36 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
37 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
38 char nbytes_l_[PADL_(u_int)]; u_int nbytes; char nbytes_r_[PADR_(u_int)];
39 };
40 struct ibcs2_open_args {
41 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
42 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
43 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
44 };
45 struct ibcs2_wait_args {
46 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
47 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
48 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
49 };
50 struct ibcs2_creat_args {
51 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
52 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
53 };
54 struct ibcs2_unlink_args {
55 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
56 };
57 struct ibcs2_execv_args {
58 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
59 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
60 };
61 struct ibcs2_chdir_args {
62 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
63 };
64 struct ibcs2_time_args {
65 char tp_l_[PADL_(ibcs2_time_t *)]; ibcs2_time_t * tp; char tp_r_[PADR_(ibcs2_time_t *)];
66 };
67 struct ibcs2_mknod_args {
68 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
69 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
70 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
71 };
72 struct ibcs2_chmod_args {
73 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
74 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
75 };
76 struct ibcs2_chown_args {
77 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
78 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
79 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
80 };
81 struct ibcs2_stat_args {
82 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
83 char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)];
84 };
85 struct ibcs2_lseek_args {
86 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
87 char offset_l_[PADL_(long)]; long offset; char offset_r_[PADR_(long)];
88 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
89 };
90 struct ibcs2_mount_args {
91 char special_l_[PADL_(char *)]; char * special; char special_r_[PADR_(char *)];
92 char dir_l_[PADL_(char *)]; char * dir; char dir_r_[PADR_(char *)];
93 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
94 char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)];
95 char data_l_[PADL_(char *)]; char * data; char data_r_[PADR_(char *)];
96 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
97 };
98 struct ibcs2_umount_args {
99 char name_l_[PADL_(char *)]; char * name; char name_r_[PADR_(char *)];
100 };
101 struct ibcs2_setuid_args {
102 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
103 };
104 struct ibcs2_stime_args {
105 char timep_l_[PADL_(long *)]; long * timep; char timep_r_[PADR_(long *)];
106 };
107 struct ibcs2_alarm_args {
108 char sec_l_[PADL_(unsigned)]; unsigned sec; char sec_r_[PADR_(unsigned)];
109 };
110 struct ibcs2_fstat_args {
111 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112 char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)];
113 };
114 struct ibcs2_pause_args {
115 register_t dummy;
116 };
117 struct ibcs2_utime_args {
118 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
119 char buf_l_[PADL_(struct ibcs2_utimbuf *)]; struct ibcs2_utimbuf * buf; char buf_r_[PADR_(struct ibcs2_utimbuf *)];
120 };
121 struct ibcs2_stty_args {
122 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
123 char buf_l_[PADL_(struct sgttyb *)]; struct sgttyb * buf; char buf_r_[PADR_(struct sgttyb *)];
124 };
125 struct ibcs2_gtty_args {
126 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
127 char buf_l_[PADL_(struct sgttyb *)]; struct sgttyb * buf; char buf_r_[PADR_(struct sgttyb *)];
128 };
129 struct ibcs2_access_args {
130 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
131 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
132 };
133 struct ibcs2_nice_args {
134 char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)];
135 };
136 struct ibcs2_statfs_args {
137 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
138 char buf_l_[PADL_(struct ibcs2_statfs *)]; struct ibcs2_statfs * buf; char buf_r_[PADR_(struct ibcs2_statfs *)];
139 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
140 char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)];
141 };
142 struct ibcs2_kill_args {
143 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
144 char signo_l_[PADL_(int)]; int signo; char signo_r_[PADR_(int)];
145 };
146 struct ibcs2_fstatfs_args {
147 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
148 char buf_l_[PADL_(struct ibcs2_statfs *)]; struct ibcs2_statfs * buf; char buf_r_[PADR_(struct ibcs2_statfs *)];
149 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
150 char fstype_l_[PADL_(int)]; int fstype; char fstype_r_[PADR_(int)];
151 };
152 struct ibcs2_pgrpsys_args {
153 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
154 char dummy_l_[PADL_(caddr_t)]; caddr_t dummy; char dummy_r_[PADR_(caddr_t)];
155 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
156 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
157 };
158 struct ibcs2_xenix_args {
159 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
160 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
161 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
162 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
163 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
164 };
165 struct ibcs2_times_args {
166 char tp_l_[PADL_(struct tms *)]; struct tms * tp; char tp_r_[PADR_(struct tms *)];
167 };
168 struct ibcs2_plock_args {
169 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
170 };
171 struct ibcs2_setgid_args {
172 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
173 };
174 struct ibcs2_sigsys_args {
175 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
176 char fp_l_[PADL_(ibcs2_sig_t)]; ibcs2_sig_t fp; char fp_r_[PADR_(ibcs2_sig_t)];
177 };
178 struct ibcs2_msgsys_args {
179 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
180 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
181 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
182 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
183 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
184 char a6_l_[PADL_(int)]; int a6; char a6_r_[PADR_(int)];
185 };
186 struct ibcs2_sysi86_args {
187 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
188 char arg_l_[PADL_(int *)]; int * arg; char arg_r_[PADR_(int *)];
189 };
190 struct ibcs2_shmsys_args {
191 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
192 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
193 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
194 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
195 };
196 struct ibcs2_semsys_args {
197 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
198 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
199 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
200 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
201 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
202 };
203 struct ibcs2_ioctl_args {
204 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
205 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
206 char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)];
207 };
208 struct ibcs2_uadmin_args {
209 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
210 char func_l_[PADL_(int)]; int func; char func_r_[PADR_(int)];
211 char data_l_[PADL_(caddr_t)]; caddr_t data; char data_r_[PADR_(caddr_t)];
212 };
213 struct ibcs2_utssys_args {
214 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
215 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
216 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
217 };
218 struct ibcs2_execve_args {
219 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
220 char argp_l_[PADL_(char **)]; char ** argp; char argp_r_[PADR_(char **)];
221 char envp_l_[PADL_(char **)]; char ** envp; char envp_r_[PADR_(char **)];
222 };
223 struct ibcs2_fcntl_args {
224 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
225 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
226 char arg_l_[PADL_(char *)]; char * arg; char arg_r_[PADR_(char *)];
227 };
228 struct ibcs2_ulimit_args {
229 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
230 char newlimit_l_[PADL_(int)]; int newlimit; char newlimit_r_[PADR_(int)];
231 };
232 struct ibcs2_rmdir_args {
233 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
234 };
235 struct ibcs2_mkdir_args {
236 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
237 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
238 };
239 struct ibcs2_getdents_args {
240 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
241 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
242 char nbytes_l_[PADL_(int)]; int nbytes; char nbytes_r_[PADR_(int)];
243 };
244 struct ibcs2_sysfs_args {
245 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
246 char d1_l_[PADL_(caddr_t)]; caddr_t d1; char d1_r_[PADR_(caddr_t)];
247 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
248 };
249 struct ibcs2_getmsg_args {
250 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
251 char ctl_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * ctl; char ctl_r_[PADR_(struct ibcs2_stropts *)];
252 char dat_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * dat; char dat_r_[PADR_(struct ibcs2_stropts *)];
253 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
254 };
255 struct ibcs2_putmsg_args {
256 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
257 char ctl_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * ctl; char ctl_r_[PADR_(struct ibcs2_stropts *)];
258 char dat_l_[PADL_(struct ibcs2_stropts *)]; struct ibcs2_stropts * dat; char dat_r_[PADR_(struct ibcs2_stropts *)];
259 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
260 };
261 struct ibcs2_poll_args {
262 char fds_l_[PADL_(struct ibcs2_poll *)]; struct ibcs2_poll * fds; char fds_r_[PADR_(struct ibcs2_poll *)];
263 char nfds_l_[PADL_(long)]; long nfds; char nfds_r_[PADR_(long)];
264 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
265 };
266 struct ibcs2_secure_args {
267 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
268 char a1_l_[PADL_(int)]; int a1; char a1_r_[PADR_(int)];
269 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
270 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
271 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
272 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
273 };
274 struct ibcs2_symlink_args {
275 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
276 char link_l_[PADL_(char *)]; char * link; char link_r_[PADR_(char *)];
277 };
278 struct ibcs2_lstat_args {
279 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
280 char st_l_[PADL_(struct ibcs2_stat *)]; struct ibcs2_stat * st; char st_r_[PADR_(struct ibcs2_stat *)];
281 };
282 struct ibcs2_readlink_args {
283 char path_l_[PADL_(char *)]; char * path; char path_r_[PADR_(char *)];
284 char buf_l_[PADL_(char *)]; char * buf; char buf_r_[PADR_(char *)];
285 char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
286 };
287 struct ibcs2_isc_args {
288 register_t dummy;
289 };
290 int ibcs2_read(struct thread *, struct ibcs2_read_args *);
291 int ibcs2_open(struct thread *, struct ibcs2_open_args *);
292 int ibcs2_wait(struct thread *, struct ibcs2_wait_args *);
293 int ibcs2_creat(struct thread *, struct ibcs2_creat_args *);
294 int ibcs2_unlink(struct thread *, struct ibcs2_unlink_args *);
295 int ibcs2_execv(struct thread *, struct ibcs2_execv_args *);
296 int ibcs2_chdir(struct thread *, struct ibcs2_chdir_args *);
297 int ibcs2_time(struct thread *, struct ibcs2_time_args *);
298 int ibcs2_mknod(struct thread *, struct ibcs2_mknod_args *);
299 int ibcs2_chmod(struct thread *, struct ibcs2_chmod_args *);
300 int ibcs2_chown(struct thread *, struct ibcs2_chown_args *);
301 int ibcs2_stat(struct thread *, struct ibcs2_stat_args *);
302 int ibcs2_lseek(struct thread *, struct ibcs2_lseek_args *);
303 int ibcs2_mount(struct thread *, struct ibcs2_mount_args *);
304 int ibcs2_umount(struct thread *, struct ibcs2_umount_args *);
305 int ibcs2_setuid(struct thread *, struct ibcs2_setuid_args *);
306 int ibcs2_stime(struct thread *, struct ibcs2_stime_args *);
307 int ibcs2_alarm(struct thread *, struct ibcs2_alarm_args *);
308 int ibcs2_fstat(struct thread *, struct ibcs2_fstat_args *);
309 int ibcs2_pause(struct thread *, struct ibcs2_pause_args *);
310 int ibcs2_utime(struct thread *, struct ibcs2_utime_args *);
311 int ibcs2_stty(struct thread *, struct ibcs2_stty_args *);
312 int ibcs2_gtty(struct thread *, struct ibcs2_gtty_args *);
313 int ibcs2_access(struct thread *, struct ibcs2_access_args *);
314 int ibcs2_nice(struct thread *, struct ibcs2_nice_args *);
315 int ibcs2_statfs(struct thread *, struct ibcs2_statfs_args *);
316 int ibcs2_kill(struct thread *, struct ibcs2_kill_args *);
317 int ibcs2_fstatfs(struct thread *, struct ibcs2_fstatfs_args *);
318 int ibcs2_pgrpsys(struct thread *, struct ibcs2_pgrpsys_args *);
319 int ibcs2_xenix(struct thread *, struct ibcs2_xenix_args *);
320 int ibcs2_times(struct thread *, struct ibcs2_times_args *);
321 int ibcs2_plock(struct thread *, struct ibcs2_plock_args *);
322 int ibcs2_setgid(struct thread *, struct ibcs2_setgid_args *);
323 int ibcs2_sigsys(struct thread *, struct ibcs2_sigsys_args *);
324 int ibcs2_msgsys(struct thread *, struct ibcs2_msgsys_args *);
325 int ibcs2_sysi86(struct thread *, struct ibcs2_sysi86_args *);
326 int ibcs2_shmsys(struct thread *, struct ibcs2_shmsys_args *);
327 int ibcs2_semsys(struct thread *, struct ibcs2_semsys_args *);
328 int ibcs2_ioctl(struct thread *, struct ibcs2_ioctl_args *);
329 int ibcs2_uadmin(struct thread *, struct ibcs2_uadmin_args *);
330 int ibcs2_utssys(struct thread *, struct ibcs2_utssys_args *);
331 int ibcs2_execve(struct thread *, struct ibcs2_execve_args *);
332 int ibcs2_fcntl(struct thread *, struct ibcs2_fcntl_args *);
333 int ibcs2_ulimit(struct thread *, struct ibcs2_ulimit_args *);
334 int ibcs2_rmdir(struct thread *, struct ibcs2_rmdir_args *);
335 int ibcs2_mkdir(struct thread *, struct ibcs2_mkdir_args *);
336 int ibcs2_getdents(struct thread *, struct ibcs2_getdents_args *);
337 int ibcs2_sysfs(struct thread *, struct ibcs2_sysfs_args *);
338 int ibcs2_getmsg(struct thread *, struct ibcs2_getmsg_args *);
339 int ibcs2_putmsg(struct thread *, struct ibcs2_putmsg_args *);
340 int ibcs2_poll(struct thread *, struct ibcs2_poll_args *);
341 int ibcs2_secure(struct thread *, struct ibcs2_secure_args *);
342 int ibcs2_symlink(struct thread *, struct ibcs2_symlink_args *);
343 int ibcs2_lstat(struct thread *, struct ibcs2_lstat_args *);
344 int ibcs2_readlink(struct thread *, struct ibcs2_readlink_args *);
345 int ibcs2_isc(struct thread *, struct ibcs2_isc_args *);
346
347 #ifdef COMPAT_43
348
349
350 #endif /* COMPAT_43 */
351
352
353 #ifdef COMPAT_FREEBSD4
354
355
356 #endif /* COMPAT_FREEBSD4 */
357
358 #undef PAD_
359 #undef PADL_
360 #undef PADR_
361
362 #endif /* !_IBCS2_SYSPROTO_H_ */
Cache object: 73c2683a690126ce92e971b51195c61d
|