xref: /netbsd-src/sys/compat/linux/arch/amd64/linux_syscallargs.h (revision cac8e449158efc7261bebc8657cbb0125a2cfdde)
1 /* $NetBSD: linux_syscallargs.h,v 1.23 2008/04/04 12:43:00 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.23 2008/04/04 12:38:52 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 sys_read_args;
35 
36 struct sys_write_args;
37 
38 struct linux_sys_open_args {
39 	syscallarg(const char *) path;
40 	syscallarg(int) flags;
41 	syscallarg(int) mode;
42 };
43 check_syscall_args(linux_sys_open)
44 
45 struct sys_close_args;
46 
47 struct linux_sys_stat64_args {
48 	syscallarg(const char *) path;
49 	syscallarg(struct linux_stat *) sp;
50 };
51 check_syscall_args(linux_sys_stat64)
52 
53 struct linux_sys_fstat64_args {
54 	syscallarg(int) fd;
55 	syscallarg(struct linux_stat *) sp;
56 };
57 check_syscall_args(linux_sys_fstat64)
58 
59 struct linux_sys_lstat64_args {
60 	syscallarg(const char *) path;
61 	syscallarg(struct linux_stat *) sp;
62 };
63 check_syscall_args(linux_sys_lstat64)
64 
65 struct sys_poll_args;
66 
67 struct compat_43_sys_lseek_args;
68 
69 struct linux_sys_mmap_args;
70 
71 struct linux_sys_mprotect_args {
72 	syscallarg(const void *) start;
73 	syscallarg(unsigned long) len;
74 	syscallarg(int) prot;
75 };
76 check_syscall_args(linux_sys_mprotect)
77 
78 struct sys_munmap_args;
79 
80 struct linux_sys_brk_args {
81 	syscallarg(char *) nsize;
82 };
83 check_syscall_args(linux_sys_brk)
84 
85 struct linux_sys_rt_sigaction_args {
86 	syscallarg(int) signum;
87 	syscallarg(const struct linux_sigaction *) nsa;
88 	syscallarg(struct linux_sigaction *) osa;
89 	syscallarg(size_t) sigsetsize;
90 };
91 check_syscall_args(linux_sys_rt_sigaction)
92 
93 struct linux_sys_rt_sigprocmask_args {
94 	syscallarg(int) how;
95 	syscallarg(const linux_sigset_t *) set;
96 	syscallarg(linux_sigset_t *) oset;
97 	syscallarg(size_t) sigsetsize;
98 };
99 check_syscall_args(linux_sys_rt_sigprocmask)
100 
101 struct linux_sys_ioctl_args {
102 	syscallarg(int) fd;
103 	syscallarg(u_long) com;
104 	syscallarg(void *) data;
105 };
106 check_syscall_args(linux_sys_ioctl)
107 
108 struct linux_sys_pread_args {
109 	syscallarg(int) fd;
110 	syscallarg(char *) buf;
111 	syscallarg(size_t) nbyte;
112 	syscallarg(linux_off_t) offset;
113 };
114 check_syscall_args(linux_sys_pread)
115 
116 struct linux_sys_pwrite_args {
117 	syscallarg(int) fd;
118 	syscallarg(char *) buf;
119 	syscallarg(size_t) nbyte;
120 	syscallarg(linux_off_t) offset;
121 };
122 check_syscall_args(linux_sys_pwrite)
123 
124 struct sys_readv_args;
125 
126 struct sys_writev_args;
127 
128 struct sys_access_args;
129 
130 struct linux_sys_pipe_args {
131 	syscallarg(int *) pfds;
132 };
133 check_syscall_args(linux_sys_pipe)
134 
135 struct linux_sys_select_args {
136 	syscallarg(int) nfds;
137 	syscallarg(fd_set *) readfds;
138 	syscallarg(fd_set *) writefds;
139 	syscallarg(fd_set *) exceptfds;
140 	syscallarg(struct timeval *) timeout;
141 };
142 check_syscall_args(linux_sys_select)
143 
144 struct linux_sys_mremap_args {
145 	syscallarg(void *) old_address;
146 	syscallarg(size_t) old_size;
147 	syscallarg(size_t) new_size;
148 	syscallarg(u_long) flags;
149 };
150 check_syscall_args(linux_sys_mremap)
151 
152 struct sys___msync13_args;
153 
154 struct sys_mincore_args;
155 
156 struct sys_madvise_args;
157 #ifdef SYSVSHM
158 
159 struct linux_sys_shmget_args;
160 
161 struct sys_shmat_args;
162 
163 struct linux_sys_shmctl_args;
164 #else
165 #endif
166 
167 struct sys_dup_args;
168 
169 struct sys_dup2_args;
170 
171 struct sys_nanosleep_args;
172 
173 struct sys_getitimer_args;
174 
175 struct linux_sys_alarm_args {
176 	syscallarg(unsigned int) secs;
177 };
178 check_syscall_args(linux_sys_alarm)
179 
180 struct sys_setitimer_args;
181 
182 struct linux_sys_socket_args {
183 	syscallarg(int) domain;
184 	syscallarg(int) type;
185 	syscallarg(int) protocol;
186 };
187 check_syscall_args(linux_sys_socket)
188 
189 struct linux_sys_connect_args {
190 	syscallarg(int) s;
191 	syscallarg(const struct osockaddr *) name;
192 	syscallarg(unsigned int) namelen;
193 };
194 check_syscall_args(linux_sys_connect)
195 
196 struct linux_sys_accept_args {
197 	syscallarg(int) s;
198 	syscallarg(struct osockaddr *) name;
199 	syscallarg(int *) anamelen;
200 };
201 check_syscall_args(linux_sys_accept)
202 
203 struct linux_sys_sendto_args {
204 	syscallarg(int) s;
205 	syscallarg(void *) msg;
206 	syscallarg(int) len;
207 	syscallarg(int) flags;
208 	syscallarg(struct osockaddr *) to;
209 	syscallarg(int) tolen;
210 };
211 check_syscall_args(linux_sys_sendto)
212 
213 struct linux_sys_recvfrom_args {
214 	syscallarg(int) s;
215 	syscallarg(void *) buf;
216 	syscallarg(size_t) len;
217 	syscallarg(int) flags;
218 	syscallarg(struct osockaddr *) from;
219 	syscallarg(unsigned int *) fromlenaddr;
220 };
221 check_syscall_args(linux_sys_recvfrom)
222 
223 struct linux_sys_sendmsg_args {
224 	syscallarg(int) s;
225 	syscallarg(const struct msghdr *) msg;
226 	syscallarg(int) flags;
227 };
228 check_syscall_args(linux_sys_sendmsg)
229 
230 struct linux_sys_recvmsg_args {
231 	syscallarg(int) s;
232 	syscallarg(struct msghdr *) msg;
233 	syscallarg(int) flags;
234 };
235 check_syscall_args(linux_sys_recvmsg)
236 
237 struct sys_shutdown_args;
238 
239 struct linux_sys_bind_args {
240 	syscallarg(int) s;
241 	syscallarg(const struct osockaddr *) name;
242 	syscallarg(unsigned int) namelen;
243 };
244 check_syscall_args(linux_sys_bind)
245 
246 struct sys_listen_args;
247 
248 struct linux_sys_getsockname_args {
249 	syscallarg(int) fdec;
250 	syscallarg(void *) asa;
251 	syscallarg(int *) alen;
252 };
253 check_syscall_args(linux_sys_getsockname)
254 
255 struct linux_sys_getpeername_args {
256 	syscallarg(int) fdes;
257 	syscallarg(struct sockaddr *) asa;
258 	syscallarg(unsigned int *) alen;
259 };
260 check_syscall_args(linux_sys_getpeername)
261 
262 struct linux_sys_socketpair_args {
263 	syscallarg(int) domain;
264 	syscallarg(int) type;
265 	syscallarg(int) protocol;
266 	syscallarg(int *) rsv;
267 };
268 check_syscall_args(linux_sys_socketpair)
269 
270 struct linux_sys_setsockopt_args {
271 	syscallarg(int) s;
272 	syscallarg(int) level;
273 	syscallarg(int) optname;
274 	syscallarg(void *) optval;
275 	syscallarg(int) optlen;
276 };
277 check_syscall_args(linux_sys_setsockopt)
278 
279 struct linux_sys_getsockopt_args {
280 	syscallarg(int) s;
281 	syscallarg(int) level;
282 	syscallarg(int) optname;
283 	syscallarg(void *) optval;
284 	syscallarg(int *) optlen;
285 };
286 check_syscall_args(linux_sys_getsockopt)
287 
288 struct linux_sys_clone_args {
289 	syscallarg(int) flags;
290 	syscallarg(void *) stack;
291 	syscallarg(void *) parent_tidptr;
292 	syscallarg(void *) child_tidptr;
293 };
294 check_syscall_args(linux_sys_clone)
295 
296 struct sys_execve_args;
297 
298 struct sys_exit_args;
299 
300 struct linux_sys_wait4_args {
301 	syscallarg(int) pid;
302 	syscallarg(int *) status;
303 	syscallarg(int) options;
304 	syscallarg(struct rusage *) rusage;
305 };
306 check_syscall_args(linux_sys_wait4)
307 
308 struct linux_sys_kill_args {
309 	syscallarg(int) pid;
310 	syscallarg(int) signum;
311 };
312 check_syscall_args(linux_sys_kill)
313 
314 struct linux_sys_uname_args {
315 	syscallarg(struct linux_utsname *) up;
316 };
317 check_syscall_args(linux_sys_uname)
318 #ifdef SYSVSEM
319 
320 struct sys_semget_args;
321 
322 struct sys_semop_args;
323 
324 struct linux_sys_semctl_args {
325 	syscallarg(int) semid;
326 	syscallarg(int) semnum;
327 	syscallarg(int) cmd;
328 	syscallarg(union linux_semun) arg;
329 };
330 check_syscall_args(linux_sys_semctl)
331 #else
332 #endif
333 #ifdef SYSVSHM
334 
335 struct sys_shmdt_args;
336 #else
337 #endif
338 #ifdef SYSVMSG
339 
340 struct sys_msgget_args;
341 
342 struct sys_msgsnd_args;
343 
344 struct sys_msgrcv_args;
345 
346 struct linux_sys_msgctl_args;
347 #else
348 #endif
349 
350 struct linux_sys_fcntl_args {
351 	syscallarg(int) fd;
352 	syscallarg(int) cmd;
353 	syscallarg(void *) arg;
354 };
355 check_syscall_args(linux_sys_fcntl)
356 
357 struct sys_flock_args;
358 
359 struct sys_fsync_args;
360 
361 struct linux_sys_fdatasync_args {
362 	syscallarg(int) fd;
363 };
364 check_syscall_args(linux_sys_fdatasync)
365 
366 struct linux_sys_truncate64_args {
367 	syscallarg(const char *) path;
368 	syscallarg(off_t) length;
369 };
370 check_syscall_args(linux_sys_truncate64)
371 
372 struct linux_sys_ftruncate64_args {
373 	syscallarg(unsigned int) fd;
374 	syscallarg(off_t) length;
375 };
376 check_syscall_args(linux_sys_ftruncate64)
377 
378 struct linux_sys_getdents_args {
379 	syscallarg(int) fd;
380 	syscallarg(struct linux_dirent *) dent;
381 	syscallarg(unsigned int) count;
382 };
383 check_syscall_args(linux_sys_getdents)
384 
385 struct sys___getcwd_args;
386 
387 struct sys_chdir_args;
388 
389 struct sys_fchdir_args;
390 
391 struct sys___posix_rename_args;
392 
393 struct sys_mkdir_args;
394 
395 struct sys_rmdir_args;
396 
397 struct linux_sys_creat_args {
398 	syscallarg(const char *) path;
399 	syscallarg(int) mode;
400 };
401 check_syscall_args(linux_sys_creat)
402 
403 struct sys_link_args;
404 
405 struct linux_sys_unlink_args {
406 	syscallarg(const char *) path;
407 };
408 check_syscall_args(linux_sys_unlink)
409 
410 struct sys_symlink_args;
411 
412 struct sys_readlink_args;
413 
414 struct sys_chmod_args;
415 
416 struct sys_fchmod_args;
417 
418 struct sys___posix_chown_args;
419 
420 struct sys___posix_fchown_args;
421 
422 struct sys___posix_lchown_args;
423 
424 struct sys_umask_args;
425 
426 struct linux_sys_gettimeofday_args {
427 	syscallarg(struct timeval *) tp;
428 	syscallarg(struct timezone *) tzp;
429 };
430 check_syscall_args(linux_sys_gettimeofday)
431 
432 struct linux_sys_getrlimit_args {
433 	syscallarg(int) which;
434 	syscallarg(struct rlimit *) rlp;
435 };
436 check_syscall_args(linux_sys_getrlimit)
437 
438 struct sys_getrusage_args;
439 
440 struct linux_sys_sysinfo_args {
441 	syscallarg(struct linux_sysinfo *) arg;
442 };
443 check_syscall_args(linux_sys_sysinfo)
444 
445 struct linux_sys_times_args {
446 	syscallarg(struct times *) tms;
447 };
448 check_syscall_args(linux_sys_times)
449 
450 struct linux_sys_ptrace_args {
451 	syscallarg(long) request;
452 	syscallarg(long) pid;
453 	syscallarg(long) addr;
454 	syscallarg(long) data;
455 };
456 check_syscall_args(linux_sys_ptrace)
457 
458 struct sys_setuid_args;
459 
460 struct sys_setgid_args;
461 
462 struct sys_setpgid_args;
463 
464 struct sys_setreuid_args;
465 
466 struct sys_setregid_args;
467 
468 struct sys_getgroups_args;
469 
470 struct sys_setgroups_args;
471 
472 struct linux_sys_setresuid_args {
473 	syscallarg(uid_t) ruid;
474 	syscallarg(uid_t) euid;
475 	syscallarg(uid_t) suid;
476 };
477 check_syscall_args(linux_sys_setresuid)
478 
479 struct linux_sys_getresuid_args {
480 	syscallarg(uid_t *) ruid;
481 	syscallarg(uid_t *) euid;
482 	syscallarg(uid_t *) suid;
483 };
484 check_syscall_args(linux_sys_getresuid)
485 
486 struct linux_sys_setresgid_args {
487 	syscallarg(gid_t) rgid;
488 	syscallarg(gid_t) egid;
489 	syscallarg(gid_t) sgid;
490 };
491 check_syscall_args(linux_sys_setresgid)
492 
493 struct linux_sys_getresgid_args {
494 	syscallarg(gid_t *) rgid;
495 	syscallarg(gid_t *) egid;
496 	syscallarg(gid_t *) sgid;
497 };
498 check_syscall_args(linux_sys_getresgid)
499 
500 struct sys_getpgid_args;
501 
502 struct linux_sys_setfsuid_args {
503 	syscallarg(uid_t) uid;
504 };
505 check_syscall_args(linux_sys_setfsuid)
506 
507 struct linux_sys_setfsgid_args {
508 	syscallarg(gid_t) gid;
509 };
510 check_syscall_args(linux_sys_setfsgid)
511 
512 struct sys_getsid_args;
513 
514 struct linux_sys_rt_sigpending_args {
515 	syscallarg(linux_sigset_t *) set;
516 	syscallarg(size_t) sigsetsize;
517 };
518 check_syscall_args(linux_sys_rt_sigpending)
519 
520 struct linux_sys_rt_queueinfo_args {
521 	syscallarg(int) pid;
522 	syscallarg(int) signum;
523 	syscallarg(siginfo_t *) uinfo;
524 };
525 check_syscall_args(linux_sys_rt_queueinfo)
526 
527 struct linux_sys_rt_sigsuspend_args {
528 	syscallarg(linux_sigset_t *) unewset;
529 	syscallarg(size_t) sigsetsize;
530 };
531 check_syscall_args(linux_sys_rt_sigsuspend)
532 
533 struct linux_sys_sigaltstack_args {
534 	syscallarg(const struct linux_sigaltstack *) ss;
535 	syscallarg(struct linux_sigaltstack *) oss;
536 };
537 check_syscall_args(linux_sys_sigaltstack)
538 
539 struct linux_sys_utime_args {
540 	syscallarg(const char *) path;
541 	syscallarg(struct linux_utimbuf *) times;
542 };
543 check_syscall_args(linux_sys_utime)
544 
545 struct linux_sys_mknod_args {
546 	syscallarg(const char *) path;
547 	syscallarg(int) mode;
548 	syscallarg(int) dev;
549 };
550 check_syscall_args(linux_sys_mknod)
551 #ifdef EXEC_AOUT
552 
553 struct linux_sys_uselib_args {
554 	syscallarg(const char *) path;
555 };
556 check_syscall_args(linux_sys_uselib)
557 #else
558 #endif
559 
560 struct linux_sys_personality_args {
561 	syscallarg(int) per;
562 };
563 check_syscall_args(linux_sys_personality)
564 
565 struct linux_sys_statfs_args {
566 	syscallarg(const char *) path;
567 	syscallarg(struct linux_statfs *) sp;
568 };
569 check_syscall_args(linux_sys_statfs)
570 
571 struct linux_sys_fstatfs_args {
572 	syscallarg(int) fd;
573 	syscallarg(struct linux_statfs *) sp;
574 };
575 check_syscall_args(linux_sys_fstatfs)
576 
577 struct linux_sys_getpriority_args {
578 	syscallarg(int) which;
579 	syscallarg(int) who;
580 };
581 check_syscall_args(linux_sys_getpriority)
582 
583 struct sys_setpriority_args;
584 
585 struct linux_sys_sched_setparam_args {
586 	syscallarg(pid_t) pid;
587 	syscallarg(const struct linux_sched_param *) sp;
588 };
589 check_syscall_args(linux_sys_sched_setparam)
590 
591 struct linux_sys_sched_getparam_args {
592 	syscallarg(pid_t) pid;
593 	syscallarg(struct linux_sched_param *) sp;
594 };
595 check_syscall_args(linux_sys_sched_getparam)
596 
597 struct linux_sys_sched_setscheduler_args {
598 	syscallarg(pid_t) pid;
599 	syscallarg(int) policy;
600 	syscallarg(const struct linux_sched_param *) sp;
601 };
602 check_syscall_args(linux_sys_sched_setscheduler)
603 
604 struct linux_sys_sched_getscheduler_args {
605 	syscallarg(pid_t) pid;
606 };
607 check_syscall_args(linux_sys_sched_getscheduler)
608 
609 struct linux_sys_sched_get_priority_max_args {
610 	syscallarg(int) policy;
611 };
612 check_syscall_args(linux_sys_sched_get_priority_max)
613 
614 struct linux_sys_sched_get_priority_min_args {
615 	syscallarg(int) policy;
616 };
617 check_syscall_args(linux_sys_sched_get_priority_min)
618 
619 struct sys_mlock_args;
620 
621 struct sys_munlock_args;
622 
623 struct sys_mlockall_args;
624 
625 struct linux_sys_modify_ldt_args {
626 	syscallarg(int) func;
627 	syscallarg(void *) ptr;
628 	syscallarg(size_t) bytecount;
629 };
630 check_syscall_args(linux_sys_modify_ldt)
631 
632 struct linux_sys___sysctl_args {
633 	syscallarg(struct linux___sysctl *) lsp;
634 };
635 check_syscall_args(linux_sys___sysctl)
636 
637 struct linux_sys_arch_prctl_args {
638 	syscallarg(int) code;
639 	syscallarg(unsigned long) addr;
640 };
641 check_syscall_args(linux_sys_arch_prctl)
642 
643 struct linux_sys_setrlimit_args {
644 	syscallarg(u_int) which;
645 	syscallarg(struct rlimit *) rlp;
646 };
647 check_syscall_args(linux_sys_setrlimit)
648 
649 struct sys_chroot_args;
650 
651 struct sys_acct_args;
652 
653 struct linux_sys_settimeofday_args {
654 	syscallarg(struct timeval *) tp;
655 	syscallarg(struct timezone *) tzp;
656 };
657 check_syscall_args(linux_sys_settimeofday)
658 
659 struct linux_sys_swapon_args {
660 	syscallarg(char *) name;
661 };
662 check_syscall_args(linux_sys_swapon)
663 
664 struct linux_sys_swapoff_args {
665 	syscallarg(const char *) path;
666 };
667 check_syscall_args(linux_sys_swapoff)
668 
669 struct linux_sys_reboot_args {
670 	syscallarg(int) magic1;
671 	syscallarg(int) magic2;
672 	syscallarg(int) cmd;
673 	syscallarg(void *) arg;
674 };
675 check_syscall_args(linux_sys_reboot)
676 
677 struct compat_43_sys_sethostname_args;
678 
679 struct linux_sys_setdomainname_args {
680 	syscallarg(char *) domainname;
681 	syscallarg(int) len;
682 };
683 check_syscall_args(linux_sys_setdomainname)
684 
685 struct linux_sys_iopl_args {
686 	syscallarg(int) level;
687 };
688 check_syscall_args(linux_sys_iopl)
689 
690 struct linux_sys_ioperm_args {
691 	syscallarg(unsigned int) lo;
692 	syscallarg(unsigned int) hi;
693 	syscallarg(int) val;
694 };
695 check_syscall_args(linux_sys_ioperm)
696 
697 struct linux_sys_setxattr_args {
698 	syscallarg(char *) path;
699 	syscallarg(char *) name;
700 	syscallarg(void *) value;
701 	syscallarg(size_t) size;
702 	syscallarg(int) flags;
703 };
704 check_syscall_args(linux_sys_setxattr)
705 
706 struct linux_sys_lsetxattr_args {
707 	syscallarg(char *) path;
708 	syscallarg(char *) name;
709 	syscallarg(void *) value;
710 	syscallarg(size_t) size;
711 	syscallarg(int) flags;
712 };
713 check_syscall_args(linux_sys_lsetxattr)
714 
715 struct linux_sys_fsetxattr_args {
716 	syscallarg(int) fd;
717 	syscallarg(char *) name;
718 	syscallarg(void *) value;
719 	syscallarg(size_t) size;
720 	syscallarg(int) flags;
721 };
722 check_syscall_args(linux_sys_fsetxattr)
723 
724 struct linux_sys_getxattr_args {
725 	syscallarg(char *) path;
726 	syscallarg(char *) name;
727 	syscallarg(void *) value;
728 	syscallarg(size_t) size;
729 };
730 check_syscall_args(linux_sys_getxattr)
731 
732 struct linux_sys_lgetxattr_args {
733 	syscallarg(char *) path;
734 	syscallarg(char *) name;
735 	syscallarg(void *) value;
736 	syscallarg(size_t) size;
737 };
738 check_syscall_args(linux_sys_lgetxattr)
739 
740 struct linux_sys_fgetxattr_args {
741 	syscallarg(int) fd;
742 	syscallarg(char *) name;
743 	syscallarg(void *) value;
744 	syscallarg(size_t) size;
745 };
746 check_syscall_args(linux_sys_fgetxattr)
747 
748 struct linux_sys_listxattr_args {
749 	syscallarg(char *) path;
750 	syscallarg(char *) list;
751 	syscallarg(size_t) size;
752 };
753 check_syscall_args(linux_sys_listxattr)
754 
755 struct linux_sys_llistxattr_args {
756 	syscallarg(char *) path;
757 	syscallarg(char *) list;
758 	syscallarg(size_t) size;
759 };
760 check_syscall_args(linux_sys_llistxattr)
761 
762 struct linux_sys_flistxattr_args {
763 	syscallarg(int) fd;
764 	syscallarg(char *) list;
765 	syscallarg(size_t) size;
766 };
767 check_syscall_args(linux_sys_flistxattr)
768 
769 struct linux_sys_removexattr_args {
770 	syscallarg(char *) path;
771 	syscallarg(char *) name;
772 };
773 check_syscall_args(linux_sys_removexattr)
774 
775 struct linux_sys_lremovexattr_args {
776 	syscallarg(char *) path;
777 	syscallarg(char *) name;
778 };
779 check_syscall_args(linux_sys_lremovexattr)
780 
781 struct linux_sys_fremovexattr_args {
782 	syscallarg(int) fd;
783 	syscallarg(char *) name;
784 };
785 check_syscall_args(linux_sys_fremovexattr)
786 
787 struct linux_sys_tkill_args {
788 	syscallarg(int) tid;
789 	syscallarg(int) sig;
790 };
791 check_syscall_args(linux_sys_tkill)
792 
793 struct linux_sys_time_args {
794 	syscallarg(linux_time_t *) t;
795 };
796 check_syscall_args(linux_sys_time)
797 
798 struct linux_sys_futex_args {
799 	syscallarg(int *) uaddr;
800 	syscallarg(int) op;
801 	syscallarg(int) val;
802 	syscallarg(const struct timespec *) timeout;
803 	syscallarg(int *) uaddr2;
804 	syscallarg(int) val3;
805 };
806 check_syscall_args(linux_sys_futex)
807 
808 struct linux_sys_sched_setaffinity_args {
809 	syscallarg(pid_t) pid;
810 	syscallarg(unsigned int) len;
811 	syscallarg(unsigned long *) mask;
812 };
813 check_syscall_args(linux_sys_sched_setaffinity)
814 
815 struct linux_sys_sched_getaffinity_args {
816 	syscallarg(pid_t) pid;
817 	syscallarg(unsigned int) len;
818 	syscallarg(unsigned long *) mask;
819 };
820 check_syscall_args(linux_sys_sched_getaffinity)
821 
822 struct linux_sys_getdents64_args {
823 	syscallarg(int) fd;
824 	syscallarg(struct linux_dirent64 *) dent;
825 	syscallarg(unsigned int) count;
826 };
827 check_syscall_args(linux_sys_getdents64)
828 
829 struct linux_sys_set_tid_address_args {
830 	syscallarg(int *) tid;
831 };
832 check_syscall_args(linux_sys_set_tid_address)
833 
834 struct linux_sys_clock_settime_args {
835 	syscallarg(clockid_t) which;
836 	syscallarg(struct linux_timespec *) tp;
837 };
838 check_syscall_args(linux_sys_clock_settime)
839 
840 struct linux_sys_clock_gettime_args {
841 	syscallarg(clockid_t) which;
842 	syscallarg(struct linux_timespec *) tp;
843 };
844 check_syscall_args(linux_sys_clock_gettime)
845 
846 struct linux_sys_clock_getres_args {
847 	syscallarg(clockid_t) which;
848 	syscallarg(struct linux_timespec *) tp;
849 };
850 check_syscall_args(linux_sys_clock_getres)
851 
852 struct linux_sys_clock_nanosleep_args {
853 	syscallarg(clockid_t) which;
854 	syscallarg(int) flags;
855 	syscallarg(struct linux_timespec *) rqtp;
856 	syscallarg(struct linux_timespec *) rmtp;
857 };
858 check_syscall_args(linux_sys_clock_nanosleep)
859 
860 struct linux_sys_exit_group_args {
861 	syscallarg(int) error_code;
862 };
863 check_syscall_args(linux_sys_exit_group)
864 
865 struct linux_sys_tgkill_args {
866 	syscallarg(int) tgid;
867 	syscallarg(int) tid;
868 	syscallarg(int) sig;
869 };
870 check_syscall_args(linux_sys_tgkill)
871 
872 /*
873  * System call prototypes.
874  */
875 
876 int	sys_read(struct lwp *, const struct sys_read_args *, register_t *);
877 
878 int	sys_write(struct lwp *, const struct sys_write_args *, register_t *);
879 
880 int	linux_sys_open(struct lwp *, const struct linux_sys_open_args *, register_t *);
881 
882 int	sys_close(struct lwp *, const struct sys_close_args *, register_t *);
883 
884 int	linux_sys_stat64(struct lwp *, const struct linux_sys_stat64_args *, register_t *);
885 
886 int	linux_sys_fstat64(struct lwp *, const struct linux_sys_fstat64_args *, register_t *);
887 
888 int	linux_sys_lstat64(struct lwp *, const struct linux_sys_lstat64_args *, register_t *);
889 
890 int	sys_poll(struct lwp *, const struct sys_poll_args *, register_t *);
891 
892 int	compat_43_sys_lseek(struct lwp *, const struct compat_43_sys_lseek_args *, register_t *);
893 
894 int	linux_sys_mmap(struct lwp *, const struct linux_sys_mmap_args *, register_t *);
895 
896 int	linux_sys_mprotect(struct lwp *, const struct linux_sys_mprotect_args *, register_t *);
897 
898 int	sys_munmap(struct lwp *, const struct sys_munmap_args *, register_t *);
899 
900 int	linux_sys_brk(struct lwp *, const struct linux_sys_brk_args *, register_t *);
901 
902 int	linux_sys_rt_sigaction(struct lwp *, const struct linux_sys_rt_sigaction_args *, register_t *);
903 
904 int	linux_sys_rt_sigprocmask(struct lwp *, const struct linux_sys_rt_sigprocmask_args *, register_t *);
905 
906 int	linux_sys_rt_sigreturn(struct lwp *, const void *, register_t *);
907 
908 int	linux_sys_ioctl(struct lwp *, const struct linux_sys_ioctl_args *, register_t *);
909 
910 int	linux_sys_pread(struct lwp *, const struct linux_sys_pread_args *, register_t *);
911 
912 int	linux_sys_pwrite(struct lwp *, const struct linux_sys_pwrite_args *, register_t *);
913 
914 int	sys_readv(struct lwp *, const struct sys_readv_args *, register_t *);
915 
916 int	sys_writev(struct lwp *, const struct sys_writev_args *, register_t *);
917 
918 int	sys_access(struct lwp *, const struct sys_access_args *, register_t *);
919 
920 int	linux_sys_pipe(struct lwp *, const struct linux_sys_pipe_args *, register_t *);
921 
922 int	linux_sys_select(struct lwp *, const struct linux_sys_select_args *, register_t *);
923 
924 int	linux_sys_sched_yield(struct lwp *, const void *, register_t *);
925 
926 int	linux_sys_mremap(struct lwp *, const struct linux_sys_mremap_args *, register_t *);
927 
928 int	sys___msync13(struct lwp *, const struct sys___msync13_args *, register_t *);
929 
930 int	sys_mincore(struct lwp *, const struct sys_mincore_args *, register_t *);
931 
932 int	sys_madvise(struct lwp *, const struct sys_madvise_args *, register_t *);
933 
934 #ifdef SYSVSHM
935 int	linux_sys_shmget(struct lwp *, const struct linux_sys_shmget_args *, register_t *);
936 
937 int	sys_shmat(struct lwp *, const struct sys_shmat_args *, register_t *);
938 
939 int	linux_sys_shmctl(struct lwp *, const struct linux_sys_shmctl_args *, register_t *);
940 
941 #else
942 #endif
943 int	sys_dup(struct lwp *, const struct sys_dup_args *, register_t *);
944 
945 int	sys_dup2(struct lwp *, const struct sys_dup2_args *, register_t *);
946 
947 int	linux_sys_pause(struct lwp *, const void *, register_t *);
948 
949 int	sys_nanosleep(struct lwp *, const struct sys_nanosleep_args *, register_t *);
950 
951 int	sys_getitimer(struct lwp *, const struct sys_getitimer_args *, register_t *);
952 
953 int	linux_sys_alarm(struct lwp *, const struct linux_sys_alarm_args *, register_t *);
954 
955 int	sys_setitimer(struct lwp *, const struct sys_setitimer_args *, register_t *);
956 
957 int	linux_sys_getpid(struct lwp *, const void *, register_t *);
958 
959 int	linux_sys_socket(struct lwp *, const struct linux_sys_socket_args *, register_t *);
960 
961 int	linux_sys_connect(struct lwp *, const struct linux_sys_connect_args *, register_t *);
962 
963 int	linux_sys_accept(struct lwp *, const struct linux_sys_accept_args *, register_t *);
964 
965 int	linux_sys_sendto(struct lwp *, const struct linux_sys_sendto_args *, register_t *);
966 
967 int	linux_sys_recvfrom(struct lwp *, const struct linux_sys_recvfrom_args *, register_t *);
968 
969 int	linux_sys_sendmsg(struct lwp *, const struct linux_sys_sendmsg_args *, register_t *);
970 
971 int	linux_sys_recvmsg(struct lwp *, const struct linux_sys_recvmsg_args *, register_t *);
972 
973 int	sys_shutdown(struct lwp *, const struct sys_shutdown_args *, register_t *);
974 
975 int	linux_sys_bind(struct lwp *, const struct linux_sys_bind_args *, register_t *);
976 
977 int	sys_listen(struct lwp *, const struct sys_listen_args *, register_t *);
978 
979 int	linux_sys_getsockname(struct lwp *, const struct linux_sys_getsockname_args *, register_t *);
980 
981 int	linux_sys_getpeername(struct lwp *, const struct linux_sys_getpeername_args *, register_t *);
982 
983 int	linux_sys_socketpair(struct lwp *, const struct linux_sys_socketpair_args *, register_t *);
984 
985 int	linux_sys_setsockopt(struct lwp *, const struct linux_sys_setsockopt_args *, register_t *);
986 
987 int	linux_sys_getsockopt(struct lwp *, const struct linux_sys_getsockopt_args *, register_t *);
988 
989 int	linux_sys_clone(struct lwp *, const struct linux_sys_clone_args *, register_t *);
990 
991 int	sys_fork(struct lwp *, const void *, register_t *);
992 
993 int	sys___vfork14(struct lwp *, const void *, register_t *);
994 
995 int	sys_execve(struct lwp *, const struct sys_execve_args *, register_t *);
996 
997 int	sys_exit(struct lwp *, const struct sys_exit_args *, register_t *);
998 
999 int	linux_sys_wait4(struct lwp *, const struct linux_sys_wait4_args *, register_t *);
1000 
1001 int	linux_sys_kill(struct lwp *, const struct linux_sys_kill_args *, register_t *);
1002 
1003 int	linux_sys_uname(struct lwp *, const struct linux_sys_uname_args *, register_t *);
1004 
1005 #ifdef SYSVSEM
1006 int	sys_semget(struct lwp *, const struct sys_semget_args *, register_t *);
1007 
1008 int	sys_semop(struct lwp *, const struct sys_semop_args *, register_t *);
1009 
1010 int	linux_sys_semctl(struct lwp *, const struct linux_sys_semctl_args *, register_t *);
1011 
1012 #else
1013 #endif
1014 #ifdef SYSVSHM
1015 int	sys_shmdt(struct lwp *, const struct sys_shmdt_args *, register_t *);
1016 
1017 #else
1018 #endif
1019 #ifdef SYSVMSG
1020 int	sys_msgget(struct lwp *, const struct sys_msgget_args *, register_t *);
1021 
1022 int	sys_msgsnd(struct lwp *, const struct sys_msgsnd_args *, register_t *);
1023 
1024 int	sys_msgrcv(struct lwp *, const struct sys_msgrcv_args *, register_t *);
1025 
1026 int	linux_sys_msgctl(struct lwp *, const struct linux_sys_msgctl_args *, register_t *);
1027 
1028 #else
1029 #endif
1030 int	linux_sys_fcntl(struct lwp *, const struct linux_sys_fcntl_args *, register_t *);
1031 
1032 int	sys_flock(struct lwp *, const struct sys_flock_args *, register_t *);
1033 
1034 int	sys_fsync(struct lwp *, const struct sys_fsync_args *, register_t *);
1035 
1036 int	linux_sys_fdatasync(struct lwp *, const struct linux_sys_fdatasync_args *, register_t *);
1037 
1038 int	linux_sys_truncate64(struct lwp *, const struct linux_sys_truncate64_args *, register_t *);
1039 
1040 int	linux_sys_ftruncate64(struct lwp *, const struct linux_sys_ftruncate64_args *, register_t *);
1041 
1042 int	linux_sys_getdents(struct lwp *, const struct linux_sys_getdents_args *, register_t *);
1043 
1044 int	sys___getcwd(struct lwp *, const struct sys___getcwd_args *, register_t *);
1045 
1046 int	sys_chdir(struct lwp *, const struct sys_chdir_args *, register_t *);
1047 
1048 int	sys_fchdir(struct lwp *, const struct sys_fchdir_args *, register_t *);
1049 
1050 int	sys___posix_rename(struct lwp *, const struct sys___posix_rename_args *, register_t *);
1051 
1052 int	sys_mkdir(struct lwp *, const struct sys_mkdir_args *, register_t *);
1053 
1054 int	sys_rmdir(struct lwp *, const struct sys_rmdir_args *, register_t *);
1055 
1056 int	linux_sys_creat(struct lwp *, const struct linux_sys_creat_args *, register_t *);
1057 
1058 int	sys_link(struct lwp *, const struct sys_link_args *, register_t *);
1059 
1060 int	linux_sys_unlink(struct lwp *, const struct linux_sys_unlink_args *, register_t *);
1061 
1062 int	sys_symlink(struct lwp *, const struct sys_symlink_args *, register_t *);
1063 
1064 int	sys_readlink(struct lwp *, const struct sys_readlink_args *, register_t *);
1065 
1066 int	sys_chmod(struct lwp *, const struct sys_chmod_args *, register_t *);
1067 
1068 int	sys_fchmod(struct lwp *, const struct sys_fchmod_args *, register_t *);
1069 
1070 int	sys___posix_chown(struct lwp *, const struct sys___posix_chown_args *, register_t *);
1071 
1072 int	sys___posix_fchown(struct lwp *, const struct sys___posix_fchown_args *, register_t *);
1073 
1074 int	sys___posix_lchown(struct lwp *, const struct sys___posix_lchown_args *, register_t *);
1075 
1076 int	sys_umask(struct lwp *, const struct sys_umask_args *, register_t *);
1077 
1078 int	linux_sys_gettimeofday(struct lwp *, const struct linux_sys_gettimeofday_args *, register_t *);
1079 
1080 int	linux_sys_getrlimit(struct lwp *, const struct linux_sys_getrlimit_args *, register_t *);
1081 
1082 int	sys_getrusage(struct lwp *, const struct sys_getrusage_args *, register_t *);
1083 
1084 int	linux_sys_sysinfo(struct lwp *, const struct linux_sys_sysinfo_args *, register_t *);
1085 
1086 int	linux_sys_times(struct lwp *, const struct linux_sys_times_args *, register_t *);
1087 
1088 int	linux_sys_ptrace(struct lwp *, const struct linux_sys_ptrace_args *, register_t *);
1089 
1090 int	sys_getuid(struct lwp *, const void *, register_t *);
1091 
1092 int	sys_getgid(struct lwp *, const void *, register_t *);
1093 
1094 int	sys_setuid(struct lwp *, const struct sys_setuid_args *, register_t *);
1095 
1096 int	sys_setgid(struct lwp *, const struct sys_setgid_args *, register_t *);
1097 
1098 int	sys_geteuid(struct lwp *, const void *, register_t *);
1099 
1100 int	sys_getegid(struct lwp *, const void *, register_t *);
1101 
1102 int	sys_setpgid(struct lwp *, const struct sys_setpgid_args *, register_t *);
1103 
1104 int	linux_sys_getppid(struct lwp *, const void *, register_t *);
1105 
1106 int	sys_getpgrp(struct lwp *, const void *, register_t *);
1107 
1108 int	sys_setsid(struct lwp *, const void *, register_t *);
1109 
1110 int	sys_setreuid(struct lwp *, const struct sys_setreuid_args *, register_t *);
1111 
1112 int	sys_setregid(struct lwp *, const struct sys_setregid_args *, register_t *);
1113 
1114 int	sys_getgroups(struct lwp *, const struct sys_getgroups_args *, register_t *);
1115 
1116 int	sys_setgroups(struct lwp *, const struct sys_setgroups_args *, register_t *);
1117 
1118 int	linux_sys_setresuid(struct lwp *, const struct linux_sys_setresuid_args *, register_t *);
1119 
1120 int	linux_sys_getresuid(struct lwp *, const struct linux_sys_getresuid_args *, register_t *);
1121 
1122 int	linux_sys_setresgid(struct lwp *, const struct linux_sys_setresgid_args *, register_t *);
1123 
1124 int	linux_sys_getresgid(struct lwp *, const struct linux_sys_getresgid_args *, register_t *);
1125 
1126 int	sys_getpgid(struct lwp *, const struct sys_getpgid_args *, register_t *);
1127 
1128 int	linux_sys_setfsuid(struct lwp *, const struct linux_sys_setfsuid_args *, register_t *);
1129 
1130 int	linux_sys_setfsgid(struct lwp *, const struct linux_sys_setfsgid_args *, register_t *);
1131 
1132 int	sys_getsid(struct lwp *, const struct sys_getsid_args *, register_t *);
1133 
1134 int	linux_sys_rt_sigpending(struct lwp *, const struct linux_sys_rt_sigpending_args *, register_t *);
1135 
1136 int	linux_sys_rt_queueinfo(struct lwp *, const struct linux_sys_rt_queueinfo_args *, register_t *);
1137 
1138 int	linux_sys_rt_sigsuspend(struct lwp *, const struct linux_sys_rt_sigsuspend_args *, register_t *);
1139 
1140 int	linux_sys_sigaltstack(struct lwp *, const struct linux_sys_sigaltstack_args *, register_t *);
1141 
1142 int	linux_sys_utime(struct lwp *, const struct linux_sys_utime_args *, register_t *);
1143 
1144 int	linux_sys_mknod(struct lwp *, const struct linux_sys_mknod_args *, register_t *);
1145 
1146 #ifdef EXEC_AOUT
1147 int	linux_sys_uselib(struct lwp *, const struct linux_sys_uselib_args *, register_t *);
1148 
1149 #else
1150 #endif
1151 int	linux_sys_personality(struct lwp *, const struct linux_sys_personality_args *, register_t *);
1152 
1153 int	linux_sys_statfs(struct lwp *, const struct linux_sys_statfs_args *, register_t *);
1154 
1155 int	linux_sys_fstatfs(struct lwp *, const struct linux_sys_fstatfs_args *, register_t *);
1156 
1157 int	linux_sys_getpriority(struct lwp *, const struct linux_sys_getpriority_args *, register_t *);
1158 
1159 int	sys_setpriority(struct lwp *, const struct sys_setpriority_args *, register_t *);
1160 
1161 int	linux_sys_sched_setparam(struct lwp *, const struct linux_sys_sched_setparam_args *, register_t *);
1162 
1163 int	linux_sys_sched_getparam(struct lwp *, const struct linux_sys_sched_getparam_args *, register_t *);
1164 
1165 int	linux_sys_sched_setscheduler(struct lwp *, const struct linux_sys_sched_setscheduler_args *, register_t *);
1166 
1167 int	linux_sys_sched_getscheduler(struct lwp *, const struct linux_sys_sched_getscheduler_args *, register_t *);
1168 
1169 int	linux_sys_sched_get_priority_max(struct lwp *, const struct linux_sys_sched_get_priority_max_args *, register_t *);
1170 
1171 int	linux_sys_sched_get_priority_min(struct lwp *, const struct linux_sys_sched_get_priority_min_args *, register_t *);
1172 
1173 int	sys_mlock(struct lwp *, const struct sys_mlock_args *, register_t *);
1174 
1175 int	sys_munlock(struct lwp *, const struct sys_munlock_args *, register_t *);
1176 
1177 int	sys_mlockall(struct lwp *, const struct sys_mlockall_args *, register_t *);
1178 
1179 int	sys_munlockall(struct lwp *, const void *, register_t *);
1180 
1181 int	linux_sys_modify_ldt(struct lwp *, const struct linux_sys_modify_ldt_args *, register_t *);
1182 
1183 int	linux_sys___sysctl(struct lwp *, const struct linux_sys___sysctl_args *, register_t *);
1184 
1185 int	linux_sys_arch_prctl(struct lwp *, const struct linux_sys_arch_prctl_args *, register_t *);
1186 
1187 int	linux_sys_setrlimit(struct lwp *, const struct linux_sys_setrlimit_args *, register_t *);
1188 
1189 int	sys_chroot(struct lwp *, const struct sys_chroot_args *, register_t *);
1190 
1191 int	sys_sync(struct lwp *, const void *, register_t *);
1192 
1193 int	sys_acct(struct lwp *, const struct sys_acct_args *, register_t *);
1194 
1195 int	linux_sys_settimeofday(struct lwp *, const struct linux_sys_settimeofday_args *, register_t *);
1196 
1197 int	linux_sys_swapon(struct lwp *, const struct linux_sys_swapon_args *, register_t *);
1198 
1199 int	linux_sys_swapoff(struct lwp *, const struct linux_sys_swapoff_args *, register_t *);
1200 
1201 int	linux_sys_reboot(struct lwp *, const struct linux_sys_reboot_args *, register_t *);
1202 
1203 int	compat_43_sys_sethostname(struct lwp *, const struct compat_43_sys_sethostname_args *, register_t *);
1204 
1205 int	linux_sys_setdomainname(struct lwp *, const struct linux_sys_setdomainname_args *, register_t *);
1206 
1207 int	linux_sys_iopl(struct lwp *, const struct linux_sys_iopl_args *, register_t *);
1208 
1209 int	linux_sys_ioperm(struct lwp *, const struct linux_sys_ioperm_args *, register_t *);
1210 
1211 int	linux_sys_gettid(struct lwp *, const void *, register_t *);
1212 
1213 int	linux_sys_setxattr(struct lwp *, const struct linux_sys_setxattr_args *, register_t *);
1214 
1215 int	linux_sys_lsetxattr(struct lwp *, const struct linux_sys_lsetxattr_args *, register_t *);
1216 
1217 int	linux_sys_fsetxattr(struct lwp *, const struct linux_sys_fsetxattr_args *, register_t *);
1218 
1219 int	linux_sys_getxattr(struct lwp *, const struct linux_sys_getxattr_args *, register_t *);
1220 
1221 int	linux_sys_lgetxattr(struct lwp *, const struct linux_sys_lgetxattr_args *, register_t *);
1222 
1223 int	linux_sys_fgetxattr(struct lwp *, const struct linux_sys_fgetxattr_args *, register_t *);
1224 
1225 int	linux_sys_listxattr(struct lwp *, const struct linux_sys_listxattr_args *, register_t *);
1226 
1227 int	linux_sys_llistxattr(struct lwp *, const struct linux_sys_llistxattr_args *, register_t *);
1228 
1229 int	linux_sys_flistxattr(struct lwp *, const struct linux_sys_flistxattr_args *, register_t *);
1230 
1231 int	linux_sys_removexattr(struct lwp *, const struct linux_sys_removexattr_args *, register_t *);
1232 
1233 int	linux_sys_lremovexattr(struct lwp *, const struct linux_sys_lremovexattr_args *, register_t *);
1234 
1235 int	linux_sys_fremovexattr(struct lwp *, const struct linux_sys_fremovexattr_args *, register_t *);
1236 
1237 int	linux_sys_tkill(struct lwp *, const struct linux_sys_tkill_args *, register_t *);
1238 
1239 int	linux_sys_time(struct lwp *, const struct linux_sys_time_args *, register_t *);
1240 
1241 int	linux_sys_futex(struct lwp *, const struct linux_sys_futex_args *, register_t *);
1242 
1243 int	linux_sys_sched_setaffinity(struct lwp *, const struct linux_sys_sched_setaffinity_args *, register_t *);
1244 
1245 int	linux_sys_sched_getaffinity(struct lwp *, const struct linux_sys_sched_getaffinity_args *, register_t *);
1246 
1247 int	linux_sys_getdents64(struct lwp *, const struct linux_sys_getdents64_args *, register_t *);
1248 
1249 int	linux_sys_set_tid_address(struct lwp *, const struct linux_sys_set_tid_address_args *, register_t *);
1250 
1251 int	linux_sys_clock_settime(struct lwp *, const struct linux_sys_clock_settime_args *, register_t *);
1252 
1253 int	linux_sys_clock_gettime(struct lwp *, const struct linux_sys_clock_gettime_args *, register_t *);
1254 
1255 int	linux_sys_clock_getres(struct lwp *, const struct linux_sys_clock_getres_args *, register_t *);
1256 
1257 int	linux_sys_clock_nanosleep(struct lwp *, const struct linux_sys_clock_nanosleep_args *, register_t *);
1258 
1259 int	linux_sys_exit_group(struct lwp *, const struct linux_sys_exit_group_args *, register_t *);
1260 
1261 int	linux_sys_tgkill(struct lwp *, const struct linux_sys_tgkill_args *, register_t *);
1262 
1263 int	linux_sys_nosys(struct lwp *, const void *, register_t *);
1264 
1265 #endif /* _LINUX_SYS_SYSCALLARGS_H_ */
1266