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