xref: /netbsd-src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h (revision fad4c9f71477ae11cea2ee75ec82151ac770a534)
1 /* $NetBSD: linux32_syscallargs.h,v 1.5 2006/06/25 16:16:52 manu 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.3 2006/06/25 16:15:39 manu 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_socketcall_args {
244 	syscallarg(int) what;
245 	syscallarg(netbsd32_voidp) args;
246 };
247 
248 struct linux32_sys_wait4_args {
249 	syscallarg(int) pid;
250 	syscallarg(netbsd32_intp) status;
251 	syscallarg(int) options;
252 	syscallarg(netbsd32_rusagep_t) rusage;
253 };
254 
255 struct linux32_sys_swapoff_args {
256 	syscallarg(const netbsd32_charp) path;
257 };
258 
259 struct linux32_sys_sigreturn_args {
260 	syscallarg(linux32_sigcontextp_t) scp;
261 };
262 
263 struct linux32_sys_clone_args {
264 	syscallarg(int) flags;
265 	syscallarg(netbsd32_voidp) stack;
266 };
267 
268 struct linux32_sys_uname_args {
269 	syscallarg(linux32_utsnamep) up;
270 };
271 
272 struct linux32_sys_mprotect_args {
273 	syscallarg(netbsd32_voidp) addr;
274 	syscallarg(netbsd32_size_t) len;
275 	syscallarg(int) prot;
276 };
277 
278 struct linux32_sys_llseek_args {
279 	syscallarg(int) fd;
280 	syscallarg(u_int32_t) ohigh;
281 	syscallarg(u_int32_t) olow;
282 	syscallarg(netbsd32_caddr_t) res;
283 	syscallarg(int) whence;
284 };
285 
286 struct linux32_sys_getdents_args {
287 	syscallarg(int) fd;
288 	syscallarg(linux32_direntp_t) dent;
289 	syscallarg(unsigned int) count;
290 };
291 
292 struct linux32_sys_select_args {
293 	syscallarg(int) nfds;
294 	syscallarg(netbsd32_fd_setp_t) readfds;
295 	syscallarg(netbsd32_fd_setp_t) writefds;
296 	syscallarg(netbsd32_fd_setp_t) exceptfds;
297 	syscallarg(netbsd32_timevalp_t) timeout;
298 };
299 
300 struct linux32_sys___sysctl_args {
301 	syscallarg(linux32___sysctlp_t) lsp;
302 };
303 
304 struct linux32_sys_sched_setscheduler_args {
305 	syscallarg(pid_t) pid;
306 	syscallarg(int) policy;
307 	syscallarg(const linux32_sched_paramp_t) sp;
308 };
309 
310 struct linux32_sys_rt_sigreturn_args {
311 	syscallarg(linux32_ucontextp_t) ucp;
312 };
313 
314 struct linux32_sys_rt_sigaction_args {
315 	syscallarg(int) signum;
316 	syscallarg(const linux32_sigactionp_t) nsa;
317 	syscallarg(linux32_sigactionp_t) osa;
318 	syscallarg(netbsd32_size_t) sigsetsize;
319 };
320 
321 struct linux32_sys_rt_sigprocmask_args {
322 	syscallarg(int) how;
323 	syscallarg(const linux32_sigsetp_t) set;
324 	syscallarg(linux32_sigsetp_t) oset;
325 	syscallarg(netbsd32_size_t) sigsetsize;
326 };
327 
328 struct linux32_sys_rt_sigsuspend_args {
329 	syscallarg(linux32_sigsetp_t) unewset;
330 	syscallarg(netbsd32_size_t) sigsetsize;
331 };
332 
333 struct linux32_sys_ugetrlimit_args {
334 	syscallarg(int) which;
335 	syscallarg(netbsd32_orlimitp_t) rlp;
336 };
337 
338 struct linux32_sys_stat64_args {
339 	syscallarg(const netbsd32_charp) path;
340 	syscallarg(linux32_stat64p) sp;
341 };
342 
343 struct linux32_sys_lstat64_args {
344 	syscallarg(const netbsd32_charp) path;
345 	syscallarg(linux32_stat64p) sp;
346 };
347 
348 struct linux32_sys_fstat64_args {
349 	syscallarg(int) fd;
350 	syscallarg(linux32_stat64p) sp;
351 };
352 
353 struct linux32_sys_getdents64_args {
354 	syscallarg(int) fd;
355 	syscallarg(linux32_dirent64p_t) dent;
356 	syscallarg(unsigned int) count;
357 };
358 
359 struct linux32_sys_fcntl64_args {
360 	syscallarg(int) fd;
361 	syscallarg(int) cmd;
362 	syscallarg(netbsd32_voidp) arg;
363 };
364 
365 /*
366  * System call prototypes.
367  */
368 
369 int	linux_sys_nosys(struct lwp *, void *, register_t *);
370 
371 int	sys_exit(struct lwp *, void *, register_t *);
372 
373 int	sys_fork(struct lwp *, void *, register_t *);
374 
375 int	netbsd32_read(struct lwp *, void *, register_t *);
376 
377 int	netbsd32_write(struct lwp *, void *, register_t *);
378 
379 int	linux32_sys_open(struct lwp *, void *, register_t *);
380 
381 int	sys_close(struct lwp *, void *, register_t *);
382 
383 int	linux32_sys_waitpid(struct lwp *, void *, register_t *);
384 
385 int	linux32_sys_creat(struct lwp *, void *, register_t *);
386 
387 int	linux32_sys_link(struct lwp *, void *, register_t *);
388 
389 int	linux32_sys_unlink(struct lwp *, void *, register_t *);
390 
391 int	netbsd32_execve(struct lwp *, void *, register_t *);
392 
393 int	linux32_sys_chdir(struct lwp *, void *, register_t *);
394 
395 int	linux32_sys_time(struct lwp *, void *, register_t *);
396 
397 int	linux32_sys_mknod(struct lwp *, void *, register_t *);
398 
399 int	linux32_sys_chmod(struct lwp *, void *, register_t *);
400 
401 int	linux32_sys_lchown16(struct lwp *, void *, register_t *);
402 
403 int	linux32_sys_break(struct lwp *, void *, register_t *);
404 
405 int	compat_43_netbsd32_olseek(struct lwp *, void *, register_t *);
406 
407 int	linux_sys_getpid(struct lwp *, void *, register_t *);
408 
409 int	sys_setuid(struct lwp *, void *, register_t *);
410 
411 int	sys_getuid(struct lwp *, void *, register_t *);
412 
413 int	linux32_sys_stime(struct lwp *, void *, register_t *);
414 
415 int	linux_sys_alarm(struct lwp *, void *, register_t *);
416 
417 int	linux_sys_pause(struct lwp *, void *, register_t *);
418 
419 int	linux32_sys_utime(struct lwp *, void *, register_t *);
420 
421 int	linux32_sys_access(struct lwp *, void *, register_t *);
422 
423 int	linux_sys_nice(struct lwp *, void *, register_t *);
424 
425 int	sys_sync(struct lwp *, void *, register_t *);
426 
427 int	linux32_sys_kill(struct lwp *, void *, register_t *);
428 
429 int	linux32_sys_rename(struct lwp *, void *, register_t *);
430 
431 int	linux32_sys_mkdir(struct lwp *, void *, register_t *);
432 
433 int	linux32_sys_rmdir(struct lwp *, void *, register_t *);
434 
435 int	netbsd32_dup(struct lwp *, void *, register_t *);
436 
437 int	linux32_sys_pipe(struct lwp *, void *, register_t *);
438 
439 int	linux32_sys_times(struct lwp *, void *, register_t *);
440 
441 int	linux32_sys_brk(struct lwp *, void *, register_t *);
442 
443 int	sys_setgid(struct lwp *, void *, register_t *);
444 
445 int	sys_getgid(struct lwp *, void *, register_t *);
446 
447 int	linux32_sys_signal(struct lwp *, void *, register_t *);
448 
449 int	sys_geteuid(struct lwp *, void *, register_t *);
450 
451 int	sys_getegid(struct lwp *, void *, register_t *);
452 
453 int	netbsd32_acct(struct lwp *, void *, register_t *);
454 
455 int	linux32_sys_ioctl(struct lwp *, void *, register_t *);
456 
457 int	linux32_sys_fcntl(struct lwp *, void *, register_t *);
458 
459 int	sys_setpgid(struct lwp *, void *, register_t *);
460 
461 int	linux32_sys_oldolduname(struct lwp *, void *, register_t *);
462 
463 int	sys_umask(struct lwp *, void *, register_t *);
464 
465 int	netbsd32_chroot(struct lwp *, void *, register_t *);
466 
467 int	netbsd32_dup2(struct lwp *, void *, register_t *);
468 
469 int	linux_sys_getppid(struct lwp *, void *, register_t *);
470 
471 int	sys_getpgrp(struct lwp *, void *, register_t *);
472 
473 int	sys_setsid(struct lwp *, void *, register_t *);
474 
475 int	linux_sys_setreuid16(struct lwp *, void *, register_t *);
476 
477 int	linux_sys_setregid16(struct lwp *, void *, register_t *);
478 
479 int	compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *);
480 
481 int	linux32_sys_setrlimit(struct lwp *, void *, register_t *);
482 
483 int	linux32_sys_getrlimit(struct lwp *, void *, register_t *);
484 
485 int	netbsd32_getrusage(struct lwp *, void *, register_t *);
486 
487 int	linux32_sys_gettimeofday(struct lwp *, void *, register_t *);
488 
489 int	linux32_sys_settimeofday(struct lwp *, void *, register_t *);
490 
491 int	linux32_sys_getgroups16(struct lwp *, void *, register_t *);
492 
493 int	linux32_sys_setgroups16(struct lwp *, void *, register_t *);
494 
495 int	linux32_sys_oldselect(struct lwp *, void *, register_t *);
496 
497 int	linux32_sys_symlink(struct lwp *, void *, register_t *);
498 
499 int	compat_43_netbsd32_lstat43(struct lwp *, void *, register_t *);
500 
501 int	linux32_sys_readlink(struct lwp *, void *, register_t *);
502 
503 int	linux32_sys_swapon(struct lwp *, void *, register_t *);
504 
505 int	linux32_sys_reboot(struct lwp *, void *, register_t *);
506 
507 int	linux32_sys_old_mmap(struct lwp *, void *, register_t *);
508 
509 int	netbsd32_munmap(struct lwp *, void *, register_t *);
510 
511 int	linux32_sys_truncate(struct lwp *, void *, register_t *);
512 
513 int	compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
514 
515 int	sys_fchmod(struct lwp *, void *, register_t *);
516 
517 int	linux32_sys_fchown16(struct lwp *, void *, register_t *);
518 
519 int	linux32_sys_getpriority(struct lwp *, void *, register_t *);
520 
521 int	linux32_sys_setpriority(struct lwp *, void *, register_t *);
522 
523 int	linux32_sys_socketcall(struct lwp *, void *, register_t *);
524 
525 int	netbsd32_setitimer(struct lwp *, void *, register_t *);
526 
527 int	netbsd32_getitimer(struct lwp *, void *, register_t *);
528 
529 int	linux32_sys_wait4(struct lwp *, void *, register_t *);
530 
531 int	linux32_sys_swapoff(struct lwp *, void *, register_t *);
532 
533 int	sys_fsync(struct lwp *, void *, register_t *);
534 
535 int	linux32_sys_sigreturn(struct lwp *, void *, register_t *);
536 
537 int	linux32_sys_clone(struct lwp *, void *, register_t *);
538 
539 int	linux32_sys_uname(struct lwp *, void *, register_t *);
540 
541 int	linux32_sys_mprotect(struct lwp *, void *, register_t *);
542 
543 int	sys_fchdir(struct lwp *, void *, register_t *);
544 
545 int	linux32_sys_llseek(struct lwp *, void *, register_t *);
546 
547 int	linux32_sys_getdents(struct lwp *, void *, register_t *);
548 
549 int	linux32_sys_select(struct lwp *, void *, register_t *);
550 
551 int	sys_flock(struct lwp *, void *, register_t *);
552 
553 int	netbsd32_readv(struct lwp *, void *, register_t *);
554 
555 int	netbsd32_writev(struct lwp *, void *, register_t *);
556 
557 int	sys_getsid(struct lwp *, void *, register_t *);
558 
559 int	linux32_sys___sysctl(struct lwp *, void *, register_t *);
560 
561 int	sys_mlockall(struct lwp *, void *, register_t *);
562 
563 int	sys_munlockall(struct lwp *, void *, register_t *);
564 
565 int	linux32_sys_sched_setscheduler(struct lwp *, void *, register_t *);
566 
567 int	netbsd32_nanosleep(struct lwp *, void *, register_t *);
568 
569 int	linux_sys_setresuid16(struct lwp *, void *, register_t *);
570 
571 int	netbsd32_poll(struct lwp *, void *, register_t *);
572 
573 int	linux_sys_setresgid16(struct lwp *, void *, register_t *);
574 
575 int	linux32_sys_rt_sigreturn(struct lwp *, void *, register_t *);
576 
577 int	linux32_sys_rt_sigaction(struct lwp *, void *, register_t *);
578 
579 int	linux32_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
580 
581 int	linux32_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
582 
583 int	netbsd32___getcwd(struct lwp *, void *, register_t *);
584 
585 int	sys___vfork14(struct lwp *, void *, register_t *);
586 
587 int	linux32_sys_ugetrlimit(struct lwp *, void *, register_t *);
588 
589 int	linux32_sys_stat64(struct lwp *, void *, register_t *);
590 
591 int	linux32_sys_lstat64(struct lwp *, void *, register_t *);
592 
593 int	linux32_sys_fstat64(struct lwp *, void *, register_t *);
594 
595 int	sys_setreuid(struct lwp *, void *, register_t *);
596 
597 int	sys_setregid(struct lwp *, void *, register_t *);
598 
599 int	netbsd32_getgroups(struct lwp *, void *, register_t *);
600 
601 int	netbsd32_setgroups(struct lwp *, void *, register_t *);
602 
603 int	sys___posix_fchown(struct lwp *, void *, register_t *);
604 
605 int	linux_sys_setresuid(struct lwp *, void *, register_t *);
606 
607 int	linux_sys_setresgid(struct lwp *, void *, register_t *);
608 
609 int	linux32_sys_getdents64(struct lwp *, void *, register_t *);
610 
611 int	linux32_sys_fcntl64(struct lwp *, void *, register_t *);
612 
613 int	linux_sys_gettid(struct lwp *, void *, register_t *);
614 
615 int	linux_sys_exit_group(struct lwp *, void *, register_t *);
616 
617 #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
618