linux32_syscallargs.h revision 1.21 1 /* $NetBSD: linux32_syscallargs.h,v 1.21 2007/11/07 00:25:39 njoly Exp $ */
2
3 /*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.19 2007/11/07 00:24:30 njoly Exp
8 */
9
10 #ifndef _LINUX32_SYS_SYSCALLARGS_H_
11 #define _LINUX32_SYS_SYSCALLARGS_H_
12
13 #ifdef syscallarg
14 #undef syscallarg
15 #endif
16
17 #define syscallarg(x) \
18 union { \
19 register32_t pad; \
20 struct { x datum; } le; \
21 struct { /* LINTED zero array dimension */ \
22 int8_t pad[ /* CONSTCOND */ \
23 (sizeof (register32_t) < sizeof (x)) \
24 ? 0 \
25 : sizeof (register32_t) - sizeof (x)]; \
26 x datum; \
27 } be; \
28 }
29
30 struct linux32_sys_open_args {
31 syscallarg(const netbsd32_charp) path;
32 syscallarg(int) flags;
33 syscallarg(int) mode;
34 };
35
36 struct linux32_sys_waitpid_args {
37 syscallarg(int) pid;
38 syscallarg(netbsd32_intp) status;
39 syscallarg(int) options;
40 };
41
42 struct linux32_sys_creat_args {
43 syscallarg(const netbsd32_charp) path;
44 syscallarg(int) mode;
45 };
46
47 struct linux32_sys_unlink_args {
48 syscallarg(const netbsd32_charp) path;
49 };
50
51 struct linux32_sys_time_args {
52 syscallarg(linux32_timep_t) t;
53 };
54
55 struct linux32_sys_mknod_args {
56 syscallarg(const netbsd32_charp) path;
57 syscallarg(int) mode;
58 syscallarg(int) dev;
59 };
60
61 struct linux32_sys_lchown16_args {
62 syscallarg(const netbsd32_charp) path;
63 syscallarg(int) uid;
64 syscallarg(int) gid;
65 };
66
67 struct linux32_sys_break_args {
68 syscallarg(netbsd32_charp) nsize;
69 };
70
71 struct linux32_sys_stime_args {
72 syscallarg(linux32_timep_t) t;
73 };
74
75 struct linux32_sys_alarm_args {
76 syscallarg(unsigned int) secs;
77 };
78
79 struct linux32_sys_utime_args {
80 syscallarg(const netbsd32_charp) path;
81 syscallarg(linux32_utimbufp_t) times;
82 };
83
84 struct linux32_sys_nice_args {
85 syscallarg(int) incr;
86 };
87
88 struct linux32_sys_kill_args {
89 syscallarg(int) pid;
90 syscallarg(int) signum;
91 };
92
93 struct linux32_sys_rename_args {
94 syscallarg(const netbsd32_charp) from;
95 syscallarg(const netbsd32_charp) to;
96 };
97
98 struct linux32_sys_pipe_args {
99 syscallarg(netbsd32_intp) fd;
100 };
101
102 struct linux32_sys_times_args {
103 syscallarg(linux32_tmsp_t) tms;
104 };
105
106 struct linux32_sys_brk_args {
107 syscallarg(netbsd32_charp) nsize;
108 };
109
110 struct linux32_sys_signal_args {
111 syscallarg(int) signum;
112 syscallarg(linux32_handler_t) handler;
113 };
114
115 struct linux32_sys_ioctl_args {
116 syscallarg(int) fd;
117 syscallarg(netbsd32_u_long) com;
118 syscallarg(netbsd32_charp) data;
119 };
120
121 struct linux32_sys_fcntl_args {
122 syscallarg(int) fd;
123 syscallarg(int) cmd;
124 syscallarg(netbsd32_voidp) arg;
125 };
126
127 struct linux32_sys_oldolduname_args {
128 syscallarg(linux32_oldold_utsnamep_t) up;
129 };
130
131 struct linux32_sys_setreuid16_args {
132 syscallarg(int) ruid;
133 syscallarg(int) euid;
134 };
135
136 struct linux32_sys_setregid16_args {
137 syscallarg(int) rgid;
138 syscallarg(int) egid;
139 };
140
141 struct linux32_sys_setrlimit_args {
142 syscallarg(u_int) which;
143 syscallarg(netbsd32_orlimitp_t) rlp;
144 };
145
146 struct linux32_sys_getrlimit_args {
147 syscallarg(u_int) which;
148 syscallarg(netbsd32_orlimitp_t) rlp;
149 };
150
151 struct linux32_sys_gettimeofday_args {
152 syscallarg(netbsd32_timevalp_t) tp;
153 syscallarg(netbsd32_timezonep_t) tzp;
154 };
155
156 struct linux32_sys_settimeofday_args {
157 syscallarg(netbsd32_timevalp_t) tp;
158 syscallarg(netbsd32_timezonep_t) tzp;
159 };
160
161 struct linux32_sys_getgroups16_args {
162 syscallarg(int) gidsetsize;
163 syscallarg(linux32_gidp_t) gidset;
164 };
165
166 struct linux32_sys_setgroups16_args {
167 syscallarg(int) gidsetsize;
168 syscallarg(linux32_gidp_t) gidset;
169 };
170
171 struct linux32_sys_oldselect_args {
172 syscallarg(linux32_oldselectp_t) lsp;
173 };
174
175 struct linux32_sys_readlink_args {
176 syscallarg(const netbsd32_charp) name;
177 syscallarg(netbsd32_charp) buf;
178 syscallarg(int) count;
179 };
180
181 struct linux32_sys_swapon_args {
182 syscallarg(netbsd32_charp) name;
183 };
184
185 struct linux32_sys_reboot_args {
186 syscallarg(int) magic1;
187 syscallarg(int) magic2;
188 syscallarg(int) cmd;
189 syscallarg(netbsd32_voidp) arg;
190 };
191
192 struct linux32_sys_old_mmap_args {
193 syscallarg(linux32_oldmmapp) lmp;
194 };
195
196 struct linux32_sys_truncate_args {
197 syscallarg(const netbsd32_charp) path;
198 syscallarg(netbsd32_long) length;
199 };
200
201 struct linux32_sys_fchown16_args {
202 syscallarg(int) fd;
203 syscallarg(int) uid;
204 syscallarg(int) gid;
205 };
206
207 struct linux32_sys_getpriority_args {
208 syscallarg(int) which;
209 syscallarg(int) who;
210 };
211
212 struct linux32_sys_setpriority_args {
213 syscallarg(int) which;
214 syscallarg(int) who;
215 syscallarg(int) prio;
216 };
217
218 struct linux32_sys_statfs_args {
219 syscallarg(const netbsd32_charp) path;
220 syscallarg(linux32_statfsp) sp;
221 };
222
223 struct linux32_sys_socketcall_args {
224 syscallarg(int) what;
225 syscallarg(netbsd32_voidp) args;
226 };
227
228 struct linux32_sys_wait4_args {
229 syscallarg(int) pid;
230 syscallarg(netbsd32_intp) status;
231 syscallarg(int) options;
232 syscallarg(netbsd32_rusagep_t) rusage;
233 };
234
235 struct linux32_sys_swapoff_args {
236 syscallarg(const netbsd32_charp) path;
237 };
238
239 struct linux32_sys_sysinfo_args {
240 syscallarg(linux32_sysinfop_t) arg;
241 };
242
243 struct linux32_sys_sigreturn_args {
244 syscallarg(linux32_sigcontextp_t) scp;
245 };
246
247 struct linux32_sys_clone_args {
248 syscallarg(int) flags;
249 syscallarg(netbsd32_voidp) stack;
250 };
251
252 struct linux32_sys_uname_args {
253 syscallarg(linux32_utsnamep) up;
254 };
255
256 struct linux32_sys_mprotect_args {
257 syscallarg(netbsd32_voidp) addr;
258 syscallarg(netbsd32_size_t) len;
259 syscallarg(int) prot;
260 };
261
262 struct linux32_sys_llseek_args {
263 syscallarg(int) fd;
264 syscallarg(u_int32_t) ohigh;
265 syscallarg(u_int32_t) olow;
266 syscallarg(netbsd32_caddr_t) res;
267 syscallarg(int) whence;
268 };
269
270 struct linux32_sys_getdents_args {
271 syscallarg(int) fd;
272 syscallarg(linux32_direntp_t) dent;
273 syscallarg(unsigned int) count;
274 };
275
276 struct linux32_sys_select_args {
277 syscallarg(int) nfds;
278 syscallarg(netbsd32_fd_setp_t) readfds;
279 syscallarg(netbsd32_fd_setp_t) writefds;
280 syscallarg(netbsd32_fd_setp_t) exceptfds;
281 syscallarg(netbsd32_timevalp_t) timeout;
282 };
283
284 struct linux32_sys_fdatasync_args {
285 syscallarg(int) fd;
286 };
287
288 struct linux32_sys___sysctl_args {
289 syscallarg(linux32___sysctlp_t) lsp;
290 };
291
292 struct linux32_sys_sched_getparam_args {
293 syscallarg(pid_t) pid;
294 syscallarg(linux32_sched_paramp_t) sp;
295 };
296
297 struct linux32_sys_sched_setscheduler_args {
298 syscallarg(pid_t) pid;
299 syscallarg(int) policy;
300 syscallarg(const linux32_sched_paramp_t) sp;
301 };
302
303 struct linux32_sys_sched_getscheduler_args {
304 syscallarg(pid_t) pid;
305 };
306
307 struct linux32_sys_mremap_args {
308 syscallarg(netbsd32_voidp) old_address;
309 syscallarg(netbsd32_size_t) old_size;
310 syscallarg(netbsd32_size_t) new_size;
311 syscallarg(netbsd32_u_long) flags;
312 };
313
314 struct linux32_sys_setresuid16_args {
315 syscallarg(uid_t) ruid;
316 syscallarg(uid_t) euid;
317 syscallarg(uid_t) suid;
318 };
319
320 struct linux32_sys_setresgid16_args {
321 syscallarg(gid_t) rgid;
322 syscallarg(gid_t) egid;
323 syscallarg(gid_t) sgid;
324 };
325
326 struct linux32_sys_rt_sigreturn_args {
327 syscallarg(linux32_ucontextp_t) ucp;
328 };
329
330 struct linux32_sys_rt_sigaction_args {
331 syscallarg(int) signum;
332 syscallarg(const linux32_sigactionp_t) nsa;
333 syscallarg(linux32_sigactionp_t) osa;
334 syscallarg(netbsd32_size_t) sigsetsize;
335 };
336
337 struct linux32_sys_rt_sigprocmask_args {
338 syscallarg(int) how;
339 syscallarg(const linux32_sigsetp_t) set;
340 syscallarg(linux32_sigsetp_t) oset;
341 syscallarg(netbsd32_size_t) sigsetsize;
342 };
343
344 struct linux32_sys_rt_sigsuspend_args {
345 syscallarg(linux32_sigsetp_t) unewset;
346 syscallarg(netbsd32_size_t) sigsetsize;
347 };
348
349 struct linux32_sys_chown16_args {
350 syscallarg(const netbsd32_charp) path;
351 syscallarg(int) uid;
352 syscallarg(int) gid;
353 };
354
355 struct linux32_sys_ugetrlimit_args {
356 syscallarg(int) which;
357 syscallarg(netbsd32_orlimitp_t) rlp;
358 };
359
360 struct linux32_sys_mmap2_args {
361 syscallarg(netbsd32_u_long) addr;
362 syscallarg(netbsd32_size_t) len;
363 syscallarg(int) prot;
364 syscallarg(int) flags;
365 syscallarg(int) fd;
366 syscallarg(linux32_off_t) offset;
367 };
368
369 struct linux32_sys_stat64_args {
370 syscallarg(const netbsd32_charp) path;
371 syscallarg(linux32_stat64p) sp;
372 };
373
374 struct linux32_sys_lstat64_args {
375 syscallarg(const netbsd32_charp) path;
376 syscallarg(linux32_stat64p) sp;
377 };
378
379 struct linux32_sys_fstat64_args {
380 syscallarg(int) fd;
381 syscallarg(linux32_stat64p) sp;
382 };
383
384 struct linux32_sys_setresuid_args {
385 syscallarg(uid_t) ruid;
386 syscallarg(uid_t) euid;
387 syscallarg(uid_t) suid;
388 };
389
390 struct linux32_sys_setresgid_args {
391 syscallarg(gid_t) rgid;
392 syscallarg(gid_t) egid;
393 syscallarg(gid_t) sgid;
394 };
395
396 struct linux32_sys_setfsuid_args {
397 syscallarg(uid_t) uid;
398 };
399
400 struct linux32_sys_getdents64_args {
401 syscallarg(int) fd;
402 syscallarg(linux32_dirent64p_t) dent;
403 syscallarg(unsigned int) count;
404 };
405
406 struct linux32_sys_fcntl64_args {
407 syscallarg(int) fd;
408 syscallarg(int) cmd;
409 syscallarg(netbsd32_voidp) arg;
410 };
411
412 struct linux32_sys_exit_group_args {
413 syscallarg(int) error_code;
414 };
415
416 /*
417 * System call prototypes.
418 */
419
420 int linux_sys_nosys(struct lwp *, void *, register_t *);
421
422 int netbsd32_exit(struct lwp *, void *, register_t *);
423
424 int sys_fork(struct lwp *, void *, register_t *);
425
426 int netbsd32_read(struct lwp *, void *, register_t *);
427
428 int netbsd32_write(struct lwp *, void *, register_t *);
429
430 int linux32_sys_open(struct lwp *, void *, register_t *);
431
432 int netbsd32_close(struct lwp *, void *, register_t *);
433
434 int linux32_sys_waitpid(struct lwp *, void *, register_t *);
435
436 int linux32_sys_creat(struct lwp *, void *, register_t *);
437
438 int netbsd32_link(struct lwp *, void *, register_t *);
439
440 int linux32_sys_unlink(struct lwp *, void *, register_t *);
441
442 int netbsd32_execve(struct lwp *, void *, register_t *);
443
444 int netbsd32_chdir(struct lwp *, void *, register_t *);
445
446 int linux32_sys_time(struct lwp *, void *, register_t *);
447
448 int linux32_sys_mknod(struct lwp *, void *, register_t *);
449
450 int netbsd32_chmod(struct lwp *, void *, register_t *);
451
452 int linux32_sys_lchown16(struct lwp *, void *, register_t *);
453
454 int linux32_sys_break(struct lwp *, void *, register_t *);
455
456 int compat_43_netbsd32_olseek(struct lwp *, void *, register_t *);
457
458 int linux_sys_getpid(struct lwp *, void *, register_t *);
459
460 int netbsd32_setuid(struct lwp *, void *, register_t *);
461
462 int sys_getuid(struct lwp *, void *, register_t *);
463
464 int linux32_sys_stime(struct lwp *, void *, register_t *);
465
466 int linux32_sys_alarm(struct lwp *, void *, register_t *);
467
468 int linux_sys_pause(struct lwp *, void *, register_t *);
469
470 int linux32_sys_utime(struct lwp *, void *, register_t *);
471
472 int netbsd32_access(struct lwp *, void *, register_t *);
473
474 int linux32_sys_nice(struct lwp *, void *, register_t *);
475
476 int sys_sync(struct lwp *, void *, register_t *);
477
478 int linux32_sys_kill(struct lwp *, void *, register_t *);
479
480 int linux32_sys_rename(struct lwp *, void *, register_t *);
481
482 int netbsd32_mkdir(struct lwp *, void *, register_t *);
483
484 int netbsd32_rmdir(struct lwp *, void *, register_t *);
485
486 int netbsd32_dup(struct lwp *, void *, register_t *);
487
488 int linux32_sys_pipe(struct lwp *, void *, register_t *);
489
490 int linux32_sys_times(struct lwp *, void *, register_t *);
491
492 int linux32_sys_brk(struct lwp *, void *, register_t *);
493
494 int netbsd32_setgid(struct lwp *, void *, register_t *);
495
496 int sys_getgid(struct lwp *, void *, register_t *);
497
498 int linux32_sys_signal(struct lwp *, void *, register_t *);
499
500 int sys_geteuid(struct lwp *, void *, register_t *);
501
502 int sys_getegid(struct lwp *, void *, register_t *);
503
504 int netbsd32_acct(struct lwp *, void *, register_t *);
505
506 int linux32_sys_ioctl(struct lwp *, void *, register_t *);
507
508 int linux32_sys_fcntl(struct lwp *, void *, register_t *);
509
510 int netbsd32_setpgid(struct lwp *, void *, register_t *);
511
512 int linux32_sys_oldolduname(struct lwp *, void *, register_t *);
513
514 int netbsd32_umask(struct lwp *, void *, register_t *);
515
516 int netbsd32_chroot(struct lwp *, void *, register_t *);
517
518 int netbsd32_dup2(struct lwp *, void *, register_t *);
519
520 int linux_sys_getppid(struct lwp *, void *, register_t *);
521
522 int sys_getpgrp(struct lwp *, void *, register_t *);
523
524 int sys_setsid(struct lwp *, void *, register_t *);
525
526 int linux32_sys_setreuid16(struct lwp *, void *, register_t *);
527
528 int linux32_sys_setregid16(struct lwp *, void *, register_t *);
529
530 int compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *);
531
532 int linux32_sys_setrlimit(struct lwp *, void *, register_t *);
533
534 int linux32_sys_getrlimit(struct lwp *, void *, register_t *);
535
536 int netbsd32_getrusage(struct lwp *, void *, register_t *);
537
538 int linux32_sys_gettimeofday(struct lwp *, void *, register_t *);
539
540 int linux32_sys_settimeofday(struct lwp *, void *, register_t *);
541
542 int linux32_sys_getgroups16(struct lwp *, void *, register_t *);
543
544 int linux32_sys_setgroups16(struct lwp *, void *, register_t *);
545
546 int linux32_sys_oldselect(struct lwp *, void *, register_t *);
547
548 int netbsd32_symlink(struct lwp *, void *, register_t *);
549
550 int compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *);
551
552 int linux32_sys_readlink(struct lwp *, void *, register_t *);
553
554 int linux32_sys_swapon(struct lwp *, void *, register_t *);
555
556 int linux32_sys_reboot(struct lwp *, void *, register_t *);
557
558 int linux32_sys_old_mmap(struct lwp *, void *, register_t *);
559
560 int netbsd32_munmap(struct lwp *, void *, register_t *);
561
562 int linux32_sys_truncate(struct lwp *, void *, register_t *);
563
564 int compat_43_netbsd32_oftruncate(struct lwp *, void *, register_t *);
565
566 int netbsd32_fchmod(struct lwp *, void *, register_t *);
567
568 int linux32_sys_fchown16(struct lwp *, void *, register_t *);
569
570 int linux32_sys_getpriority(struct lwp *, void *, register_t *);
571
572 int linux32_sys_setpriority(struct lwp *, void *, register_t *);
573
574 int linux32_sys_statfs(struct lwp *, void *, register_t *);
575
576 int linux32_sys_socketcall(struct lwp *, void *, register_t *);
577
578 int netbsd32_setitimer(struct lwp *, void *, register_t *);
579
580 int netbsd32_getitimer(struct lwp *, void *, register_t *);
581
582 int linux32_sys_wait4(struct lwp *, void *, register_t *);
583
584 int linux32_sys_swapoff(struct lwp *, void *, register_t *);
585
586 int linux32_sys_sysinfo(struct lwp *, void *, register_t *);
587
588 int netbsd32_fsync(struct lwp *, void *, register_t *);
589
590 int linux32_sys_sigreturn(struct lwp *, void *, register_t *);
591
592 int linux32_sys_clone(struct lwp *, void *, register_t *);
593
594 int linux32_sys_uname(struct lwp *, void *, register_t *);
595
596 int linux32_sys_mprotect(struct lwp *, void *, register_t *);
597
598 int netbsd32_fchdir(struct lwp *, void *, register_t *);
599
600 int linux32_sys_setfsuid(struct lwp *, void *, register_t *);
601
602 int linux_sys_getfsuid(struct lwp *, void *, register_t *);
603
604 int linux32_sys_llseek(struct lwp *, void *, register_t *);
605
606 int linux32_sys_getdents(struct lwp *, void *, register_t *);
607
608 int linux32_sys_select(struct lwp *, void *, register_t *);
609
610 int netbsd32_flock(struct lwp *, void *, register_t *);
611
612 int netbsd32_readv(struct lwp *, void *, register_t *);
613
614 int netbsd32_writev(struct lwp *, void *, register_t *);
615
616 int netbsd32_getsid(struct lwp *, void *, register_t *);
617
618 int linux32_sys_fdatasync(struct lwp *, void *, register_t *);
619
620 int linux32_sys___sysctl(struct lwp *, void *, register_t *);
621
622 int netbsd32_mlockall(struct lwp *, void *, register_t *);
623
624 int sys_munlockall(struct lwp *, void *, register_t *);
625
626 int linux32_sys_sched_getparam(struct lwp *, void *, register_t *);
627
628 int linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *);
629
630 int linux32_sys_sched_getscheduler(struct lwp *, void *, register_t *);
631
632 int linux_sys_sched_yield(struct lwp *, void *, register_t *);
633
634 int netbsd32_nanosleep(struct lwp *, void *, register_t *);
635
636 int linux32_sys_mremap(struct lwp *, void *, register_t *);
637
638 int linux32_sys_setresuid16(struct lwp *, void *, register_t *);
639
640 int netbsd32_poll(struct lwp *, void *, register_t *);
641
642 int linux32_sys_setresgid16(struct lwp *, void *, register_t *);
643
644 int linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *);
645
646 int linux32_sys_rt_sigaction(struct lwp *, void *, register_t *);
647
648 int linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
649
650 int linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
651
652 int linux32_sys_chown16(struct lwp *, void *, register_t *);
653
654 int netbsd32___getcwd(struct lwp *, void *, register_t *);
655
656 int sys___vfork14(struct lwp *, void *, register_t *);
657
658 int linux32_sys_ugetrlimit(struct lwp *, void *, register_t *);
659
660 int linux32_sys_mmap2(struct lwp *, void *, register_t *);
661
662 int linux32_sys_stat64(struct lwp *, void *, register_t *);
663
664 int linux32_sys_lstat64(struct lwp *, void *, register_t *);
665
666 int linux32_sys_fstat64(struct lwp *, void *, register_t *);
667
668 int netbsd32___posix_lchown(struct lwp *, void *, register_t *);
669
670 int netbsd32_setreuid(struct lwp *, void *, register_t *);
671
672 int netbsd32_setregid(struct lwp *, void *, register_t *);
673
674 int netbsd32_getgroups(struct lwp *, void *, register_t *);
675
676 int netbsd32_setgroups(struct lwp *, void *, register_t *);
677
678 int netbsd32___posix_fchown(struct lwp *, void *, register_t *);
679
680 int linux32_sys_setresuid(struct lwp *, void *, register_t *);
681
682 int linux32_sys_setresgid(struct lwp *, void *, register_t *);
683
684 int netbsd32___posix_chown(struct lwp *, void *, register_t *);
685
686 int netbsd32_madvise(struct lwp *, void *, register_t *);
687
688 int linux32_sys_getdents64(struct lwp *, void *, register_t *);
689
690 int linux32_sys_fcntl64(struct lwp *, void *, register_t *);
691
692 int linux_sys_gettid(struct lwp *, void *, register_t *);
693
694 int linux32_sys_exit_group(struct lwp *, void *, register_t *);
695
696 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
697