xref: /netbsd-src/sys/compat/linux/arch/arm/linux_syscallargs.h (revision 8b0f9554ff8762542c4defc4f70e1eb76fb508fa)
1 /* $NetBSD: linux_syscallargs.h,v 1.30 2007/11/16 12:53:58 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.29 2007/11/16 12:51:55 njoly Exp
8  */
9 
10 #ifndef _LINUX_SYS_SYSCALLARGS_H_
11 #define	_LINUX_SYS_SYSCALLARGS_H_
12 
13 #define	LINUX_SYS_MAXSYSARGS	8
14 
15 #undef	syscallarg
16 #define	syscallarg(x)							\
17 	union {								\
18 		register_t pad;						\
19 		struct { x datum; } le;					\
20 		struct { /* LINTED zero array dimension */		\
21 			int8_t pad[  /* CONSTCOND */			\
22 				(sizeof (register_t) < sizeof (x))	\
23 				? 0					\
24 				: sizeof (register_t) - sizeof (x)];	\
25 			x datum;					\
26 		} be;							\
27 	}
28 
29 #undef check_syscall_args
30 #define check_syscall_args(call) \
31 	typedef char call##_check_args[sizeof (struct call##_args) \
32 		<= LINUX_SYS_MAXSYSARGS * sizeof (register_t) ? 1 : -1];
33 
34 struct linux_sys_open_args {
35 	syscallarg(const char *) path;
36 	syscallarg(int) flags;
37 	syscallarg(int) mode;
38 };
39 check_syscall_args(linux_sys_open)
40 
41 struct linux_sys_waitpid_args {
42 	syscallarg(int) pid;
43 	syscallarg(int *) status;
44 	syscallarg(int) options;
45 };
46 check_syscall_args(linux_sys_waitpid)
47 
48 struct linux_sys_creat_args {
49 	syscallarg(const char *) path;
50 	syscallarg(int) mode;
51 };
52 check_syscall_args(linux_sys_creat)
53 
54 struct linux_sys_unlink_args {
55 	syscallarg(const char *) path;
56 };
57 check_syscall_args(linux_sys_unlink)
58 
59 struct linux_sys_time_args {
60 	syscallarg(linux_time_t *) t;
61 };
62 check_syscall_args(linux_sys_time)
63 
64 struct linux_sys_mknod_args {
65 	syscallarg(const char *) path;
66 	syscallarg(int) mode;
67 	syscallarg(int) dev;
68 };
69 check_syscall_args(linux_sys_mknod)
70 
71 struct linux_sys_lchown16_args {
72 	syscallarg(const char *) path;
73 	syscallarg(int) uid;
74 	syscallarg(int) gid;
75 };
76 check_syscall_args(linux_sys_lchown16)
77 
78 struct linux_sys_stime_args {
79 	syscallarg(linux_time_t *) t;
80 };
81 check_syscall_args(linux_sys_stime)
82 
83 struct linux_sys_ptrace_args {
84 	syscallarg(int) request;
85 	syscallarg(int) pid;
86 	syscallarg(int) addr;
87 	syscallarg(int) data;
88 };
89 check_syscall_args(linux_sys_ptrace)
90 
91 struct linux_sys_alarm_args {
92 	syscallarg(unsigned int) secs;
93 };
94 check_syscall_args(linux_sys_alarm)
95 
96 struct linux_sys_utime_args {
97 	syscallarg(const char *) path;
98 	syscallarg(struct linux_utimbuf *) times;
99 };
100 check_syscall_args(linux_sys_utime)
101 
102 struct linux_sys_nice_args {
103 	syscallarg(int) incr;
104 };
105 check_syscall_args(linux_sys_nice)
106 
107 struct linux_sys_kill_args {
108 	syscallarg(int) pid;
109 	syscallarg(int) signum;
110 };
111 check_syscall_args(linux_sys_kill)
112 
113 struct linux_sys_pipe_args {
114 	syscallarg(int *) pfds;
115 };
116 check_syscall_args(linux_sys_pipe)
117 
118 struct linux_sys_times_args {
119 	syscallarg(struct times *) tms;
120 };
121 check_syscall_args(linux_sys_times)
122 
123 struct linux_sys_brk_args {
124 	syscallarg(char *) nsize;
125 };
126 check_syscall_args(linux_sys_brk)
127 
128 struct linux_sys_signal_args {
129 	syscallarg(int) signum;
130 	syscallarg(linux_handler_t) handler;
131 };
132 check_syscall_args(linux_sys_signal)
133 
134 struct linux_sys_ioctl_args {
135 	syscallarg(int) fd;
136 	syscallarg(u_long) com;
137 	syscallarg(void *) data;
138 };
139 check_syscall_args(linux_sys_ioctl)
140 
141 struct linux_sys_fcntl_args {
142 	syscallarg(int) fd;
143 	syscallarg(int) cmd;
144 	syscallarg(void *) arg;
145 };
146 check_syscall_args(linux_sys_fcntl)
147 
148 struct linux_sys_oldolduname_args {
149 	syscallarg(struct linux_oldold_utsname *) up;
150 };
151 check_syscall_args(linux_sys_oldolduname)
152 
153 struct linux_sys_sigaction_args {
154 	syscallarg(int) signum;
155 	syscallarg(const struct linux_old_sigaction *) nsa;
156 	syscallarg(struct linux_old_sigaction *) osa;
157 };
158 check_syscall_args(linux_sys_sigaction)
159 
160 struct linux_sys_sigsetmask_args {
161 	syscallarg(linux_old_sigset_t) mask;
162 };
163 check_syscall_args(linux_sys_sigsetmask)
164 
165 struct linux_sys_sigsuspend_args {
166 	syscallarg(void *) restart;
167 	syscallarg(int) oldmask;
168 	syscallarg(int) mask;
169 };
170 check_syscall_args(linux_sys_sigsuspend)
171 
172 struct linux_sys_sigpending_args {
173 	syscallarg(linux_old_sigset_t *) set;
174 };
175 check_syscall_args(linux_sys_sigpending)
176 
177 struct linux_sys_setrlimit_args {
178 	syscallarg(u_int) which;
179 	syscallarg(struct orlimit *) rlp;
180 };
181 check_syscall_args(linux_sys_setrlimit)
182 
183 struct linux_sys_getrlimit_args {
184 	syscallarg(u_int) which;
185 	syscallarg(struct orlimit *) rlp;
186 };
187 check_syscall_args(linux_sys_getrlimit)
188 
189 struct linux_sys_gettimeofday_args {
190 	syscallarg(struct timeval *) tp;
191 	syscallarg(struct timezone *) tzp;
192 };
193 check_syscall_args(linux_sys_gettimeofday)
194 
195 struct linux_sys_settimeofday_args {
196 	syscallarg(struct timeval *) tp;
197 	syscallarg(struct timezone *) tzp;
198 };
199 check_syscall_args(linux_sys_settimeofday)
200 
201 struct linux_sys_oldselect_args {
202 	syscallarg(struct linux_oldselect *) lsp;
203 };
204 check_syscall_args(linux_sys_oldselect)
205 #ifdef EXEC_AOUT
206 
207 struct linux_sys_uselib_args {
208 	syscallarg(const char *) path;
209 };
210 check_syscall_args(linux_sys_uselib)
211 #else
212 #endif
213 
214 struct linux_sys_swapon_args {
215 	syscallarg(char *) name;
216 };
217 check_syscall_args(linux_sys_swapon)
218 
219 struct linux_sys_reboot_args {
220 	syscallarg(int) magic1;
221 	syscallarg(int) magic2;
222 	syscallarg(int) cmd;
223 	syscallarg(void *) arg;
224 };
225 check_syscall_args(linux_sys_reboot)
226 
227 struct linux_sys_readdir_args {
228 	syscallarg(int) fd;
229 	syscallarg(void *) dent;
230 	syscallarg(unsigned int) count;
231 };
232 check_syscall_args(linux_sys_readdir)
233 
234 struct linux_sys_old_mmap_args {
235 	syscallarg(struct linux_oldmmap *) lmp;
236 };
237 check_syscall_args(linux_sys_old_mmap)
238 
239 struct linux_sys_fchown16_args {
240 	syscallarg(int) fd;
241 	syscallarg(int) uid;
242 	syscallarg(int) gid;
243 };
244 check_syscall_args(linux_sys_fchown16)
245 
246 struct linux_sys_getpriority_args {
247 	syscallarg(int) which;
248 	syscallarg(int) who;
249 };
250 check_syscall_args(linux_sys_getpriority)
251 
252 struct linux_sys_statfs_args {
253 	syscallarg(const char *) path;
254 	syscallarg(struct linux_statfs *) sp;
255 };
256 check_syscall_args(linux_sys_statfs)
257 
258 struct linux_sys_fstatfs_args {
259 	syscallarg(int) fd;
260 	syscallarg(struct linux_statfs *) sp;
261 };
262 check_syscall_args(linux_sys_fstatfs)
263 
264 struct linux_sys_socketcall_args {
265 	syscallarg(int) what;
266 	syscallarg(void *) args;
267 };
268 check_syscall_args(linux_sys_socketcall)
269 
270 struct linux_sys_stat_args {
271 	syscallarg(const char *) path;
272 	syscallarg(struct linux_stat *) sp;
273 };
274 check_syscall_args(linux_sys_stat)
275 
276 struct linux_sys_lstat_args {
277 	syscallarg(const char *) path;
278 	syscallarg(struct linux_stat *) sp;
279 };
280 check_syscall_args(linux_sys_lstat)
281 
282 struct linux_sys_fstat_args {
283 	syscallarg(int) fd;
284 	syscallarg(struct linux_stat *) sp;
285 };
286 check_syscall_args(linux_sys_fstat)
287 
288 struct linux_sys_olduname_args {
289 	syscallarg(struct linux_oldutsname *) up;
290 };
291 check_syscall_args(linux_sys_olduname)
292 
293 struct linux_sys_wait4_args {
294 	syscallarg(int) pid;
295 	syscallarg(int *) status;
296 	syscallarg(int) options;
297 	syscallarg(struct rusage *) rusage;
298 };
299 check_syscall_args(linux_sys_wait4)
300 
301 struct linux_sys_swapoff_args {
302 	syscallarg(const char *) path;
303 };
304 check_syscall_args(linux_sys_swapoff)
305 
306 struct linux_sys_sysinfo_args {
307 	syscallarg(struct linux_sysinfo *) arg;
308 };
309 check_syscall_args(linux_sys_sysinfo)
310 
311 struct linux_sys_ipc_args {
312 	syscallarg(int) what;
313 	syscallarg(int) a1;
314 	syscallarg(int) a2;
315 	syscallarg(int) a3;
316 	syscallarg(void *) ptr;
317 };
318 check_syscall_args(linux_sys_ipc)
319 
320 struct linux_sys_sigreturn_args {
321 	syscallarg(struct linux_sigcontext *) scp;
322 };
323 check_syscall_args(linux_sys_sigreturn)
324 
325 struct linux_sys_clone_args {
326 	syscallarg(int) flags;
327 	syscallarg(void *) stack;
328 };
329 check_syscall_args(linux_sys_clone)
330 
331 struct linux_sys_setdomainname_args {
332 	syscallarg(char *) domainname;
333 	syscallarg(int) len;
334 };
335 check_syscall_args(linux_sys_setdomainname)
336 
337 struct linux_sys_uname_args {
338 	syscallarg(struct linux_utsname *) up;
339 };
340 check_syscall_args(linux_sys_uname)
341 
342 struct linux_sys_mprotect_args {
343 	syscallarg(const void *) start;
344 	syscallarg(unsigned long) len;
345 	syscallarg(int) prot;
346 };
347 check_syscall_args(linux_sys_mprotect)
348 
349 struct linux_sys_sigprocmask_args {
350 	syscallarg(int) how;
351 	syscallarg(const linux_old_sigset_t *) set;
352 	syscallarg(linux_old_sigset_t *) oset;
353 };
354 check_syscall_args(linux_sys_sigprocmask)
355 
356 struct linux_sys_getpgid_args {
357 	syscallarg(int) pid;
358 };
359 check_syscall_args(linux_sys_getpgid)
360 
361 struct linux_sys_personality_args {
362 	syscallarg(int) per;
363 };
364 check_syscall_args(linux_sys_personality)
365 
366 struct linux_sys_setfsuid_args {
367 	syscallarg(uid_t) uid;
368 };
369 check_syscall_args(linux_sys_setfsuid)
370 
371 struct linux_sys_llseek_args {
372 	syscallarg(int) fd;
373 	syscallarg(u_int32_t) ohigh;
374 	syscallarg(u_int32_t) olow;
375 	syscallarg(void *) res;
376 	syscallarg(int) whence;
377 };
378 check_syscall_args(linux_sys_llseek)
379 
380 struct linux_sys_getdents_args {
381 	syscallarg(int) fd;
382 	syscallarg(struct linux_dirent *) dent;
383 	syscallarg(unsigned int) count;
384 };
385 check_syscall_args(linux_sys_getdents)
386 
387 struct linux_sys_select_args {
388 	syscallarg(int) nfds;
389 	syscallarg(fd_set *) readfds;
390 	syscallarg(fd_set *) writefds;
391 	syscallarg(fd_set *) exceptfds;
392 	syscallarg(struct timeval *) timeout;
393 };
394 check_syscall_args(linux_sys_select)
395 
396 struct linux_sys_msync_args {
397 	syscallarg(void *) addr;
398 	syscallarg(int) len;
399 	syscallarg(int) fl;
400 };
401 check_syscall_args(linux_sys_msync)
402 
403 struct linux_sys_fdatasync_args {
404 	syscallarg(int) fd;
405 };
406 check_syscall_args(linux_sys_fdatasync)
407 
408 struct linux_sys___sysctl_args {
409 	syscallarg(struct linux___sysctl *) lsp;
410 };
411 check_syscall_args(linux_sys___sysctl)
412 
413 struct linux_sys_sched_setparam_args {
414 	syscallarg(pid_t) pid;
415 	syscallarg(const struct linux_sched_param *) sp;
416 };
417 check_syscall_args(linux_sys_sched_setparam)
418 
419 struct linux_sys_sched_getparam_args {
420 	syscallarg(pid_t) pid;
421 	syscallarg(struct linux_sched_param *) sp;
422 };
423 check_syscall_args(linux_sys_sched_getparam)
424 
425 struct linux_sys_sched_setscheduler_args {
426 	syscallarg(pid_t) pid;
427 	syscallarg(int) policy;
428 	syscallarg(const struct linux_sched_param *) sp;
429 };
430 check_syscall_args(linux_sys_sched_setscheduler)
431 
432 struct linux_sys_sched_getscheduler_args {
433 	syscallarg(pid_t) pid;
434 };
435 check_syscall_args(linux_sys_sched_getscheduler)
436 
437 struct linux_sys_sched_get_priority_max_args {
438 	syscallarg(int) policy;
439 };
440 check_syscall_args(linux_sys_sched_get_priority_max)
441 
442 struct linux_sys_sched_get_priority_min_args {
443 	syscallarg(int) policy;
444 };
445 check_syscall_args(linux_sys_sched_get_priority_min)
446 
447 struct linux_sys_mremap_args {
448 	syscallarg(void *) old_address;
449 	syscallarg(size_t) old_size;
450 	syscallarg(size_t) new_size;
451 	syscallarg(u_long) flags;
452 };
453 check_syscall_args(linux_sys_mremap)
454 
455 struct linux_sys_setresuid_args {
456 	syscallarg(uid_t) ruid;
457 	syscallarg(uid_t) euid;
458 	syscallarg(uid_t) suid;
459 };
460 check_syscall_args(linux_sys_setresuid)
461 
462 struct linux_sys_getresuid_args {
463 	syscallarg(uid_t *) ruid;
464 	syscallarg(uid_t *) euid;
465 	syscallarg(uid_t *) suid;
466 };
467 check_syscall_args(linux_sys_getresuid)
468 
469 struct linux_sys_setresgid_args {
470 	syscallarg(gid_t) rgid;
471 	syscallarg(gid_t) egid;
472 	syscallarg(gid_t) sgid;
473 };
474 check_syscall_args(linux_sys_setresgid)
475 
476 struct linux_sys_getresgid_args {
477 	syscallarg(gid_t *) rgid;
478 	syscallarg(gid_t *) egid;
479 	syscallarg(gid_t *) sgid;
480 };
481 check_syscall_args(linux_sys_getresgid)
482 
483 struct linux_sys_rt_sigaction_args {
484 	syscallarg(int) signum;
485 	syscallarg(const struct linux_sigaction *) nsa;
486 	syscallarg(struct linux_sigaction *) osa;
487 	syscallarg(size_t) sigsetsize;
488 };
489 check_syscall_args(linux_sys_rt_sigaction)
490 
491 struct linux_sys_rt_sigprocmask_args {
492 	syscallarg(int) how;
493 	syscallarg(const linux_sigset_t *) set;
494 	syscallarg(linux_sigset_t *) oset;
495 	syscallarg(size_t) sigsetsize;
496 };
497 check_syscall_args(linux_sys_rt_sigprocmask)
498 
499 struct linux_sys_rt_sigpending_args {
500 	syscallarg(linux_sigset_t *) set;
501 	syscallarg(size_t) sigsetsize;
502 };
503 check_syscall_args(linux_sys_rt_sigpending)
504 
505 struct linux_sys_rt_queueinfo_args {
506 	syscallarg(int) pid;
507 	syscallarg(int) signum;
508 	syscallarg(void *) uinfo;
509 };
510 check_syscall_args(linux_sys_rt_queueinfo)
511 
512 struct linux_sys_rt_sigsuspend_args {
513 	syscallarg(linux_sigset_t *) unewset;
514 	syscallarg(size_t) sigsetsize;
515 };
516 check_syscall_args(linux_sys_rt_sigsuspend)
517 
518 struct linux_sys_pread_args {
519 	syscallarg(int) fd;
520 	syscallarg(char *) buf;
521 	syscallarg(size_t) nbyte;
522 	syscallarg(linux_off_t) offset;
523 };
524 check_syscall_args(linux_sys_pread)
525 
526 struct linux_sys_pwrite_args {
527 	syscallarg(int) fd;
528 	syscallarg(char *) buf;
529 	syscallarg(size_t) nbyte;
530 	syscallarg(linux_off_t) offset;
531 };
532 check_syscall_args(linux_sys_pwrite)
533 
534 struct linux_sys_chown16_args {
535 	syscallarg(const char *) path;
536 	syscallarg(int) uid;
537 	syscallarg(int) gid;
538 };
539 check_syscall_args(linux_sys_chown16)
540 
541 struct linux_sys_sigaltstack_args {
542 	syscallarg(const struct linux_sigaltstack *) ss;
543 	syscallarg(struct linux_sigaltstack *) oss;
544 };
545 check_syscall_args(linux_sys_sigaltstack)
546 
547 struct linux_sys_ugetrlimit_args {
548 	syscallarg(int) which;
549 	syscallarg(struct rlimit *) rlp;
550 };
551 check_syscall_args(linux_sys_ugetrlimit)
552 
553 struct linux_sys_truncate64_args {
554 	syscallarg(const char *) path;
555 	syscallarg(off_t) length;
556 };
557 check_syscall_args(linux_sys_truncate64)
558 
559 struct linux_sys_ftruncate64_args {
560 	syscallarg(unsigned int) fd;
561 	syscallarg(off_t) length;
562 };
563 check_syscall_args(linux_sys_ftruncate64)
564 
565 struct linux_sys_stat64_args {
566 	syscallarg(const char *) path;
567 	syscallarg(struct linux_stat64 *) sp;
568 };
569 check_syscall_args(linux_sys_stat64)
570 
571 struct linux_sys_lstat64_args {
572 	syscallarg(const char *) path;
573 	syscallarg(struct linux_stat64 *) sp;
574 };
575 check_syscall_args(linux_sys_lstat64)
576 
577 struct linux_sys_fstat64_args {
578 	syscallarg(int) fd;
579 	syscallarg(struct linux_stat64 *) sp;
580 };
581 check_syscall_args(linux_sys_fstat64)
582 
583 struct linux_sys_getdents64_args {
584 	syscallarg(int) fd;
585 	syscallarg(struct linux_dirent64 *) dent;
586 	syscallarg(unsigned int) count;
587 };
588 check_syscall_args(linux_sys_getdents64)
589 
590 struct linux_sys_fcntl64_args {
591 	syscallarg(int) fd;
592 	syscallarg(int) cmd;
593 	syscallarg(void *) arg;
594 };
595 check_syscall_args(linux_sys_fcntl64)
596 
597 struct linux_sys_setxattr_args {
598 	syscallarg(char *) path;
599 	syscallarg(char *) name;
600 	syscallarg(void *) value;
601 	syscallarg(size_t) size;
602 	syscallarg(int) flags;
603 };
604 check_syscall_args(linux_sys_setxattr)
605 
606 struct linux_sys_lsetxattr_args {
607 	syscallarg(char *) path;
608 	syscallarg(char *) name;
609 	syscallarg(void *) value;
610 	syscallarg(size_t) size;
611 	syscallarg(int) flags;
612 };
613 check_syscall_args(linux_sys_lsetxattr)
614 
615 struct linux_sys_fsetxattr_args {
616 	syscallarg(int) fd;
617 	syscallarg(char *) name;
618 	syscallarg(void *) value;
619 	syscallarg(size_t) size;
620 	syscallarg(int) flags;
621 };
622 check_syscall_args(linux_sys_fsetxattr)
623 
624 struct linux_sys_getxattr_args {
625 	syscallarg(char *) path;
626 	syscallarg(char *) name;
627 	syscallarg(void *) value;
628 	syscallarg(size_t) size;
629 };
630 check_syscall_args(linux_sys_getxattr)
631 
632 struct linux_sys_lgetxattr_args {
633 	syscallarg(char *) path;
634 	syscallarg(char *) name;
635 	syscallarg(void *) value;
636 	syscallarg(size_t) size;
637 };
638 check_syscall_args(linux_sys_lgetxattr)
639 
640 struct linux_sys_fgetxattr_args {
641 	syscallarg(int) fd;
642 	syscallarg(char *) name;
643 	syscallarg(void *) value;
644 	syscallarg(size_t) size;
645 };
646 check_syscall_args(linux_sys_fgetxattr)
647 
648 struct linux_sys_listxattr_args {
649 	syscallarg(char *) path;
650 	syscallarg(char *) list;
651 	syscallarg(size_t) size;
652 };
653 check_syscall_args(linux_sys_listxattr)
654 
655 struct linux_sys_llistxattr_args {
656 	syscallarg(char *) path;
657 	syscallarg(char *) list;
658 	syscallarg(size_t) size;
659 };
660 check_syscall_args(linux_sys_llistxattr)
661 
662 struct linux_sys_flistxattr_args {
663 	syscallarg(int) fd;
664 	syscallarg(char *) list;
665 	syscallarg(size_t) size;
666 };
667 check_syscall_args(linux_sys_flistxattr)
668 
669 struct linux_sys_removexattr_args {
670 	syscallarg(char *) path;
671 	syscallarg(char *) name;
672 };
673 check_syscall_args(linux_sys_removexattr)
674 
675 struct linux_sys_lremovexattr_args {
676 	syscallarg(char *) path;
677 	syscallarg(char *) name;
678 };
679 check_syscall_args(linux_sys_lremovexattr)
680 
681 struct linux_sys_fremovexattr_args {
682 	syscallarg(int) fd;
683 	syscallarg(char *) name;
684 };
685 check_syscall_args(linux_sys_fremovexattr)
686 
687 struct linux_sys_exit_group_args {
688 	syscallarg(int) error_code;
689 };
690 check_syscall_args(linux_sys_exit_group)
691 
692 struct linux_sys_clock_settime_args {
693 	syscallarg(clockid_t) which;
694 	syscallarg(struct linux_timespec *) tp;
695 };
696 check_syscall_args(linux_sys_clock_settime)
697 
698 struct linux_sys_clock_gettime_args {
699 	syscallarg(clockid_t) which;
700 	syscallarg(struct linux_timespec *) tp;
701 };
702 check_syscall_args(linux_sys_clock_gettime)
703 
704 struct linux_sys_clock_getres_args {
705 	syscallarg(clockid_t) which;
706 	syscallarg(struct linux_timespec *) tp;
707 };
708 check_syscall_args(linux_sys_clock_getres)
709 
710 struct linux_sys_clock_nanosleep_args {
711 	syscallarg(clockid_t) which;
712 	syscallarg(int) flags;
713 	syscallarg(struct linux_timespec *) rqtp;
714 	syscallarg(struct linux_timespec *) rmtp;
715 };
716 check_syscall_args(linux_sys_clock_nanosleep)
717 
718 struct linux_sys_statfs64_args {
719 	syscallarg(const char *) path;
720 	syscallarg(size_t) sz;
721 	syscallarg(struct linux_statfs64 *) sp;
722 };
723 check_syscall_args(linux_sys_statfs64)
724 
725 struct linux_sys_fstatfs64_args {
726 	syscallarg(int) fd;
727 	syscallarg(size_t) sz;
728 	syscallarg(struct linux_statfs64 *) sp;
729 };
730 check_syscall_args(linux_sys_fstatfs64)
731 
732 struct linux_sys_cacheflush_args {
733 	syscallarg(uintptr_t) from;
734 	syscallarg(intptr_t) to;
735 };
736 check_syscall_args(linux_sys_cacheflush)
737 
738 /*
739  * System call prototypes.
740  */
741 
742 int	linux_sys_nosys(struct lwp *, void *, register_t *);
743 
744 int	sys_exit(struct lwp *, void *, register_t *);
745 
746 int	sys_fork(struct lwp *, void *, register_t *);
747 
748 int	sys_read(struct lwp *, void *, register_t *);
749 
750 int	sys_write(struct lwp *, void *, register_t *);
751 
752 int	linux_sys_open(struct lwp *, void *, register_t *);
753 
754 int	sys_close(struct lwp *, void *, register_t *);
755 
756 int	linux_sys_waitpid(struct lwp *, void *, register_t *);
757 
758 int	linux_sys_creat(struct lwp *, void *, register_t *);
759 
760 int	sys_link(struct lwp *, void *, register_t *);
761 
762 int	linux_sys_unlink(struct lwp *, void *, register_t *);
763 
764 int	sys_execve(struct lwp *, void *, register_t *);
765 
766 int	sys_chdir(struct lwp *, void *, register_t *);
767 
768 int	linux_sys_time(struct lwp *, void *, register_t *);
769 
770 int	linux_sys_mknod(struct lwp *, void *, register_t *);
771 
772 int	sys_chmod(struct lwp *, void *, register_t *);
773 
774 int	linux_sys_lchown16(struct lwp *, void *, register_t *);
775 
776 int	compat_43_sys_lseek(struct lwp *, void *, register_t *);
777 
778 int	sys_getpid(struct lwp *, void *, register_t *);
779 
780 int	sys_setuid(struct lwp *, void *, register_t *);
781 
782 int	sys_getuid(struct lwp *, void *, register_t *);
783 
784 int	linux_sys_stime(struct lwp *, void *, register_t *);
785 
786 int	linux_sys_ptrace(struct lwp *, void *, register_t *);
787 
788 int	linux_sys_alarm(struct lwp *, void *, register_t *);
789 
790 int	linux_sys_pause(struct lwp *, void *, register_t *);
791 
792 int	linux_sys_utime(struct lwp *, void *, register_t *);
793 
794 int	sys_access(struct lwp *, void *, register_t *);
795 
796 int	linux_sys_nice(struct lwp *, void *, register_t *);
797 
798 int	sys_sync(struct lwp *, void *, register_t *);
799 
800 int	linux_sys_kill(struct lwp *, void *, register_t *);
801 
802 int	sys___posix_rename(struct lwp *, void *, register_t *);
803 
804 int	sys_mkdir(struct lwp *, void *, register_t *);
805 
806 int	sys_rmdir(struct lwp *, void *, register_t *);
807 
808 int	sys_dup(struct lwp *, void *, register_t *);
809 
810 int	linux_sys_pipe(struct lwp *, void *, register_t *);
811 
812 int	linux_sys_times(struct lwp *, void *, register_t *);
813 
814 int	linux_sys_brk(struct lwp *, void *, register_t *);
815 
816 int	sys_setgid(struct lwp *, void *, register_t *);
817 
818 int	sys_getgid(struct lwp *, void *, register_t *);
819 
820 int	linux_sys_signal(struct lwp *, void *, register_t *);
821 
822 int	sys_geteuid(struct lwp *, void *, register_t *);
823 
824 int	sys_getegid(struct lwp *, void *, register_t *);
825 
826 int	sys_acct(struct lwp *, void *, register_t *);
827 
828 int	linux_sys_ioctl(struct lwp *, void *, register_t *);
829 
830 int	linux_sys_fcntl(struct lwp *, void *, register_t *);
831 
832 int	sys_setpgid(struct lwp *, void *, register_t *);
833 
834 int	linux_sys_oldolduname(struct lwp *, void *, register_t *);
835 
836 int	sys_umask(struct lwp *, void *, register_t *);
837 
838 int	sys_chroot(struct lwp *, void *, register_t *);
839 
840 int	sys_dup2(struct lwp *, void *, register_t *);
841 
842 int	sys_getppid(struct lwp *, void *, register_t *);
843 
844 int	sys_getpgrp(struct lwp *, void *, register_t *);
845 
846 int	sys_setsid(struct lwp *, void *, register_t *);
847 
848 int	linux_sys_sigaction(struct lwp *, void *, register_t *);
849 
850 int	linux_sys_siggetmask(struct lwp *, void *, register_t *);
851 
852 int	linux_sys_sigsetmask(struct lwp *, void *, register_t *);
853 
854 int	sys_setreuid(struct lwp *, void *, register_t *);
855 
856 int	sys_setregid(struct lwp *, void *, register_t *);
857 
858 int	linux_sys_sigsuspend(struct lwp *, void *, register_t *);
859 
860 int	linux_sys_sigpending(struct lwp *, void *, register_t *);
861 
862 int	compat_43_sys_sethostname(struct lwp *, void *, register_t *);
863 
864 int	linux_sys_setrlimit(struct lwp *, void *, register_t *);
865 
866 int	linux_sys_getrlimit(struct lwp *, void *, register_t *);
867 
868 int	sys_getrusage(struct lwp *, void *, register_t *);
869 
870 int	linux_sys_gettimeofday(struct lwp *, void *, register_t *);
871 
872 int	linux_sys_settimeofday(struct lwp *, void *, register_t *);
873 
874 int	sys_getgroups(struct lwp *, void *, register_t *);
875 
876 int	sys_setgroups(struct lwp *, void *, register_t *);
877 
878 int	linux_sys_oldselect(struct lwp *, void *, register_t *);
879 
880 int	sys_symlink(struct lwp *, void *, register_t *);
881 
882 int	compat_43_sys_lstat(struct lwp *, void *, register_t *);
883 
884 int	sys_readlink(struct lwp *, void *, register_t *);
885 
886 #ifdef EXEC_AOUT
887 int	linux_sys_uselib(struct lwp *, void *, register_t *);
888 
889 #else
890 #endif
891 int	linux_sys_swapon(struct lwp *, void *, register_t *);
892 
893 int	linux_sys_reboot(struct lwp *, void *, register_t *);
894 
895 int	linux_sys_readdir(struct lwp *, void *, register_t *);
896 
897 int	linux_sys_old_mmap(struct lwp *, void *, register_t *);
898 
899 int	sys_munmap(struct lwp *, void *, register_t *);
900 
901 int	compat_43_sys_truncate(struct lwp *, void *, register_t *);
902 
903 int	compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
904 
905 int	sys_fchmod(struct lwp *, void *, register_t *);
906 
907 int	linux_sys_fchown16(struct lwp *, void *, register_t *);
908 
909 int	linux_sys_getpriority(struct lwp *, void *, register_t *);
910 
911 int	sys_setpriority(struct lwp *, void *, register_t *);
912 
913 int	sys_profil(struct lwp *, void *, register_t *);
914 
915 int	linux_sys_statfs(struct lwp *, void *, register_t *);
916 
917 int	linux_sys_fstatfs(struct lwp *, void *, register_t *);
918 
919 int	linux_sys_socketcall(struct lwp *, void *, register_t *);
920 
921 int	sys_setitimer(struct lwp *, void *, register_t *);
922 
923 int	sys_getitimer(struct lwp *, void *, register_t *);
924 
925 int	linux_sys_stat(struct lwp *, void *, register_t *);
926 
927 int	linux_sys_lstat(struct lwp *, void *, register_t *);
928 
929 int	linux_sys_fstat(struct lwp *, void *, register_t *);
930 
931 int	linux_sys_olduname(struct lwp *, void *, register_t *);
932 
933 int	linux_sys_wait4(struct lwp *, void *, register_t *);
934 
935 int	linux_sys_swapoff(struct lwp *, void *, register_t *);
936 
937 int	linux_sys_sysinfo(struct lwp *, void *, register_t *);
938 
939 int	linux_sys_ipc(struct lwp *, void *, register_t *);
940 
941 int	sys_fsync(struct lwp *, void *, register_t *);
942 
943 int	linux_sys_sigreturn(struct lwp *, void *, register_t *);
944 
945 int	linux_sys_clone(struct lwp *, void *, register_t *);
946 
947 int	linux_sys_setdomainname(struct lwp *, void *, register_t *);
948 
949 int	linux_sys_uname(struct lwp *, void *, register_t *);
950 
951 int	linux_sys_mprotect(struct lwp *, void *, register_t *);
952 
953 int	linux_sys_sigprocmask(struct lwp *, void *, register_t *);
954 
955 int	linux_sys_getpgid(struct lwp *, void *, register_t *);
956 
957 int	sys_fchdir(struct lwp *, void *, register_t *);
958 
959 int	linux_sys_personality(struct lwp *, void *, register_t *);
960 
961 int	linux_sys_setfsuid(struct lwp *, void *, register_t *);
962 
963 int	linux_sys_getfsuid(struct lwp *, void *, register_t *);
964 
965 int	linux_sys_llseek(struct lwp *, void *, register_t *);
966 
967 int	linux_sys_getdents(struct lwp *, void *, register_t *);
968 
969 int	linux_sys_select(struct lwp *, void *, register_t *);
970 
971 int	sys_flock(struct lwp *, void *, register_t *);
972 
973 int	linux_sys_msync(struct lwp *, void *, register_t *);
974 
975 int	sys_readv(struct lwp *, void *, register_t *);
976 
977 int	sys_writev(struct lwp *, void *, register_t *);
978 
979 int	sys_getsid(struct lwp *, void *, register_t *);
980 
981 int	linux_sys_fdatasync(struct lwp *, void *, register_t *);
982 
983 int	linux_sys___sysctl(struct lwp *, void *, register_t *);
984 
985 int	sys_mlock(struct lwp *, void *, register_t *);
986 
987 int	sys_munlock(struct lwp *, void *, register_t *);
988 
989 int	sys_mlockall(struct lwp *, void *, register_t *);
990 
991 int	sys_munlockall(struct lwp *, void *, register_t *);
992 
993 int	linux_sys_sched_setparam(struct lwp *, void *, register_t *);
994 
995 int	linux_sys_sched_getparam(struct lwp *, void *, register_t *);
996 
997 int	linux_sys_sched_setscheduler(struct lwp *, void *, register_t *);
998 
999 int	linux_sys_sched_getscheduler(struct lwp *, void *, register_t *);
1000 
1001 int	linux_sys_sched_yield(struct lwp *, void *, register_t *);
1002 
1003 int	linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
1004 
1005 int	linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
1006 
1007 int	sys_nanosleep(struct lwp *, void *, register_t *);
1008 
1009 int	linux_sys_mremap(struct lwp *, void *, register_t *);
1010 
1011 int	linux_sys_setresuid(struct lwp *, void *, register_t *);
1012 
1013 int	linux_sys_getresuid(struct lwp *, void *, register_t *);
1014 
1015 int	sys_poll(struct lwp *, void *, register_t *);
1016 
1017 int	linux_sys_setresgid(struct lwp *, void *, register_t *);
1018 
1019 int	linux_sys_getresgid(struct lwp *, void *, register_t *);
1020 
1021 int	linux_sys_rt_sigaction(struct lwp *, void *, register_t *);
1022 
1023 int	linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
1024 
1025 int	linux_sys_rt_sigpending(struct lwp *, void *, register_t *);
1026 
1027 int	linux_sys_rt_queueinfo(struct lwp *, void *, register_t *);
1028 
1029 int	linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
1030 
1031 int	linux_sys_pread(struct lwp *, void *, register_t *);
1032 
1033 int	linux_sys_pwrite(struct lwp *, void *, register_t *);
1034 
1035 int	linux_sys_chown16(struct lwp *, void *, register_t *);
1036 
1037 int	sys___getcwd(struct lwp *, void *, register_t *);
1038 
1039 int	linux_sys_sigaltstack(struct lwp *, void *, register_t *);
1040 
1041 int	sys___vfork14(struct lwp *, void *, register_t *);
1042 
1043 int	linux_sys_ugetrlimit(struct lwp *, void *, register_t *);
1044 
1045 int	linux_sys_mmap2(struct lwp *, void *, register_t *);
1046 
1047 int	linux_sys_truncate64(struct lwp *, void *, register_t *);
1048 
1049 int	linux_sys_ftruncate64(struct lwp *, void *, register_t *);
1050 
1051 int	linux_sys_stat64(struct lwp *, void *, register_t *);
1052 
1053 int	linux_sys_lstat64(struct lwp *, void *, register_t *);
1054 
1055 int	linux_sys_fstat64(struct lwp *, void *, register_t *);
1056 
1057 int	sys___posix_lchown(struct lwp *, void *, register_t *);
1058 
1059 int	sys___posix_fchown(struct lwp *, void *, register_t *);
1060 
1061 int	sys___posix_chown(struct lwp *, void *, register_t *);
1062 
1063 int	linux_sys_getdents64(struct lwp *, void *, register_t *);
1064 
1065 int	sys_mincore(struct lwp *, void *, register_t *);
1066 
1067 int	sys_madvise(struct lwp *, void *, register_t *);
1068 
1069 int	linux_sys_fcntl64(struct lwp *, void *, register_t *);
1070 
1071 int	linux_sys_setxattr(struct lwp *, void *, register_t *);
1072 
1073 int	linux_sys_lsetxattr(struct lwp *, void *, register_t *);
1074 
1075 int	linux_sys_fsetxattr(struct lwp *, void *, register_t *);
1076 
1077 int	linux_sys_getxattr(struct lwp *, void *, register_t *);
1078 
1079 int	linux_sys_lgetxattr(struct lwp *, void *, register_t *);
1080 
1081 int	linux_sys_fgetxattr(struct lwp *, void *, register_t *);
1082 
1083 int	linux_sys_listxattr(struct lwp *, void *, register_t *);
1084 
1085 int	linux_sys_llistxattr(struct lwp *, void *, register_t *);
1086 
1087 int	linux_sys_flistxattr(struct lwp *, void *, register_t *);
1088 
1089 int	linux_sys_removexattr(struct lwp *, void *, register_t *);
1090 
1091 int	linux_sys_lremovexattr(struct lwp *, void *, register_t *);
1092 
1093 int	linux_sys_fremovexattr(struct lwp *, void *, register_t *);
1094 
1095 int	linux_sys_exit_group(struct lwp *, void *, register_t *);
1096 
1097 int	linux_sys_clock_settime(struct lwp *, void *, register_t *);
1098 
1099 int	linux_sys_clock_gettime(struct lwp *, void *, register_t *);
1100 
1101 int	linux_sys_clock_getres(struct lwp *, void *, register_t *);
1102 
1103 int	linux_sys_clock_nanosleep(struct lwp *, void *, register_t *);
1104 
1105 int	linux_sys_statfs64(struct lwp *, void *, register_t *);
1106 
1107 int	linux_sys_fstatfs64(struct lwp *, void *, register_t *);
1108 
1109 int	linux_sys_breakpoint(struct lwp *, void *, register_t *);
1110 
1111 int	linux_sys_cacheflush(struct lwp *, void *, register_t *);
1112 
1113 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
1114