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