freebsd_syscallargs.h revision 1.38 1 /* $NetBSD: freebsd_syscallargs.h,v 1.38 2000/08/18 19:26:56 cgd 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.30 2000/08/08 02:14:48 itojun Exp
8 */
9
10 #ifndef _FREEBSD_SYS__SYSCALLARGS_H_
11 #define _FREEBSD_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 freebsd_sys_open_args {
30 syscallarg(const char *) path;
31 syscallarg(int) flags;
32 syscallarg(int) mode;
33 };
34
35 struct compat_43_freebsd_sys_creat_args {
36 syscallarg(const char *) path;
37 syscallarg(int) mode;
38 };
39
40 struct freebsd_sys_link_args {
41 syscallarg(const char *) path;
42 syscallarg(const char *) link;
43 };
44
45 struct freebsd_sys_unlink_args {
46 syscallarg(const char *) path;
47 };
48
49 struct freebsd_sys_chdir_args {
50 syscallarg(const char *) path;
51 };
52
53 struct freebsd_sys_mknod_args {
54 syscallarg(const char *) path;
55 syscallarg(int) mode;
56 syscallarg(int) dev;
57 };
58
59 struct freebsd_sys_chmod_args {
60 syscallarg(const char *) path;
61 syscallarg(int) mode;
62 };
63
64 struct freebsd_sys_chown_args {
65 syscallarg(const char *) path;
66 syscallarg(int) uid;
67 syscallarg(int) gid;
68 };
69
70 struct freebsd_sys_mount_args {
71 syscallarg(int) type;
72 syscallarg(const char *) path;
73 syscallarg(int) flags;
74 syscallarg(caddr_t) data;
75 };
76
77 struct freebsd_sys_unmount_args {
78 syscallarg(const char *) path;
79 syscallarg(int) flags;
80 };
81
82 struct freebsd_sys_ptrace_args {
83 syscallarg(int) req;
84 syscallarg(pid_t) pid;
85 syscallarg(caddr_t) addr;
86 syscallarg(int) data;
87 };
88
89 struct freebsd_sys_access_args {
90 syscallarg(const char *) path;
91 syscallarg(int) flags;
92 };
93
94 struct freebsd_sys_chflags_args {
95 syscallarg(const char *) path;
96 syscallarg(int) flags;
97 };
98
99 struct compat_43_freebsd_sys_stat_args {
100 syscallarg(const char *) path;
101 syscallarg(struct stat43 *) ub;
102 };
103
104 struct compat_43_freebsd_sys_lstat_args {
105 syscallarg(const char *) path;
106 syscallarg(struct stat43 *) ub;
107 };
108
109 struct freebsd_sys_ioctl_args {
110 syscallarg(int) fd;
111 syscallarg(u_long) com;
112 syscallarg(caddr_t) data;
113 };
114
115 struct freebsd_sys_revoke_args {
116 syscallarg(const char *) path;
117 };
118
119 struct freebsd_sys_symlink_args {
120 syscallarg(const char *) path;
121 syscallarg(const char *) link;
122 };
123
124 struct freebsd_sys_readlink_args {
125 syscallarg(const char *) path;
126 syscallarg(char *) buf;
127 syscallarg(int) count;
128 };
129
130 struct freebsd_sys_execve_args {
131 syscallarg(const char *) path;
132 syscallarg(char **) argp;
133 syscallarg(char **) envp;
134 };
135
136 struct freebsd_sys_chroot_args {
137 syscallarg(const char *) path;
138 };
139
140 struct freebsd_sys_msync_args {
141 syscallarg(caddr_t) addr;
142 syscallarg(size_t) len;
143 syscallarg(int) flags;
144 };
145
146 struct freebsd_sys_sigreturn_args {
147 syscallarg(struct freebsd_sigcontext *) scp;
148 };
149
150 struct freebsd_sys_rename_args {
151 syscallarg(const char *) from;
152 syscallarg(const char *) to;
153 };
154
155 struct compat_43_freebsd_sys_truncate_args {
156 syscallarg(const char *) path;
157 syscallarg(long) length;
158 };
159
160 struct freebsd_sys_mkfifo_args {
161 syscallarg(const char *) path;
162 syscallarg(int) mode;
163 };
164
165 struct freebsd_sys_mkdir_args {
166 syscallarg(const char *) path;
167 syscallarg(int) mode;
168 };
169
170 struct freebsd_sys_rmdir_args {
171 syscallarg(const char *) path;
172 };
173
174 struct freebsd_sys_statfs_args {
175 syscallarg(const char *) path;
176 syscallarg(struct statfs *) buf;
177 };
178
179 struct freebsd_sys_getfh_args {
180 syscallarg(const char *) fname;
181 syscallarg(fhandle_t *) fhp;
182 };
183
184 struct freebsd_sys_rtprio_args {
185 syscallarg(int) function;
186 syscallarg(pid_t) pid;
187 syscallarg(struct freebsd_rtprio *) rtp;
188 };
189
190 struct freebsd_sys_semsys_args {
191 syscallarg(int) which;
192 syscallarg(int) a2;
193 syscallarg(int) a3;
194 syscallarg(int) a4;
195 syscallarg(int) a5;
196 };
197
198 struct freebsd_sys_msgsys_args {
199 syscallarg(int) which;
200 syscallarg(int) a2;
201 syscallarg(int) a3;
202 syscallarg(int) a4;
203 syscallarg(int) a5;
204 syscallarg(int) a6;
205 };
206
207 struct freebsd_sys_shmsys_args {
208 syscallarg(int) which;
209 syscallarg(int) a2;
210 syscallarg(int) a3;
211 syscallarg(int) a4;
212 };
213
214 struct freebsd_ntp_adjtime_args {
215 syscallarg(struct freebsd_timex *) tp;
216 };
217
218 struct freebsd_sys_stat_args {
219 syscallarg(const char *) path;
220 syscallarg(struct stat12 *) ub;
221 };
222
223 struct freebsd_sys_lstat_args {
224 syscallarg(const char *) path;
225 syscallarg(struct stat12 *) ub;
226 };
227
228 struct freebsd_sys_pathconf_args {
229 syscallarg(const char *) path;
230 syscallarg(int) name;
231 };
232
233 struct freebsd_sys_truncate_args {
234 syscallarg(const char *) path;
235 syscallarg(int) pad;
236 syscallarg(off_t) length;
237 };
238
239 struct freebsd_sys_undelete_args {
240 syscallarg(char *) path;
241 };
242
243 struct freebsd_sys_lchown_args {
244 syscallarg(const char *) path;
245 syscallarg(int) uid;
246 syscallarg(int) gid;
247 };
248
249 struct freebsd_sys_sigaction4_args {
250 syscallarg(int) signum;
251 syscallarg(const struct freebsd_sigaction4 *) nsa;
252 syscallarg(struct freebsd_sigaction4 *) osa;
253 };
254
255 /*
256 * System call prototypes.
257 */
258
259 int sys_nosys(struct proc *, void *, register_t *);
260 int sys_exit(struct proc *, void *, register_t *);
261 int sys_fork(struct proc *, void *, register_t *);
262 int sys_read(struct proc *, void *, register_t *);
263 int sys_write(struct proc *, void *, register_t *);
264 int freebsd_sys_open(struct proc *, void *, register_t *);
265 int sys_close(struct proc *, void *, register_t *);
266 int sys_wait4(struct proc *, void *, register_t *);
267 int compat_43_freebsd_sys_creat(struct proc *, void *, register_t *);
268 int freebsd_sys_link(struct proc *, void *, register_t *);
269 int freebsd_sys_unlink(struct proc *, void *, register_t *);
270 int freebsd_sys_chdir(struct proc *, void *, register_t *);
271 int sys_fchdir(struct proc *, void *, register_t *);
272 int freebsd_sys_mknod(struct proc *, void *, register_t *);
273 int freebsd_sys_chmod(struct proc *, void *, register_t *);
274 int freebsd_sys_chown(struct proc *, void *, register_t *);
275 int sys_obreak(struct proc *, void *, register_t *);
276 int sys_getfsstat(struct proc *, void *, register_t *);
277 int compat_43_sys_lseek(struct proc *, void *, register_t *);
278 int sys_getpid(struct proc *, void *, register_t *);
279 int freebsd_sys_mount(struct proc *, void *, register_t *);
280 int freebsd_sys_unmount(struct proc *, void *, register_t *);
281 int sys_setuid(struct proc *, void *, register_t *);
282 int sys_getuid(struct proc *, void *, register_t *);
283 int sys_geteuid(struct proc *, void *, register_t *);
284 int freebsd_sys_ptrace(struct proc *, void *, register_t *);
285 int sys_recvmsg(struct proc *, void *, register_t *);
286 int sys_sendmsg(struct proc *, void *, register_t *);
287 int sys_recvfrom(struct proc *, void *, register_t *);
288 int sys_accept(struct proc *, void *, register_t *);
289 int sys_getpeername(struct proc *, void *, register_t *);
290 int sys_getsockname(struct proc *, void *, register_t *);
291 int freebsd_sys_access(struct proc *, void *, register_t *);
292 int freebsd_sys_chflags(struct proc *, void *, register_t *);
293 int sys_fchflags(struct proc *, void *, register_t *);
294 int sys_sync(struct proc *, void *, register_t *);
295 int sys_kill(struct proc *, void *, register_t *);
296 int compat_43_freebsd_sys_stat(struct proc *, void *, register_t *);
297 int sys_getppid(struct proc *, void *, register_t *);
298 int compat_43_freebsd_sys_lstat(struct proc *, void *, register_t *);
299 int sys_dup(struct proc *, void *, register_t *);
300 int sys_pipe(struct proc *, void *, register_t *);
301 int sys_getegid(struct proc *, void *, register_t *);
302 int sys_profil(struct proc *, void *, register_t *);
303 #ifdef KTRACE
304 int sys_ktrace(struct proc *, void *, register_t *);
305 #else
306 #endif
307 int compat_13_sys_sigaction(struct proc *, void *, register_t *);
308 int sys_getgid(struct proc *, void *, register_t *);
309 int compat_13_sys_sigprocmask(struct proc *, void *, register_t *);
310 int sys___getlogin(struct proc *, void *, register_t *);
311 int sys_setlogin(struct proc *, void *, register_t *);
312 int sys_acct(struct proc *, void *, register_t *);
313 int compat_13_sys_sigpending(struct proc *, void *, register_t *);
314 int compat_13_sys_sigaltstack(struct proc *, void *, register_t *);
315 int freebsd_sys_ioctl(struct proc *, void *, register_t *);
316 int sys_reboot(struct proc *, void *, register_t *);
317 int freebsd_sys_revoke(struct proc *, void *, register_t *);
318 int freebsd_sys_symlink(struct proc *, void *, register_t *);
319 int freebsd_sys_readlink(struct proc *, void *, register_t *);
320 int freebsd_sys_execve(struct proc *, void *, register_t *);
321 int sys_umask(struct proc *, void *, register_t *);
322 int freebsd_sys_chroot(struct proc *, void *, register_t *);
323 int compat_43_sys_fstat(struct proc *, void *, register_t *);
324 int compat_43_sys_getkerninfo(struct proc *, void *, register_t *);
325 int compat_43_sys_getpagesize(struct proc *, void *, register_t *);
326 int freebsd_sys_msync(struct proc *, void *, register_t *);
327 int sys_vfork(struct proc *, void *, register_t *);
328 int sys_sbrk(struct proc *, void *, register_t *);
329 int sys_sstk(struct proc *, void *, register_t *);
330 int compat_43_sys_mmap(struct proc *, void *, register_t *);
331 int sys_ovadvise(struct proc *, void *, register_t *);
332 int sys_munmap(struct proc *, void *, register_t *);
333 int sys_mprotect(struct proc *, void *, register_t *);
334 int sys_madvise(struct proc *, void *, register_t *);
335 int sys_mincore(struct proc *, void *, register_t *);
336 int sys_getgroups(struct proc *, void *, register_t *);
337 int sys_setgroups(struct proc *, void *, register_t *);
338 int sys_getpgrp(struct proc *, void *, register_t *);
339 int sys_setpgid(struct proc *, void *, register_t *);
340 int sys_setitimer(struct proc *, void *, register_t *);
341 int compat_43_sys_wait(struct proc *, void *, register_t *);
342 int compat_12_sys_swapon(struct proc *, void *, register_t *);
343 int sys_getitimer(struct proc *, void *, register_t *);
344 int compat_43_sys_gethostname(struct proc *, void *, register_t *);
345 int compat_43_sys_sethostname(struct proc *, void *, register_t *);
346 int compat_43_sys_getdtablesize(struct proc *, void *, register_t *);
347 int sys_dup2(struct proc *, void *, register_t *);
348 int sys_fcntl(struct proc *, void *, register_t *);
349 int sys_select(struct proc *, void *, register_t *);
350 int sys_fsync(struct proc *, void *, register_t *);
351 int sys_setpriority(struct proc *, void *, register_t *);
352 int sys_socket(struct proc *, void *, register_t *);
353 int sys_connect(struct proc *, void *, register_t *);
354 int compat_43_sys_accept(struct proc *, void *, register_t *);
355 int sys_getpriority(struct proc *, void *, register_t *);
356 int compat_43_sys_send(struct proc *, void *, register_t *);
357 int compat_43_sys_recv(struct proc *, void *, register_t *);
358 int freebsd_sys_sigreturn(struct proc *, void *, register_t *);
359 int sys_bind(struct proc *, void *, register_t *);
360 int sys_setsockopt(struct proc *, void *, register_t *);
361 int sys_listen(struct proc *, void *, register_t *);
362 int compat_43_sys_sigvec(struct proc *, void *, register_t *);
363 int compat_43_sys_sigblock(struct proc *, void *, register_t *);
364 int compat_43_sys_sigsetmask(struct proc *, void *, register_t *);
365 int compat_13_sys_sigsuspend(struct proc *, void *, register_t *);
366 int compat_43_sys_sigstack(struct proc *, void *, register_t *);
367 int compat_43_sys_recvmsg(struct proc *, void *, register_t *);
368 int compat_43_sys_sendmsg(struct proc *, void *, register_t *);
369 #ifdef TRACE
370 int sys_vtrace(struct proc *, void *, register_t *);
371 #else
372 #endif
373 int sys_gettimeofday(struct proc *, void *, register_t *);
374 int sys_getrusage(struct proc *, void *, register_t *);
375 int sys_getsockopt(struct proc *, void *, register_t *);
376 int sys_readv(struct proc *, void *, register_t *);
377 int sys_writev(struct proc *, void *, register_t *);
378 int sys_settimeofday(struct proc *, void *, register_t *);
379 int sys_fchown(struct proc *, void *, register_t *);
380 int sys_fchmod(struct proc *, void *, register_t *);
381 int compat_43_sys_recvfrom(struct proc *, void *, register_t *);
382 int sys_setreuid(struct proc *, void *, register_t *);
383 int sys_setregid(struct proc *, void *, register_t *);
384 int freebsd_sys_rename(struct proc *, void *, register_t *);
385 int compat_43_freebsd_sys_truncate(struct proc *, void *, register_t *);
386 int compat_43_sys_ftruncate(struct proc *, void *, register_t *);
387 int sys_flock(struct proc *, void *, register_t *);
388 int freebsd_sys_mkfifo(struct proc *, void *, register_t *);
389 int sys_sendto(struct proc *, void *, register_t *);
390 int sys_shutdown(struct proc *, void *, register_t *);
391 int sys_socketpair(struct proc *, void *, register_t *);
392 int freebsd_sys_mkdir(struct proc *, void *, register_t *);
393 int freebsd_sys_rmdir(struct proc *, void *, register_t *);
394 int sys_utimes(struct proc *, void *, register_t *);
395 int sys_adjtime(struct proc *, void *, register_t *);
396 int compat_43_sys_getpeername(struct proc *, void *, register_t *);
397 int compat_43_sys_gethostid(struct proc *, void *, register_t *);
398 int compat_43_sys_sethostid(struct proc *, void *, register_t *);
399 int compat_43_sys_getrlimit(struct proc *, void *, register_t *);
400 int compat_43_sys_setrlimit(struct proc *, void *, register_t *);
401 int compat_43_sys_killpg(struct proc *, void *, register_t *);
402 int sys_setsid(struct proc *, void *, register_t *);
403 int sys_quotactl(struct proc *, void *, register_t *);
404 int compat_43_sys_quota(struct proc *, void *, register_t *);
405 int compat_43_sys_getsockname(struct proc *, void *, register_t *);
406 #if defined(NFS) || defined(NFSSERVER)
407 int sys_nfssvc(struct proc *, void *, register_t *);
408 #else
409 #endif
410 int compat_43_sys_getdirentries(struct proc *, void *, register_t *);
411 int freebsd_sys_statfs(struct proc *, void *, register_t *);
412 int sys_fstatfs(struct proc *, void *, register_t *);
413 #ifdef NFS
414 int freebsd_sys_getfh(struct proc *, void *, register_t *);
415 #else
416 #endif
417 int compat_09_sys_getdomainname(struct proc *, void *, register_t *);
418 int compat_09_sys_setdomainname(struct proc *, void *, register_t *);
419 int compat_09_sys_uname(struct proc *, void *, register_t *);
420 int sys_sysarch(struct proc *, void *, register_t *);
421 int freebsd_sys_rtprio(struct proc *, void *, register_t *);
422 #if defined(SYSVSEM) && !defined(alpha)
423 int freebsd_sys_semsys(struct proc *, void *, register_t *);
424 #else
425 #endif
426 #if defined(SYSVMSG) && !defined(alpha)
427 int freebsd_sys_msgsys(struct proc *, void *, register_t *);
428 #else
429 #endif
430 #if defined(SYSVSHM) && !defined(alpha)
431 int freebsd_sys_shmsys(struct proc *, void *, register_t *);
432 #else
433 #endif
434 int sys_pread(struct proc *, void *, register_t *);
435 int sys_pwrite(struct proc *, void *, register_t *);
436 #ifdef NTP
437 int freebsd_ntp_adjtime(struct proc *, void *, register_t *);
438 #else
439 #endif
440 int sys_setgid(struct proc *, void *, register_t *);
441 int sys_setegid(struct proc *, void *, register_t *);
442 int sys_seteuid(struct proc *, void *, register_t *);
443 #ifdef LFS
444 int sys_lfs_bmapv(struct proc *, void *, register_t *);
445 int sys_lfs_markv(struct proc *, void *, register_t *);
446 int sys_lfs_segclean(struct proc *, void *, register_t *);
447 int sys_lfs_segwait(struct proc *, void *, register_t *);
448 #else
449 #endif
450 int freebsd_sys_stat(struct proc *, void *, register_t *);
451 int compat_12_sys_fstat(struct proc *, void *, register_t *);
452 int freebsd_sys_lstat(struct proc *, void *, register_t *);
453 int freebsd_sys_pathconf(struct proc *, void *, register_t *);
454 int sys_fpathconf(struct proc *, void *, register_t *);
455 int sys_getrlimit(struct proc *, void *, register_t *);
456 int sys_setrlimit(struct proc *, void *, register_t *);
457 int compat_12_sys_getdirentries(struct proc *, void *, register_t *);
458 int sys_mmap(struct proc *, void *, register_t *);
459 int sys_nosys(struct proc *, void *, register_t *);
460 int sys_lseek(struct proc *, void *, register_t *);
461 int freebsd_sys_truncate(struct proc *, void *, register_t *);
462 int sys_ftruncate(struct proc *, void *, register_t *);
463 int sys___sysctl(struct proc *, void *, register_t *);
464 int sys_mlock(struct proc *, void *, register_t *);
465 int sys_munlock(struct proc *, void *, register_t *);
466 #ifdef FREEBSD_BASED_ON_44LITE_R2
467 int freebsd_sys_undelete(struct proc *, void *, register_t *);
468 #else
469 #endif
470 int sys_futimes(struct proc *, void *, register_t *);
471 int sys_getpgid(struct proc *, void *, register_t *);
472 #if 0
473 int sys_reboot(struct proc *, void *, register_t *);
474 #else
475 #endif
476 int sys_poll(struct proc *, void *, register_t *);
477 #ifdef SYSVSEM
478 int compat_14_sys___semctl(struct proc *, void *, register_t *);
479 int sys_semget(struct proc *, void *, register_t *);
480 int sys_semop(struct proc *, void *, register_t *);
481 int sys_semconfig(struct proc *, void *, register_t *);
482 #else
483 #endif
484 #ifdef SYSVMSG
485 int compat_14_sys_msgctl(struct proc *, void *, register_t *);
486 int sys_msgget(struct proc *, void *, register_t *);
487 int sys_msgsnd(struct proc *, void *, register_t *);
488 int sys_msgrcv(struct proc *, void *, register_t *);
489 #else
490 #endif
491 #ifdef SYSVSHM
492 int sys_shmat(struct proc *, void *, register_t *);
493 int compat_14_sys_shmctl(struct proc *, void *, register_t *);
494 int sys_shmdt(struct proc *, void *, register_t *);
495 int sys_shmget(struct proc *, void *, register_t *);
496 #else
497 #endif
498 int sys_clock_gettime(struct proc *, void *, register_t *);
499 int sys_clock_settime(struct proc *, void *, register_t *);
500 int sys_clock_getres(struct proc *, void *, register_t *);
501 int sys_nanosleep(struct proc *, void *, register_t *);
502 int sys_issetugid(struct proc *, void *, register_t *);
503 int freebsd_sys_lchown(struct proc *, void *, register_t *);
504 int sys_getdents(struct proc *, void *, register_t *);
505 int sys_lchmod(struct proc *, void *, register_t *);
506 int sys_lchown(struct proc *, void *, register_t *);
507 int sys_lutimes(struct proc *, void *, register_t *);
508 int sys___msync13(struct proc *, void *, register_t *);
509 int sys___stat13(struct proc *, void *, register_t *);
510 int sys___fstat13(struct proc *, void *, register_t *);
511 int sys___lstat13(struct proc *, void *, register_t *);
512 int sys_getsid(struct proc *, void *, register_t *);
513 int sys_mlockall(struct proc *, void *, register_t *);
514 int sys_munlockall(struct proc *, void *, register_t *);
515 int sys___getcwd(struct proc *, void *, register_t *);
516 int sys___sigprocmask14(struct proc *, void *, register_t *);
517 int sys___sigsuspend14(struct proc *, void *, register_t *);
518 int freebsd_sys_sigaction4(struct proc *, void *, register_t *);
519 int sys___sigpending14(struct proc *, void *, register_t *);
520 #endif /* _FREEBSD_SYS__SYSCALLARGS_H_ */
521