linux_syscallargs.h revision 1.9.4.1 1 /* $NetBSD: linux_syscallargs.h,v 1.9.4.1 2001/10/01 12:43:42 fvdl Exp $ */
2
3 /*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.6 2001/05/30 11:37:27 mrg Exp
8 */
9
10 #ifndef _LINUX_SYS__SYSCALLARGS_H_
11 #define _LINUX_SYS__SYSCALLARGS_H_
12
13 #ifdef syscallarg
14 #undef syscallarg
15 #endif
16
17 #define syscallarg(x) \
18 union { \
19 register_t pad; \
20 struct { x datum; } le; \
21 struct { \
22 int8_t pad[ (sizeof (register_t) < sizeof (x)) \
23 ? 0 \
24 : sizeof (register_t) - sizeof (x)]; \
25 x datum; \
26 } be; \
27 }
28
29 struct linux_sys_open_args {
30 syscallarg(const char *) path;
31 syscallarg(int) flags;
32 syscallarg(int) mode;
33 };
34
35 struct linux_sys_waitpid_args {
36 syscallarg(int) pid;
37 syscallarg(int *) status;
38 syscallarg(int) options;
39 };
40
41 struct linux_sys_creat_args {
42 syscallarg(const char *) path;
43 syscallarg(int) mode;
44 };
45
46 struct linux_sys_link_args {
47 syscallarg(const char *) path;
48 syscallarg(const char *) link;
49 };
50
51 struct linux_sys_unlink_args {
52 syscallarg(const char *) path;
53 };
54
55 struct linux_sys_execve_args {
56 syscallarg(const char *) path;
57 syscallarg(char **) argp;
58 syscallarg(char **) envp;
59 };
60
61 struct linux_sys_chdir_args {
62 syscallarg(const char *) path;
63 };
64
65 struct linux_sys_time_args {
66 syscallarg(linux_time_t *) t;
67 };
68
69 struct linux_sys_mknod_args {
70 syscallarg(const char *) path;
71 syscallarg(int) mode;
72 syscallarg(int) dev;
73 };
74
75 struct linux_sys_chmod_args {
76 syscallarg(const char *) path;
77 syscallarg(int) mode;
78 };
79
80 struct linux_sys_lchown_args {
81 syscallarg(const char *) path;
82 syscallarg(int) uid;
83 syscallarg(int) gid;
84 };
85
86 struct linux_sys_stime_args {
87 syscallarg(linux_time_t *) t;
88 };
89
90 struct linux_sys_ptrace_args {
91 syscallarg(int) request;
92 syscallarg(int) pid;
93 syscallarg(int) addr;
94 syscallarg(int) data;
95 };
96
97 struct linux_sys_alarm_args {
98 syscallarg(unsigned int) secs;
99 };
100
101 struct linux_sys_utime_args {
102 syscallarg(const char *) path;
103 syscallarg(struct linux_utimbuf *) times;
104 };
105
106 struct linux_sys_access_args {
107 syscallarg(const char *) path;
108 syscallarg(int) flags;
109 };
110
111 struct linux_sys_nice_args {
112 syscallarg(int) incr;
113 };
114
115 struct linux_sys_kill_args {
116 syscallarg(int) pid;
117 syscallarg(int) signum;
118 };
119
120 struct linux_sys_rename_args {
121 syscallarg(const char *) from;
122 syscallarg(const char *) to;
123 };
124
125 struct linux_sys_mkdir_args {
126 syscallarg(const char *) path;
127 syscallarg(int) mode;
128 };
129
130 struct linux_sys_rmdir_args {
131 syscallarg(const char *) path;
132 };
133
134 struct linux_sys_pipe_args {
135 syscallarg(int *) pfds;
136 };
137
138 struct linux_sys_times_args {
139 syscallarg(struct times *) tms;
140 };
141
142 struct linux_sys_brk_args {
143 syscallarg(char *) nsize;
144 };
145
146 struct linux_sys_signal_args {
147 syscallarg(int) signum;
148 syscallarg(linux_handler_t) handler;
149 };
150
151 struct linux_sys_ioctl_args {
152 syscallarg(int) fd;
153 syscallarg(u_long) com;
154 syscallarg(caddr_t) data;
155 };
156
157 struct linux_sys_fcntl_args {
158 syscallarg(int) fd;
159 syscallarg(int) cmd;
160 syscallarg(void *) arg;
161 };
162
163 struct linux_sys_olduname_args {
164 syscallarg(struct linux_old_utsname *) up;
165 };
166
167 struct linux_sys_sigaction_args {
168 syscallarg(int) signum;
169 syscallarg(const struct linux_old_sigaction *) nsa;
170 syscallarg(struct linux_old_sigaction *) osa;
171 };
172
173 struct linux_sys_sigsetmask_args {
174 syscallarg(linux_old_sigset_t) mask;
175 };
176
177 struct linux_sys_sigsuspend_args {
178 syscallarg(caddr_t) restart;
179 syscallarg(int) oldmask;
180 syscallarg(int) mask;
181 };
182
183 struct linux_sys_sigpending_args {
184 syscallarg(linux_old_sigset_t *) set;
185 };
186
187 struct linux_sys_gettimeofday_args {
188 syscallarg(struct timeval *) tp;
189 syscallarg(struct timezone *) tzp;
190 };
191
192 struct linux_sys_settimeofday_args {
193 syscallarg(struct timeval *) tp;
194 syscallarg(struct timezone *) tzp;
195 };
196
197 struct linux_sys_select_args {
198 syscallarg(int) nfds;
199 syscallarg(fd_set *) readfds;
200 syscallarg(fd_set *) writefds;
201 syscallarg(fd_set *) exceptfds;
202 syscallarg(struct timeval *) timeout;
203 };
204
205 struct linux_sys_symlink_args {
206 syscallarg(const char *) path;
207 syscallarg(const char *) to;
208 };
209
210 struct linux_sys_readlink_args {
211 syscallarg(const char *) name;
212 syscallarg(char *) buf;
213 syscallarg(int) count;
214 };
215
216 struct linux_sys_uselib_args {
217 syscallarg(const char *) path;
218 };
219
220 struct linux_sys_swapon_args {
221 syscallarg(char *) name;
222 };
223
224 struct linux_sys_reboot_args {
225 syscallarg(int) magic1;
226 syscallarg(int) magic2;
227 syscallarg(int) cmd;
228 syscallarg(void *) arg;
229 };
230
231 struct linux_sys_readdir_args {
232 syscallarg(int) fd;
233 syscallarg(caddr_t) dent;
234 syscallarg(unsigned int) count;
235 };
236
237 struct linux_sys_truncate_args {
238 syscallarg(const char *) path;
239 syscallarg(long) length;
240 };
241
242 struct linux_sys_statfs_args {
243 syscallarg(const char *) path;
244 syscallarg(struct linux_statfs *) sp;
245 };
246
247 struct linux_sys_fstatfs_args {
248 syscallarg(int) fd;
249 syscallarg(struct linux_statfs *) sp;
250 };
251
252 struct linux_sys_ioperm_args {
253 syscallarg(unsigned int) lo;
254 syscallarg(unsigned int) hi;
255 syscallarg(int) val;
256 };
257
258 struct linux_sys_socketcall_args {
259 syscallarg(int) what;
260 syscallarg(void *) args;
261 };
262
263 struct linux_sys_stat_args {
264 syscallarg(const char *) path;
265 syscallarg(struct linux_stat *) sp;
266 };
267
268 struct linux_sys_lstat_args {
269 syscallarg(const char *) path;
270 syscallarg(struct linux_stat *) sp;
271 };
272
273 struct linux_sys_fstat_args {
274 syscallarg(int) fd;
275 syscallarg(struct linux_stat *) sp;
276 };
277
278 struct linux_sys_uname_args {
279 syscallarg(struct linux_utsname *) up;
280 };
281
282 struct linux_sys_wait4_args {
283 syscallarg(int) pid;
284 syscallarg(int *) status;
285 syscallarg(int) options;
286 syscallarg(struct rusage *) rusage;
287 };
288
289 struct linux_sys_swapoff_args {
290 syscallarg(const char *) path;
291 };
292
293 struct linux_sys_sysinfo_args {
294 syscallarg(struct linux_sysinfo *) arg;
295 };
296
297 struct linux_sys_ipc_args {
298 syscallarg(int) what;
299 syscallarg(int) a1;
300 syscallarg(int) a2;
301 syscallarg(int) a3;
302 syscallarg(caddr_t) ptr;
303 };
304
305 struct linux_sys_sigreturn_args {
306 syscallarg(struct linux_sigcontext *) scp;
307 };
308
309 struct linux_sys_clone_args {
310 syscallarg(int) flags;
311 syscallarg(void *) stack;
312 };
313
314 struct linux_sys_setdomainname_args {
315 syscallarg(char *) domainname;
316 syscallarg(int) len;
317 };
318
319 struct linux_sys_new_uname_args {
320 syscallarg(struct linux_utsname *) up;
321 };
322
323 struct linux_sys_sigprocmask_args {
324 syscallarg(int) how;
325 syscallarg(const linux_old_sigset_t *) set;
326 syscallarg(linux_old_sigset_t *) oset;
327 };
328
329 struct linux_sys_getpgid_args {
330 syscallarg(int) pid;
331 };
332
333 struct linux_sys_personality_args {
334 syscallarg(int) per;
335 };
336
337 struct linux_sys_setfsuid_args {
338 syscallarg(uid_t) uid;
339 };
340
341 struct linux_sys_llseek_args {
342 syscallarg(int) fd;
343 syscallarg(u_int32_t) ohigh;
344 syscallarg(u_int32_t) olow;
345 syscallarg(caddr_t) res;
346 syscallarg(int) whence;
347 };
348
349 struct linux_sys_getdents_args {
350 syscallarg(int) fd;
351 syscallarg(struct linux_dirent *) dent;
352 syscallarg(unsigned int) count;
353 };
354
355 struct linux_sys_new_select_args {
356 syscallarg(int) nfds;
357 syscallarg(fd_set *) readfds;
358 syscallarg(fd_set *) writefds;
359 syscallarg(fd_set *) exceptfds;
360 syscallarg(struct timeval *) timeout;
361 };
362
363 struct linux_sys_msync_args {
364 syscallarg(caddr_t) addr;
365 syscallarg(int) len;
366 syscallarg(int) fl;
367 };
368
369 struct linux_sys_fdatasync_args {
370 syscallarg(int) fd;
371 };
372
373 struct linux_sys___sysctl_args {
374 syscallarg(struct linux___sysctl *) lsp;
375 };
376
377 struct linux_sys_sched_setparam_args {
378 syscallarg(pid_t) pid;
379 syscallarg(const struct linux_sched_param *) sp;
380 };
381
382 struct linux_sys_sched_getparam_args {
383 syscallarg(pid_t) pid;
384 syscallarg(struct linux_sched_param *) sp;
385 };
386
387 struct linux_sys_sched_setscheduler_args {
388 syscallarg(pid_t) pid;
389 syscallarg(int) policy;
390 syscallarg(const struct linux_sched_param *) sp;
391 };
392
393 struct linux_sys_sched_getscheduler_args {
394 syscallarg(pid_t) pid;
395 };
396
397 struct linux_sys_sched_get_priority_max_args {
398 syscallarg(int) policy;
399 };
400
401 struct linux_sys_sched_get_priority_min_args {
402 syscallarg(int) policy;
403 };
404
405 struct linux_sys_mremap_args {
406 syscallarg(void *) old_address;
407 syscallarg(size_t) old_size;
408 syscallarg(size_t) new_size;
409 syscallarg(u_long) flags;
410 };
411
412 struct linux_sys_setresuid_args {
413 syscallarg(uid_t) ruid;
414 syscallarg(uid_t) euid;
415 syscallarg(uid_t) suid;
416 };
417
418 struct linux_sys_getresuid_args {
419 syscallarg(uid_t *) ruid;
420 syscallarg(uid_t *) euid;
421 syscallarg(uid_t *) suid;
422 };
423
424 struct linux_sys_setresgid_args {
425 syscallarg(gid_t) rgid;
426 syscallarg(gid_t) egid;
427 syscallarg(gid_t) sgid;
428 };
429
430 struct linux_sys_getresgid_args {
431 syscallarg(gid_t *) rgid;
432 syscallarg(gid_t *) egid;
433 syscallarg(gid_t *) sgid;
434 };
435
436 struct linux_sys_rt_sigreturn_args {
437 syscallarg(struct linux_rt_sigframe *) sfp;
438 };
439
440 struct linux_sys_rt_sigaction_args {
441 syscallarg(int) signum;
442 syscallarg(const struct linux_sigaction *) nsa;
443 syscallarg(struct linux_sigaction *) osa;
444 syscallarg(size_t) sigsetsize;
445 };
446
447 struct linux_sys_rt_sigprocmask_args {
448 syscallarg(int) how;
449 syscallarg(const linux_sigset_t *) set;
450 syscallarg(linux_sigset_t *) oset;
451 syscallarg(size_t) sigsetsize;
452 };
453
454 struct linux_sys_rt_sigpending_args {
455 syscallarg(linux_sigset_t *) set;
456 syscallarg(size_t) sigsetsize;
457 };
458
459 struct linux_sys_rt_queueinfo_args {
460 syscallarg(int) pid;
461 syscallarg(int) signum;
462 syscallarg(void *) uinfo;
463 };
464
465 struct linux_sys_rt_sigsuspend_args {
466 syscallarg(linux_sigset_t *) unewset;
467 syscallarg(size_t) sigsetsize;
468 };
469
470 struct linux_sys_pread_args {
471 syscallarg(int) fd;
472 syscallarg(char *) buf;
473 syscallarg(size_t) nbyte;
474 syscallarg(linux_off_t) offset;
475 };
476
477 struct linux_sys_pwrite_args {
478 syscallarg(int) fd;
479 syscallarg(char *) buf;
480 syscallarg(size_t) nbyte;
481 syscallarg(linux_off_t) offset;
482 };
483
484 struct linux_sys_chown_args {
485 syscallarg(const char *) path;
486 syscallarg(int) uid;
487 syscallarg(int) gid;
488 };
489
490 struct linux_sys_sigaltstack_args {
491 syscallarg(const struct linux_sigaltstack *) ss;
492 syscallarg(struct linux_sigaltstack *) oss;
493 };
494
495 /*
496 * System call prototypes.
497 */
498
499 int linux_sys_nosys(struct proc *, void *, register_t *);
500 int sys_exit(struct proc *, void *, register_t *);
501 int sys_fork(struct proc *, void *, register_t *);
502 int sys_read(struct proc *, void *, register_t *);
503 int sys_write(struct proc *, void *, register_t *);
504 int linux_sys_open(struct proc *, void *, register_t *);
505 int sys_close(struct proc *, void *, register_t *);
506 int linux_sys_waitpid(struct proc *, void *, register_t *);
507 int linux_sys_creat(struct proc *, void *, register_t *);
508 int linux_sys_link(struct proc *, void *, register_t *);
509 int linux_sys_unlink(struct proc *, void *, register_t *);
510 int linux_sys_execve(struct proc *, void *, register_t *);
511 int linux_sys_chdir(struct proc *, void *, register_t *);
512 int linux_sys_time(struct proc *, void *, register_t *);
513 int linux_sys_mknod(struct proc *, void *, register_t *);
514 int linux_sys_chmod(struct proc *, void *, register_t *);
515 int linux_sys_lchown(struct proc *, void *, register_t *);
516 int compat_43_sys_lseek(struct proc *, void *, register_t *);
517 int sys_getpid(struct proc *, void *, register_t *);
518 int sys_setuid(struct proc *, void *, register_t *);
519 int sys_getuid(struct proc *, void *, register_t *);
520 int linux_sys_stime(struct proc *, void *, register_t *);
521 int linux_sys_ptrace(struct proc *, void *, register_t *);
522 int linux_sys_alarm(struct proc *, void *, register_t *);
523 int linux_sys_pause(struct proc *, void *, register_t *);
524 int linux_sys_utime(struct proc *, void *, register_t *);
525 int linux_sys_access(struct proc *, void *, register_t *);
526 int linux_sys_nice(struct proc *, void *, register_t *);
527 int sys_sync(struct proc *, void *, register_t *);
528 int linux_sys_kill(struct proc *, void *, register_t *);
529 int linux_sys_rename(struct proc *, void *, register_t *);
530 int linux_sys_mkdir(struct proc *, void *, register_t *);
531 int linux_sys_rmdir(struct proc *, void *, register_t *);
532 int sys_dup(struct proc *, void *, register_t *);
533 int linux_sys_pipe(struct proc *, void *, register_t *);
534 int linux_sys_times(struct proc *, void *, register_t *);
535 int linux_sys_brk(struct proc *, void *, register_t *);
536 int sys_setgid(struct proc *, void *, register_t *);
537 int sys_getgid(struct proc *, void *, register_t *);
538 int linux_sys_signal(struct proc *, void *, register_t *);
539 int sys_geteuid(struct proc *, void *, register_t *);
540 int sys_getegid(struct proc *, void *, register_t *);
541 int sys_acct(struct proc *, void *, register_t *);
542 int linux_sys_ioctl(struct proc *, void *, register_t *);
543 int linux_sys_fcntl(struct proc *, void *, register_t *);
544 int sys_setpgid(struct proc *, void *, register_t *);
545 int linux_sys_olduname(struct proc *, void *, register_t *);
546 int sys_umask(struct proc *, void *, register_t *);
547 int sys_chroot(struct proc *, void *, register_t *);
548 int sys_dup2(struct proc *, void *, register_t *);
549 int sys_getppid(struct proc *, void *, register_t *);
550 int sys_getpgrp(struct proc *, void *, register_t *);
551 int sys_setsid(struct proc *, void *, register_t *);
552 int linux_sys_sigaction(struct proc *, void *, register_t *);
553 int linux_sys_siggetmask(struct proc *, void *, register_t *);
554 int linux_sys_sigsetmask(struct proc *, void *, register_t *);
555 int sys_setreuid(struct proc *, void *, register_t *);
556 int sys_setregid(struct proc *, void *, register_t *);
557 int linux_sys_sigsuspend(struct proc *, void *, register_t *);
558 int linux_sys_sigpending(struct proc *, void *, register_t *);
559 int compat_43_sys_sethostname(struct proc *, void *, register_t *);
560 int compat_43_sys_setrlimit(struct proc *, void *, register_t *);
561 int compat_43_sys_getrlimit(struct proc *, void *, register_t *);
562 int sys_getrusage(struct proc *, void *, register_t *);
563 int linux_sys_gettimeofday(struct proc *, void *, register_t *);
564 int linux_sys_settimeofday(struct proc *, void *, register_t *);
565 int sys_getgroups(struct proc *, void *, register_t *);
566 int sys_setgroups(struct proc *, void *, register_t *);
567 int linux_sys_select(struct proc *, void *, register_t *);
568 int linux_sys_symlink(struct proc *, void *, register_t *);
569 int compat_43_sys_lstat(struct proc *, void *, register_t *);
570 int linux_sys_readlink(struct proc *, void *, register_t *);
571 int linux_sys_uselib(struct proc *, void *, register_t *);
572 int linux_sys_swapon(struct proc *, void *, register_t *);
573 int linux_sys_reboot(struct proc *, void *, register_t *);
574 int linux_sys_readdir(struct proc *, void *, register_t *);
575 int linux_sys_mmap(struct proc *, void *, register_t *);
576 int sys_munmap(struct proc *, void *, register_t *);
577 int linux_sys_truncate(struct proc *, void *, register_t *);
578 int compat_43_sys_ftruncate(struct proc *, void *, register_t *);
579 int sys_fchmod(struct proc *, void *, register_t *);
580 int sys___posix_fchown(struct proc *, void *, register_t *);
581 int sys_getpriority(struct proc *, void *, register_t *);
582 int sys_setpriority(struct proc *, void *, register_t *);
583 int sys_profil(struct proc *, void *, register_t *);
584 int linux_sys_statfs(struct proc *, void *, register_t *);
585 int linux_sys_fstatfs(struct proc *, void *, register_t *);
586 int linux_sys_ioperm(struct proc *, void *, register_t *);
587 int linux_sys_socketcall(struct proc *, void *, register_t *);
588 int sys_setitimer(struct proc *, void *, register_t *);
589 int sys_getitimer(struct proc *, void *, register_t *);
590 int linux_sys_stat(struct proc *, void *, register_t *);
591 int linux_sys_lstat(struct proc *, void *, register_t *);
592 int linux_sys_fstat(struct proc *, void *, register_t *);
593 int linux_sys_uname(struct proc *, void *, register_t *);
594 int linux_sys_wait4(struct proc *, void *, register_t *);
595 int linux_sys_swapoff(struct proc *, void *, register_t *);
596 int linux_sys_sysinfo(struct proc *, void *, register_t *);
597 int linux_sys_ipc(struct proc *, void *, register_t *);
598 int sys_fsync(struct proc *, void *, register_t *);
599 int linux_sys_sigreturn(struct proc *, void *, register_t *);
600 int linux_sys_clone(struct proc *, void *, register_t *);
601 int linux_sys_setdomainname(struct proc *, void *, register_t *);
602 int linux_sys_new_uname(struct proc *, void *, register_t *);
603 int sys_mprotect(struct proc *, void *, register_t *);
604 int linux_sys_sigprocmask(struct proc *, void *, register_t *);
605 int linux_sys_getpgid(struct proc *, void *, register_t *);
606 int sys_fchdir(struct proc *, void *, register_t *);
607 int linux_sys_personality(struct proc *, void *, register_t *);
608 int linux_sys_setfsuid(struct proc *, void *, register_t *);
609 int linux_sys_getfsuid(struct proc *, void *, register_t *);
610 int linux_sys_llseek(struct proc *, void *, register_t *);
611 int linux_sys_getdents(struct proc *, void *, register_t *);
612 int linux_sys_new_select(struct proc *, void *, register_t *);
613 int sys_flock(struct proc *, void *, register_t *);
614 int linux_sys_msync(struct proc *, void *, register_t *);
615 int sys_readv(struct proc *, void *, register_t *);
616 int sys_writev(struct proc *, void *, register_t *);
617 int sys_getsid(struct proc *, void *, register_t *);
618 int linux_sys_fdatasync(struct proc *, void *, register_t *);
619 int linux_sys___sysctl(struct proc *, void *, register_t *);
620 int sys_mlock(struct proc *, void *, register_t *);
621 int sys_munlock(struct proc *, void *, register_t *);
622 int sys_mlockall(struct proc *, void *, register_t *);
623 int sys_munlockall(struct proc *, void *, register_t *);
624 int linux_sys_sched_setparam(struct proc *, void *, register_t *);
625 int linux_sys_sched_getparam(struct proc *, void *, register_t *);
626 int linux_sys_sched_setscheduler(struct proc *, void *, register_t *);
627 int linux_sys_sched_getscheduler(struct proc *, void *, register_t *);
628 int linux_sys_sched_yield(struct proc *, void *, register_t *);
629 int linux_sys_sched_get_priority_max(struct proc *, void *, register_t *);
630 int linux_sys_sched_get_priority_min(struct proc *, void *, register_t *);
631 int sys_nanosleep(struct proc *, void *, register_t *);
632 int linux_sys_mremap(struct proc *, void *, register_t *);
633 int linux_sys_setresuid(struct proc *, void *, register_t *);
634 int linux_sys_getresuid(struct proc *, void *, register_t *);
635 int sys_poll(struct proc *, void *, register_t *);
636 int linux_sys_setresgid(struct proc *, void *, register_t *);
637 int linux_sys_getresgid(struct proc *, void *, register_t *);
638 int linux_sys_rt_sigreturn(struct proc *, void *, register_t *);
639 int linux_sys_rt_sigaction(struct proc *, void *, register_t *);
640 int linux_sys_rt_sigprocmask(struct proc *, void *, register_t *);
641 int linux_sys_rt_sigpending(struct proc *, void *, register_t *);
642 int linux_sys_rt_queueinfo(struct proc *, void *, register_t *);
643 int linux_sys_rt_sigsuspend(struct proc *, void *, register_t *);
644 int linux_sys_pread(struct proc *, void *, register_t *);
645 int linux_sys_pwrite(struct proc *, void *, register_t *);
646 int linux_sys_chown(struct proc *, void *, register_t *);
647 int sys___getcwd(struct proc *, void *, register_t *);
648 int linux_sys_sigaltstack(struct proc *, void *, register_t *);
649 int sys___vfork14(struct proc *, void *, register_t *);
650 #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
651