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