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