freebsd_syscallargs.h revision 1.56 1 1.39 cgd /* $NetBSD: freebsd_syscallargs.h,v 1.56 2004/04/21 01:05:36 christos Exp $ */
2 1.16 thorpej
3 1.1 mycroft /*
4 1.1 mycroft * System call argument lists.
5 1.1 mycroft *
6 1.1 mycroft * DO NOT EDIT-- this file is automatically generated.
7 1.56 christos * created from NetBSD: syscalls.master,v 1.43 2004/01/29 02:00:02 tsarna Exp
8 1.1 mycroft */
9 1.26 tron
10 1.28 christos #ifndef _FREEBSD_SYS__SYSCALLARGS_H_
11 1.45 mrg #define _FREEBSD_SYS__SYSCALLARGS_H_
12 1.28 christos
13 1.26 tron #ifdef syscallarg
14 1.26 tron #undef syscallarg
15 1.26 tron #endif
16 1.1 mycroft
17 1.31 thorpej #define syscallarg(x) \
18 1.31 thorpej union { \
19 1.31 thorpej register_t pad; \
20 1.31 thorpej struct { x datum; } le; \
21 1.47 lukem struct { /* LINTED zero array dimension */ \
22 1.47 lukem int8_t pad[ /* CONSTCOND */ \
23 1.47 lukem (sizeof (register_t) < sizeof (x)) \
24 1.31 thorpej ? 0 \
25 1.31 thorpej : sizeof (register_t) - sizeof (x)]; \
26 1.31 thorpej x datum; \
27 1.31 thorpej } be; \
28 1.31 thorpej }
29 1.1 mycroft
30 1.1 mycroft struct freebsd_sys_open_args {
31 1.28 christos syscallarg(const char *) path;
32 1.1 mycroft syscallarg(int) flags;
33 1.1 mycroft syscallarg(int) mode;
34 1.1 mycroft };
35 1.1 mycroft
36 1.1 mycroft struct compat_43_freebsd_sys_creat_args {
37 1.28 christos syscallarg(const char *) path;
38 1.1 mycroft syscallarg(int) mode;
39 1.1 mycroft };
40 1.1 mycroft
41 1.1 mycroft struct freebsd_sys_link_args {
42 1.28 christos syscallarg(const char *) path;
43 1.28 christos syscallarg(const char *) link;
44 1.1 mycroft };
45 1.1 mycroft
46 1.1 mycroft struct freebsd_sys_unlink_args {
47 1.28 christos syscallarg(const char *) path;
48 1.1 mycroft };
49 1.1 mycroft
50 1.1 mycroft struct freebsd_sys_chdir_args {
51 1.28 christos syscallarg(const char *) path;
52 1.1 mycroft };
53 1.1 mycroft
54 1.1 mycroft struct freebsd_sys_mknod_args {
55 1.28 christos syscallarg(const char *) path;
56 1.1 mycroft syscallarg(int) mode;
57 1.1 mycroft syscallarg(int) dev;
58 1.1 mycroft };
59 1.1 mycroft
60 1.1 mycroft struct freebsd_sys_chmod_args {
61 1.28 christos syscallarg(const char *) path;
62 1.1 mycroft syscallarg(int) mode;
63 1.1 mycroft };
64 1.1 mycroft
65 1.1 mycroft struct freebsd_sys_chown_args {
66 1.28 christos syscallarg(const char *) path;
67 1.1 mycroft syscallarg(int) uid;
68 1.1 mycroft syscallarg(int) gid;
69 1.1 mycroft };
70 1.56 christos #ifdef COMPAT_20
71 1.56 christos #else
72 1.56 christos #endif
73 1.1 mycroft
74 1.1 mycroft struct freebsd_sys_mount_args {
75 1.1 mycroft syscallarg(int) type;
76 1.28 christos syscallarg(const char *) path;
77 1.1 mycroft syscallarg(int) flags;
78 1.1 mycroft syscallarg(caddr_t) data;
79 1.1 mycroft };
80 1.1 mycroft
81 1.1 mycroft struct freebsd_sys_unmount_args {
82 1.28 christos syscallarg(const char *) path;
83 1.1 mycroft syscallarg(int) flags;
84 1.1 mycroft };
85 1.1 mycroft
86 1.1 mycroft struct freebsd_sys_ptrace_args {
87 1.1 mycroft syscallarg(int) req;
88 1.1 mycroft syscallarg(pid_t) pid;
89 1.1 mycroft syscallarg(caddr_t) addr;
90 1.1 mycroft syscallarg(int) data;
91 1.1 mycroft };
92 1.1 mycroft
93 1.1 mycroft struct freebsd_sys_access_args {
94 1.28 christos syscallarg(const char *) path;
95 1.1 mycroft syscallarg(int) flags;
96 1.1 mycroft };
97 1.1 mycroft
98 1.1 mycroft struct freebsd_sys_chflags_args {
99 1.28 christos syscallarg(const char *) path;
100 1.1 mycroft syscallarg(int) flags;
101 1.1 mycroft };
102 1.1 mycroft
103 1.1 mycroft struct compat_43_freebsd_sys_stat_args {
104 1.28 christos syscallarg(const char *) path;
105 1.11 christos syscallarg(struct stat43 *) ub;
106 1.1 mycroft };
107 1.1 mycroft
108 1.1 mycroft struct compat_43_freebsd_sys_lstat_args {
109 1.28 christos syscallarg(const char *) path;
110 1.11 christos syscallarg(struct stat43 *) ub;
111 1.1 mycroft };
112 1.53 pooka #ifdef KTRACE
113 1.53 pooka #else
114 1.53 pooka #endif
115 1.1 mycroft
116 1.1 mycroft struct freebsd_sys_ioctl_args {
117 1.1 mycroft syscallarg(int) fd;
118 1.1 mycroft syscallarg(u_long) com;
119 1.1 mycroft syscallarg(caddr_t) data;
120 1.1 mycroft };
121 1.1 mycroft
122 1.1 mycroft struct freebsd_sys_revoke_args {
123 1.28 christos syscallarg(const char *) path;
124 1.1 mycroft };
125 1.1 mycroft
126 1.1 mycroft struct freebsd_sys_symlink_args {
127 1.28 christos syscallarg(const char *) path;
128 1.28 christos syscallarg(const char *) link;
129 1.1 mycroft };
130 1.1 mycroft
131 1.1 mycroft struct freebsd_sys_readlink_args {
132 1.28 christos syscallarg(const char *) path;
133 1.1 mycroft syscallarg(char *) buf;
134 1.1 mycroft syscallarg(int) count;
135 1.1 mycroft };
136 1.1 mycroft
137 1.1 mycroft struct freebsd_sys_execve_args {
138 1.28 christos syscallarg(const char *) path;
139 1.1 mycroft syscallarg(char **) argp;
140 1.1 mycroft syscallarg(char **) envp;
141 1.1 mycroft };
142 1.1 mycroft
143 1.1 mycroft struct freebsd_sys_chroot_args {
144 1.28 christos syscallarg(const char *) path;
145 1.1 mycroft };
146 1.1 mycroft
147 1.1 mycroft struct freebsd_sys_msync_args {
148 1.1 mycroft syscallarg(caddr_t) addr;
149 1.1 mycroft syscallarg(size_t) len;
150 1.1 mycroft syscallarg(int) flags;
151 1.1 mycroft };
152 1.1 mycroft
153 1.1 mycroft struct freebsd_sys_sigreturn_args {
154 1.1 mycroft syscallarg(struct freebsd_sigcontext *) scp;
155 1.1 mycroft };
156 1.53 pooka #ifdef TRACE
157 1.53 pooka #else
158 1.53 pooka #endif
159 1.1 mycroft
160 1.1 mycroft struct freebsd_sys_rename_args {
161 1.28 christos syscallarg(const char *) from;
162 1.28 christos syscallarg(const char *) to;
163 1.1 mycroft };
164 1.1 mycroft
165 1.1 mycroft struct compat_43_freebsd_sys_truncate_args {
166 1.28 christos syscallarg(const char *) path;
167 1.1 mycroft syscallarg(long) length;
168 1.1 mycroft };
169 1.1 mycroft
170 1.1 mycroft struct freebsd_sys_mkfifo_args {
171 1.28 christos syscallarg(const char *) path;
172 1.1 mycroft syscallarg(int) mode;
173 1.1 mycroft };
174 1.1 mycroft
175 1.1 mycroft struct freebsd_sys_mkdir_args {
176 1.28 christos syscallarg(const char *) path;
177 1.1 mycroft syscallarg(int) mode;
178 1.1 mycroft };
179 1.1 mycroft
180 1.1 mycroft struct freebsd_sys_rmdir_args {
181 1.28 christos syscallarg(const char *) path;
182 1.1 mycroft };
183 1.53 pooka #if defined(NFS) || defined(NFSSERVER)
184 1.53 pooka #else
185 1.53 pooka #endif
186 1.1 mycroft
187 1.1 mycroft struct freebsd_sys_statfs_args {
188 1.28 christos syscallarg(const char *) path;
189 1.56 christos syscallarg(struct statfs12 *) buf;
190 1.1 mycroft };
191 1.56 christos #ifdef COMPAT_20
192 1.56 christos #else
193 1.56 christos #endif
194 1.53 pooka #ifdef NFS
195 1.1 mycroft
196 1.1 mycroft struct freebsd_sys_getfh_args {
197 1.28 christos syscallarg(const char *) fname;
198 1.1 mycroft syscallarg(fhandle_t *) fhp;
199 1.1 mycroft };
200 1.53 pooka #else
201 1.53 pooka #endif
202 1.1 mycroft
203 1.1 mycroft struct freebsd_sys_rtprio_args {
204 1.1 mycroft syscallarg(int) function;
205 1.1 mycroft syscallarg(pid_t) pid;
206 1.1 mycroft syscallarg(struct freebsd_rtprio *) rtp;
207 1.1 mycroft };
208 1.53 pooka #if defined(SYSVSEM) && !defined(_LP64)
209 1.1 mycroft
210 1.17 mycroft struct freebsd_sys_semsys_args {
211 1.17 mycroft syscallarg(int) which;
212 1.17 mycroft syscallarg(int) a2;
213 1.17 mycroft syscallarg(int) a3;
214 1.17 mycroft syscallarg(int) a4;
215 1.17 mycroft syscallarg(int) a5;
216 1.17 mycroft };
217 1.53 pooka #else
218 1.53 pooka #endif
219 1.53 pooka #if defined(SYSVMSG) && !defined(_LP64)
220 1.17 mycroft
221 1.17 mycroft struct freebsd_sys_msgsys_args {
222 1.17 mycroft syscallarg(int) which;
223 1.17 mycroft syscallarg(int) a2;
224 1.17 mycroft syscallarg(int) a3;
225 1.17 mycroft syscallarg(int) a4;
226 1.17 mycroft syscallarg(int) a5;
227 1.17 mycroft syscallarg(int) a6;
228 1.17 mycroft };
229 1.53 pooka #else
230 1.53 pooka #endif
231 1.53 pooka #if defined(SYSVSHM) && !defined(_LP64)
232 1.17 mycroft
233 1.17 mycroft struct freebsd_sys_shmsys_args {
234 1.17 mycroft syscallarg(int) which;
235 1.17 mycroft syscallarg(int) a2;
236 1.17 mycroft syscallarg(int) a3;
237 1.17 mycroft syscallarg(int) a4;
238 1.17 mycroft };
239 1.53 pooka #else
240 1.53 pooka #endif
241 1.53 pooka #ifdef NTP
242 1.17 mycroft
243 1.1 mycroft struct freebsd_ntp_adjtime_args {
244 1.1 mycroft syscallarg(struct freebsd_timex *) tp;
245 1.1 mycroft };
246 1.53 pooka #else
247 1.53 pooka #endif
248 1.53 pooka #ifdef LFS
249 1.53 pooka #else
250 1.53 pooka #endif
251 1.1 mycroft
252 1.1 mycroft struct freebsd_sys_stat_args {
253 1.28 christos syscallarg(const char *) path;
254 1.12 christos syscallarg(struct stat12 *) ub;
255 1.1 mycroft };
256 1.1 mycroft
257 1.1 mycroft struct freebsd_sys_lstat_args {
258 1.28 christos syscallarg(const char *) path;
259 1.12 christos syscallarg(struct stat12 *) ub;
260 1.1 mycroft };
261 1.1 mycroft
262 1.1 mycroft struct freebsd_sys_pathconf_args {
263 1.28 christos syscallarg(const char *) path;
264 1.1 mycroft syscallarg(int) name;
265 1.1 mycroft };
266 1.1 mycroft
267 1.53 pooka struct freebsd_sys_mmap_args {
268 1.53 pooka syscallarg(caddr_t) addr;
269 1.53 pooka syscallarg(size_t) len;
270 1.53 pooka syscallarg(int) prot;
271 1.53 pooka syscallarg(int) flags;
272 1.53 pooka syscallarg(int) fd;
273 1.53 pooka syscallarg(long) pad;
274 1.53 pooka syscallarg(off_t) pos;
275 1.53 pooka };
276 1.53 pooka
277 1.1 mycroft struct freebsd_sys_truncate_args {
278 1.28 christos syscallarg(const char *) path;
279 1.1 mycroft syscallarg(int) pad;
280 1.1 mycroft syscallarg(off_t) length;
281 1.1 mycroft };
282 1.53 pooka #ifdef FREEBSD_BASED_ON_44LITE_R2
283 1.1 mycroft
284 1.1 mycroft struct freebsd_sys_undelete_args {
285 1.1 mycroft syscallarg(char *) path;
286 1.1 mycroft };
287 1.53 pooka #else
288 1.53 pooka #endif
289 1.53 pooka #if 0
290 1.53 pooka #else
291 1.53 pooka #endif
292 1.53 pooka #ifdef SYSVSEM
293 1.53 pooka #else
294 1.53 pooka #endif
295 1.53 pooka #ifdef SYSVMSG
296 1.53 pooka #else
297 1.53 pooka #endif
298 1.53 pooka #ifdef SYSVSHM
299 1.53 pooka #else
300 1.53 pooka #endif
301 1.1 mycroft
302 1.49 pooka struct freebsd_sys_rfork_args {
303 1.49 pooka syscallarg(int) flags;
304 1.49 pooka };
305 1.49 pooka
306 1.9 enami struct freebsd_sys_lchown_args {
307 1.28 christos syscallarg(const char *) path;
308 1.9 enami syscallarg(int) uid;
309 1.9 enami syscallarg(int) gid;
310 1.9 enami };
311 1.56 christos #ifdef COMPAT_20
312 1.56 christos #else
313 1.56 christos #endif
314 1.9 enami
315 1.50 gmcgarry struct freebsd_sys_sched_setparam_args {
316 1.50 gmcgarry syscallarg(pid_t) pid;
317 1.50 gmcgarry syscallarg(const struct freebsd_sched_param *) sp;
318 1.50 gmcgarry };
319 1.50 gmcgarry
320 1.50 gmcgarry struct freebsd_sys_sched_getparam_args {
321 1.50 gmcgarry syscallarg(pid_t) pid;
322 1.50 gmcgarry syscallarg(struct freebsd_sched_param *) sp;
323 1.50 gmcgarry };
324 1.50 gmcgarry
325 1.50 gmcgarry struct freebsd_sys_sched_setscheduler_args {
326 1.50 gmcgarry syscallarg(pid_t) pid;
327 1.50 gmcgarry syscallarg(int) policy;
328 1.50 gmcgarry syscallarg(const struct sched_param *) sp;
329 1.50 gmcgarry };
330 1.50 gmcgarry
331 1.50 gmcgarry struct freebsd_sys_sched_getscheduler_args {
332 1.50 gmcgarry syscallarg(pid_t) pid;
333 1.50 gmcgarry };
334 1.50 gmcgarry
335 1.50 gmcgarry struct freebsd_sys_sched_get_priority_max_args {
336 1.50 gmcgarry syscallarg(int) policy;
337 1.50 gmcgarry };
338 1.50 gmcgarry
339 1.50 gmcgarry struct freebsd_sys_sched_get_priority_min_args {
340 1.50 gmcgarry syscallarg(int) policy;
341 1.50 gmcgarry };
342 1.50 gmcgarry
343 1.43 jdolecek struct freebsd_sys_utrace_args {
344 1.43 jdolecek syscallarg(void *) addr;
345 1.43 jdolecek syscallarg(size_t) len;
346 1.43 jdolecek };
347 1.43 jdolecek
348 1.34 onoe struct freebsd_sys_sigaction4_args {
349 1.34 onoe syscallarg(int) signum;
350 1.34 onoe syscallarg(const struct freebsd_sigaction4 *) nsa;
351 1.34 onoe syscallarg(struct freebsd_sigaction4 *) osa;
352 1.34 onoe };
353 1.54 jdolecek #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
354 1.54 jdolecek #else
355 1.54 jdolecek #endif
356 1.34 onoe
357 1.1 mycroft /*
358 1.1 mycroft * System call prototypes.
359 1.1 mycroft */
360 1.1 mycroft
361 1.51 thorpej int sys_nosys(struct lwp *, void *, register_t *);
362 1.54 jdolecek
363 1.51 thorpej int sys_exit(struct lwp *, void *, register_t *);
364 1.54 jdolecek
365 1.51 thorpej int sys_fork(struct lwp *, void *, register_t *);
366 1.54 jdolecek
367 1.51 thorpej int sys_read(struct lwp *, void *, register_t *);
368 1.54 jdolecek
369 1.51 thorpej int sys_write(struct lwp *, void *, register_t *);
370 1.54 jdolecek
371 1.51 thorpej int freebsd_sys_open(struct lwp *, void *, register_t *);
372 1.54 jdolecek
373 1.51 thorpej int sys_close(struct lwp *, void *, register_t *);
374 1.54 jdolecek
375 1.51 thorpej int sys_wait4(struct lwp *, void *, register_t *);
376 1.54 jdolecek
377 1.51 thorpej int compat_43_freebsd_sys_creat(struct lwp *, void *, register_t *);
378 1.54 jdolecek
379 1.51 thorpej int freebsd_sys_link(struct lwp *, void *, register_t *);
380 1.54 jdolecek
381 1.51 thorpej int freebsd_sys_unlink(struct lwp *, void *, register_t *);
382 1.54 jdolecek
383 1.51 thorpej int freebsd_sys_chdir(struct lwp *, void *, register_t *);
384 1.54 jdolecek
385 1.51 thorpej int sys_fchdir(struct lwp *, void *, register_t *);
386 1.54 jdolecek
387 1.51 thorpej int freebsd_sys_mknod(struct lwp *, void *, register_t *);
388 1.54 jdolecek
389 1.51 thorpej int freebsd_sys_chmod(struct lwp *, void *, register_t *);
390 1.54 jdolecek
391 1.51 thorpej int freebsd_sys_chown(struct lwp *, void *, register_t *);
392 1.54 jdolecek
393 1.51 thorpej int sys_obreak(struct lwp *, void *, register_t *);
394 1.54 jdolecek
395 1.56 christos #ifdef COMPAT_20
396 1.56 christos int compat_20_sys_getfsstat(struct lwp *, void *, register_t *);
397 1.54 jdolecek
398 1.56 christos #else
399 1.56 christos #endif
400 1.51 thorpej int compat_43_sys_lseek(struct lwp *, void *, register_t *);
401 1.54 jdolecek
402 1.51 thorpej int sys_getpid_with_ppid(struct lwp *, void *, register_t *);
403 1.54 jdolecek
404 1.51 thorpej int freebsd_sys_mount(struct lwp *, void *, register_t *);
405 1.54 jdolecek
406 1.51 thorpej int freebsd_sys_unmount(struct lwp *, void *, register_t *);
407 1.54 jdolecek
408 1.51 thorpej int sys_setuid(struct lwp *, void *, register_t *);
409 1.54 jdolecek
410 1.51 thorpej int sys_getuid_with_euid(struct lwp *, void *, register_t *);
411 1.54 jdolecek
412 1.51 thorpej int sys_geteuid(struct lwp *, void *, register_t *);
413 1.54 jdolecek
414 1.51 thorpej int freebsd_sys_ptrace(struct lwp *, void *, register_t *);
415 1.54 jdolecek
416 1.51 thorpej int sys_recvmsg(struct lwp *, void *, register_t *);
417 1.54 jdolecek
418 1.51 thorpej int sys_sendmsg(struct lwp *, void *, register_t *);
419 1.54 jdolecek
420 1.51 thorpej int sys_recvfrom(struct lwp *, void *, register_t *);
421 1.54 jdolecek
422 1.51 thorpej int sys_accept(struct lwp *, void *, register_t *);
423 1.54 jdolecek
424 1.51 thorpej int sys_getpeername(struct lwp *, void *, register_t *);
425 1.54 jdolecek
426 1.51 thorpej int sys_getsockname(struct lwp *, void *, register_t *);
427 1.54 jdolecek
428 1.51 thorpej int freebsd_sys_access(struct lwp *, void *, register_t *);
429 1.54 jdolecek
430 1.51 thorpej int freebsd_sys_chflags(struct lwp *, void *, register_t *);
431 1.54 jdolecek
432 1.51 thorpej int sys_fchflags(struct lwp *, void *, register_t *);
433 1.54 jdolecek
434 1.51 thorpej int sys_sync(struct lwp *, void *, register_t *);
435 1.54 jdolecek
436 1.51 thorpej int sys_kill(struct lwp *, void *, register_t *);
437 1.54 jdolecek
438 1.51 thorpej int compat_43_freebsd_sys_stat(struct lwp *, void *, register_t *);
439 1.54 jdolecek
440 1.51 thorpej int sys_getppid(struct lwp *, void *, register_t *);
441 1.54 jdolecek
442 1.51 thorpej int compat_43_freebsd_sys_lstat(struct lwp *, void *, register_t *);
443 1.54 jdolecek
444 1.51 thorpej int sys_dup(struct lwp *, void *, register_t *);
445 1.54 jdolecek
446 1.51 thorpej int sys_pipe(struct lwp *, void *, register_t *);
447 1.54 jdolecek
448 1.51 thorpej int sys_getegid(struct lwp *, void *, register_t *);
449 1.54 jdolecek
450 1.51 thorpej int sys_profil(struct lwp *, void *, register_t *);
451 1.54 jdolecek
452 1.1 mycroft #ifdef KTRACE
453 1.51 thorpej int sys_ktrace(struct lwp *, void *, register_t *);
454 1.54 jdolecek
455 1.1 mycroft #else
456 1.1 mycroft #endif
457 1.51 thorpej int compat_13_sys_sigaction(struct lwp *, void *, register_t *);
458 1.54 jdolecek
459 1.51 thorpej int sys_getgid_with_egid(struct lwp *, void *, register_t *);
460 1.54 jdolecek
461 1.51 thorpej int compat_13_sys_sigprocmask(struct lwp *, void *, register_t *);
462 1.54 jdolecek
463 1.51 thorpej int sys___getlogin(struct lwp *, void *, register_t *);
464 1.54 jdolecek
465 1.51 thorpej int sys___setlogin(struct lwp *, void *, register_t *);
466 1.54 jdolecek
467 1.51 thorpej int sys_acct(struct lwp *, void *, register_t *);
468 1.54 jdolecek
469 1.51 thorpej int compat_13_sys_sigpending(struct lwp *, void *, register_t *);
470 1.54 jdolecek
471 1.51 thorpej int compat_13_sys_sigaltstack(struct lwp *, void *, register_t *);
472 1.54 jdolecek
473 1.51 thorpej int freebsd_sys_ioctl(struct lwp *, void *, register_t *);
474 1.54 jdolecek
475 1.51 thorpej int sys_reboot(struct lwp *, void *, register_t *);
476 1.54 jdolecek
477 1.51 thorpej int freebsd_sys_revoke(struct lwp *, void *, register_t *);
478 1.54 jdolecek
479 1.51 thorpej int freebsd_sys_symlink(struct lwp *, void *, register_t *);
480 1.54 jdolecek
481 1.51 thorpej int freebsd_sys_readlink(struct lwp *, void *, register_t *);
482 1.54 jdolecek
483 1.51 thorpej int freebsd_sys_execve(struct lwp *, void *, register_t *);
484 1.54 jdolecek
485 1.51 thorpej int sys_umask(struct lwp *, void *, register_t *);
486 1.54 jdolecek
487 1.51 thorpej int freebsd_sys_chroot(struct lwp *, void *, register_t *);
488 1.54 jdolecek
489 1.51 thorpej int compat_43_sys_fstat(struct lwp *, void *, register_t *);
490 1.54 jdolecek
491 1.51 thorpej int compat_43_sys_getkerninfo(struct lwp *, void *, register_t *);
492 1.54 jdolecek
493 1.51 thorpej int compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
494 1.54 jdolecek
495 1.51 thorpej int freebsd_sys_msync(struct lwp *, void *, register_t *);
496 1.54 jdolecek
497 1.51 thorpej int sys_vfork(struct lwp *, void *, register_t *);
498 1.54 jdolecek
499 1.51 thorpej int sys_sbrk(struct lwp *, void *, register_t *);
500 1.54 jdolecek
501 1.51 thorpej int sys_sstk(struct lwp *, void *, register_t *);
502 1.54 jdolecek
503 1.51 thorpej int compat_43_sys_mmap(struct lwp *, void *, register_t *);
504 1.54 jdolecek
505 1.51 thorpej int sys_ovadvise(struct lwp *, void *, register_t *);
506 1.54 jdolecek
507 1.51 thorpej int sys_munmap(struct lwp *, void *, register_t *);
508 1.54 jdolecek
509 1.51 thorpej int sys_mprotect(struct lwp *, void *, register_t *);
510 1.54 jdolecek
511 1.51 thorpej int sys_madvise(struct lwp *, void *, register_t *);
512 1.54 jdolecek
513 1.51 thorpej int sys_mincore(struct lwp *, void *, register_t *);
514 1.54 jdolecek
515 1.51 thorpej int sys_getgroups(struct lwp *, void *, register_t *);
516 1.54 jdolecek
517 1.51 thorpej int sys_setgroups(struct lwp *, void *, register_t *);
518 1.54 jdolecek
519 1.51 thorpej int sys_getpgrp(struct lwp *, void *, register_t *);
520 1.54 jdolecek
521 1.51 thorpej int sys_setpgid(struct lwp *, void *, register_t *);
522 1.54 jdolecek
523 1.51 thorpej int sys_setitimer(struct lwp *, void *, register_t *);
524 1.54 jdolecek
525 1.51 thorpej int compat_43_sys_wait(struct lwp *, void *, register_t *);
526 1.54 jdolecek
527 1.51 thorpej int compat_12_sys_swapon(struct lwp *, void *, register_t *);
528 1.54 jdolecek
529 1.51 thorpej int sys_getitimer(struct lwp *, void *, register_t *);
530 1.54 jdolecek
531 1.51 thorpej int compat_43_sys_gethostname(struct lwp *, void *, register_t *);
532 1.54 jdolecek
533 1.51 thorpej int compat_43_sys_sethostname(struct lwp *, void *, register_t *);
534 1.54 jdolecek
535 1.51 thorpej int compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
536 1.54 jdolecek
537 1.51 thorpej int sys_dup2(struct lwp *, void *, register_t *);
538 1.54 jdolecek
539 1.51 thorpej int sys_fcntl(struct lwp *, void *, register_t *);
540 1.54 jdolecek
541 1.51 thorpej int sys_select(struct lwp *, void *, register_t *);
542 1.54 jdolecek
543 1.51 thorpej int sys_fsync(struct lwp *, void *, register_t *);
544 1.54 jdolecek
545 1.51 thorpej int sys_setpriority(struct lwp *, void *, register_t *);
546 1.54 jdolecek
547 1.51 thorpej int sys_socket(struct lwp *, void *, register_t *);
548 1.54 jdolecek
549 1.51 thorpej int sys_connect(struct lwp *, void *, register_t *);
550 1.54 jdolecek
551 1.51 thorpej int compat_43_sys_accept(struct lwp *, void *, register_t *);
552 1.54 jdolecek
553 1.51 thorpej int sys_getpriority(struct lwp *, void *, register_t *);
554 1.54 jdolecek
555 1.51 thorpej int compat_43_sys_send(struct lwp *, void *, register_t *);
556 1.54 jdolecek
557 1.51 thorpej int compat_43_sys_recv(struct lwp *, void *, register_t *);
558 1.54 jdolecek
559 1.51 thorpej int freebsd_sys_sigreturn(struct lwp *, void *, register_t *);
560 1.54 jdolecek
561 1.51 thorpej int sys_bind(struct lwp *, void *, register_t *);
562 1.54 jdolecek
563 1.51 thorpej int sys_setsockopt(struct lwp *, void *, register_t *);
564 1.54 jdolecek
565 1.51 thorpej int sys_listen(struct lwp *, void *, register_t *);
566 1.54 jdolecek
567 1.51 thorpej int compat_43_sys_sigvec(struct lwp *, void *, register_t *);
568 1.54 jdolecek
569 1.51 thorpej int compat_43_sys_sigblock(struct lwp *, void *, register_t *);
570 1.54 jdolecek
571 1.51 thorpej int compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
572 1.54 jdolecek
573 1.51 thorpej int compat_13_sys_sigsuspend(struct lwp *, void *, register_t *);
574 1.54 jdolecek
575 1.51 thorpej int compat_43_sys_sigstack(struct lwp *, void *, register_t *);
576 1.54 jdolecek
577 1.51 thorpej int compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
578 1.54 jdolecek
579 1.51 thorpej int compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
580 1.54 jdolecek
581 1.1 mycroft #ifdef TRACE
582 1.51 thorpej int sys_vtrace(struct lwp *, void *, register_t *);
583 1.54 jdolecek
584 1.1 mycroft #else
585 1.1 mycroft #endif
586 1.51 thorpej int sys_gettimeofday(struct lwp *, void *, register_t *);
587 1.54 jdolecek
588 1.51 thorpej int sys_getrusage(struct lwp *, void *, register_t *);
589 1.54 jdolecek
590 1.51 thorpej int sys_getsockopt(struct lwp *, void *, register_t *);
591 1.54 jdolecek
592 1.51 thorpej int sys_readv(struct lwp *, void *, register_t *);
593 1.54 jdolecek
594 1.51 thorpej int sys_writev(struct lwp *, void *, register_t *);
595 1.54 jdolecek
596 1.51 thorpej int sys_settimeofday(struct lwp *, void *, register_t *);
597 1.54 jdolecek
598 1.51 thorpej int sys_fchown(struct lwp *, void *, register_t *);
599 1.54 jdolecek
600 1.51 thorpej int sys_fchmod(struct lwp *, void *, register_t *);
601 1.54 jdolecek
602 1.51 thorpej int compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
603 1.54 jdolecek
604 1.51 thorpej int sys_setreuid(struct lwp *, void *, register_t *);
605 1.54 jdolecek
606 1.51 thorpej int sys_setregid(struct lwp *, void *, register_t *);
607 1.54 jdolecek
608 1.51 thorpej int freebsd_sys_rename(struct lwp *, void *, register_t *);
609 1.54 jdolecek
610 1.51 thorpej int compat_43_freebsd_sys_truncate(struct lwp *, void *, register_t *);
611 1.54 jdolecek
612 1.51 thorpej int compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
613 1.54 jdolecek
614 1.51 thorpej int sys_flock(struct lwp *, void *, register_t *);
615 1.54 jdolecek
616 1.51 thorpej int freebsd_sys_mkfifo(struct lwp *, void *, register_t *);
617 1.54 jdolecek
618 1.51 thorpej int sys_sendto(struct lwp *, void *, register_t *);
619 1.54 jdolecek
620 1.51 thorpej int sys_shutdown(struct lwp *, void *, register_t *);
621 1.54 jdolecek
622 1.51 thorpej int sys_socketpair(struct lwp *, void *, register_t *);
623 1.54 jdolecek
624 1.51 thorpej int freebsd_sys_mkdir(struct lwp *, void *, register_t *);
625 1.54 jdolecek
626 1.51 thorpej int freebsd_sys_rmdir(struct lwp *, void *, register_t *);
627 1.54 jdolecek
628 1.51 thorpej int sys_utimes(struct lwp *, void *, register_t *);
629 1.54 jdolecek
630 1.51 thorpej int sys_adjtime(struct lwp *, void *, register_t *);
631 1.54 jdolecek
632 1.51 thorpej int compat_43_sys_getpeername(struct lwp *, void *, register_t *);
633 1.54 jdolecek
634 1.51 thorpej int compat_43_sys_gethostid(struct lwp *, void *, register_t *);
635 1.54 jdolecek
636 1.51 thorpej int compat_43_sys_sethostid(struct lwp *, void *, register_t *);
637 1.54 jdolecek
638 1.51 thorpej int compat_43_sys_getrlimit(struct lwp *, void *, register_t *);
639 1.54 jdolecek
640 1.51 thorpej int compat_43_sys_setrlimit(struct lwp *, void *, register_t *);
641 1.54 jdolecek
642 1.51 thorpej int compat_43_sys_killpg(struct lwp *, void *, register_t *);
643 1.54 jdolecek
644 1.51 thorpej int sys_setsid(struct lwp *, void *, register_t *);
645 1.54 jdolecek
646 1.51 thorpej int sys_quotactl(struct lwp *, void *, register_t *);
647 1.54 jdolecek
648 1.51 thorpej int compat_43_sys_quota(struct lwp *, void *, register_t *);
649 1.54 jdolecek
650 1.51 thorpej int compat_43_sys_getsockname(struct lwp *, void *, register_t *);
651 1.54 jdolecek
652 1.6 thorpej #if defined(NFS) || defined(NFSSERVER)
653 1.51 thorpej int sys_nfssvc(struct lwp *, void *, register_t *);
654 1.54 jdolecek
655 1.1 mycroft #else
656 1.1 mycroft #endif
657 1.51 thorpej int compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
658 1.54 jdolecek
659 1.51 thorpej int freebsd_sys_statfs(struct lwp *, void *, register_t *);
660 1.54 jdolecek
661 1.56 christos #ifdef COMPAT_20
662 1.56 christos int compat_20_sys_fstatfs(struct lwp *, void *, register_t *);
663 1.54 jdolecek
664 1.56 christos #else
665 1.56 christos #endif
666 1.6 thorpej #ifdef NFS
667 1.51 thorpej int freebsd_sys_getfh(struct lwp *, void *, register_t *);
668 1.54 jdolecek
669 1.1 mycroft #else
670 1.1 mycroft #endif
671 1.51 thorpej int compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
672 1.54 jdolecek
673 1.51 thorpej int compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
674 1.54 jdolecek
675 1.51 thorpej int compat_09_sys_uname(struct lwp *, void *, register_t *);
676 1.54 jdolecek
677 1.51 thorpej int sys_sysarch(struct lwp *, void *, register_t *);
678 1.54 jdolecek
679 1.51 thorpej int freebsd_sys_rtprio(struct lwp *, void *, register_t *);
680 1.54 jdolecek
681 1.48 eeh #if defined(SYSVSEM) && !defined(_LP64)
682 1.51 thorpej int freebsd_sys_semsys(struct lwp *, void *, register_t *);
683 1.54 jdolecek
684 1.1 mycroft #else
685 1.1 mycroft #endif
686 1.48 eeh #if defined(SYSVMSG) && !defined(_LP64)
687 1.51 thorpej int freebsd_sys_msgsys(struct lwp *, void *, register_t *);
688 1.54 jdolecek
689 1.1 mycroft #else
690 1.1 mycroft #endif
691 1.48 eeh #if defined(SYSVSHM) && !defined(_LP64)
692 1.51 thorpej int freebsd_sys_shmsys(struct lwp *, void *, register_t *);
693 1.54 jdolecek
694 1.1 mycroft #else
695 1.1 mycroft #endif
696 1.51 thorpej int sys_pread(struct lwp *, void *, register_t *);
697 1.54 jdolecek
698 1.51 thorpej int sys_pwrite(struct lwp *, void *, register_t *);
699 1.54 jdolecek
700 1.36 itojun #ifdef NTP
701 1.51 thorpej int freebsd_ntp_adjtime(struct lwp *, void *, register_t *);
702 1.54 jdolecek
703 1.35 bjh21 #else
704 1.35 bjh21 #endif
705 1.51 thorpej int sys_setgid(struct lwp *, void *, register_t *);
706 1.54 jdolecek
707 1.51 thorpej int sys_setegid(struct lwp *, void *, register_t *);
708 1.54 jdolecek
709 1.51 thorpej int sys_seteuid(struct lwp *, void *, register_t *);
710 1.54 jdolecek
711 1.1 mycroft #ifdef LFS
712 1.51 thorpej int sys_lfs_bmapv(struct lwp *, void *, register_t *);
713 1.54 jdolecek
714 1.51 thorpej int sys_lfs_markv(struct lwp *, void *, register_t *);
715 1.54 jdolecek
716 1.51 thorpej int sys_lfs_segclean(struct lwp *, void *, register_t *);
717 1.54 jdolecek
718 1.51 thorpej int sys_lfs_segwait(struct lwp *, void *, register_t *);
719 1.54 jdolecek
720 1.51 thorpej #else
721 1.51 thorpej #endif
722 1.51 thorpej int freebsd_sys_stat(struct lwp *, void *, register_t *);
723 1.54 jdolecek
724 1.51 thorpej int compat_12_sys_fstat(struct lwp *, void *, register_t *);
725 1.54 jdolecek
726 1.51 thorpej int freebsd_sys_lstat(struct lwp *, void *, register_t *);
727 1.54 jdolecek
728 1.51 thorpej int freebsd_sys_pathconf(struct lwp *, void *, register_t *);
729 1.54 jdolecek
730 1.51 thorpej int sys_fpathconf(struct lwp *, void *, register_t *);
731 1.54 jdolecek
732 1.51 thorpej int sys_getrlimit(struct lwp *, void *, register_t *);
733 1.54 jdolecek
734 1.51 thorpej int sys_setrlimit(struct lwp *, void *, register_t *);
735 1.54 jdolecek
736 1.51 thorpej int compat_12_sys_getdirentries(struct lwp *, void *, register_t *);
737 1.54 jdolecek
738 1.53 pooka int freebsd_sys_mmap(struct lwp *, void *, register_t *);
739 1.54 jdolecek
740 1.51 thorpej int sys_lseek(struct lwp *, void *, register_t *);
741 1.54 jdolecek
742 1.51 thorpej int freebsd_sys_truncate(struct lwp *, void *, register_t *);
743 1.54 jdolecek
744 1.51 thorpej int sys_ftruncate(struct lwp *, void *, register_t *);
745 1.54 jdolecek
746 1.51 thorpej int sys___sysctl(struct lwp *, void *, register_t *);
747 1.54 jdolecek
748 1.51 thorpej int sys_mlock(struct lwp *, void *, register_t *);
749 1.54 jdolecek
750 1.51 thorpej int sys_munlock(struct lwp *, void *, register_t *);
751 1.54 jdolecek
752 1.1 mycroft #ifdef FREEBSD_BASED_ON_44LITE_R2
753 1.51 thorpej int freebsd_sys_undelete(struct lwp *, void *, register_t *);
754 1.54 jdolecek
755 1.1 mycroft #else
756 1.1 mycroft #endif
757 1.51 thorpej int sys_futimes(struct lwp *, void *, register_t *);
758 1.54 jdolecek
759 1.51 thorpej int sys_getpgid(struct lwp *, void *, register_t *);
760 1.54 jdolecek
761 1.28 christos #if 0
762 1.28 christos #else
763 1.28 christos #endif
764 1.51 thorpej int sys_poll(struct lwp *, void *, register_t *);
765 1.54 jdolecek
766 1.28 christos #ifdef SYSVSEM
767 1.51 thorpej int compat_14_sys___semctl(struct lwp *, void *, register_t *);
768 1.54 jdolecek
769 1.51 thorpej int sys_semget(struct lwp *, void *, register_t *);
770 1.54 jdolecek
771 1.51 thorpej int sys_semop(struct lwp *, void *, register_t *);
772 1.54 jdolecek
773 1.51 thorpej int sys_semconfig(struct lwp *, void *, register_t *);
774 1.54 jdolecek
775 1.28 christos #else
776 1.28 christos #endif
777 1.28 christos #ifdef SYSVMSG
778 1.51 thorpej int compat_14_sys_msgctl(struct lwp *, void *, register_t *);
779 1.54 jdolecek
780 1.51 thorpej int sys_msgget(struct lwp *, void *, register_t *);
781 1.54 jdolecek
782 1.51 thorpej int sys_msgsnd(struct lwp *, void *, register_t *);
783 1.54 jdolecek
784 1.51 thorpej int sys_msgrcv(struct lwp *, void *, register_t *);
785 1.54 jdolecek
786 1.28 christos #else
787 1.28 christos #endif
788 1.28 christos #ifdef SYSVSHM
789 1.51 thorpej int sys_shmat(struct lwp *, void *, register_t *);
790 1.54 jdolecek
791 1.51 thorpej int compat_14_sys_shmctl(struct lwp *, void *, register_t *);
792 1.54 jdolecek
793 1.51 thorpej int sys_shmdt(struct lwp *, void *, register_t *);
794 1.54 jdolecek
795 1.51 thorpej int sys_shmget(struct lwp *, void *, register_t *);
796 1.54 jdolecek
797 1.51 thorpej #else
798 1.51 thorpej #endif
799 1.51 thorpej int sys_clock_gettime(struct lwp *, void *, register_t *);
800 1.54 jdolecek
801 1.51 thorpej int sys_clock_settime(struct lwp *, void *, register_t *);
802 1.54 jdolecek
803 1.51 thorpej int sys_clock_getres(struct lwp *, void *, register_t *);
804 1.54 jdolecek
805 1.51 thorpej int sys_nanosleep(struct lwp *, void *, register_t *);
806 1.54 jdolecek
807 1.51 thorpej int sys_minherit(struct lwp *, void *, register_t *);
808 1.54 jdolecek
809 1.51 thorpej int freebsd_sys_rfork(struct lwp *, void *, register_t *);
810 1.54 jdolecek
811 1.51 thorpej int sys_issetugid(struct lwp *, void *, register_t *);
812 1.54 jdolecek
813 1.51 thorpej int freebsd_sys_lchown(struct lwp *, void *, register_t *);
814 1.54 jdolecek
815 1.51 thorpej int sys_getdents(struct lwp *, void *, register_t *);
816 1.54 jdolecek
817 1.51 thorpej int sys_lchmod(struct lwp *, void *, register_t *);
818 1.54 jdolecek
819 1.51 thorpej int sys_lchown(struct lwp *, void *, register_t *);
820 1.54 jdolecek
821 1.51 thorpej int sys_lutimes(struct lwp *, void *, register_t *);
822 1.54 jdolecek
823 1.51 thorpej int sys___msync13(struct lwp *, void *, register_t *);
824 1.54 jdolecek
825 1.51 thorpej int sys___stat13(struct lwp *, void *, register_t *);
826 1.54 jdolecek
827 1.51 thorpej int sys___fstat13(struct lwp *, void *, register_t *);
828 1.54 jdolecek
829 1.51 thorpej int sys___lstat13(struct lwp *, void *, register_t *);
830 1.54 jdolecek
831 1.56 christos #ifdef COMPAT_20
832 1.56 christos int compat_20_sys_fhstatfs(struct lwp *, void *, register_t *);
833 1.54 jdolecek
834 1.56 christos #else
835 1.56 christos #endif
836 1.51 thorpej int sys_fhopen(struct lwp *, void *, register_t *);
837 1.54 jdolecek
838 1.51 thorpej int sys_fhstat(struct lwp *, void *, register_t *);
839 1.54 jdolecek
840 1.51 thorpej int sys_getsid(struct lwp *, void *, register_t *);
841 1.54 jdolecek
842 1.51 thorpej int freebsd_sys_yield(struct lwp *, void *, register_t *);
843 1.54 jdolecek
844 1.51 thorpej int sys_mlockall(struct lwp *, void *, register_t *);
845 1.54 jdolecek
846 1.51 thorpej int sys_munlockall(struct lwp *, void *, register_t *);
847 1.54 jdolecek
848 1.51 thorpej int sys___getcwd(struct lwp *, void *, register_t *);
849 1.54 jdolecek
850 1.51 thorpej int freebsd_sys_sched_setparam(struct lwp *, void *, register_t *);
851 1.54 jdolecek
852 1.51 thorpej int freebsd_sys_sched_getparam(struct lwp *, void *, register_t *);
853 1.54 jdolecek
854 1.51 thorpej int freebsd_sys_sched_setscheduler(struct lwp *, void *, register_t *);
855 1.54 jdolecek
856 1.51 thorpej int freebsd_sys_sched_getscheduler(struct lwp *, void *, register_t *);
857 1.54 jdolecek
858 1.51 thorpej int freebsd_sys_sched_yield(struct lwp *, void *, register_t *);
859 1.54 jdolecek
860 1.51 thorpej int freebsd_sys_sched_get_priority_max(struct lwp *, void *, register_t *);
861 1.54 jdolecek
862 1.51 thorpej int freebsd_sys_sched_get_priority_min(struct lwp *, void *, register_t *);
863 1.54 jdolecek
864 1.51 thorpej int freebsd_sys_utrace(struct lwp *, void *, register_t *);
865 1.54 jdolecek
866 1.51 thorpej int sys___sigprocmask14(struct lwp *, void *, register_t *);
867 1.54 jdolecek
868 1.51 thorpej int sys___sigsuspend14(struct lwp *, void *, register_t *);
869 1.54 jdolecek
870 1.51 thorpej int freebsd_sys_sigaction4(struct lwp *, void *, register_t *);
871 1.54 jdolecek
872 1.51 thorpej int sys___sigpending14(struct lwp *, void *, register_t *);
873 1.54 jdolecek
874 1.54 jdolecek int sys_lchflags(struct lwp *, void *, register_t *);
875 1.54 jdolecek
876 1.55 tsarna int sys_uuidgen(struct lwp *, void *, register_t *);
877 1.55 tsarna
878 1.54 jdolecek #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
879 1.54 jdolecek int sys__ksem_close(struct lwp *, void *, register_t *);
880 1.54 jdolecek
881 1.54 jdolecek int sys__ksem_post(struct lwp *, void *, register_t *);
882 1.54 jdolecek
883 1.54 jdolecek int sys__ksem_wait(struct lwp *, void *, register_t *);
884 1.54 jdolecek
885 1.54 jdolecek int sys__ksem_trywait(struct lwp *, void *, register_t *);
886 1.54 jdolecek
887 1.54 jdolecek int sys__ksem_unlink(struct lwp *, void *, register_t *);
888 1.54 jdolecek
889 1.54 jdolecek int sys__ksem_getvalue(struct lwp *, void *, register_t *);
890 1.54 jdolecek
891 1.54 jdolecek int sys__ksem_destroy(struct lwp *, void *, register_t *);
892 1.54 jdolecek
893 1.54 jdolecek #else
894 1.54 jdolecek #endif
895 1.28 christos #endif /* _FREEBSD_SYS__SYSCALLARGS_H_ */
896