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