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