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