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