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