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