This is a major cleanup of the LWKT message port code. The messaging code
[dragonfly.git] / sys / emulation / ibcs2 / i386 / ibcs2_proto.h
1 /*
2  * System call prototypes.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $DragonFly: src/sys/emulation/ibcs2/i386/Attic/ibcs2_proto.h,v 1.10 2003/11/20 06:05:29 dillon Exp $
6  * created from DragonFly: src/sys/emulation/ibcs2/i386/syscalls.master,v 1.3 2003/08/07 21:17:17 dillon Exp 
7  */
8
9 #ifndef _IBCS2_SYSPROTO_H_
10 #define _IBCS2_SYSPROTO_H_
11
12 #include <sys/signal.h>
13
14 #include <sys/acl.h>
15
16 #include <sys/msgport.h>
17
18 #include <sys/sysmsg.h>
19
20 #define PAD_(t) (sizeof(register_t) <= sizeof(t) ? \
21                 0 : sizeof(register_t) - sizeof(t))
22
23 struct  ibcs2_read_args {
24 #ifdef _KERNEL
25         struct sysmsg sysmsg;
26 #endif
27         union usrmsg usrmsg;
28         int     fd;     char fd_[PAD_(int)];
29         char *  buf;    char buf_[PAD_(char *)];
30         u_int   nbytes; char nbytes_[PAD_(u_int)];
31 };
32 struct  ibcs2_open_args {
33 #ifdef _KERNEL
34         struct sysmsg sysmsg;
35 #endif
36         union usrmsg usrmsg;
37         char *  path;   char path_[PAD_(char *)];
38         int     flags;  char flags_[PAD_(int)];
39         int     mode;   char mode_[PAD_(int)];
40 };
41 struct  ibcs2_wait_args {
42 #ifdef _KERNEL
43         struct sysmsg sysmsg;
44 #endif
45         union usrmsg usrmsg;
46         int     a1;     char a1_[PAD_(int)];
47         int     a2;     char a2_[PAD_(int)];
48         int     a3;     char a3_[PAD_(int)];
49 };
50 struct  ibcs2_creat_args {
51 #ifdef _KERNEL
52         struct sysmsg sysmsg;
53 #endif
54         union usrmsg usrmsg;
55         char *  path;   char path_[PAD_(char *)];
56         int     mode;   char mode_[PAD_(int)];
57 };
58 struct  ibcs2_unlink_args {
59 #ifdef _KERNEL
60         struct sysmsg sysmsg;
61 #endif
62         union usrmsg usrmsg;
63         char *  path;   char path_[PAD_(char *)];
64 };
65 struct  ibcs2_execv_args {
66 #ifdef _KERNEL
67         struct sysmsg sysmsg;
68 #endif
69         union usrmsg usrmsg;
70         char *  path;   char path_[PAD_(char *)];
71         char ** argp;   char argp_[PAD_(char **)];
72 };
73 struct  ibcs2_chdir_args {
74 #ifdef _KERNEL
75         struct sysmsg sysmsg;
76 #endif
77         union usrmsg usrmsg;
78         char *  path;   char path_[PAD_(char *)];
79 };
80 struct  ibcs2_time_args {
81 #ifdef _KERNEL
82         struct sysmsg sysmsg;
83 #endif
84         union usrmsg usrmsg;
85         ibcs2_time_t *  tp;     char tp_[PAD_(ibcs2_time_t *)];
86 };
87 struct  ibcs2_mknod_args {
88 #ifdef _KERNEL
89         struct sysmsg sysmsg;
90 #endif
91         union usrmsg usrmsg;
92         char *  path;   char path_[PAD_(char *)];
93         int     mode;   char mode_[PAD_(int)];
94         int     dev;    char dev_[PAD_(int)];
95 };
96 struct  ibcs2_chmod_args {
97 #ifdef _KERNEL
98         struct sysmsg sysmsg;
99 #endif
100         union usrmsg usrmsg;
101         char *  path;   char path_[PAD_(char *)];
102         int     mode;   char mode_[PAD_(int)];
103 };
104 struct  ibcs2_chown_args {
105 #ifdef _KERNEL
106         struct sysmsg sysmsg;
107 #endif
108         union usrmsg usrmsg;
109         char *  path;   char path_[PAD_(char *)];
110         int     uid;    char uid_[PAD_(int)];
111         int     gid;    char gid_[PAD_(int)];
112 };
113 struct  ibcs2_stat_args {
114 #ifdef _KERNEL
115         struct sysmsg sysmsg;
116 #endif
117         union usrmsg usrmsg;
118         char *  path;   char path_[PAD_(char *)];
119         struct ibcs2_stat *     st;     char st_[PAD_(struct ibcs2_stat *)];
120 };
121 struct  ibcs2_lseek_args {
122 #ifdef _KERNEL
123         struct sysmsg sysmsg;
124 #endif
125         union usrmsg usrmsg;
126         int     fd;     char fd_[PAD_(int)];
127         long    offset; char offset_[PAD_(long)];
128         int     whence; char whence_[PAD_(int)];
129 };
130 struct  ibcs2_mount_args {
131 #ifdef _KERNEL
132         struct sysmsg sysmsg;
133 #endif
134         union usrmsg usrmsg;
135         char *  special;        char special_[PAD_(char *)];
136         char *  dir;    char dir_[PAD_(char *)];
137         int     flags;  char flags_[PAD_(int)];
138         int     fstype; char fstype_[PAD_(int)];
139         char *  data;   char data_[PAD_(char *)];
140         int     len;    char len_[PAD_(int)];
141 };
142 struct  ibcs2_umount_args {
143 #ifdef _KERNEL
144         struct sysmsg sysmsg;
145 #endif
146         union usrmsg usrmsg;
147         char *  name;   char name_[PAD_(char *)];
148 };
149 struct  ibcs2_setuid_args {
150 #ifdef _KERNEL
151         struct sysmsg sysmsg;
152 #endif
153         union usrmsg usrmsg;
154         int     uid;    char uid_[PAD_(int)];
155 };
156 struct  ibcs2_stime_args {
157 #ifdef _KERNEL
158         struct sysmsg sysmsg;
159 #endif
160         union usrmsg usrmsg;
161         long *  timep;  char timep_[PAD_(long *)];
162 };
163 struct  ibcs2_alarm_args {
164 #ifdef _KERNEL
165         struct sysmsg sysmsg;
166 #endif
167         union usrmsg usrmsg;
168         unsigned        sec;    char sec_[PAD_(unsigned)];
169 };
170 struct  ibcs2_fstat_args {
171 #ifdef _KERNEL
172         struct sysmsg sysmsg;
173 #endif
174         union usrmsg usrmsg;
175         int     fd;     char fd_[PAD_(int)];
176         struct ibcs2_stat *     st;     char st_[PAD_(struct ibcs2_stat *)];
177 };
178 struct  ibcs2_pause_args {
179 #ifdef _KERNEL
180         struct sysmsg sysmsg;
181 #endif
182         union usrmsg usrmsg;
183         register_t dummy;
184 };
185 struct  ibcs2_utime_args {
186 #ifdef _KERNEL
187         struct sysmsg sysmsg;
188 #endif
189         union usrmsg usrmsg;
190         char *  path;   char path_[PAD_(char *)];
191         struct ibcs2_utimbuf *  buf;    char buf_[PAD_(struct ibcs2_utimbuf *)];
192 };
193 struct  ibcs2_stty_args {
194 #ifdef _KERNEL
195         struct sysmsg sysmsg;
196 #endif
197         union usrmsg usrmsg;
198         int     fd;     char fd_[PAD_(int)];
199         struct sgttyb * buf;    char buf_[PAD_(struct sgttyb *)];
200 };
201 struct  ibcs2_gtty_args {
202 #ifdef _KERNEL
203         struct sysmsg sysmsg;
204 #endif
205         union usrmsg usrmsg;
206         int     fd;     char fd_[PAD_(int)];
207         struct sgttyb * buf;    char buf_[PAD_(struct sgttyb *)];
208 };
209 struct  ibcs2_access_args {
210 #ifdef _KERNEL
211         struct sysmsg sysmsg;
212 #endif
213         union usrmsg usrmsg;
214         char *  path;   char path_[PAD_(char *)];
215         int     flags;  char flags_[PAD_(int)];
216 };
217 struct  ibcs2_nice_args {
218 #ifdef _KERNEL
219         struct sysmsg sysmsg;
220 #endif
221         union usrmsg usrmsg;
222         int     incr;   char incr_[PAD_(int)];
223 };
224 struct  ibcs2_statfs_args {
225 #ifdef _KERNEL
226         struct sysmsg sysmsg;
227 #endif
228         union usrmsg usrmsg;
229         char *  path;   char path_[PAD_(char *)];
230         struct ibcs2_statfs *   buf;    char buf_[PAD_(struct ibcs2_statfs *)];
231         int     len;    char len_[PAD_(int)];
232         int     fstype; char fstype_[PAD_(int)];
233 };
234 struct  ibcs2_kill_args {
235 #ifdef _KERNEL
236         struct sysmsg sysmsg;
237 #endif
238         union usrmsg usrmsg;
239         int     pid;    char pid_[PAD_(int)];
240         int     signo;  char signo_[PAD_(int)];
241 };
242 struct  ibcs2_fstatfs_args {
243 #ifdef _KERNEL
244         struct sysmsg sysmsg;
245 #endif
246         union usrmsg usrmsg;
247         int     fd;     char fd_[PAD_(int)];
248         struct ibcs2_statfs *   buf;    char buf_[PAD_(struct ibcs2_statfs *)];
249         int     len;    char len_[PAD_(int)];
250         int     fstype; char fstype_[PAD_(int)];
251 };
252 struct  ibcs2_pgrpsys_args {
253 #ifdef _KERNEL
254         struct sysmsg sysmsg;
255 #endif
256         union usrmsg usrmsg;
257         int     type;   char type_[PAD_(int)];
258         caddr_t dummy;  char dummy_[PAD_(caddr_t)];
259         int     pid;    char pid_[PAD_(int)];
260         int     pgid;   char pgid_[PAD_(int)];
261 };
262 struct  ibcs2_xenix_args {
263 #ifdef _KERNEL
264         struct sysmsg sysmsg;
265 #endif
266         union usrmsg usrmsg;
267         int     a1;     char a1_[PAD_(int)];
268         int     a2;     char a2_[PAD_(int)];
269         int     a3;     char a3_[PAD_(int)];
270         int     a4;     char a4_[PAD_(int)];
271         int     a5;     char a5_[PAD_(int)];
272 };
273 struct  ibcs2_times_args {
274 #ifdef _KERNEL
275         struct sysmsg sysmsg;
276 #endif
277         union usrmsg usrmsg;
278         struct tms *    tp;     char tp_[PAD_(struct tms *)];
279 };
280 struct  ibcs2_plock_args {
281 #ifdef _KERNEL
282         struct sysmsg sysmsg;
283 #endif
284         union usrmsg usrmsg;
285         int     cmd;    char cmd_[PAD_(int)];
286 };
287 struct  ibcs2_setgid_args {
288 #ifdef _KERNEL
289         struct sysmsg sysmsg;
290 #endif
291         union usrmsg usrmsg;
292         int     gid;    char gid_[PAD_(int)];
293 };
294 struct  ibcs2_sigsys_args {
295 #ifdef _KERNEL
296         struct sysmsg sysmsg;
297 #endif
298         union usrmsg usrmsg;
299         int     sig;    char sig_[PAD_(int)];
300         ibcs2_sig_t     fp;     char fp_[PAD_(ibcs2_sig_t)];
301 };
302 struct  ibcs2_msgsys_args {
303 #ifdef _KERNEL
304         struct sysmsg sysmsg;
305 #endif
306         union usrmsg usrmsg;
307         int     which;  char which_[PAD_(int)];
308         int     a2;     char a2_[PAD_(int)];
309         int     a3;     char a3_[PAD_(int)];
310         int     a4;     char a4_[PAD_(int)];
311         int     a5;     char a5_[PAD_(int)];
312         int     a6;     char a6_[PAD_(int)];
313 };
314 struct  ibcs2_sysi86_args {
315 #ifdef _KERNEL
316         struct sysmsg sysmsg;
317 #endif
318         union usrmsg usrmsg;
319         int     cmd;    char cmd_[PAD_(int)];
320         int *   arg;    char arg_[PAD_(int *)];
321 };
322 struct  ibcs2_shmsys_args {
323 #ifdef _KERNEL
324         struct sysmsg sysmsg;
325 #endif
326         union usrmsg usrmsg;
327         int     which;  char which_[PAD_(int)];
328         int     a2;     char a2_[PAD_(int)];
329         int     a3;     char a3_[PAD_(int)];
330         int     a4;     char a4_[PAD_(int)];
331 };
332 struct  ibcs2_semsys_args {
333 #ifdef _KERNEL
334         struct sysmsg sysmsg;
335 #endif
336         union usrmsg usrmsg;
337         int     which;  char which_[PAD_(int)];
338         int     a2;     char a2_[PAD_(int)];
339         int     a3;     char a3_[PAD_(int)];
340         int     a4;     char a4_[PAD_(int)];
341         int     a5;     char a5_[PAD_(int)];
342 };
343 struct  ibcs2_ioctl_args {
344 #ifdef _KERNEL
345         struct sysmsg sysmsg;
346 #endif
347         union usrmsg usrmsg;
348         int     fd;     char fd_[PAD_(int)];
349         int     cmd;    char cmd_[PAD_(int)];
350         caddr_t data;   char data_[PAD_(caddr_t)];
351 };
352 struct  ibcs2_uadmin_args {
353 #ifdef _KERNEL
354         struct sysmsg sysmsg;
355 #endif
356         union usrmsg usrmsg;
357         int     cmd;    char cmd_[PAD_(int)];
358         int     func;   char func_[PAD_(int)];
359         caddr_t data;   char data_[PAD_(caddr_t)];
360 };
361 struct  ibcs2_utssys_args {
362 #ifdef _KERNEL
363         struct sysmsg sysmsg;
364 #endif
365         union usrmsg usrmsg;
366         int     a1;     char a1_[PAD_(int)];
367         int     a2;     char a2_[PAD_(int)];
368         int     flag;   char flag_[PAD_(int)];
369 };
370 struct  ibcs2_execve_args {
371 #ifdef _KERNEL
372         struct sysmsg sysmsg;
373 #endif
374         union usrmsg usrmsg;
375         char *  path;   char path_[PAD_(char *)];
376         char ** argp;   char argp_[PAD_(char **)];
377         char ** envp;   char envp_[PAD_(char **)];
378 };
379 struct  ibcs2_fcntl_args {
380 #ifdef _KERNEL
381         struct sysmsg sysmsg;
382 #endif
383         union usrmsg usrmsg;
384         int     fd;     char fd_[PAD_(int)];
385         int     cmd;    char cmd_[PAD_(int)];
386         char *  arg;    char arg_[PAD_(char *)];
387 };
388 struct  ibcs2_ulimit_args {
389 #ifdef _KERNEL
390         struct sysmsg sysmsg;
391 #endif
392         union usrmsg usrmsg;
393         int     cmd;    char cmd_[PAD_(int)];
394         int     newlimit;       char newlimit_[PAD_(int)];
395 };
396 struct  ibcs2_rmdir_args {
397 #ifdef _KERNEL
398         struct sysmsg sysmsg;
399 #endif
400         union usrmsg usrmsg;
401         char *  path;   char path_[PAD_(char *)];
402 };
403 struct  ibcs2_mkdir_args {
404 #ifdef _KERNEL
405         struct sysmsg sysmsg;
406 #endif
407         union usrmsg usrmsg;
408         char *  path;   char path_[PAD_(char *)];
409         int     mode;   char mode_[PAD_(int)];
410 };
411 struct  ibcs2_getdents_args {
412 #ifdef _KERNEL
413         struct sysmsg sysmsg;
414 #endif
415         union usrmsg usrmsg;
416         int     fd;     char fd_[PAD_(int)];
417         char *  buf;    char buf_[PAD_(char *)];
418         int     nbytes; char nbytes_[PAD_(int)];
419 };
420 struct  ibcs2_sysfs_args {
421 #ifdef _KERNEL
422         struct sysmsg sysmsg;
423 #endif
424         union usrmsg usrmsg;
425         int     cmd;    char cmd_[PAD_(int)];
426         caddr_t d1;     char d1_[PAD_(caddr_t)];
427         char *  buf;    char buf_[PAD_(char *)];
428 };
429 struct  ibcs2_getmsg_args {
430 #ifdef _KERNEL
431         struct sysmsg sysmsg;
432 #endif
433         union usrmsg usrmsg;
434         int     fd;     char fd_[PAD_(int)];
435         struct ibcs2_stropts *  ctl;    char ctl_[PAD_(struct ibcs2_stropts *)];
436         struct ibcs2_stropts *  dat;    char dat_[PAD_(struct ibcs2_stropts *)];
437         int *   flags;  char flags_[PAD_(int *)];
438 };
439 struct  ibcs2_putmsg_args {
440 #ifdef _KERNEL
441         struct sysmsg sysmsg;
442 #endif
443         union usrmsg usrmsg;
444         int     fd;     char fd_[PAD_(int)];
445         struct ibcs2_stropts *  ctl;    char ctl_[PAD_(struct ibcs2_stropts *)];
446         struct ibcs2_stropts *  dat;    char dat_[PAD_(struct ibcs2_stropts *)];
447         int     flags;  char flags_[PAD_(int)];
448 };
449 struct  ibcs2_poll_args {
450 #ifdef _KERNEL
451         struct sysmsg sysmsg;
452 #endif
453         union usrmsg usrmsg;
454         struct ibcs2_poll *     fds;    char fds_[PAD_(struct ibcs2_poll *)];
455         long    nfds;   char nfds_[PAD_(long)];
456         int     timeout;        char timeout_[PAD_(int)];
457 };
458 struct  ibcs2_secure_args {
459 #ifdef _KERNEL
460         struct sysmsg sysmsg;
461 #endif
462         union usrmsg usrmsg;
463         int     cmd;    char cmd_[PAD_(int)];
464         int     a1;     char a1_[PAD_(int)];
465         int     a2;     char a2_[PAD_(int)];
466         int     a3;     char a3_[PAD_(int)];
467         int     a4;     char a4_[PAD_(int)];
468         int     a5;     char a5_[PAD_(int)];
469 };
470 struct  ibcs2_symlink_args {
471 #ifdef _KERNEL
472         struct sysmsg sysmsg;
473 #endif
474         union usrmsg usrmsg;
475         char *  path;   char path_[PAD_(char *)];
476         char *  link;   char link_[PAD_(char *)];
477 };
478 struct  ibcs2_lstat_args {
479 #ifdef _KERNEL
480         struct sysmsg sysmsg;
481 #endif
482         union usrmsg usrmsg;
483         char *  path;   char path_[PAD_(char *)];
484         struct ibcs2_stat *     st;     char st_[PAD_(struct ibcs2_stat *)];
485 };
486 struct  ibcs2_readlink_args {
487 #ifdef _KERNEL
488         struct sysmsg sysmsg;
489 #endif
490         union usrmsg usrmsg;
491         char *  path;   char path_[PAD_(char *)];
492         char *  buf;    char buf_[PAD_(char *)];
493         int     count;  char count_[PAD_(int)];
494 };
495 struct  ibcs2_isc_args {
496 #ifdef _KERNEL
497         struct sysmsg sysmsg;
498 #endif
499         union usrmsg usrmsg;
500         register_t dummy;
501 };
502
503 #ifdef _KERNEL
504
505 int     ibcs2_read (struct ibcs2_read_args *);
506 int     ibcs2_open (struct ibcs2_open_args *);
507 int     ibcs2_wait (struct ibcs2_wait_args *);
508 int     ibcs2_creat (struct ibcs2_creat_args *);
509 int     ibcs2_unlink (struct ibcs2_unlink_args *);
510 int     ibcs2_execv (struct ibcs2_execv_args *);
511 int     ibcs2_chdir (struct ibcs2_chdir_args *);
512 int     ibcs2_time (struct ibcs2_time_args *);
513 int     ibcs2_mknod (struct ibcs2_mknod_args *);
514 int     ibcs2_chmod (struct ibcs2_chmod_args *);
515 int     ibcs2_chown (struct ibcs2_chown_args *);
516 int     ibcs2_stat (struct ibcs2_stat_args *);
517 int     ibcs2_lseek (struct ibcs2_lseek_args *);
518 int     ibcs2_mount (struct ibcs2_mount_args *);
519 int     ibcs2_umount (struct ibcs2_umount_args *);
520 int     ibcs2_setuid (struct ibcs2_setuid_args *);
521 int     ibcs2_stime (struct ibcs2_stime_args *);
522 int     ibcs2_alarm (struct ibcs2_alarm_args *);
523 int     ibcs2_fstat (struct ibcs2_fstat_args *);
524 int     ibcs2_pause (struct ibcs2_pause_args *);
525 int     ibcs2_utime (struct ibcs2_utime_args *);
526 int     ibcs2_stty (struct ibcs2_stty_args *);
527 int     ibcs2_gtty (struct ibcs2_gtty_args *);
528 int     ibcs2_access (struct ibcs2_access_args *);
529 int     ibcs2_nice (struct ibcs2_nice_args *);
530 int     ibcs2_statfs (struct ibcs2_statfs_args *);
531 int     ibcs2_kill (struct ibcs2_kill_args *);
532 int     ibcs2_fstatfs (struct ibcs2_fstatfs_args *);
533 int     ibcs2_pgrpsys (struct ibcs2_pgrpsys_args *);
534 int     ibcs2_xenix (struct ibcs2_xenix_args *);
535 int     ibcs2_times (struct ibcs2_times_args *);
536 int     ibcs2_plock (struct ibcs2_plock_args *);
537 int     ibcs2_setgid (struct ibcs2_setgid_args *);
538 int     ibcs2_sigsys (struct ibcs2_sigsys_args *);
539 int     ibcs2_msgsys (struct ibcs2_msgsys_args *);
540 int     ibcs2_sysi86 (struct ibcs2_sysi86_args *);
541 int     ibcs2_shmsys (struct ibcs2_shmsys_args *);
542 int     ibcs2_semsys (struct ibcs2_semsys_args *);
543 int     ibcs2_ioctl (struct ibcs2_ioctl_args *);
544 int     ibcs2_uadmin (struct ibcs2_uadmin_args *);
545 int     ibcs2_utssys (struct ibcs2_utssys_args *);
546 int     ibcs2_execve (struct ibcs2_execve_args *);
547 int     ibcs2_fcntl (struct ibcs2_fcntl_args *);
548 int     ibcs2_ulimit (struct ibcs2_ulimit_args *);
549 int     ibcs2_rmdir (struct ibcs2_rmdir_args *);
550 int     ibcs2_mkdir (struct ibcs2_mkdir_args *);
551 int     ibcs2_getdents (struct ibcs2_getdents_args *);
552 int     ibcs2_sysfs (struct ibcs2_sysfs_args *);
553 int     ibcs2_getmsg (struct ibcs2_getmsg_args *);
554 int     ibcs2_putmsg (struct ibcs2_putmsg_args *);
555 int     ibcs2_poll (struct ibcs2_poll_args *);
556 int     ibcs2_secure (struct ibcs2_secure_args *);
557 int     ibcs2_symlink (struct ibcs2_symlink_args *);
558 int     ibcs2_lstat (struct ibcs2_lstat_args *);
559 int     ibcs2_readlink (struct ibcs2_readlink_args *);
560 int     ibcs2_isc (struct ibcs2_isc_args *);
561
562 #endif /* _KERNEL */
563
564 #ifdef COMPAT_43
565
566
567 #ifdef _KERNEL
568
569
570 #endif /* _KERNEL */
571
572 #endif /* COMPAT_43 */
573
574 #undef PAD_
575
576 #endif /* !_IBCS2_SYSPROTO_H_ */