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