linux_syscallargs.h revision 1.51 1 1.20 cgd /* $NetBSD: linux_syscallargs.h,v 1.51 2004/09/28 19:05:58 jdolecek Exp $ */
2 1.1 erh
3 1.1 erh /*
4 1.1 erh * System call argument lists.
5 1.1 erh *
6 1.1 erh * DO NOT EDIT-- this file is automatically generated.
7 1.51 jdolecek * created from NetBSD: syscalls.master,v 1.47 2004/09/28 19:05:19 jdolecek Exp
8 1.1 erh */
9 1.1 erh
10 1.7 thorpej #ifndef _LINUX_SYS__SYSCALLARGS_H_
11 1.38 mrg #define _LINUX_SYS__SYSCALLARGS_H_
12 1.7 thorpej
13 1.3 fvdl #ifdef syscallarg
14 1.3 fvdl #undef syscallarg
15 1.3 fvdl #endif
16 1.3 fvdl
17 1.12 tron #define syscallarg(x) \
18 1.12 tron union { \
19 1.12 tron register_t pad; \
20 1.12 tron struct { x datum; } le; \
21 1.40 lukem struct { /* LINTED zero array dimension */ \
22 1.40 lukem int8_t pad[ /* CONSTCOND */ \
23 1.40 lukem (sizeof (register_t) < sizeof (x)) \
24 1.12 tron ? 0 \
25 1.12 tron : sizeof (register_t) - sizeof (x)]; \
26 1.12 tron x datum; \
27 1.12 tron } be; \
28 1.12 tron }
29 1.1 erh
30 1.23 erh struct osf1_sys_wait4_args {
31 1.23 erh syscallarg(int) pid;
32 1.23 erh syscallarg(int *) status;
33 1.23 erh syscallarg(int) options;
34 1.23 erh syscallarg(struct osf1_rusage *) rusage;
35 1.23 erh };
36 1.23 erh
37 1.1 erh struct linux_sys_creat_args {
38 1.15 erh syscallarg(const char *) path;
39 1.15 erh syscallarg(mode_t) mode;
40 1.1 erh };
41 1.1 erh
42 1.33 fvdl struct linux_sys_link_args {
43 1.33 fvdl syscallarg(const char *) path;
44 1.33 fvdl syscallarg(const char *) link;
45 1.33 fvdl };
46 1.33 fvdl
47 1.1 erh struct linux_sys_unlink_args {
48 1.15 erh syscallarg(const char *) path;
49 1.1 erh };
50 1.1 erh
51 1.1 erh struct linux_sys_chdir_args {
52 1.15 erh syscallarg(const char *) path;
53 1.1 erh };
54 1.1 erh
55 1.1 erh struct linux_sys_mknod_args {
56 1.15 erh syscallarg(const char *) path;
57 1.1 erh syscallarg(int) mode;
58 1.1 erh syscallarg(int) dev;
59 1.1 erh };
60 1.1 erh
61 1.1 erh struct linux_sys_chmod_args {
62 1.15 erh syscallarg(const char *) path;
63 1.1 erh syscallarg(int) mode;
64 1.1 erh };
65 1.1 erh
66 1.1 erh struct linux_sys_brk_args {
67 1.1 erh syscallarg(char *) nsize;
68 1.1 erh };
69 1.1 erh
70 1.23 erh struct osf1_sys_mount_args {
71 1.23 erh syscallarg(int) type;
72 1.23 erh syscallarg(const char *) path;
73 1.23 erh syscallarg(int) flags;
74 1.23 erh syscallarg(caddr_t) data;
75 1.23 erh };
76 1.23 erh
77 1.14 tron struct linux_sys_ptrace_args {
78 1.15 erh syscallarg(long) request;
79 1.15 erh syscallarg(long) pid;
80 1.15 erh syscallarg(long) addr;
81 1.15 erh syscallarg(long) data;
82 1.14 tron };
83 1.14 tron
84 1.1 erh struct linux_sys_access_args {
85 1.15 erh syscallarg(const char *) path;
86 1.1 erh syscallarg(int) flags;
87 1.1 erh };
88 1.1 erh
89 1.1 erh struct linux_sys_kill_args {
90 1.1 erh syscallarg(int) pid;
91 1.1 erh syscallarg(int) signum;
92 1.1 erh };
93 1.1 erh
94 1.23 erh struct osf1_sys_set_program_attributes_args {
95 1.23 erh syscallarg(caddr_t) taddr;
96 1.23 erh syscallarg(unsigned long) tsize;
97 1.23 erh syscallarg(caddr_t) daddr;
98 1.23 erh syscallarg(unsigned long) dsize;
99 1.23 erh };
100 1.23 erh
101 1.1 erh struct linux_sys_open_args {
102 1.15 erh syscallarg(const char *) path;
103 1.1 erh syscallarg(int) flags;
104 1.1 erh syscallarg(int) mode;
105 1.1 erh };
106 1.1 erh
107 1.1 erh struct linux_sys_sigpending_args {
108 1.1 erh syscallarg(linux_old_sigset_t *) set;
109 1.1 erh };
110 1.1 erh
111 1.1 erh struct linux_sys_ioctl_args {
112 1.1 erh syscallarg(int) fd;
113 1.1 erh syscallarg(u_long) com;
114 1.1 erh syscallarg(caddr_t) data;
115 1.1 erh };
116 1.1 erh
117 1.1 erh struct linux_sys_symlink_args {
118 1.15 erh syscallarg(const char *) path;
119 1.15 erh syscallarg(const char *) to;
120 1.1 erh };
121 1.1 erh
122 1.1 erh struct linux_sys_readlink_args {
123 1.15 erh syscallarg(const char *) name;
124 1.1 erh syscallarg(char *) buf;
125 1.1 erh syscallarg(int) count;
126 1.1 erh };
127 1.1 erh
128 1.1 erh struct linux_sys_execve_args {
129 1.15 erh syscallarg(const char *) path;
130 1.1 erh syscallarg(char **) argp;
131 1.1 erh syscallarg(char **) envp;
132 1.1 erh };
133 1.1 erh
134 1.1 erh struct linux_sys_stat_args {
135 1.15 erh syscallarg(const char *) path;
136 1.1 erh syscallarg(struct linux_stat *) sp;
137 1.1 erh };
138 1.1 erh
139 1.1 erh struct linux_sys_lstat_args {
140 1.15 erh syscallarg(const char *) path;
141 1.1 erh syscallarg(struct linux_stat *) sp;
142 1.1 erh };
143 1.1 erh
144 1.44 christos struct linux_sys_mprotect_args {
145 1.44 christos syscallarg(const void *) start;
146 1.44 christos syscallarg(unsigned long) len;
147 1.44 christos syscallarg(int) prot;
148 1.44 christos };
149 1.44 christos
150 1.23 erh struct osf1_sys_setitimer_args {
151 1.23 erh syscallarg(u_int) which;
152 1.23 erh syscallarg(struct osf1_itimerval *) itv;
153 1.23 erh syscallarg(struct osf1_itimerval *) oitv;
154 1.23 erh };
155 1.23 erh
156 1.1 erh struct linux_sys_fstat_args {
157 1.1 erh syscallarg(int) fd;
158 1.1 erh syscallarg(struct linux_stat *) sp;
159 1.1 erh };
160 1.1 erh
161 1.1 erh struct linux_sys_fcntl_args {
162 1.1 erh syscallarg(int) fd;
163 1.1 erh syscallarg(int) cmd;
164 1.1 erh syscallarg(void *) arg;
165 1.1 erh };
166 1.1 erh
167 1.23 erh struct osf1_sys_select_args {
168 1.23 erh syscallarg(u_int) nd;
169 1.23 erh syscallarg(fd_set *) in;
170 1.23 erh syscallarg(fd_set *) ou;
171 1.23 erh syscallarg(fd_set *) ex;
172 1.23 erh syscallarg(struct osf1_timeval *) tv;
173 1.23 erh };
174 1.23 erh
175 1.1 erh struct linux_sys_socket_args {
176 1.1 erh syscallarg(int) domain;
177 1.1 erh syscallarg(int) type;
178 1.1 erh syscallarg(int) protocol;
179 1.1 erh };
180 1.1 erh
181 1.16 erh struct linux_sys_connect_args {
182 1.16 erh syscallarg(int) s;
183 1.39 jdolecek syscallarg(const struct osockaddr *) name;
184 1.16 erh syscallarg(unsigned int) namelen;
185 1.16 erh };
186 1.16 erh
187 1.39 jdolecek struct linux_sys_accept_args {
188 1.39 jdolecek syscallarg(int) s;
189 1.39 jdolecek syscallarg(struct osockaddr *) name;
190 1.39 jdolecek syscallarg(int *) anamelen;
191 1.39 jdolecek };
192 1.39 jdolecek
193 1.39 jdolecek struct linux_sys_send_args {
194 1.39 jdolecek syscallarg(int) s;
195 1.39 jdolecek syscallarg(caddr_t) buf;
196 1.39 jdolecek syscallarg(int) len;
197 1.39 jdolecek syscallarg(int) flags;
198 1.39 jdolecek };
199 1.39 jdolecek
200 1.39 jdolecek struct linux_sys_recv_args {
201 1.39 jdolecek syscallarg(int) s;
202 1.39 jdolecek syscallarg(caddr_t) buf;
203 1.39 jdolecek syscallarg(int) len;
204 1.39 jdolecek syscallarg(int) flags;
205 1.39 jdolecek };
206 1.39 jdolecek
207 1.1 erh struct linux_sys_sigreturn_args {
208 1.1 erh syscallarg(struct linux_sigframe *) sfp;
209 1.1 erh };
210 1.1 erh
211 1.39 jdolecek struct linux_sys_bind_args {
212 1.39 jdolecek syscallarg(int) s;
213 1.39 jdolecek syscallarg(const struct osockaddr *) name;
214 1.39 jdolecek syscallarg(unsigned int) namelen;
215 1.39 jdolecek };
216 1.39 jdolecek
217 1.1 erh struct linux_sys_setsockopt_args {
218 1.1 erh syscallarg(int) s;
219 1.1 erh syscallarg(int) level;
220 1.1 erh syscallarg(int) optname;
221 1.1 erh syscallarg(void *) optval;
222 1.1 erh syscallarg(int) optlen;
223 1.1 erh };
224 1.1 erh
225 1.1 erh struct linux_sys_sigsuspend_args {
226 1.1 erh syscallarg(caddr_t) restart;
227 1.1 erh syscallarg(int) oldmask;
228 1.1 erh syscallarg(int) mask;
229 1.1 erh };
230 1.1 erh
231 1.39 jdolecek struct linux_sys_recvmsg_args {
232 1.39 jdolecek syscallarg(int) s;
233 1.39 jdolecek syscallarg(struct msghdr *) msg;
234 1.39 jdolecek syscallarg(int) flags;
235 1.39 jdolecek };
236 1.39 jdolecek
237 1.39 jdolecek struct linux_sys_sendmsg_args {
238 1.39 jdolecek syscallarg(int) s;
239 1.39 jdolecek syscallarg(const struct msghdr *) msg;
240 1.39 jdolecek syscallarg(int) flags;
241 1.39 jdolecek };
242 1.39 jdolecek
243 1.23 erh struct osf1_sys_gettimeofday_args {
244 1.23 erh syscallarg(struct osf1_timeval *) tv;
245 1.23 erh syscallarg(struct osf1_timezone *) tzp;
246 1.23 erh };
247 1.23 erh
248 1.23 erh struct osf1_sys_getrusage_args {
249 1.23 erh syscallarg(int) who;
250 1.23 erh syscallarg(struct osf1_rusage *) rusage;
251 1.23 erh };
252 1.23 erh
253 1.1 erh struct linux_sys_getsockopt_args {
254 1.1 erh syscallarg(int) s;
255 1.1 erh syscallarg(int) level;
256 1.1 erh syscallarg(int) optname;
257 1.1 erh syscallarg(void *) optval;
258 1.1 erh syscallarg(int *) optlen;
259 1.1 erh };
260 1.1 erh
261 1.23 erh struct osf1_sys_settimeofday_args {
262 1.23 erh syscallarg(struct osf1_timeval *) tv;
263 1.23 erh syscallarg(struct osf1_timezone *) tzp;
264 1.23 erh };
265 1.23 erh
266 1.1 erh struct linux_sys_recvfrom_args {
267 1.1 erh syscallarg(int) s;
268 1.1 erh syscallarg(void *) buf;
269 1.1 erh syscallarg(int) len;
270 1.1 erh syscallarg(int) flags;
271 1.39 jdolecek syscallarg(struct osockaddr *) from;
272 1.39 jdolecek syscallarg(int *) fromlenaddr;
273 1.1 erh };
274 1.1 erh
275 1.1 erh struct linux_sys_rename_args {
276 1.15 erh syscallarg(const char *) from;
277 1.15 erh syscallarg(const char *) to;
278 1.1 erh };
279 1.1 erh
280 1.1 erh struct linux_sys_truncate_args {
281 1.15 erh syscallarg(const char *) path;
282 1.1 erh syscallarg(long) length;
283 1.1 erh };
284 1.1 erh
285 1.1 erh struct linux_sys_sendto_args {
286 1.1 erh syscallarg(int) s;
287 1.1 erh syscallarg(void *) msg;
288 1.1 erh syscallarg(int) len;
289 1.1 erh syscallarg(int) flags;
290 1.39 jdolecek syscallarg(struct osockaddr *) to;
291 1.1 erh syscallarg(int) tolen;
292 1.1 erh };
293 1.1 erh
294 1.1 erh struct linux_sys_socketpair_args {
295 1.1 erh syscallarg(int) domain;
296 1.1 erh syscallarg(int) type;
297 1.1 erh syscallarg(int) protocol;
298 1.1 erh syscallarg(int *) rsv;
299 1.1 erh };
300 1.1 erh
301 1.1 erh struct linux_sys_mkdir_args {
302 1.15 erh syscallarg(const char *) path;
303 1.1 erh syscallarg(int) mode;
304 1.1 erh };
305 1.1 erh
306 1.1 erh struct linux_sys_rmdir_args {
307 1.15 erh syscallarg(const char *) path;
308 1.1 erh };
309 1.1 erh
310 1.23 erh struct osf1_sys_utimes_args {
311 1.23 erh syscallarg(const char *) path;
312 1.23 erh syscallarg(const struct osf1_timeval *) tptr;
313 1.23 erh };
314 1.23 erh
315 1.39 jdolecek struct linux_sys_getpeername_args {
316 1.39 jdolecek syscallarg(int) fdes;
317 1.39 jdolecek syscallarg(caddr_t) asa;
318 1.39 jdolecek syscallarg(int *) alen;
319 1.39 jdolecek };
320 1.39 jdolecek
321 1.43 christos struct linux_sys_getrlimit_args {
322 1.43 christos syscallarg(int) which;
323 1.43 christos syscallarg(struct orlimit *) rlp;
324 1.43 christos };
325 1.43 christos
326 1.43 christos struct linux_sys_setrlimit_args {
327 1.43 christos syscallarg(int) which;
328 1.43 christos syscallarg(const struct orlimit *) rlp;
329 1.43 christos };
330 1.43 christos
331 1.39 jdolecek struct linux_sys_getsockname_args {
332 1.39 jdolecek syscallarg(int) fdec;
333 1.39 jdolecek syscallarg(caddr_t) asa;
334 1.39 jdolecek syscallarg(int *) alen;
335 1.39 jdolecek };
336 1.39 jdolecek
337 1.1 erh struct linux_sys_sigaction_args {
338 1.1 erh syscallarg(int) signum;
339 1.1 erh syscallarg(const struct linux_old_sigaction *) nsa;
340 1.1 erh syscallarg(struct linux_old_sigaction *) osa;
341 1.1 erh };
342 1.1 erh
343 1.23 erh struct osf1_sys_statfs_args {
344 1.23 erh syscallarg(const char *) path;
345 1.23 erh syscallarg(struct osf1_statfs *) buf;
346 1.23 erh syscallarg(int) len;
347 1.23 erh };
348 1.23 erh
349 1.23 erh struct osf1_sys_fstatfs_args {
350 1.23 erh syscallarg(int) fd;
351 1.23 erh syscallarg(struct osf1_statfs *) buf;
352 1.23 erh syscallarg(int) len;
353 1.23 erh };
354 1.23 erh
355 1.24 jdolecek struct linux_sys_setdomainname_args {
356 1.24 jdolecek syscallarg(char *) domainname;
357 1.24 jdolecek syscallarg(int) len;
358 1.24 jdolecek };
359 1.24 jdolecek
360 1.42 christos struct linux_sys_ugetrlimit_args {
361 1.42 christos syscallarg(int) which;
362 1.42 christos syscallarg(struct rlimit *) rlp;
363 1.42 christos };
364 1.48 jdolecek #ifdef SYSVMSG
365 1.48 jdolecek #else
366 1.48 jdolecek #endif
367 1.48 jdolecek #ifdef SYSVSEM
368 1.48 jdolecek #else
369 1.48 jdolecek #endif
370 1.42 christos
371 1.1 erh struct linux_sys_olduname_args {
372 1.1 erh syscallarg(struct linux_old_utsname *) up;
373 1.1 erh };
374 1.48 jdolecek #ifdef SYSVSHM
375 1.48 jdolecek #else
376 1.48 jdolecek #endif
377 1.1 erh
378 1.1 erh struct linux_sys_msync_args {
379 1.1 erh syscallarg(caddr_t) addr;
380 1.1 erh syscallarg(int) len;
381 1.1 erh syscallarg(int) fl;
382 1.1 erh };
383 1.1 erh
384 1.1 erh struct linux_sys_getpgid_args {
385 1.1 erh syscallarg(int) pid;
386 1.1 erh };
387 1.1 erh
388 1.23 erh struct osf1_sys_sysinfo_args {
389 1.23 erh syscallarg(int) cmd;
390 1.23 erh syscallarg(char) buf;
391 1.23 erh syscallarg(long) len;
392 1.23 erh };
393 1.23 erh
394 1.23 erh struct osf1_sys_usleep_thread_args {
395 1.23 erh syscallarg(struct osf1_timeval *) sleep;
396 1.23 erh syscallarg(struct osf1_timeval *) slept;
397 1.23 erh };
398 1.23 erh
399 1.23 erh struct osf1_sys_getsysinfo_args {
400 1.23 erh syscallarg(u_long) op;
401 1.23 erh syscallarg(caddr_t) buffer;
402 1.23 erh syscallarg(u_long) nbytes;
403 1.23 erh syscallarg(caddr_t) arg;
404 1.23 erh syscallarg(u_long) flag;
405 1.23 erh };
406 1.23 erh
407 1.23 erh struct osf1_sys_setsysinfo_args {
408 1.23 erh syscallarg(u_long) op;
409 1.23 erh syscallarg(caddr_t) buffer;
410 1.23 erh syscallarg(u_long) nbytes;
411 1.23 erh syscallarg(caddr_t) arg;
412 1.23 erh syscallarg(u_long) flag;
413 1.23 erh };
414 1.23 erh
415 1.1 erh struct linux_sys_fdatasync_args {
416 1.1 erh syscallarg(int) fd;
417 1.1 erh };
418 1.1 erh
419 1.25 jdolecek struct linux_sys_swapoff_args {
420 1.25 jdolecek syscallarg(const char *) path;
421 1.25 jdolecek };
422 1.25 jdolecek
423 1.1 erh struct linux_sys_getdents_args {
424 1.1 erh syscallarg(int) fd;
425 1.1 erh syscallarg(struct linux_dirent *) dent;
426 1.1 erh syscallarg(unsigned int) count;
427 1.1 erh };
428 1.1 erh
429 1.16 erh struct linux_sys_reboot_args {
430 1.16 erh syscallarg(int) magic1;
431 1.16 erh syscallarg(int) magic2;
432 1.16 erh syscallarg(int) cmd;
433 1.16 erh syscallarg(void *) arg;
434 1.16 erh };
435 1.16 erh
436 1.18 erh struct linux_sys_clone_args {
437 1.18 erh syscallarg(int) flags;
438 1.18 erh syscallarg(void *) stack;
439 1.18 erh };
440 1.48 jdolecek #ifdef EXEC_AOUT
441 1.18 erh
442 1.1 erh struct linux_sys_uselib_args {
443 1.24 jdolecek syscallarg(const char *) path;
444 1.1 erh };
445 1.48 jdolecek #else
446 1.48 jdolecek #endif
447 1.1 erh
448 1.31 jdolecek struct linux_sys_sysinfo_args {
449 1.31 jdolecek syscallarg(struct linux_sysinfo *) arg;
450 1.31 jdolecek };
451 1.31 jdolecek
452 1.1 erh struct linux_sys___sysctl_args {
453 1.1 erh syscallarg(struct linux___sysctl *) lsp;
454 1.1 erh };
455 1.1 erh
456 1.24 jdolecek struct linux_sys_swapon_args {
457 1.24 jdolecek syscallarg(const char *) name;
458 1.24 jdolecek };
459 1.24 jdolecek
460 1.1 erh struct linux_sys_times_args {
461 1.1 erh syscallarg(struct times *) tms;
462 1.1 erh };
463 1.1 erh
464 1.1 erh struct linux_sys_personality_args {
465 1.1 erh syscallarg(int) per;
466 1.1 erh };
467 1.1 erh
468 1.15 erh struct linux_sys_setfsuid_args {
469 1.15 erh syscallarg(uid_t) uid;
470 1.15 erh };
471 1.15 erh
472 1.1 erh struct linux_sys_statfs_args {
473 1.15 erh syscallarg(const char *) path;
474 1.1 erh syscallarg(struct linux_statfs *) sp;
475 1.1 erh };
476 1.1 erh
477 1.1 erh struct linux_sys_fstatfs_args {
478 1.1 erh syscallarg(int) fd;
479 1.1 erh syscallarg(struct linux_statfs *) sp;
480 1.1 erh };
481 1.1 erh
482 1.12 tron struct linux_sys_sched_setparam_args {
483 1.12 tron syscallarg(pid_t) pid;
484 1.12 tron syscallarg(const struct linux_sched_param *) sp;
485 1.12 tron };
486 1.12 tron
487 1.12 tron struct linux_sys_sched_getparam_args {
488 1.12 tron syscallarg(pid_t) pid;
489 1.12 tron syscallarg(struct linux_sched_param *) sp;
490 1.12 tron };
491 1.12 tron
492 1.12 tron struct linux_sys_sched_setscheduler_args {
493 1.12 tron syscallarg(pid_t) pid;
494 1.12 tron syscallarg(int) policy;
495 1.12 tron syscallarg(const struct linux_sched_param *) sp;
496 1.12 tron };
497 1.12 tron
498 1.12 tron struct linux_sys_sched_getscheduler_args {
499 1.12 tron syscallarg(pid_t) pid;
500 1.12 tron };
501 1.12 tron
502 1.12 tron struct linux_sys_sched_get_priority_max_args {
503 1.12 tron syscallarg(int) policy;
504 1.12 tron };
505 1.12 tron
506 1.12 tron struct linux_sys_sched_get_priority_min_args {
507 1.12 tron syscallarg(int) policy;
508 1.12 tron };
509 1.12 tron
510 1.1 erh struct linux_sys_uname_args {
511 1.1 erh syscallarg(struct linux_utsname *) up;
512 1.1 erh };
513 1.1 erh
514 1.1 erh struct linux_sys_mremap_args {
515 1.1 erh syscallarg(void *) old_address;
516 1.1 erh syscallarg(size_t) old_size;
517 1.1 erh syscallarg(size_t) new_size;
518 1.1 erh syscallarg(u_long) flags;
519 1.1 erh };
520 1.1 erh
521 1.11 thorpej struct linux_sys_setresuid_args {
522 1.11 thorpej syscallarg(uid_t) ruid;
523 1.11 thorpej syscallarg(uid_t) euid;
524 1.11 thorpej syscallarg(uid_t) suid;
525 1.11 thorpej };
526 1.11 thorpej
527 1.11 thorpej struct linux_sys_getresuid_args {
528 1.11 thorpej syscallarg(uid_t *) ruid;
529 1.11 thorpej syscallarg(uid_t *) euid;
530 1.11 thorpej syscallarg(uid_t *) suid;
531 1.11 thorpej };
532 1.11 thorpej
533 1.13 tron struct linux_sys_pread_args {
534 1.13 tron syscallarg(int) fd;
535 1.13 tron syscallarg(char *) buf;
536 1.13 tron syscallarg(size_t) nbyte;
537 1.13 tron syscallarg(linux_off_t) offset;
538 1.13 tron };
539 1.13 tron
540 1.13 tron struct linux_sys_pwrite_args {
541 1.13 tron syscallarg(int) fd;
542 1.13 tron syscallarg(char *) buf;
543 1.13 tron syscallarg(size_t) nbyte;
544 1.13 tron syscallarg(linux_off_t) offset;
545 1.13 tron };
546 1.13 tron
547 1.1 erh struct linux_sys_rt_sigreturn_args {
548 1.1 erh syscallarg(struct linux_rt_sigframe *) sfp;
549 1.1 erh };
550 1.1 erh
551 1.1 erh struct linux_sys_rt_sigaction_args {
552 1.1 erh syscallarg(int) signum;
553 1.1 erh syscallarg(const struct linux_sigaction *) nsa;
554 1.1 erh syscallarg(struct linux_sigaction *) osa;
555 1.1 erh syscallarg(size_t) sigsetsize;
556 1.1 erh };
557 1.1 erh
558 1.1 erh struct linux_sys_rt_sigprocmask_args {
559 1.1 erh syscallarg(int) how;
560 1.1 erh syscallarg(const linux_sigset_t *) set;
561 1.1 erh syscallarg(linux_sigset_t *) oset;
562 1.1 erh syscallarg(size_t) sigsetsize;
563 1.1 erh };
564 1.1 erh
565 1.1 erh struct linux_sys_rt_sigpending_args {
566 1.1 erh syscallarg(linux_sigset_t *) set;
567 1.1 erh syscallarg(size_t) sigsetsize;
568 1.1 erh };
569 1.1 erh
570 1.1 erh struct linux_sys_rt_queueinfo_args {
571 1.1 erh syscallarg(int) pid;
572 1.1 erh syscallarg(int) signum;
573 1.4 erh syscallarg(linux_siginfo_t *) uinfo;
574 1.1 erh };
575 1.1 erh
576 1.1 erh struct linux_sys_rt_sigsuspend_args {
577 1.1 erh syscallarg(linux_sigset_t *) unewset;
578 1.1 erh syscallarg(size_t) sigsetsize;
579 1.1 erh };
580 1.1 erh
581 1.1 erh struct linux_sys_select_args {
582 1.1 erh syscallarg(int) nfds;
583 1.1 erh syscallarg(fd_set *) readfds;
584 1.1 erh syscallarg(fd_set *) writefds;
585 1.1 erh syscallarg(fd_set *) exceptfds;
586 1.1 erh syscallarg(struct timeval *) timeout;
587 1.1 erh };
588 1.1 erh
589 1.1 erh struct linux_sys_wait4_args {
590 1.1 erh syscallarg(int) pid;
591 1.1 erh syscallarg(int *) status;
592 1.1 erh syscallarg(int) options;
593 1.1 erh syscallarg(struct rusage *) rusage;
594 1.1 erh };
595 1.1 erh
596 1.45 christos struct linux_sys_getdents64_args {
597 1.45 christos syscallarg(int) fd;
598 1.45 christos syscallarg(struct linux_dirent64 *) dent;
599 1.45 christos syscallarg(unsigned int) count;
600 1.45 christos };
601 1.45 christos
602 1.50 jdolecek struct linux_sys_exit_group_args {
603 1.50 jdolecek syscallarg(int) error_code;
604 1.50 jdolecek };
605 1.50 jdolecek
606 1.1 erh /*
607 1.1 erh * System call prototypes.
608 1.1 erh */
609 1.1 erh
610 1.46 thorpej int linux_sys_nosys(struct lwp *, void *, register_t *);
611 1.48 jdolecek
612 1.46 thorpej int sys_exit(struct lwp *, void *, register_t *);
613 1.48 jdolecek
614 1.46 thorpej int sys_fork(struct lwp *, void *, register_t *);
615 1.48 jdolecek
616 1.46 thorpej int sys_read(struct lwp *, void *, register_t *);
617 1.48 jdolecek
618 1.46 thorpej int sys_write(struct lwp *, void *, register_t *);
619 1.48 jdolecek
620 1.46 thorpej int sys_close(struct lwp *, void *, register_t *);
621 1.48 jdolecek
622 1.46 thorpej int osf1_sys_wait4(struct lwp *, void *, register_t *);
623 1.48 jdolecek
624 1.46 thorpej int linux_sys_creat(struct lwp *, void *, register_t *);
625 1.48 jdolecek
626 1.46 thorpej int linux_sys_link(struct lwp *, void *, register_t *);
627 1.48 jdolecek
628 1.46 thorpej int linux_sys_unlink(struct lwp *, void *, register_t *);
629 1.48 jdolecek
630 1.46 thorpej int linux_sys_chdir(struct lwp *, void *, register_t *);
631 1.48 jdolecek
632 1.46 thorpej int sys_fchdir(struct lwp *, void *, register_t *);
633 1.48 jdolecek
634 1.46 thorpej int linux_sys_mknod(struct lwp *, void *, register_t *);
635 1.48 jdolecek
636 1.46 thorpej int linux_sys_chmod(struct lwp *, void *, register_t *);
637 1.48 jdolecek
638 1.46 thorpej int sys___posix_chown(struct lwp *, void *, register_t *);
639 1.48 jdolecek
640 1.46 thorpej int linux_sys_brk(struct lwp *, void *, register_t *);
641 1.48 jdolecek
642 1.46 thorpej int compat_43_sys_lseek(struct lwp *, void *, register_t *);
643 1.48 jdolecek
644 1.46 thorpej int sys_getpid_with_ppid(struct lwp *, void *, register_t *);
645 1.48 jdolecek
646 1.46 thorpej int osf1_sys_mount(struct lwp *, void *, register_t *);
647 1.48 jdolecek
648 1.46 thorpej int sys_setuid(struct lwp *, void *, register_t *);
649 1.48 jdolecek
650 1.46 thorpej int sys_getuid_with_euid(struct lwp *, void *, register_t *);
651 1.48 jdolecek
652 1.46 thorpej int linux_sys_ptrace(struct lwp *, void *, register_t *);
653 1.48 jdolecek
654 1.46 thorpej int linux_sys_access(struct lwp *, void *, register_t *);
655 1.48 jdolecek
656 1.46 thorpej int sys_sync(struct lwp *, void *, register_t *);
657 1.48 jdolecek
658 1.46 thorpej int linux_sys_kill(struct lwp *, void *, register_t *);
659 1.48 jdolecek
660 1.46 thorpej int sys_setpgid(struct lwp *, void *, register_t *);
661 1.48 jdolecek
662 1.46 thorpej int sys_dup(struct lwp *, void *, register_t *);
663 1.48 jdolecek
664 1.46 thorpej int linux_sys_pipe(struct lwp *, void *, register_t *);
665 1.48 jdolecek
666 1.46 thorpej int osf1_sys_set_program_attributes(struct lwp *, void *, register_t *);
667 1.48 jdolecek
668 1.46 thorpej int linux_sys_open(struct lwp *, void *, register_t *);
669 1.48 jdolecek
670 1.46 thorpej int sys_getgid_with_egid(struct lwp *, void *, register_t *);
671 1.48 jdolecek
672 1.46 thorpej int compat_13_sys_sigprocmask(struct lwp *, void *, register_t *);
673 1.48 jdolecek
674 1.46 thorpej int sys_acct(struct lwp *, void *, register_t *);
675 1.48 jdolecek
676 1.46 thorpej int linux_sys_sigpending(struct lwp *, void *, register_t *);
677 1.48 jdolecek
678 1.46 thorpej int linux_sys_ioctl(struct lwp *, void *, register_t *);
679 1.48 jdolecek
680 1.46 thorpej int linux_sys_symlink(struct lwp *, void *, register_t *);
681 1.48 jdolecek
682 1.46 thorpej int linux_sys_readlink(struct lwp *, void *, register_t *);
683 1.48 jdolecek
684 1.46 thorpej int linux_sys_execve(struct lwp *, void *, register_t *);
685 1.48 jdolecek
686 1.46 thorpej int sys_umask(struct lwp *, void *, register_t *);
687 1.48 jdolecek
688 1.46 thorpej int sys_chroot(struct lwp *, void *, register_t *);
689 1.48 jdolecek
690 1.46 thorpej int sys_getpgrp(struct lwp *, void *, register_t *);
691 1.48 jdolecek
692 1.46 thorpej int compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
693 1.48 jdolecek
694 1.46 thorpej int sys___vfork14(struct lwp *, void *, register_t *);
695 1.48 jdolecek
696 1.46 thorpej int linux_sys_stat(struct lwp *, void *, register_t *);
697 1.48 jdolecek
698 1.46 thorpej int linux_sys_lstat(struct lwp *, void *, register_t *);
699 1.48 jdolecek
700 1.46 thorpej int linux_sys_mmap(struct lwp *, void *, register_t *);
701 1.48 jdolecek
702 1.46 thorpej int sys_munmap(struct lwp *, void *, register_t *);
703 1.48 jdolecek
704 1.46 thorpej int linux_sys_mprotect(struct lwp *, void *, register_t *);
705 1.48 jdolecek
706 1.48 jdolecek int sys_madvise(struct lwp *, void *, register_t *);
707 1.48 jdolecek
708 1.46 thorpej int sys_getgroups(struct lwp *, void *, register_t *);
709 1.48 jdolecek
710 1.46 thorpej int sys_setgroups(struct lwp *, void *, register_t *);
711 1.48 jdolecek
712 1.46 thorpej int osf1_sys_setitimer(struct lwp *, void *, register_t *);
713 1.48 jdolecek
714 1.46 thorpej int compat_43_sys_gethostname(struct lwp *, void *, register_t *);
715 1.48 jdolecek
716 1.46 thorpej int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
717 1.48 jdolecek
718 1.46 thorpej int sys_dup2(struct lwp *, void *, register_t *);
719 1.48 jdolecek
720 1.46 thorpej int linux_sys_fstat(struct lwp *, void *, register_t *);
721 1.48 jdolecek
722 1.46 thorpej int linux_sys_fcntl(struct lwp *, void *, register_t *);
723 1.48 jdolecek
724 1.46 thorpej int osf1_sys_select(struct lwp *, void *, register_t *);
725 1.48 jdolecek
726 1.46 thorpej int sys_poll(struct lwp *, void *, register_t *);
727 1.48 jdolecek
728 1.46 thorpej int sys_fsync(struct lwp *, void *, register_t *);
729 1.48 jdolecek
730 1.46 thorpej int sys_setpriority(struct lwp *, void *, register_t *);
731 1.48 jdolecek
732 1.46 thorpej int linux_sys_socket(struct lwp *, void *, register_t *);
733 1.48 jdolecek
734 1.46 thorpej int linux_sys_connect(struct lwp *, void *, register_t *);
735 1.48 jdolecek
736 1.46 thorpej int linux_sys_accept(struct lwp *, void *, register_t *);
737 1.48 jdolecek
738 1.46 thorpej int sys_getpriority(struct lwp *, void *, register_t *);
739 1.48 jdolecek
740 1.46 thorpej int linux_sys_send(struct lwp *, void *, register_t *);
741 1.48 jdolecek
742 1.46 thorpej int linux_sys_recv(struct lwp *, void *, register_t *);
743 1.48 jdolecek
744 1.46 thorpej int linux_sys_sigreturn(struct lwp *, void *, register_t *);
745 1.48 jdolecek
746 1.46 thorpej int linux_sys_bind(struct lwp *, void *, register_t *);
747 1.48 jdolecek
748 1.46 thorpej int linux_sys_setsockopt(struct lwp *, void *, register_t *);
749 1.48 jdolecek
750 1.46 thorpej int sys_listen(struct lwp *, void *, register_t *);
751 1.48 jdolecek
752 1.46 thorpej int linux_sys_sigsuspend(struct lwp *, void *, register_t *);
753 1.48 jdolecek
754 1.46 thorpej int compat_43_sys_sigstack(struct lwp *, void *, register_t *);
755 1.48 jdolecek
756 1.46 thorpej int linux_sys_recvmsg(struct lwp *, void *, register_t *);
757 1.48 jdolecek
758 1.46 thorpej int linux_sys_sendmsg(struct lwp *, void *, register_t *);
759 1.48 jdolecek
760 1.46 thorpej int osf1_sys_gettimeofday(struct lwp *, void *, register_t *);
761 1.48 jdolecek
762 1.46 thorpej int osf1_sys_getrusage(struct lwp *, void *, register_t *);
763 1.48 jdolecek
764 1.46 thorpej int linux_sys_getsockopt(struct lwp *, void *, register_t *);
765 1.48 jdolecek
766 1.46 thorpej int sys_readv(struct lwp *, void *, register_t *);
767 1.48 jdolecek
768 1.46 thorpej int sys_writev(struct lwp *, void *, register_t *);
769 1.48 jdolecek
770 1.46 thorpej int osf1_sys_settimeofday(struct lwp *, void *, register_t *);
771 1.48 jdolecek
772 1.46 thorpej int sys___posix_fchown(struct lwp *, void *, register_t *);
773 1.48 jdolecek
774 1.46 thorpej int sys_fchmod(struct lwp *, void *, register_t *);
775 1.48 jdolecek
776 1.46 thorpej int linux_sys_recvfrom(struct lwp *, void *, register_t *);
777 1.48 jdolecek
778 1.46 thorpej int sys_setreuid(struct lwp *, void *, register_t *);
779 1.48 jdolecek
780 1.46 thorpej int sys_setregid(struct lwp *, void *, register_t *);
781 1.48 jdolecek
782 1.46 thorpej int linux_sys_rename(struct lwp *, void *, register_t *);
783 1.48 jdolecek
784 1.46 thorpej int linux_sys_truncate(struct lwp *, void *, register_t *);
785 1.48 jdolecek
786 1.46 thorpej int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
787 1.48 jdolecek
788 1.46 thorpej int sys_flock(struct lwp *, void *, register_t *);
789 1.48 jdolecek
790 1.46 thorpej int sys_setgid(struct lwp *, void *, register_t *);
791 1.48 jdolecek
792 1.46 thorpej int linux_sys_sendto(struct lwp *, void *, register_t *);
793 1.48 jdolecek
794 1.46 thorpej int sys_shutdown(struct lwp *, void *, register_t *);
795 1.48 jdolecek
796 1.46 thorpej int linux_sys_socketpair(struct lwp *, void *, register_t *);
797 1.48 jdolecek
798 1.46 thorpej int linux_sys_mkdir(struct lwp *, void *, register_t *);
799 1.48 jdolecek
800 1.46 thorpej int linux_sys_rmdir(struct lwp *, void *, register_t *);
801 1.48 jdolecek
802 1.46 thorpej int osf1_sys_utimes(struct lwp *, void *, register_t *);
803 1.48 jdolecek
804 1.46 thorpej int linux_sys_getpeername(struct lwp *, void *, register_t *);
805 1.48 jdolecek
806 1.46 thorpej int linux_sys_getrlimit(struct lwp *, void *, register_t *);
807 1.48 jdolecek
808 1.46 thorpej int linux_sys_setrlimit(struct lwp *, void *, register_t *);
809 1.48 jdolecek
810 1.46 thorpej int sys_setsid(struct lwp *, void *, register_t *);
811 1.48 jdolecek
812 1.46 thorpej int linux_sys_getsockname(struct lwp *, void *, register_t *);
813 1.48 jdolecek
814 1.46 thorpej int linux_sys_sigaction(struct lwp *, void *, register_t *);
815 1.48 jdolecek
816 1.46 thorpej int compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
817 1.48 jdolecek
818 1.46 thorpej int osf1_sys_statfs(struct lwp *, void *, register_t *);
819 1.48 jdolecek
820 1.46 thorpej int osf1_sys_fstatfs(struct lwp *, void *, register_t *);
821 1.48 jdolecek
822 1.46 thorpej int compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
823 1.48 jdolecek
824 1.46 thorpej int linux_sys_setdomainname(struct lwp *, void *, register_t *);
825 1.48 jdolecek
826 1.46 thorpej int linux_sys_ugetrlimit(struct lwp *, void *, register_t *);
827 1.48 jdolecek
828 1.1 erh #ifdef SYSVMSG
829 1.46 thorpej int linux_sys_msgctl(struct lwp *, void *, register_t *);
830 1.48 jdolecek
831 1.46 thorpej int sys_msgget(struct lwp *, void *, register_t *);
832 1.48 jdolecek
833 1.46 thorpej int sys_msgrcv(struct lwp *, void *, register_t *);
834 1.48 jdolecek
835 1.46 thorpej int sys_msgsnd(struct lwp *, void *, register_t *);
836 1.48 jdolecek
837 1.1 erh #else
838 1.1 erh #endif
839 1.1 erh #ifdef SYSVSEM
840 1.46 thorpej int linux_sys_semctl(struct lwp *, void *, register_t *);
841 1.48 jdolecek
842 1.46 thorpej int sys_semget(struct lwp *, void *, register_t *);
843 1.48 jdolecek
844 1.46 thorpej int sys_semop(struct lwp *, void *, register_t *);
845 1.48 jdolecek
846 1.1 erh #else
847 1.1 erh #endif
848 1.46 thorpej int linux_sys_olduname(struct lwp *, void *, register_t *);
849 1.48 jdolecek
850 1.46 thorpej int sys___posix_lchown(struct lwp *, void *, register_t *);
851 1.48 jdolecek
852 1.1 erh #ifdef SYSVSHM
853 1.46 thorpej int linux_sys_shmat(struct lwp *, void *, register_t *);
854 1.48 jdolecek
855 1.46 thorpej int linux_sys_shmctl(struct lwp *, void *, register_t *);
856 1.48 jdolecek
857 1.46 thorpej int sys_shmdt(struct lwp *, void *, register_t *);
858 1.48 jdolecek
859 1.51 jdolecek int linux_sys_shmget(struct lwp *, void *, register_t *);
860 1.48 jdolecek
861 1.1 erh #else
862 1.1 erh #endif
863 1.46 thorpej int linux_sys_msync(struct lwp *, void *, register_t *);
864 1.48 jdolecek
865 1.46 thorpej int linux_sys_getpgid(struct lwp *, void *, register_t *);
866 1.48 jdolecek
867 1.46 thorpej int sys_getsid(struct lwp *, void *, register_t *);
868 1.48 jdolecek
869 1.46 thorpej int osf1_sys_sysinfo(struct lwp *, void *, register_t *);
870 1.48 jdolecek
871 1.46 thorpej int osf1_sys_usleep_thread(struct lwp *, void *, register_t *);
872 1.48 jdolecek
873 1.46 thorpej int osf1_sys_getsysinfo(struct lwp *, void *, register_t *);
874 1.48 jdolecek
875 1.46 thorpej int osf1_sys_setsysinfo(struct lwp *, void *, register_t *);
876 1.48 jdolecek
877 1.46 thorpej int linux_sys_fdatasync(struct lwp *, void *, register_t *);
878 1.48 jdolecek
879 1.46 thorpej int linux_sys_swapoff(struct lwp *, void *, register_t *);
880 1.48 jdolecek
881 1.46 thorpej int linux_sys_getdents(struct lwp *, void *, register_t *);
882 1.48 jdolecek
883 1.46 thorpej int linux_sys_reboot(struct lwp *, void *, register_t *);
884 1.48 jdolecek
885 1.46 thorpej int linux_sys_clone(struct lwp *, void *, register_t *);
886 1.48 jdolecek
887 1.1 erh #ifdef EXEC_AOUT
888 1.46 thorpej int linux_sys_uselib(struct lwp *, void *, register_t *);
889 1.48 jdolecek
890 1.1 erh #else
891 1.1 erh #endif
892 1.46 thorpej int sys_mlock(struct lwp *, void *, register_t *);
893 1.48 jdolecek
894 1.46 thorpej int sys_munlock(struct lwp *, void *, register_t *);
895 1.48 jdolecek
896 1.46 thorpej int sys_mlockall(struct lwp *, void *, register_t *);
897 1.48 jdolecek
898 1.46 thorpej int sys_munlockall(struct lwp *, void *, register_t *);
899 1.48 jdolecek
900 1.46 thorpej int linux_sys_sysinfo(struct lwp *, void *, register_t *);
901 1.48 jdolecek
902 1.46 thorpej int linux_sys___sysctl(struct lwp *, void *, register_t *);
903 1.48 jdolecek
904 1.46 thorpej int linux_sys_swapon(struct lwp *, void *, register_t *);
905 1.48 jdolecek
906 1.46 thorpej int linux_sys_times(struct lwp *, void *, register_t *);
907 1.48 jdolecek
908 1.46 thorpej int linux_sys_personality(struct lwp *, void *, register_t *);
909 1.48 jdolecek
910 1.46 thorpej int linux_sys_setfsuid(struct lwp *, void *, register_t *);
911 1.48 jdolecek
912 1.46 thorpej int linux_sys_statfs(struct lwp *, void *, register_t *);
913 1.48 jdolecek
914 1.46 thorpej int linux_sys_fstatfs(struct lwp *, void *, register_t *);
915 1.48 jdolecek
916 1.46 thorpej int linux_sys_sched_setparam(struct lwp *, void *, register_t *);
917 1.48 jdolecek
918 1.46 thorpej int linux_sys_sched_getparam(struct lwp *, void *, register_t *);
919 1.48 jdolecek
920 1.46 thorpej int linux_sys_sched_setscheduler(struct lwp *, void *, register_t *);
921 1.48 jdolecek
922 1.46 thorpej int linux_sys_sched_getscheduler(struct lwp *, void *, register_t *);
923 1.48 jdolecek
924 1.46 thorpej int linux_sys_sched_yield(struct lwp *, void *, register_t *);
925 1.48 jdolecek
926 1.46 thorpej int linux_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
927 1.48 jdolecek
928 1.46 thorpej int linux_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
929 1.48 jdolecek
930 1.46 thorpej int linux_sys_uname(struct lwp *, void *, register_t *);
931 1.48 jdolecek
932 1.46 thorpej int sys_nanosleep(struct lwp *, void *, register_t *);
933 1.48 jdolecek
934 1.46 thorpej int linux_sys_mremap(struct lwp *, void *, register_t *);
935 1.48 jdolecek
936 1.46 thorpej int linux_sys_setresuid(struct lwp *, void *, register_t *);
937 1.48 jdolecek
938 1.46 thorpej int linux_sys_getresuid(struct lwp *, void *, register_t *);
939 1.48 jdolecek
940 1.46 thorpej int linux_sys_pread(struct lwp *, void *, register_t *);
941 1.48 jdolecek
942 1.46 thorpej int linux_sys_pwrite(struct lwp *, void *, register_t *);
943 1.48 jdolecek
944 1.46 thorpej int linux_sys_rt_sigreturn(struct lwp *, void *, register_t *);
945 1.48 jdolecek
946 1.46 thorpej int linux_sys_rt_sigaction(struct lwp *, void *, register_t *);
947 1.48 jdolecek
948 1.46 thorpej int linux_sys_rt_sigprocmask(struct lwp *, void *, register_t *);
949 1.48 jdolecek
950 1.46 thorpej int linux_sys_rt_sigpending(struct lwp *, void *, register_t *);
951 1.48 jdolecek
952 1.46 thorpej int linux_sys_rt_queueinfo(struct lwp *, void *, register_t *);
953 1.48 jdolecek
954 1.46 thorpej int linux_sys_rt_sigsuspend(struct lwp *, void *, register_t *);
955 1.48 jdolecek
956 1.46 thorpej int linux_sys_select(struct lwp *, void *, register_t *);
957 1.48 jdolecek
958 1.46 thorpej int sys_gettimeofday(struct lwp *, void *, register_t *);
959 1.48 jdolecek
960 1.46 thorpej int sys_settimeofday(struct lwp *, void *, register_t *);
961 1.48 jdolecek
962 1.46 thorpej int sys_getitimer(struct lwp *, void *, register_t *);
963 1.48 jdolecek
964 1.46 thorpej int sys_setitimer(struct lwp *, void *, register_t *);
965 1.48 jdolecek
966 1.46 thorpej int sys_utimes(struct lwp *, void *, register_t *);
967 1.48 jdolecek
968 1.46 thorpej int sys_getrusage(struct lwp *, void *, register_t *);
969 1.48 jdolecek
970 1.46 thorpej int linux_sys_wait4(struct lwp *, void *, register_t *);
971 1.48 jdolecek
972 1.46 thorpej int sys___getcwd(struct lwp *, void *, register_t *);
973 1.48 jdolecek
974 1.48 jdolecek int sys_mincore(struct lwp *, void *, register_t *);
975 1.48 jdolecek
976 1.46 thorpej int linux_sys_getdents64(struct lwp *, void *, register_t *);
977 1.48 jdolecek
978 1.50 jdolecek int linux_sys_exit_group(struct lwp *, void *, register_t *);
979 1.50 jdolecek
980 1.7 thorpej #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
981