linux_syscallargs.h revision 1.18.4.1 1 /* $NetBSD: linux_syscallargs.h,v 1.18.4.1 2001/03/30 21:54:01 he 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.19.4.1 2001/03/30 21:33:21 he 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_creat_args {
30 syscallarg(const char *) path;
31 syscallarg(mode_t) mode;
32 };
33
34 struct linux_sys_link_args {
35 syscallarg(const char *) path;
36 syscallarg(const char *) link;
37 };
38
39 struct linux_sys_unlink_args {
40 syscallarg(const char *) path;
41 };
42
43 struct linux_sys_chdir_args {
44 syscallarg(const char *) path;
45 };
46
47 struct linux_sys_mknod_args {
48 syscallarg(const char *) path;
49 syscallarg(int) mode;
50 syscallarg(int) dev;
51 };
52
53 struct linux_sys_chmod_args {
54 syscallarg(const char *) path;
55 syscallarg(int) mode;
56 };
57
58 struct linux_sys_chown_args {
59 syscallarg(const char *) path;
60 syscallarg(int) uid;
61 syscallarg(int) gid;
62 };
63
64 struct linux_sys_brk_args {
65 syscallarg(char *) nsize;
66 };
67
68 struct linux_sys_ptrace_args {
69 syscallarg(long) request;
70 syscallarg(long) pid;
71 syscallarg(long) addr;
72 syscallarg(long) data;
73 };
74
75 struct linux_sys_access_args {
76 syscallarg(const char *) path;
77 syscallarg(int) flags;
78 };
79
80 struct linux_sys_kill_args {
81 syscallarg(int) pid;
82 syscallarg(int) signum;
83 };
84
85 struct linux_sys_open_args {
86 syscallarg(const char *) path;
87 syscallarg(int) flags;
88 syscallarg(int) mode;
89 };
90
91 struct linux_sys_sigpending_args {
92 syscallarg(linux_old_sigset_t *) set;
93 };
94
95 struct linux_sys_ioctl_args {
96 syscallarg(int) fd;
97 syscallarg(u_long) com;
98 syscallarg(caddr_t) data;
99 };
100
101 struct linux_sys_symlink_args {
102 syscallarg(const char *) path;
103 syscallarg(const char *) to;
104 };
105
106 struct linux_sys_readlink_args {
107 syscallarg(const char *) name;
108 syscallarg(char *) buf;
109 syscallarg(int) count;
110 };
111
112 struct linux_sys_execve_args {
113 syscallarg(const char *) path;
114 syscallarg(char **) argp;
115 syscallarg(char **) envp;
116 };
117
118 struct linux_sys_stat_args {
119 syscallarg(const char *) path;
120 syscallarg(struct linux_stat *) sp;
121 };
122
123 struct linux_sys_lstat_args {
124 syscallarg(const char *) path;
125 syscallarg(struct linux_stat *) sp;
126 };
127
128 struct linux_sys_fstat_args {
129 syscallarg(int) fd;
130 syscallarg(struct linux_stat *) sp;
131 };
132
133 struct linux_sys_fcntl_args {
134 syscallarg(int) fd;
135 syscallarg(int) cmd;
136 syscallarg(void *) arg;
137 };
138
139 struct linux_sys_socket_args {
140 syscallarg(int) domain;
141 syscallarg(int) type;
142 syscallarg(int) protocol;
143 };
144
145 struct linux_sys_connect_args {
146 syscallarg(int) s;
147 syscallarg(const struct sockaddr *) name;
148 syscallarg(unsigned int) namelen;
149 };
150
151 struct linux_sys_sigreturn_args {
152 syscallarg(struct linux_sigframe *) sfp;
153 };
154
155 struct linux_sys_setsockopt_args {
156 syscallarg(int) s;
157 syscallarg(int) level;
158 syscallarg(int) optname;
159 syscallarg(void *) optval;
160 syscallarg(int) optlen;
161 };
162
163 struct linux_sys_sigsuspend_args {
164 syscallarg(caddr_t) restart;
165 syscallarg(int) oldmask;
166 syscallarg(int) mask;
167 };
168
169 struct linux_sys_getsockopt_args {
170 syscallarg(int) s;
171 syscallarg(int) level;
172 syscallarg(int) optname;
173 syscallarg(void *) optval;
174 syscallarg(int *) optlen;
175 };
176
177 struct linux_sys_fchown_args {
178 syscallarg(int) fd;
179 syscallarg(int) uid;
180 syscallarg(int) gid;
181 };
182
183 struct linux_sys_recvfrom_args {
184 syscallarg(int) s;
185 syscallarg(void *) buf;
186 syscallarg(int) len;
187 syscallarg(int) flags;
188 syscallarg(struct sockaddr *) from;
189 syscallarg(int *) fromlen;
190 };
191
192 struct linux_sys_setreuid_args {
193 syscallarg(int) ruid;
194 syscallarg(int) euid;
195 };
196
197 struct linux_sys_setregid_args {
198 syscallarg(int) rgid;
199 syscallarg(int) egid;
200 };
201
202 struct linux_sys_rename_args {
203 syscallarg(const char *) from;
204 syscallarg(const char *) to;
205 };
206
207 struct linux_sys_truncate_args {
208 syscallarg(const char *) path;
209 syscallarg(long) length;
210 };
211
212 struct linux_sys_sendto_args {
213 syscallarg(int) s;
214 syscallarg(void *) msg;
215 syscallarg(int) len;
216 syscallarg(int) flags;
217 syscallarg(struct sockaddr *) to;
218 syscallarg(int) tolen;
219 };
220
221 struct linux_sys_socketpair_args {
222 syscallarg(int) domain;
223 syscallarg(int) type;
224 syscallarg(int) protocol;
225 syscallarg(int *) rsv;
226 };
227
228 struct linux_sys_mkdir_args {
229 syscallarg(const char *) path;
230 syscallarg(int) mode;
231 };
232
233 struct linux_sys_rmdir_args {
234 syscallarg(const char *) path;
235 };
236
237 struct linux_sys_sigaction_args {
238 syscallarg(int) signum;
239 syscallarg(const struct linux_old_sigaction *) nsa;
240 syscallarg(struct linux_old_sigaction *) osa;
241 };
242
243 struct linux_sys_olduname_args {
244 syscallarg(struct linux_old_utsname *) up;
245 };
246
247 struct linux_sys_lchown_args {
248 syscallarg(char *) path;
249 syscallarg(int) uid;
250 syscallarg(int) gid;
251 };
252
253 struct linux_sys_msync_args {
254 syscallarg(caddr_t) addr;
255 syscallarg(int) len;
256 syscallarg(int) fl;
257 };
258
259 struct linux_sys_getpgid_args {
260 syscallarg(int) pid;
261 };
262
263 struct linux_sys_fdatasync_args {
264 syscallarg(int) fd;
265 };
266
267 struct linux_sys_getdents_args {
268 syscallarg(int) fd;
269 syscallarg(struct linux_dirent *) dent;
270 syscallarg(unsigned int) count;
271 };
272
273 struct linux_sys_reboot_args {
274 syscallarg(int) magic1;
275 syscallarg(int) magic2;
276 syscallarg(int) cmd;
277 syscallarg(void *) arg;
278 };
279
280 struct linux_sys_clone_args {
281 syscallarg(int) flags;
282 syscallarg(void *) stack;
283 };
284
285 struct linux_sys_uselib_args {
286 syscallarg(char *) path;
287 };
288
289 struct linux_sys___sysctl_args {
290 syscallarg(struct linux___sysctl *) lsp;
291 };
292
293 struct linux_sys_times_args {
294 syscallarg(struct times *) tms;
295 };
296
297 struct linux_sys_personality_args {
298 syscallarg(int) per;
299 };
300
301 struct linux_sys_setfsuid_args {
302 syscallarg(uid_t) uid;
303 };
304
305 struct linux_sys_statfs_args {
306 syscallarg(const char *) path;
307 syscallarg(struct linux_statfs *) sp;
308 };
309
310 struct linux_sys_fstatfs_args {
311 syscallarg(int) fd;
312 syscallarg(struct linux_statfs *) sp;
313 };
314
315 struct linux_sys_sched_setparam_args {
316 syscallarg(pid_t) pid;
317 syscallarg(const struct linux_sched_param *) sp;
318 };
319
320 struct linux_sys_sched_getparam_args {
321 syscallarg(pid_t) pid;
322 syscallarg(struct linux_sched_param *) sp;
323 };
324
325 struct linux_sys_sched_setscheduler_args {
326 syscallarg(pid_t) pid;
327 syscallarg(int) policy;
328 syscallarg(const struct linux_sched_param *) sp;
329 };
330
331 struct linux_sys_sched_getscheduler_args {
332 syscallarg(pid_t) pid;
333 };
334
335 struct linux_sys_sched_get_priority_max_args {
336 syscallarg(int) policy;
337 };
338
339 struct linux_sys_sched_get_priority_min_args {
340 syscallarg(int) policy;
341 };
342
343 struct linux_sys_uname_args {
344 syscallarg(struct linux_utsname *) up;
345 };
346
347 struct linux_sys_mremap_args {
348 syscallarg(void *) old_address;
349 syscallarg(size_t) old_size;
350 syscallarg(size_t) new_size;
351 syscallarg(u_long) flags;
352 };
353
354 struct linux_sys_setresuid_args {
355 syscallarg(uid_t) ruid;
356 syscallarg(uid_t) euid;
357 syscallarg(uid_t) suid;
358 };
359
360 struct linux_sys_getresuid_args {
361 syscallarg(uid_t *) ruid;
362 syscallarg(uid_t *) euid;
363 syscallarg(uid_t *) suid;
364 };
365
366 struct linux_sys_pread_args {
367 syscallarg(int) fd;
368 syscallarg(char *) buf;
369 syscallarg(size_t) nbyte;
370 syscallarg(linux_off_t) offset;
371 };
372
373 struct linux_sys_pwrite_args {
374 syscallarg(int) fd;
375 syscallarg(char *) buf;
376 syscallarg(size_t) nbyte;
377 syscallarg(linux_off_t) offset;
378 };
379
380 struct linux_sys_rt_sigreturn_args {
381 syscallarg(struct linux_rt_sigframe *) sfp;
382 };
383
384 struct linux_sys_rt_sigaction_args {
385 syscallarg(int) signum;
386 syscallarg(const struct linux_sigaction *) nsa;
387 syscallarg(struct linux_sigaction *) osa;
388 syscallarg(size_t) sigsetsize;
389 };
390
391 struct linux_sys_rt_sigprocmask_args {
392 syscallarg(int) how;
393 syscallarg(const linux_sigset_t *) set;
394 syscallarg(linux_sigset_t *) oset;
395 syscallarg(size_t) sigsetsize;
396 };
397
398 struct linux_sys_rt_sigpending_args {
399 syscallarg(linux_sigset_t *) set;
400 syscallarg(size_t) sigsetsize;
401 };
402
403 struct linux_sys_rt_queueinfo_args {
404 syscallarg(int) pid;
405 syscallarg(int) signum;
406 syscallarg(linux_siginfo_t *) uinfo;
407 };
408
409 struct linux_sys_rt_sigsuspend_args {
410 syscallarg(linux_sigset_t *) unewset;
411 syscallarg(size_t) sigsetsize;
412 };
413
414 struct linux_sys_select_args {
415 syscallarg(int) nfds;
416 syscallarg(fd_set *) readfds;
417 syscallarg(fd_set *) writefds;
418 syscallarg(fd_set *) exceptfds;
419 syscallarg(struct timeval *) timeout;
420 };
421
422 struct linux_sys_wait4_args {
423 syscallarg(int) pid;
424 syscallarg(int *) status;
425 syscallarg(int) options;
426 syscallarg(struct rusage *) rusage;
427 };
428
429 /*
430 * System call prototypes.
431 */
432
433 int sys_nosys __P((struct proc *, void *, register_t *));
434 int sys_exit __P((struct proc *, void *, register_t *));
435 int sys_fork __P((struct proc *, void *, register_t *));
436 int sys_read __P((struct proc *, void *, register_t *));
437 int sys_write __P((struct proc *, void *, register_t *));
438 int sys_close __P((struct proc *, void *, register_t *));
439 int linux_sys_creat __P((struct proc *, void *, register_t *));
440 int linux_sys_link __P((struct proc *, void *, register_t *));
441 int linux_sys_unlink __P((struct proc *, void *, register_t *));
442 int linux_sys_chdir __P((struct proc *, void *, register_t *));
443 int sys_fchdir __P((struct proc *, void *, register_t *));
444 int linux_sys_mknod __P((struct proc *, void *, register_t *));
445 int linux_sys_chmod __P((struct proc *, void *, register_t *));
446 int linux_sys_chown __P((struct proc *, void *, register_t *));
447 int linux_sys_brk __P((struct proc *, void *, register_t *));
448 int compat_43_sys_lseek __P((struct proc *, void *, register_t *));
449 int sys_getpid __P((struct proc *, void *, register_t *));
450 int sys_setuid __P((struct proc *, void *, register_t *));
451 int sys_getuid __P((struct proc *, void *, register_t *));
452 int linux_sys_ptrace __P((struct proc *, void *, register_t *));
453 int linux_sys_access __P((struct proc *, void *, register_t *));
454 int sys_sync __P((struct proc *, void *, register_t *));
455 int linux_sys_kill __P((struct proc *, void *, register_t *));
456 int sys_setpgid __P((struct proc *, void *, register_t *));
457 int sys_dup __P((struct proc *, void *, register_t *));
458 int linux_sys_pipe __P((struct proc *, void *, register_t *));
459 int linux_sys_open __P((struct proc *, void *, register_t *));
460 int sys_getgid __P((struct proc *, void *, register_t *));
461 int sys_acct __P((struct proc *, void *, register_t *));
462 int linux_sys_sigpending __P((struct proc *, void *, register_t *));
463 int linux_sys_ioctl __P((struct proc *, void *, register_t *));
464 int linux_sys_symlink __P((struct proc *, void *, register_t *));
465 int linux_sys_readlink __P((struct proc *, void *, register_t *));
466 int linux_sys_execve __P((struct proc *, void *, register_t *));
467 int sys_umask __P((struct proc *, void *, register_t *));
468 int sys_chroot __P((struct proc *, void *, register_t *));
469 int sys_getpgrp __P((struct proc *, void *, register_t *));
470 int compat_43_sys_getpagesize __P((struct proc *, void *, register_t *));
471 int sys___vfork14 __P((struct proc *, void *, register_t *));
472 int linux_sys_stat __P((struct proc *, void *, register_t *));
473 int linux_sys_lstat __P((struct proc *, void *, register_t *));
474 int linux_sys_mmap __P((struct proc *, void *, register_t *));
475 int sys_munmap __P((struct proc *, void *, register_t *));
476 int sys_mprotect __P((struct proc *, void *, register_t *));
477 int sys_getgroups __P((struct proc *, void *, register_t *));
478 int sys_setgroups __P((struct proc *, void *, register_t *));
479 int compat_43_sys_gethostname __P((struct proc *, void *, register_t *));
480 int compat_43_sys_sethostname __P((struct proc *, void *, register_t *));
481 int sys_dup2 __P((struct proc *, void *, register_t *));
482 int linux_sys_fstat __P((struct proc *, void *, register_t *));
483 int linux_sys_fcntl __P((struct proc *, void *, register_t *));
484 int sys_poll __P((struct proc *, void *, register_t *));
485 int sys_fsync __P((struct proc *, void *, register_t *));
486 int sys_setpriority __P((struct proc *, void *, register_t *));
487 int linux_sys_socket __P((struct proc *, void *, register_t *));
488 int linux_sys_connect __P((struct proc *, void *, register_t *));
489 int compat_43_sys_accept __P((struct proc *, void *, register_t *));
490 int sys_getpriority __P((struct proc *, void *, register_t *));
491 int compat_43_sys_send __P((struct proc *, void *, register_t *));
492 int compat_43_sys_recv __P((struct proc *, void *, register_t *));
493 int linux_sys_sigreturn __P((struct proc *, void *, register_t *));
494 int sys_bind __P((struct proc *, void *, register_t *));
495 int linux_sys_setsockopt __P((struct proc *, void *, register_t *));
496 int sys_listen __P((struct proc *, void *, register_t *));
497 int linux_sys_sigsuspend __P((struct proc *, void *, register_t *));
498 int sys_recvmsg __P((struct proc *, void *, register_t *));
499 int sys_sendmsg __P((struct proc *, void *, register_t *));
500 int linux_sys_getsockopt __P((struct proc *, void *, register_t *));
501 int sys_readv __P((struct proc *, void *, register_t *));
502 int sys_writev __P((struct proc *, void *, register_t *));
503 int linux_sys_fchown __P((struct proc *, void *, register_t *));
504 int sys_fchmod __P((struct proc *, void *, register_t *));
505 int linux_sys_recvfrom __P((struct proc *, void *, register_t *));
506 int linux_sys_setreuid __P((struct proc *, void *, register_t *));
507 int linux_sys_setregid __P((struct proc *, void *, register_t *));
508 int linux_sys_rename __P((struct proc *, void *, register_t *));
509 int linux_sys_truncate __P((struct proc *, void *, register_t *));
510 int compat_43_sys_ftruncate __P((struct proc *, void *, register_t *));
511 int sys_flock __P((struct proc *, void *, register_t *));
512 int sys_setgid __P((struct proc *, void *, register_t *));
513 int linux_sys_sendto __P((struct proc *, void *, register_t *));
514 int sys_shutdown __P((struct proc *, void *, register_t *));
515 int linux_sys_socketpair __P((struct proc *, void *, register_t *));
516 int linux_sys_mkdir __P((struct proc *, void *, register_t *));
517 int linux_sys_rmdir __P((struct proc *, void *, register_t *));
518 int compat_43_sys_getpeername __P((struct proc *, void *, register_t *));
519 int compat_43_sys_getrlimit __P((struct proc *, void *, register_t *));
520 int compat_43_sys_setrlimit __P((struct proc *, void *, register_t *));
521 int sys_setsid __P((struct proc *, void *, register_t *));
522 int compat_43_sys_getsockname __P((struct proc *, void *, register_t *));
523 int linux_sys_sigaction __P((struct proc *, void *, register_t *));
524 #ifdef SYSVMSG
525 int linux_sys_msgctl __P((struct proc *, void *, register_t *));
526 int sys_msgget __P((struct proc *, void *, register_t *));
527 int sys_msgrcv __P((struct proc *, void *, register_t *));
528 int sys_msgsnd __P((struct proc *, void *, register_t *));
529 #else
530 #endif
531 #ifdef SYSVSEM
532 int linux_sys_semctl __P((struct proc *, void *, register_t *));
533 int sys_semget __P((struct proc *, void *, register_t *));
534 int sys_semop __P((struct proc *, void *, register_t *));
535 #else
536 #endif
537 int linux_sys_olduname __P((struct proc *, void *, register_t *));
538 int linux_sys_lchown __P((struct proc *, void *, register_t *));
539 #ifdef SYSVSHM
540 int linux_sys_shmat __P((struct proc *, void *, register_t *));
541 int linux_sys_shmctl __P((struct proc *, void *, register_t *));
542 int sys_shmdt __P((struct proc *, void *, register_t *));
543 int sys_shmget __P((struct proc *, void *, register_t *));
544 #else
545 #endif
546 int linux_sys_msync __P((struct proc *, void *, register_t *));
547 int linux_sys_getpgid __P((struct proc *, void *, register_t *));
548 int sys_getsid __P((struct proc *, void *, register_t *));
549 int linux_sys_fdatasync __P((struct proc *, void *, register_t *));
550 int linux_sys_getdents __P((struct proc *, void *, register_t *));
551 int linux_sys_reboot __P((struct proc *, void *, register_t *));
552 int linux_sys_clone __P((struct proc *, void *, register_t *));
553 #ifdef EXEC_AOUT
554 int linux_sys_uselib __P((struct proc *, void *, register_t *));
555 #else
556 #endif
557 int sys_mlock __P((struct proc *, void *, register_t *));
558 int sys_munlock __P((struct proc *, void *, register_t *));
559 int linux_sys___sysctl __P((struct proc *, void *, register_t *));
560 int compat_12_sys_swapon __P((struct proc *, void *, register_t *));
561 int linux_sys_times __P((struct proc *, void *, register_t *));
562 int linux_sys_personality __P((struct proc *, void *, register_t *));
563 int linux_sys_setfsuid __P((struct proc *, void *, register_t *));
564 int linux_sys_statfs __P((struct proc *, void *, register_t *));
565 int linux_sys_fstatfs __P((struct proc *, void *, register_t *));
566 int linux_sys_sched_setparam __P((struct proc *, void *, register_t *));
567 int linux_sys_sched_getparam __P((struct proc *, void *, register_t *));
568 int linux_sys_sched_setscheduler __P((struct proc *, void *, register_t *));
569 int linux_sys_sched_getscheduler __P((struct proc *, void *, register_t *));
570 int linux_sys_sched_yield __P((struct proc *, void *, register_t *));
571 int linux_sys_sched_get_priority_max __P((struct proc *, void *, register_t *));
572 int linux_sys_sched_get_priority_min __P((struct proc *, void *, register_t *));
573 int linux_sys_uname __P((struct proc *, void *, register_t *));
574 int sys_nanosleep __P((struct proc *, void *, register_t *));
575 int linux_sys_mremap __P((struct proc *, void *, register_t *));
576 int linux_sys_setresuid __P((struct proc *, void *, register_t *));
577 int linux_sys_getresuid __P((struct proc *, void *, register_t *));
578 int linux_sys_pread __P((struct proc *, void *, register_t *));
579 int linux_sys_pwrite __P((struct proc *, void *, register_t *));
580 int linux_sys_rt_sigreturn __P((struct proc *, void *, register_t *));
581 int linux_sys_rt_sigaction __P((struct proc *, void *, register_t *));
582 int linux_sys_rt_sigprocmask __P((struct proc *, void *, register_t *));
583 int linux_sys_rt_sigpending __P((struct proc *, void *, register_t *));
584 int linux_sys_rt_queueinfo __P((struct proc *, void *, register_t *));
585 int linux_sys_rt_sigsuspend __P((struct proc *, void *, register_t *));
586 int linux_sys_select __P((struct proc *, void *, register_t *));
587 int sys_gettimeofday __P((struct proc *, void *, register_t *));
588 int sys_settimeofday __P((struct proc *, void *, register_t *));
589 int sys_getitimer __P((struct proc *, void *, register_t *));
590 int sys_setitimer __P((struct proc *, void *, register_t *));
591 int sys_utimes __P((struct proc *, void *, register_t *));
592 int sys_getrusage __P((struct proc *, void *, register_t *));
593 int linux_sys_wait4 __P((struct proc *, void *, register_t *));
594 int sys___getcwd __P((struct proc *, void *, register_t *));
595 #endif /* _LINUX_SYS__SYSCALLARGS_H_ */
596