linux_syscallargs.h revision 1.48 1 1.16 cgd /* $NetBSD: linux_syscallargs.h,v 1.48 2004/08/01 15:38:10 jdolecek 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.48 jdolecek * created from NetBSD: syscalls.master,v 1.44 2004/08/01 15:34:22 jdolecek Exp
8 1.1 itohy */
9 1.1 itohy
10 1.2 itohy #ifndef _LINUX_SYS__SYSCALLARGS_H_
11 1.35 manu #define _LINUX_SYS__SYSCALLARGS_H_
12 1.2 itohy
13 1.1 itohy #ifdef syscallarg
14 1.1 itohy #undef syscallarg
15 1.1 itohy #endif
16 1.1 itohy
17 1.9 tron #define syscallarg(x) \
18 1.9 tron union { \
19 1.9 tron register_t pad; \
20 1.9 tron struct { x datum; } le; \
21 1.37 lukem struct { /* LINTED zero array dimension */ \
22 1.37 lukem int8_t pad[ /* CONSTCOND */ \
23 1.37 lukem (sizeof (register_t) < sizeof (x)) \
24 1.9 tron ? 0 \
25 1.9 tron : sizeof (register_t) - sizeof (x)]; \
26 1.9 tron x datum; \
27 1.9 tron } be; \
28 1.9 tron }
29 1.1 itohy
30 1.1 itohy struct linux_sys_open_args {
31 1.2 itohy syscallarg(const char *) path;
32 1.1 itohy syscallarg(int) flags;
33 1.1 itohy syscallarg(int) mode;
34 1.1 itohy };
35 1.1 itohy
36 1.1 itohy struct linux_sys_waitpid_args {
37 1.1 itohy syscallarg(int) pid;
38 1.1 itohy syscallarg(int *) status;
39 1.1 itohy syscallarg(int) options;
40 1.1 itohy };
41 1.1 itohy
42 1.1 itohy struct linux_sys_creat_args {
43 1.2 itohy syscallarg(const char *) path;
44 1.1 itohy syscallarg(int) mode;
45 1.1 itohy };
46 1.1 itohy
47 1.29 fvdl struct linux_sys_link_args {
48 1.29 fvdl syscallarg(const char *) path;
49 1.29 fvdl syscallarg(const char *) link;
50 1.29 fvdl };
51 1.29 fvdl
52 1.1 itohy struct linux_sys_unlink_args {
53 1.2 itohy syscallarg(const char *) path;
54 1.1 itohy };
55 1.1 itohy
56 1.1 itohy struct linux_sys_execve_args {
57 1.2 itohy syscallarg(const char *) path;
58 1.1 itohy syscallarg(char **) argp;
59 1.1 itohy syscallarg(char **) envp;
60 1.1 itohy };
61 1.1 itohy
62 1.1 itohy struct linux_sys_chdir_args {
63 1.2 itohy syscallarg(const char *) path;
64 1.1 itohy };
65 1.1 itohy
66 1.1 itohy struct linux_sys_time_args {
67 1.1 itohy syscallarg(linux_time_t *) t;
68 1.1 itohy };
69 1.1 itohy
70 1.1 itohy struct linux_sys_mknod_args {
71 1.2 itohy syscallarg(const char *) path;
72 1.1 itohy syscallarg(int) mode;
73 1.1 itohy syscallarg(int) dev;
74 1.1 itohy };
75 1.1 itohy
76 1.1 itohy struct linux_sys_chmod_args {
77 1.2 itohy syscallarg(const char *) path;
78 1.1 itohy syscallarg(int) mode;
79 1.1 itohy };
80 1.1 itohy
81 1.26 fvdl struct linux_sys_chown16_args {
82 1.2 itohy syscallarg(const char *) path;
83 1.1 itohy syscallarg(int) uid;
84 1.1 itohy syscallarg(int) gid;
85 1.1 itohy };
86 1.48 jdolecek #if !defined(_KERNEL) || defined(COMPAT_43)
87 1.48 jdolecek #else
88 1.48 jdolecek #endif
89 1.1 itohy
90 1.8 tron struct linux_sys_stime_args {
91 1.8 tron syscallarg(linux_time_t *) t;
92 1.8 tron };
93 1.8 tron
94 1.12 tron struct linux_sys_ptrace_args {
95 1.12 tron syscallarg(int) request;
96 1.12 tron syscallarg(int) pid;
97 1.12 tron syscallarg(int) addr;
98 1.12 tron syscallarg(int) data;
99 1.12 tron };
100 1.12 tron
101 1.1 itohy struct linux_sys_alarm_args {
102 1.1 itohy syscallarg(unsigned int) secs;
103 1.1 itohy };
104 1.1 itohy
105 1.1 itohy struct linux_sys_utime_args {
106 1.2 itohy syscallarg(const char *) path;
107 1.1 itohy syscallarg(struct linux_utimbuf *) times;
108 1.1 itohy };
109 1.1 itohy
110 1.1 itohy struct linux_sys_access_args {
111 1.2 itohy syscallarg(const char *) path;
112 1.1 itohy syscallarg(int) flags;
113 1.1 itohy };
114 1.1 itohy
115 1.1 itohy struct linux_sys_nice_args {
116 1.1 itohy syscallarg(int) incr;
117 1.1 itohy };
118 1.1 itohy
119 1.1 itohy struct linux_sys_kill_args {
120 1.1 itohy syscallarg(int) pid;
121 1.1 itohy syscallarg(int) signum;
122 1.1 itohy };
123 1.1 itohy
124 1.1 itohy struct linux_sys_rename_args {
125 1.2 itohy syscallarg(const char *) from;
126 1.2 itohy syscallarg(const char *) to;
127 1.1 itohy };
128 1.1 itohy
129 1.1 itohy struct linux_sys_mkdir_args {
130 1.2 itohy syscallarg(const char *) path;
131 1.1 itohy syscallarg(int) mode;
132 1.1 itohy };
133 1.1 itohy
134 1.1 itohy struct linux_sys_rmdir_args {
135 1.2 itohy syscallarg(const char *) path;
136 1.1 itohy };
137 1.1 itohy
138 1.1 itohy struct linux_sys_pipe_args {
139 1.1 itohy syscallarg(int *) pfds;
140 1.1 itohy };
141 1.1 itohy
142 1.1 itohy struct linux_sys_times_args {
143 1.1 itohy syscallarg(struct times *) tms;
144 1.1 itohy };
145 1.1 itohy
146 1.1 itohy struct linux_sys_brk_args {
147 1.1 itohy syscallarg(char *) nsize;
148 1.1 itohy };
149 1.1 itohy
150 1.1 itohy struct linux_sys_signal_args {
151 1.10 tron syscallarg(int) signum;
152 1.1 itohy syscallarg(linux_handler_t) handler;
153 1.1 itohy };
154 1.1 itohy
155 1.1 itohy struct linux_sys_ioctl_args {
156 1.1 itohy syscallarg(int) fd;
157 1.1 itohy syscallarg(u_long) com;
158 1.1 itohy syscallarg(caddr_t) data;
159 1.1 itohy };
160 1.1 itohy
161 1.1 itohy struct linux_sys_fcntl_args {
162 1.1 itohy syscallarg(int) fd;
163 1.1 itohy syscallarg(int) cmd;
164 1.1 itohy syscallarg(void *) arg;
165 1.1 itohy };
166 1.1 itohy
167 1.1 itohy struct linux_sys_sigaction_args {
168 1.1 itohy syscallarg(int) signum;
169 1.1 itohy syscallarg(const struct linux_old_sigaction *) nsa;
170 1.1 itohy syscallarg(struct linux_old_sigaction *) osa;
171 1.1 itohy };
172 1.1 itohy
173 1.1 itohy struct linux_sys_sigsetmask_args {
174 1.1 itohy syscallarg(linux_old_sigset_t) mask;
175 1.1 itohy };
176 1.1 itohy
177 1.26 fvdl struct linux_sys_setreuid16_args {
178 1.1 itohy syscallarg(int) ruid;
179 1.1 itohy syscallarg(int) euid;
180 1.1 itohy };
181 1.1 itohy
182 1.26 fvdl struct linux_sys_setregid16_args {
183 1.1 itohy syscallarg(int) rgid;
184 1.1 itohy syscallarg(int) egid;
185 1.1 itohy };
186 1.1 itohy
187 1.1 itohy struct linux_sys_sigsuspend_args {
188 1.1 itohy syscallarg(caddr_t) restart;
189 1.1 itohy syscallarg(int) oldmask;
190 1.1 itohy syscallarg(int) mask;
191 1.1 itohy };
192 1.1 itohy
193 1.1 itohy struct linux_sys_sigpending_args {
194 1.1 itohy syscallarg(linux_old_sigset_t *) set;
195 1.1 itohy };
196 1.48 jdolecek #if !defined(_KERNEL) || defined(COMPAT_43)
197 1.48 jdolecek #else
198 1.48 jdolecek #endif
199 1.1 itohy
200 1.39 christos struct linux_sys_setrlimit_args {
201 1.39 christos syscallarg(u_int) which;
202 1.39 christos syscallarg(struct orlimit *) rlp;
203 1.39 christos };
204 1.39 christos
205 1.39 christos struct linux_sys_getrlimit_args {
206 1.39 christos syscallarg(u_int) which;
207 1.39 christos syscallarg(struct orlimit *) rlp;
208 1.39 christos };
209 1.39 christos
210 1.35 manu struct linux_sys_gettimeofday_args {
211 1.35 manu syscallarg(struct timeval *) tp;
212 1.35 manu syscallarg(struct timezone *) tzp;
213 1.35 manu };
214 1.35 manu
215 1.35 manu struct linux_sys_settimeofday_args {
216 1.35 manu syscallarg(struct timeval *) tp;
217 1.35 manu syscallarg(struct timezone *) tzp;
218 1.35 manu };
219 1.35 manu
220 1.28 fvdl struct linux_sys_getgroups16_args {
221 1.28 fvdl syscallarg(u_int) gidsetsize;
222 1.28 fvdl syscallarg(linux_gid_t *) gidset;
223 1.28 fvdl };
224 1.28 fvdl
225 1.28 fvdl struct linux_sys_setgroups16_args {
226 1.28 fvdl syscallarg(u_int) gidsetsize;
227 1.28 fvdl syscallarg(linux_gid_t *) gidset;
228 1.28 fvdl };
229 1.28 fvdl
230 1.1 itohy struct linux_sys_oldselect_args {
231 1.1 itohy syscallarg(struct linux_oldselect *) lsp;
232 1.1 itohy };
233 1.1 itohy
234 1.1 itohy struct linux_sys_symlink_args {
235 1.2 itohy syscallarg(const char *) path;
236 1.2 itohy syscallarg(const char *) to;
237 1.1 itohy };
238 1.48 jdolecek #if !defined(_KERNEL) || defined(COMPAT_43)
239 1.48 jdolecek #else
240 1.48 jdolecek #endif
241 1.1 itohy
242 1.1 itohy struct linux_sys_readlink_args {
243 1.2 itohy syscallarg(const char *) name;
244 1.1 itohy syscallarg(char *) buf;
245 1.1 itohy syscallarg(int) count;
246 1.1 itohy };
247 1.1 itohy
248 1.1 itohy struct linux_sys_uselib_args {
249 1.2 itohy syscallarg(const char *) path;
250 1.1 itohy };
251 1.1 itohy
252 1.19 jdolecek struct linux_sys_swapon_args {
253 1.19 jdolecek syscallarg(char *) name;
254 1.19 jdolecek };
255 1.19 jdolecek
256 1.14 erh struct linux_sys_reboot_args {
257 1.14 erh syscallarg(int) magic1;
258 1.14 erh syscallarg(int) magic2;
259 1.14 erh syscallarg(int) cmd;
260 1.14 erh syscallarg(void *) arg;
261 1.14 erh };
262 1.14 erh
263 1.1 itohy struct linux_sys_readdir_args {
264 1.1 itohy syscallarg(int) fd;
265 1.1 itohy syscallarg(caddr_t) dent;
266 1.1 itohy syscallarg(unsigned int) count;
267 1.1 itohy };
268 1.1 itohy
269 1.1 itohy struct linux_sys_old_mmap_args {
270 1.1 itohy syscallarg(struct linux_oldmmap *) lmp;
271 1.1 itohy };
272 1.1 itohy
273 1.1 itohy struct linux_sys_truncate_args {
274 1.2 itohy syscallarg(const char *) path;
275 1.1 itohy syscallarg(long) length;
276 1.1 itohy };
277 1.48 jdolecek #if !defined(_KERNEL) || defined(COMPAT_43)
278 1.48 jdolecek #else
279 1.48 jdolecek #endif
280 1.1 itohy
281 1.26 fvdl struct linux_sys_fchown16_args {
282 1.1 itohy syscallarg(int) fd;
283 1.1 itohy syscallarg(int) uid;
284 1.1 itohy syscallarg(int) gid;
285 1.1 itohy };
286 1.1 itohy
287 1.1 itohy struct linux_sys_statfs_args {
288 1.2 itohy syscallarg(const char *) path;
289 1.1 itohy syscallarg(struct linux_statfs *) sp;
290 1.1 itohy };
291 1.1 itohy
292 1.1 itohy struct linux_sys_fstatfs_args {
293 1.1 itohy syscallarg(int) fd;
294 1.1 itohy syscallarg(struct linux_statfs *) sp;
295 1.1 itohy };
296 1.1 itohy
297 1.1 itohy struct linux_sys_socketcall_args {
298 1.1 itohy syscallarg(int) what;
299 1.1 itohy syscallarg(void *) args;
300 1.1 itohy };
301 1.1 itohy
302 1.1 itohy struct linux_sys_stat_args {
303 1.2 itohy syscallarg(const char *) path;
304 1.1 itohy syscallarg(struct linux_stat *) sp;
305 1.1 itohy };
306 1.1 itohy
307 1.1 itohy struct linux_sys_lstat_args {
308 1.2 itohy syscallarg(const char *) path;
309 1.1 itohy syscallarg(struct linux_stat *) sp;
310 1.1 itohy };
311 1.1 itohy
312 1.1 itohy struct linux_sys_fstat_args {
313 1.1 itohy syscallarg(int) fd;
314 1.1 itohy syscallarg(struct linux_stat *) sp;
315 1.1 itohy };
316 1.1 itohy
317 1.1 itohy struct linux_sys_wait4_args {
318 1.1 itohy syscallarg(int) pid;
319 1.1 itohy syscallarg(int *) status;
320 1.1 itohy syscallarg(int) options;
321 1.1 itohy syscallarg(struct rusage *) rusage;
322 1.1 itohy };
323 1.1 itohy
324 1.20 jdolecek struct linux_sys_swapoff_args {
325 1.20 jdolecek syscallarg(const char *) path;
326 1.20 jdolecek };
327 1.20 jdolecek
328 1.25 jdolecek struct linux_sys_sysinfo_args {
329 1.25 jdolecek syscallarg(struct linux_sysinfo *) arg;
330 1.25 jdolecek };
331 1.25 jdolecek
332 1.1 itohy struct linux_sys_ipc_args {
333 1.1 itohy syscallarg(int) what;
334 1.1 itohy syscallarg(int) a1;
335 1.1 itohy syscallarg(int) a2;
336 1.1 itohy syscallarg(int) a3;
337 1.1 itohy syscallarg(caddr_t) ptr;
338 1.1 itohy };
339 1.1 itohy
340 1.6 thorpej struct linux_sys_clone_args {
341 1.6 thorpej syscallarg(int) flags;
342 1.6 thorpej syscallarg(void *) stack;
343 1.6 thorpej };
344 1.6 thorpej
345 1.19 jdolecek struct linux_sys_setdomainname_args {
346 1.19 jdolecek syscallarg(char *) domainname;
347 1.19 jdolecek syscallarg(int) len;
348 1.19 jdolecek };
349 1.19 jdolecek
350 1.1 itohy struct linux_sys_uname_args {
351 1.1 itohy syscallarg(struct linux_utsname *) up;
352 1.1 itohy };
353 1.1 itohy
354 1.1 itohy struct linux_sys_cacheflush_args {
355 1.1 itohy syscallarg(unsigned long) addr;
356 1.1 itohy syscallarg(int) scope;
357 1.1 itohy syscallarg(int) cache;
358 1.1 itohy syscallarg(unsigned long) len;
359 1.1 itohy };
360 1.1 itohy
361 1.40 christos struct linux_sys_mprotect_args {
362 1.40 christos syscallarg(const void *) start;
363 1.40 christos syscallarg(unsigned long) len;
364 1.40 christos syscallarg(int) prot;
365 1.40 christos };
366 1.40 christos
367 1.1 itohy struct linux_sys_sigprocmask_args {
368 1.1 itohy syscallarg(int) how;
369 1.1 itohy syscallarg(const linux_old_sigset_t *) set;
370 1.1 itohy syscallarg(linux_old_sigset_t *) oset;
371 1.1 itohy };
372 1.1 itohy
373 1.1 itohy struct linux_sys_getpgid_args {
374 1.1 itohy syscallarg(int) pid;
375 1.1 itohy };
376 1.1 itohy
377 1.1 itohy struct linux_sys_personality_args {
378 1.1 itohy syscallarg(int) per;
379 1.1 itohy };
380 1.1 itohy
381 1.1 itohy struct linux_sys_llseek_args {
382 1.1 itohy syscallarg(int) fd;
383 1.1 itohy syscallarg(u_int32_t) ohigh;
384 1.1 itohy syscallarg(u_int32_t) olow;
385 1.1 itohy syscallarg(caddr_t) res;
386 1.1 itohy syscallarg(int) whence;
387 1.1 itohy };
388 1.1 itohy
389 1.1 itohy struct linux_sys_getdents_args {
390 1.1 itohy syscallarg(int) fd;
391 1.1 itohy syscallarg(struct linux_dirent *) dent;
392 1.1 itohy syscallarg(unsigned int) count;
393 1.1 itohy };
394 1.1 itohy
395 1.1 itohy struct linux_sys_select_args {
396 1.1 itohy syscallarg(int) nfds;
397 1.1 itohy syscallarg(fd_set *) readfds;
398 1.1 itohy syscallarg(fd_set *) writefds;
399 1.1 itohy syscallarg(fd_set *) exceptfds;
400 1.1 itohy syscallarg(struct timeval *) timeout;
401 1.1 itohy };
402 1.1 itohy
403 1.1 itohy struct linux_sys_msync_args {
404 1.1 itohy syscallarg(caddr_t) addr;
405 1.1 itohy syscallarg(int) len;
406 1.1 itohy syscallarg(int) fl;
407 1.1 itohy };
408 1.1 itohy
409 1.1 itohy struct linux_sys_fdatasync_args {
410 1.1 itohy syscallarg(int) fd;
411 1.1 itohy };
412 1.1 itohy
413 1.1 itohy struct linux_sys___sysctl_args {
414 1.1 itohy syscallarg(struct linux___sysctl *) lsp;
415 1.1 itohy };
416 1.1 itohy
417 1.9 tron struct linux_sys_sched_setparam_args {
418 1.9 tron syscallarg(pid_t) pid;
419 1.9 tron syscallarg(const struct linux_sched_param *) sp;
420 1.9 tron };
421 1.9 tron
422 1.9 tron struct linux_sys_sched_getparam_args {
423 1.9 tron syscallarg(pid_t) pid;
424 1.9 tron syscallarg(struct linux_sched_param *) sp;
425 1.9 tron };
426 1.9 tron
427 1.9 tron struct linux_sys_sched_setscheduler_args {
428 1.9 tron syscallarg(pid_t) pid;
429 1.9 tron syscallarg(int) policy;
430 1.9 tron syscallarg(const struct linux_sched_param *) sp;
431 1.9 tron };
432 1.9 tron
433 1.9 tron struct linux_sys_sched_getscheduler_args {
434 1.9 tron syscallarg(pid_t) pid;
435 1.9 tron };
436 1.9 tron
437 1.9 tron struct linux_sys_sched_get_priority_max_args {
438 1.9 tron syscallarg(int) policy;
439 1.9 tron };
440 1.9 tron
441 1.9 tron struct linux_sys_sched_get_priority_min_args {
442 1.9 tron syscallarg(int) policy;
443 1.9 tron };
444 1.9 tron
445 1.1 itohy struct linux_sys_mremap_args {
446 1.1 itohy syscallarg(void *) old_address;
447 1.1 itohy syscallarg(size_t) old_size;
448 1.1 itohy syscallarg(size_t) new_size;
449 1.1 itohy syscallarg(u_long) flags;
450 1.1 itohy };
451 1.1 itohy
452 1.28 fvdl struct linux_sys_setresuid16_args {
453 1.7 thorpej syscallarg(uid_t) ruid;
454 1.7 thorpej syscallarg(uid_t) euid;
455 1.7 thorpej syscallarg(uid_t) suid;
456 1.7 thorpej };
457 1.7 thorpej
458 1.28 fvdl struct linux_sys_setresgid16_args {
459 1.7 thorpej syscallarg(gid_t) rgid;
460 1.7 thorpej syscallarg(gid_t) egid;
461 1.7 thorpej syscallarg(gid_t) sgid;
462 1.7 thorpej };
463 1.7 thorpej
464 1.1 itohy struct linux_sys_rt_sigaction_args {
465 1.1 itohy syscallarg(int) signum;
466 1.1 itohy syscallarg(const struct linux_sigaction *) nsa;
467 1.1 itohy syscallarg(struct linux_sigaction *) osa;
468 1.1 itohy syscallarg(size_t) sigsetsize;
469 1.1 itohy };
470 1.1 itohy
471 1.1 itohy struct linux_sys_rt_sigprocmask_args {
472 1.1 itohy syscallarg(int) how;
473 1.1 itohy syscallarg(const linux_sigset_t *) set;
474 1.1 itohy syscallarg(linux_sigset_t *) oset;
475 1.1 itohy syscallarg(size_t) sigsetsize;
476 1.1 itohy };
477 1.1 itohy
478 1.1 itohy struct linux_sys_rt_sigpending_args {
479 1.1 itohy syscallarg(linux_sigset_t *) set;
480 1.1 itohy syscallarg(size_t) sigsetsize;
481 1.1 itohy };
482 1.1 itohy
483 1.1 itohy struct linux_sys_rt_queueinfo_args {
484 1.1 itohy syscallarg(int) pid;
485 1.1 itohy syscallarg(int) signum;
486 1.1 itohy syscallarg(void *) uinfo;
487 1.1 itohy };
488 1.1 itohy
489 1.1 itohy struct linux_sys_rt_sigsuspend_args {
490 1.1 itohy syscallarg(linux_sigset_t *) unewset;
491 1.1 itohy syscallarg(size_t) sigsetsize;
492 1.1 itohy };
493 1.1 itohy
494 1.11 tron struct linux_sys_pread_args {
495 1.11 tron syscallarg(int) fd;
496 1.11 tron syscallarg(char *) buf;
497 1.11 tron syscallarg(size_t) nbyte;
498 1.11 tron syscallarg(linux_off_t) offset;
499 1.11 tron };
500 1.11 tron
501 1.11 tron struct linux_sys_pwrite_args {
502 1.11 tron syscallarg(int) fd;
503 1.11 tron syscallarg(char *) buf;
504 1.11 tron syscallarg(size_t) nbyte;
505 1.11 tron syscallarg(linux_off_t) offset;
506 1.11 tron };
507 1.11 tron
508 1.27 itohy struct linux_sys_lchown16_args {
509 1.2 itohy syscallarg(const char *) path;
510 1.1 itohy syscallarg(int) uid;
511 1.1 itohy syscallarg(int) gid;
512 1.1 itohy };
513 1.1 itohy
514 1.17 itohy struct linux_sys_sigaltstack_args {
515 1.17 itohy syscallarg(const struct linux_sigaltstack *) ss;
516 1.17 itohy syscallarg(struct linux_sigaltstack *) oss;
517 1.17 itohy };
518 1.17 itohy
519 1.39 christos struct linux_sys_ugetrlimit_args {
520 1.39 christos syscallarg(int) which;
521 1.39 christos syscallarg(struct orlimit *) rlp;
522 1.39 christos };
523 1.39 christos
524 1.24 jdolecek struct linux_sys_truncate64_args {
525 1.24 jdolecek syscallarg(const char *) path;
526 1.24 jdolecek syscallarg(off_t) length;
527 1.24 jdolecek };
528 1.24 jdolecek
529 1.47 jdolecek struct linux_sys_ftruncate64_args {
530 1.47 jdolecek syscallarg(unsigned int) fd;
531 1.47 jdolecek syscallarg(off_t) length;
532 1.47 jdolecek };
533 1.47 jdolecek
534 1.23 jdolecek struct linux_sys_stat64_args {
535 1.23 jdolecek syscallarg(const char *) path;
536 1.23 jdolecek syscallarg(struct linux_stat64 *) sp;
537 1.23 jdolecek };
538 1.23 jdolecek
539 1.23 jdolecek struct linux_sys_lstat64_args {
540 1.23 jdolecek syscallarg(const char *) path;
541 1.23 jdolecek syscallarg(struct linux_stat64 *) sp;
542 1.23 jdolecek };
543 1.23 jdolecek
544 1.23 jdolecek struct linux_sys_fstat64_args {
545 1.23 jdolecek syscallarg(int) fd;
546 1.23 jdolecek syscallarg(struct linux_stat64 *) sp;
547 1.23 jdolecek };
548 1.23 jdolecek
549 1.28 fvdl struct linux_sys_chown_args {
550 1.28 fvdl syscallarg(const char *) path;
551 1.28 fvdl syscallarg(uid_t) uid;
552 1.28 fvdl syscallarg(gid_t) gid;
553 1.28 fvdl };
554 1.28 fvdl
555 1.28 fvdl struct linux_sys_setresuid_args {
556 1.28 fvdl syscallarg(uid_t) ruid;
557 1.28 fvdl syscallarg(uid_t) euid;
558 1.28 fvdl syscallarg(uid_t) suid;
559 1.28 fvdl };
560 1.28 fvdl
561 1.28 fvdl struct linux_sys_getresuid_args {
562 1.28 fvdl syscallarg(uid_t *) ruid;
563 1.28 fvdl syscallarg(uid_t *) euid;
564 1.28 fvdl syscallarg(uid_t *) suid;
565 1.28 fvdl };
566 1.28 fvdl
567 1.28 fvdl struct linux_sys_setresgid_args {
568 1.28 fvdl syscallarg(gid_t) rgid;
569 1.28 fvdl syscallarg(gid_t) egid;
570 1.28 fvdl syscallarg(gid_t) sgid;
571 1.28 fvdl };
572 1.28 fvdl
573 1.28 fvdl struct linux_sys_getresgid_args {
574 1.28 fvdl syscallarg(gid_t *) rgid;
575 1.28 fvdl syscallarg(gid_t *) egid;
576 1.28 fvdl syscallarg(gid_t *) sgid;
577 1.28 fvdl };
578 1.28 fvdl
579 1.28 fvdl struct linux_sys_lchown_args {
580 1.28 fvdl syscallarg(const char *) path;
581 1.28 fvdl syscallarg(uid_t) uid;
582 1.28 fvdl syscallarg(gid_t) gid;
583 1.28 fvdl };
584 1.28 fvdl
585 1.28 fvdl struct linux_sys_setfsuid_args {
586 1.28 fvdl syscallarg(uid_t) uid;
587 1.28 fvdl };
588 1.28 fvdl
589 1.41 christos struct linux_sys_getdents64_args {
590 1.41 christos syscallarg(int) fd;
591 1.41 christos syscallarg(struct linux_dirent64 *) dent;
592 1.41 christos syscallarg(unsigned int) count;
593 1.41 christos };
594 1.41 christos
595 1.1 itohy /*
596 1.1 itohy * System call prototypes.
597 1.1 itohy */
598 1.1 itohy
599 1.43 thorpej int linux_sys_nosys(struct lwp *, void *, register_t *);
600 1.48 jdolecek
601 1.43 thorpej int sys_exit(struct lwp *, void *, register_t *);
602 1.48 jdolecek
603 1.43 thorpej int sys_fork(struct lwp *, void *, register_t *);
604 1.48 jdolecek
605 1.43 thorpej int sys_read(struct lwp *, void *, register_t *);
606 1.48 jdolecek
607 1.43 thorpej int sys_write(struct lwp *, void *, register_t *);
608 1.48 jdolecek
609 1.43 thorpej int linux_sys_open(struct lwp *, void *, register_t *);
610 1.48 jdolecek
611 1.43 thorpej int sys_close(struct lwp *, void *, register_t *);
612 1.48 jdolecek
613 1.43 thorpej int linux_sys_waitpid(struct lwp *, void *, register_t *);
614 1.48 jdolecek
615 1.43 thorpej int linux_sys_creat(struct lwp *, void *, register_t *);
616 1.48 jdolecek
617 1.43 thorpej int linux_sys_link(struct lwp *, void *, register_t *);
618 1.48 jdolecek
619 1.43 thorpej int linux_sys_unlink(struct lwp *, void *, register_t *);
620 1.48 jdolecek
621 1.43 thorpej int linux_sys_execve(struct lwp *, void *, register_t *);
622 1.48 jdolecek
623 1.43 thorpej int linux_sys_chdir(struct lwp *, void *, register_t *);
624 1.48 jdolecek
625 1.43 thorpej int linux_sys_time(struct lwp *, void *, register_t *);
626 1.48 jdolecek
627 1.43 thorpej int linux_sys_mknod(struct lwp *, void *, register_t *);
628 1.48 jdolecek
629 1.43 thorpej int linux_sys_chmod(struct lwp *, void *, register_t *);
630 1.48 jdolecek
631 1.43 thorpej int linux_sys_chown16(struct lwp *, void *, register_t *);
632 1.48 jdolecek
633 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
634 1.43 thorpej int compat_43_sys_lseek(struct lwp *, void *, register_t *);
635 1.48 jdolecek
636 1.1 itohy #else
637 1.1 itohy #endif
638 1.43 thorpej int sys_getpid(struct lwp *, void *, register_t *);
639 1.48 jdolecek
640 1.43 thorpej int sys_setuid(struct lwp *, void *, register_t *);
641 1.48 jdolecek
642 1.43 thorpej int sys_getuid(struct lwp *, void *, register_t *);
643 1.48 jdolecek
644 1.43 thorpej int linux_sys_stime(struct lwp *, void *, register_t *);
645 1.48 jdolecek
646 1.43 thorpej int linux_sys_ptrace(struct lwp *, void *, register_t *);
647 1.48 jdolecek
648 1.43 thorpej int linux_sys_alarm(struct lwp *, void *, register_t *);
649 1.48 jdolecek
650 1.43 thorpej int linux_sys_pause(struct lwp *, void *, register_t *);
651 1.48 jdolecek
652 1.43 thorpej int linux_sys_utime(struct lwp *, void *, register_t *);
653 1.48 jdolecek
654 1.43 thorpej int linux_sys_access(struct lwp *, void *, register_t *);
655 1.48 jdolecek
656 1.43 thorpej int linux_sys_nice(struct lwp *, void *, register_t *);
657 1.48 jdolecek
658 1.43 thorpej int sys_sync(struct lwp *, void *, register_t *);
659 1.48 jdolecek
660 1.43 thorpej int linux_sys_kill(struct lwp *, void *, register_t *);
661 1.48 jdolecek
662 1.43 thorpej int linux_sys_rename(struct lwp *, void *, register_t *);
663 1.48 jdolecek
664 1.43 thorpej int linux_sys_mkdir(struct lwp *, void *, register_t *);
665 1.48 jdolecek
666 1.43 thorpej int linux_sys_rmdir(struct lwp *, void *, register_t *);
667 1.48 jdolecek
668 1.43 thorpej int sys_dup(struct lwp *, void *, register_t *);
669 1.48 jdolecek
670 1.43 thorpej int linux_sys_pipe(struct lwp *, void *, register_t *);
671 1.48 jdolecek
672 1.43 thorpej int linux_sys_times(struct lwp *, void *, register_t *);
673 1.48 jdolecek
674 1.43 thorpej int linux_sys_brk(struct lwp *, void *, register_t *);
675 1.48 jdolecek
676 1.43 thorpej int sys_setgid(struct lwp *, void *, register_t *);
677 1.48 jdolecek
678 1.43 thorpej int sys_getgid(struct lwp *, void *, register_t *);
679 1.48 jdolecek
680 1.43 thorpej int linux_sys_signal(struct lwp *, void *, register_t *);
681 1.48 jdolecek
682 1.43 thorpej int sys_geteuid(struct lwp *, void *, register_t *);
683 1.48 jdolecek
684 1.43 thorpej int sys_getegid(struct lwp *, void *, register_t *);
685 1.48 jdolecek
686 1.43 thorpej int sys_acct(struct lwp *, void *, register_t *);
687 1.48 jdolecek
688 1.43 thorpej int linux_sys_ioctl(struct lwp *, void *, register_t *);
689 1.48 jdolecek
690 1.43 thorpej int linux_sys_fcntl(struct lwp *, void *, register_t *);
691 1.48 jdolecek
692 1.43 thorpej int sys_setpgid(struct lwp *, void *, register_t *);
693 1.48 jdolecek
694 1.43 thorpej int sys_umask(struct lwp *, void *, register_t *);
695 1.48 jdolecek
696 1.43 thorpej int sys_chroot(struct lwp *, void *, register_t *);
697 1.48 jdolecek
698 1.43 thorpej int sys_dup2(struct lwp *, void *, register_t *);
699 1.48 jdolecek
700 1.43 thorpej int sys_getppid(struct lwp *, void *, register_t *);
701 1.48 jdolecek
702 1.43 thorpej int sys_getpgrp(struct lwp *, void *, register_t *);
703 1.48 jdolecek
704 1.43 thorpej int sys_setsid(struct lwp *, void *, register_t *);
705 1.48 jdolecek
706 1.43 thorpej int linux_sys_sigaction(struct lwp *, void *, register_t *);
707 1.48 jdolecek
708 1.43 thorpej int linux_sys_siggetmask(struct lwp *, void *, register_t *);
709 1.48 jdolecek
710 1.43 thorpej int linux_sys_sigsetmask(struct lwp *, void *, register_t *);
711 1.48 jdolecek
712 1.43 thorpej int linux_sys_setreuid16(struct lwp *, void *, register_t *);
713 1.48 jdolecek
714 1.43 thorpej int linux_sys_setregid16(struct lwp *, void *, register_t *);
715 1.48 jdolecek
716 1.43 thorpej int linux_sys_sigsuspend(struct lwp *, void *, register_t *);
717 1.48 jdolecek
718 1.43 thorpej int linux_sys_sigpending(struct lwp *, void *, register_t *);
719 1.48 jdolecek
720 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
721 1.43 thorpej int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
722 1.48 jdolecek
723 1.1 itohy #else
724 1.1 itohy #endif
725 1.43 thorpej int linux_sys_setrlimit(struct lwp *, void *, register_t *);
726 1.48 jdolecek
727 1.43 thorpej int linux_sys_getrlimit(struct lwp *, void *, register_t *);
728 1.48 jdolecek
729 1.43 thorpej int sys_getrusage(struct lwp *, void *, register_t *);
730 1.48 jdolecek
731 1.43 thorpej int linux_sys_gettimeofday(struct lwp *, void *, register_t *);
732 1.48 jdolecek
733 1.43 thorpej int linux_sys_settimeofday(struct lwp *, void *, register_t *);
734 1.48 jdolecek
735 1.43 thorpej int linux_sys_getgroups16(struct lwp *, void *, register_t *);
736 1.48 jdolecek
737 1.43 thorpej int linux_sys_setgroups16(struct lwp *, void *, register_t *);
738 1.48 jdolecek
739 1.43 thorpej int linux_sys_oldselect(struct lwp *, void *, register_t *);
740 1.48 jdolecek
741 1.43 thorpej int linux_sys_symlink(struct lwp *, void *, register_t *);
742 1.48 jdolecek
743 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
744 1.43 thorpej int compat_43_sys_lstat(struct lwp *, void *, register_t *);
745 1.48 jdolecek
746 1.1 itohy #else
747 1.1 itohy #endif
748 1.43 thorpej int linux_sys_readlink(struct lwp *, void *, register_t *);
749 1.48 jdolecek
750 1.43 thorpej int linux_sys_uselib(struct lwp *, void *, register_t *);
751 1.48 jdolecek
752 1.43 thorpej int linux_sys_swapon(struct lwp *, void *, register_t *);
753 1.48 jdolecek
754 1.43 thorpej int linux_sys_reboot(struct lwp *, void *, register_t *);
755 1.48 jdolecek
756 1.43 thorpej int linux_sys_readdir(struct lwp *, void *, register_t *);
757 1.48 jdolecek
758 1.43 thorpej int linux_sys_old_mmap(struct lwp *, void *, register_t *);
759 1.48 jdolecek
760 1.43 thorpej int sys_munmap(struct lwp *, void *, register_t *);
761 1.48 jdolecek
762 1.43 thorpej int linux_sys_truncate(struct lwp *, void *, register_t *);
763 1.48 jdolecek
764 1.1 itohy #if !defined(_KERNEL) || defined(COMPAT_43)
765 1.43 thorpej int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
766 1.48 jdolecek
767 1.1 itohy #else
768 1.1 itohy #endif
769 1.43 thorpej int sys_fchmod(struct lwp *, void *, register_t *);
770 1.48 jdolecek
771 1.43 thorpej int linux_sys_fchown16(struct lwp *, void *, register_t *);
772 1.48 jdolecek
773 1.43 thorpej int sys_getpriority(struct lwp *, void *, register_t *);
774 1.48 jdolecek
775 1.43 thorpej int sys_setpriority(struct lwp *, void *, register_t *);
776 1.48 jdolecek
777 1.43 thorpej int sys_profil(struct lwp *, void *, register_t *);
778 1.48 jdolecek
779 1.43 thorpej int linux_sys_statfs(struct lwp *, void *, register_t *);
780 1.48 jdolecek
781 1.43 thorpej int linux_sys_fstatfs(struct lwp *, void *, register_t *);
782 1.48 jdolecek
783 1.43 thorpej int linux_sys_socketcall(struct lwp *, void *, register_t *);
784 1.48 jdolecek
785 1.43 thorpej int sys_setitimer(struct lwp *, void *, register_t *);
786 1.48 jdolecek
787 1.43 thorpej int sys_getitimer(struct lwp *, void *, register_t *);
788 1.48 jdolecek
789 1.43 thorpej int linux_sys_stat(struct lwp *, void *, register_t *);
790 1.48 jdolecek
791 1.43 thorpej int linux_sys_lstat(struct lwp *, void *, register_t *);
792 1.48 jdolecek
793 1.43 thorpej int linux_sys_fstat(struct lwp *, void *, register_t *);
794 1.48 jdolecek
795 1.43 thorpej int linux_sys_wait4(struct lwp *, void *, register_t *);
796 1.48 jdolecek
797 1.43 thorpej int linux_sys_swapoff(struct lwp *, void *, register_t *);
798 1.48 jdolecek
799 1.43 thorpej int linux_sys_sysinfo(struct lwp *, void *, register_t *);
800 1.48 jdolecek
801 1.43 thorpej int linux_sys_ipc(struct lwp *, void *, register_t *);
802 1.48 jdolecek
803 1.43 thorpej int sys_fsync(struct lwp *, void *, register_t *);
804 1.48 jdolecek
805 1.43 thorpej int linux_sys_sigreturn(struct lwp *, void *, register_t *);
806 1.48 jdolecek
807 1.43 thorpej int linux_sys_clone(struct lwp *, void *, register_t *);
808 1.48 jdolecek
809 1.43 thorpej int linux_sys_setdomainname(struct lwp *, void *, register_t *);
810 1.48 jdolecek
811 1.43 thorpej int linux_sys_uname(struct lwp *, void *, register_t *);
812 1.48 jdolecek
813 1.43 thorpej int linux_sys_cacheflush(struct lwp *, void *, register_t *);
814 1.48 jdolecek
815 1.43 thorpej int linux_sys_mprotect(struct lwp *, void *, register_t *);
816 1.48 jdolecek
817 1.43 thorpej int linux_sys_sigprocmask(struct lwp *, void *, register_t *);
818 1.48 jdolecek
819 1.43 thorpej int linux_sys_getpgid(struct lwp *, void *, register_t *);
820 1.48 jdolecek
821 1.43 thorpej int sys_fchdir(struct lwp *, void *, register_t *);
822 1.48 jdolecek
823 1.43 thorpej int linux_sys_personality(struct lwp *, void *, register_t *);
824 1.48 jdolecek
825 1.43 thorpej int linux_sys_setfsuid(struct lwp *, void *, register_t *);
826 1.48 jdolecek
827 1.43 thorpej int linux_sys_getfsuid(struct lwp *, void *, register_t *);
828 1.48 jdolecek
829 1.43 thorpej int linux_sys_llseek(struct lwp *, void *, register_t *);
830 1.48 jdolecek
831 1.43 thorpej int linux_sys_getdents(struct lwp *, void *, register_t *);
832 1.48 jdolecek
833 1.43 thorpej int linux_sys_select(struct lwp *, void *, register_t *);
834 1.48 jdolecek
835 1.43 thorpej int sys_flock(struct lwp *, void *, register_t *);
836 1.48 jdolecek
837 1.43 thorpej int linux_sys_msync(struct lwp *, void *, register_t *);
838 1.48 jdolecek
839 1.43 thorpej int sys_readv(struct lwp *, void *, register_t *);
840 1.48 jdolecek
841 1.43 thorpej int sys_writev(struct lwp *, void *, register_t *);
842 1.48 jdolecek
843 1.43 thorpej int sys_getsid(struct lwp *, void *, register_t *);
844 1.48 jdolecek
845 1.43 thorpej int linux_sys_fdatasync(struct lwp *, void *, register_t *);
846 1.48 jdolecek
847 1.43 thorpej int linux_sys___sysctl(struct lwp *, void *, register_t *);
848 1.48 jdolecek
849 1.43 thorpej int sys_mlock(struct lwp *, void *, register_t *);
850 1.48 jdolecek
851 1.43 thorpej int sys_munlock(struct lwp *, void *, register_t *);
852 1.48 jdolecek
853 1.43 thorpej int sys_mlockall(struct lwp *, void *, register_t *);
854 1.48 jdolecek
855 1.43 thorpej int sys_munlockall(struct lwp *, void *, register_t *);
856 1.48 jdolecek
857 1.43 thorpej int linux_sys_sched_setparam(struct lwp *, void *, register_t *);
858 1.48 jdolecek
859 1.43 thorpej int linux_sys_sched_getparam(struct lwp *, void *, register_t *);
860 1.48 jdolecek
861 1.43 thorpej int linux_sys_sched_setscheduler(struct lwp *, void *, register_t *);
862 1.48 jdolecek
863 1.43 thorpej int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *);
864 1.48 jdolecek
865 1.43 thorpej int linux_sys_sched_yield(struct lwp *, void *, register_t *);
866 1.48 jdolecek
867 1.43 thorpej int linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
868 1.48 jdolecek
869 1.43 thorpej int linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
870 1.48 jdolecek
871 1.43 thorpej int sys_nanosleep(struct lwp *, void *, register_t *);
872 1.48 jdolecek
873 1.43 thorpej int linux_sys_mremap(struct lwp *, void *, register_t *);
874 1.48 jdolecek
875 1.43 thorpej int linux_sys_setresuid16(struct lwp *, void *, register_t *);
876 1.48 jdolecek
877 1.43 thorpej int linux_sys_getresuid(struct lwp *, void *, register_t *);
878 1.48 jdolecek
879 1.43 thorpej int sys_poll(struct lwp *, void *, register_t *);
880 1.48 jdolecek
881 1.43 thorpej int linux_sys_setresgid16(struct lwp *, void *, register_t *);
882 1.48 jdolecek
883 1.43 thorpej int linux_sys_getresgid(struct lwp *, void *, register_t *);
884 1.48 jdolecek
885 1.43 thorpej int linux_sys_rt_sigreturn(struct lwp *, void *, register_t *);
886 1.48 jdolecek
887 1.43 thorpej int linux_sys_rt_sigaction(struct lwp *, void *, register_t *);
888 1.48 jdolecek
889 1.43 thorpej int linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
890 1.48 jdolecek
891 1.43 thorpej int linux_sys_rt_sigpending(struct lwp *, void *, register_t *);
892 1.48 jdolecek
893 1.43 thorpej int linux_sys_rt_queueinfo(struct lwp *, void *, register_t *);
894 1.48 jdolecek
895 1.43 thorpej int linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
896 1.48 jdolecek
897 1.43 thorpej int linux_sys_pread(struct lwp *, void *, register_t *);
898 1.48 jdolecek
899 1.43 thorpej int linux_sys_pwrite(struct lwp *, void *, register_t *);
900 1.48 jdolecek
901 1.43 thorpej int linux_sys_lchown16(struct lwp *, void *, register_t *);
902 1.48 jdolecek
903 1.43 thorpej int sys___getcwd(struct lwp *, void *, register_t *);
904 1.48 jdolecek
905 1.43 thorpej int linux_sys_sigaltstack(struct lwp *, void *, register_t *);
906 1.48 jdolecek
907 1.43 thorpej int sys___vfork14(struct lwp *, void *, register_t *);
908 1.48 jdolecek
909 1.43 thorpej int linux_sys_ugetrlimit(struct lwp *, void *, register_t *);
910 1.48 jdolecek
911 1.45 christos int linux_sys_mmap2(struct lwp *, void *, register_t *);
912 1.48 jdolecek
913 1.43 thorpej int linux_sys_truncate64(struct lwp *, void *, register_t *);
914 1.48 jdolecek
915 1.47 jdolecek int linux_sys_ftruncate64(struct lwp *, void *, register_t *);
916 1.48 jdolecek
917 1.43 thorpej int linux_sys_stat64(struct lwp *, void *, register_t *);
918 1.48 jdolecek
919 1.43 thorpej int linux_sys_lstat64(struct lwp *, void *, register_t *);
920 1.48 jdolecek
921 1.43 thorpej int linux_sys_fstat64(struct lwp *, void *, register_t *);
922 1.48 jdolecek
923 1.43 thorpej int linux_sys_chown(struct lwp *, void *, register_t *);
924 1.48 jdolecek
925 1.43 thorpej int sys_setreuid(struct lwp *, void *, register_t *);
926 1.48 jdolecek
927 1.43 thorpej int sys_setregid(struct lwp *, void *, register_t *);
928 1.48 jdolecek
929 1.43 thorpej int sys_getgroups(struct lwp *, void *, register_t *);
930 1.48 jdolecek
931 1.43 thorpej int sys_setgroups(struct lwp *, void *, register_t *);
932 1.48 jdolecek
933 1.43 thorpej int sys___posix_fchown(struct lwp *, void *, register_t *);
934 1.48 jdolecek
935 1.43 thorpej int linux_sys_setresuid(struct lwp *, void *, register_t *);
936 1.48 jdolecek
937 1.43 thorpej int linux_sys_setresgid(struct lwp *, void *, register_t *);
938 1.48 jdolecek
939 1.43 thorpej int linux_sys_lchown(struct lwp *, void *, register_t *);
940 1.48 jdolecek
941 1.43 thorpej int linux_sys_getdents64(struct lwp *, void *, register_t *);
942 1.48 jdolecek
943 1.2 itohy #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
944