]> git.saurik.com Git - apple/xnu.git/blob - bsd/sys/sysproto.h
ec5eaa8a6dfacc5bd2f019103185085d195f2028
[apple/xnu.git] / bsd / sys / sysproto.h
1 /*
2 * Copyright (c) 2004 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 *
28 *
29 * System call switch table.
30 *
31 * DO NOT EDIT-- this file is automatically generated.
32 * created from syscalls.master
33 */
34
35 #ifndef _SYS_SYSPROTO_H_
36 #define _SYS_SYSPROTO_H_
37
38 #include <sys/appleapiopts.h>
39 #include <sys/cdefs.h>
40 #include <sys/mount_internal.h>
41 #include <sys/types.h>
42 #include <sys/sem_internal.h>
43 #include <sys/semaphore.h>
44 #include <sys/wait.h>
45 #include <mach/shared_memory_server.h>
46
47 #ifdef KERNEL
48 #ifdef __APPLE_API_PRIVATE
49 #define PAD_(t) (sizeof(uint64_t) <= sizeof(t) \
50 ? 0 : sizeof(uint64_t) - sizeof(t))
51 #if BYTE_ORDER == LITTLE_ENDIAN
52 #define PADL_(t) 0
53 #define PADR_(t) PAD_(t)
54 #else
55 #define PADL_(t) PAD_(t)
56 #define PADR_(t) 0
57 #endif
58
59 __BEGIN_DECLS
60 #ifndef __MUNGE_ONCE
61 #define __MUNGE_ONCE
62 void munge_w(const void *, void *);
63 void munge_ww(const void *, void *);
64 void munge_www(const void *, void *);
65 void munge_wwww(const void *, void *);
66 void munge_wwwww(const void *, void *);
67 void munge_wwwwww(const void *, void *);
68 void munge_wwwwwww(const void *, void *);
69 void munge_wwwwwwww(const void *, void *);
70 void munge_wl(const void *, void *);
71 void munge_wlw(const void *, void *);
72 void munge_wwwl(const void *, void *);
73 void munge_wwwlww(const void *, void *);
74 void munge_wwwwl(const void *, void *);
75 void munge_wwwwwl(const void *, void *);
76 void munge_wsw(const void *, void *);
77 void munge_wws(const void *, void *);
78 void munge_wwwsw(const void *, void *);
79 #ifdef __ppc__
80 void munge_d(const void *, void *);
81 void munge_dd(const void *, void *);
82 void munge_ddd(const void *, void *);
83 void munge_dddd(const void *, void *);
84 void munge_ddddd(const void *, void *);
85 void munge_dddddd(const void *, void *);
86 void munge_ddddddd(const void *, void *);
87 void munge_dddddddd(const void *, void *);
88 #else
89 #define munge_d NULL
90 #define munge_dd NULL
91 #define munge_ddd NULL
92 #define munge_dddd NULL
93 #define munge_ddddd NULL
94 #define munge_dddddd NULL
95 #define munge_ddddddd NULL
96 #define munge_dddddddd NULL
97 #endif // __ppc__
98 #endif /* !__MUNGE_ONCE */
99
100 struct nosys_args {
101 register_t dummy;
102 };
103 struct exit_args {
104 char rval_l_[PADL_(int)]; int rval; char rval_r_[PADR_(int)];
105 };
106 struct fork_args {
107 register_t dummy;
108 };
109 struct read_args {
110 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
111 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
112 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
113 };
114 struct write_args {
115 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
116 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
117 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
118 };
119 struct open_args {
120 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
121 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
122 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
123 };
124 struct close_args {
125 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
126 };
127 struct wait4_args {
128 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
129 char status_l_[PADL_(user_addr_t)]; user_addr_t status; char status_r_[PADR_(user_addr_t)];
130 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
131 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
132 };
133 struct link_args {
134 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
135 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
136 };
137 struct unlink_args {
138 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
139 };
140 struct chdir_args {
141 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
142 };
143 struct fchdir_args {
144 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
145 };
146 struct mknod_args {
147 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
148 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
149 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
150 };
151 struct chmod_args {
152 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
153 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
154 };
155 struct chown_args {
156 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
157 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
158 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
159 };
160 struct obreak_args {
161 char nsize_l_[PADL_(char *)]; char * nsize; char nsize_r_[PADR_(char *)];
162 };
163 #if COMPAT_GETFSSTAT
164 struct ogetfsstat_args {
165 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
166 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
167 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
168 };
169 #else
170 struct getfsstat_args {
171 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
172 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
173 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
174 };
175 #endif
176 struct getpid_args {
177 register_t dummy;
178 };
179 struct setuid_args {
180 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
181 };
182 struct getuid_args {
183 register_t dummy;
184 };
185 struct geteuid_args {
186 register_t dummy;
187 };
188 struct ptrace_args {
189 char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
190 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
191 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
192 char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
193 };
194 struct recvmsg_args {
195 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
196 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
197 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
198 };
199 struct sendmsg_args {
200 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
201 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
202 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
203 };
204 struct recvfrom_args {
205 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
206 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
207 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
208 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
209 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
210 char fromlenaddr_l_[PADL_(user_addr_t)]; user_addr_t fromlenaddr; char fromlenaddr_r_[PADR_(user_addr_t)];
211 };
212 struct accept_args {
213 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
214 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
215 char anamelen_l_[PADL_(user_addr_t)]; user_addr_t anamelen; char anamelen_r_[PADR_(user_addr_t)];
216 };
217 struct getpeername_args {
218 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
219 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
220 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
221 };
222 struct getsockname_args {
223 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
224 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
225 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
226 };
227 struct access_args {
228 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
229 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
230 };
231 struct chflags_args {
232 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
233 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
234 };
235 struct fchflags_args {
236 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
237 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
238 };
239 struct sync_args {
240 register_t dummy;
241 };
242 struct kill_args {
243 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
244 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
245 };
246 struct getppid_args {
247 register_t dummy;
248 };
249 struct dup_args {
250 char fd_l_[PADL_(u_int)]; u_int fd; char fd_r_[PADR_(u_int)];
251 };
252 struct pipe_args {
253 register_t dummy;
254 };
255 struct getegid_args {
256 register_t dummy;
257 };
258 struct profil_args {
259 char bufbase_l_[PADL_(user_addr_t)]; user_addr_t bufbase; char bufbase_r_[PADR_(user_addr_t)];
260 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
261 char pcoffset_l_[PADL_(user_ulong_t)]; user_ulong_t pcoffset; char pcoffset_r_[PADR_(user_ulong_t)];
262 char pcscale_l_[PADL_(u_int)]; u_int pcscale; char pcscale_r_[PADR_(u_int)];
263 };
264 struct ktrace_args {
265 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
266 char ops_l_[PADL_(int)]; int ops; char ops_r_[PADR_(int)];
267 char facs_l_[PADL_(int)]; int facs; char facs_r_[PADR_(int)];
268 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
269 };
270 struct sigaction_args {
271 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
272 char nsa_l_[PADL_(user_addr_t)]; user_addr_t nsa; char nsa_r_[PADR_(user_addr_t)];
273 char osa_l_[PADL_(user_addr_t)]; user_addr_t osa; char osa_r_[PADR_(user_addr_t)];
274 };
275 struct getgid_args {
276 register_t dummy;
277 };
278 struct sigprocmask_args {
279 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
280 char mask_l_[PADL_(user_addr_t)]; user_addr_t mask; char mask_r_[PADR_(user_addr_t)];
281 char omask_l_[PADL_(user_addr_t)]; user_addr_t omask; char omask_r_[PADR_(user_addr_t)];
282 };
283 struct getlogin_args {
284 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
285 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
286 };
287 struct setlogin_args {
288 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
289 };
290 struct acct_args {
291 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
292 };
293 struct sigpending_args {
294 char osv_l_[PADL_(user_addr_t)]; user_addr_t osv; char osv_r_[PADR_(user_addr_t)];
295 };
296 struct sigaltstack_args {
297 char nss_l_[PADL_(user_addr_t)]; user_addr_t nss; char nss_r_[PADR_(user_addr_t)];
298 char oss_l_[PADL_(user_addr_t)]; user_addr_t oss; char oss_r_[PADR_(user_addr_t)];
299 };
300 struct ioctl_args {
301 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
302 char com_l_[PADL_(user_ulong_t)]; user_ulong_t com; char com_r_[PADR_(user_ulong_t)];
303 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
304 };
305 struct reboot_args {
306 char opt_l_[PADL_(int)]; int opt; char opt_r_[PADR_(int)];
307 char command_l_[PADL_(user_addr_t)]; user_addr_t command; char command_r_[PADR_(user_addr_t)];
308 };
309 struct revoke_args {
310 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
311 };
312 struct symlink_args {
313 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
314 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
315 };
316 struct readlink_args {
317 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
318 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
319 char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
320 };
321 struct execve_args {
322 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
323 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
324 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
325 };
326 struct umask_args {
327 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
328 };
329 struct chroot_args {
330 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
331 };
332 struct msync_args {
333 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
334 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
335 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
336 };
337 struct vfork_args {
338 register_t dummy;
339 };
340 struct sbrk_args {
341 char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)];
342 };
343 struct sstk_args {
344 char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)];
345 };
346 struct ovadvise_args {
347 register_t dummy;
348 };
349 struct munmap_args {
350 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
351 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
352 };
353 struct mprotect_args {
354 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
355 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
356 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
357 };
358 struct madvise_args {
359 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
360 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
361 char behav_l_[PADL_(int)]; int behav; char behav_r_[PADR_(int)];
362 };
363 struct mincore_args {
364 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
365 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
366 char vec_l_[PADL_(user_addr_t)]; user_addr_t vec; char vec_r_[PADR_(user_addr_t)];
367 };
368 struct getgroups_args {
369 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
370 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
371 };
372 struct setgroups_args {
373 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
374 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
375 };
376 struct getpgrp_args {
377 register_t dummy;
378 };
379 struct setpgid_args {
380 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
381 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
382 };
383 struct setitimer_args {
384 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
385 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
386 char oitv_l_[PADL_(user_addr_t)]; user_addr_t oitv; char oitv_r_[PADR_(user_addr_t)];
387 };
388 struct swapon_args {
389 register_t dummy;
390 };
391 struct getitimer_args {
392 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
393 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
394 };
395 struct getdtablesize_args {
396 register_t dummy;
397 };
398 struct dup2_args {
399 char from_l_[PADL_(u_int)]; u_int from; char from_r_[PADR_(u_int)];
400 char to_l_[PADL_(u_int)]; u_int to; char to_r_[PADR_(u_int)];
401 };
402 struct fcntl_args {
403 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
404 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
405 char arg_l_[PADL_(user_long_t)]; user_long_t arg; char arg_r_[PADR_(user_long_t)];
406 };
407 struct select_args {
408 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
409 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
410 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
411 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
412 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
413 };
414 struct fsync_args {
415 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
416 };
417 struct setpriority_args {
418 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
419 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
420 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
421 };
422 struct socket_args {
423 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
424 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
425 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
426 };
427 struct connect_args {
428 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
429 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
430 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
431 };
432 struct getpriority_args {
433 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
434 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
435 };
436 struct bind_args {
437 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
438 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
439 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
440 };
441 struct setsockopt_args {
442 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
443 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
444 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
445 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
446 char valsize_l_[PADL_(socklen_t)]; socklen_t valsize; char valsize_r_[PADR_(socklen_t)];
447 };
448 struct listen_args {
449 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
450 char backlog_l_[PADL_(int)]; int backlog; char backlog_r_[PADR_(int)];
451 };
452 struct sigsuspend_args {
453 char mask_l_[PADL_(sigset_t)]; sigset_t mask; char mask_r_[PADR_(sigset_t)];
454 };
455 struct gettimeofday_args {
456 char tp_l_[PADL_(user_addr_t)]; user_addr_t tp; char tp_r_[PADR_(user_addr_t)];
457 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
458 };
459 struct getrusage_args {
460 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
461 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
462 };
463 struct getsockopt_args {
464 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
465 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
466 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
467 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
468 char avalsize_l_[PADL_(user_addr_t)]; user_addr_t avalsize; char avalsize_r_[PADR_(user_addr_t)];
469 };
470 struct readv_args {
471 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
472 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
473 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
474 };
475 struct writev_args {
476 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
477 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
478 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
479 };
480 struct settimeofday_args {
481 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
482 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
483 };
484 struct fchown_args {
485 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
486 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
487 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
488 };
489 struct fchmod_args {
490 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
491 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
492 };
493 struct rename_args {
494 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
495 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
496 };
497 struct flock_args {
498 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
499 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
500 };
501 struct mkfifo_args {
502 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
503 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
504 };
505 struct sendto_args {
506 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
507 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
508 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
509 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
510 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
511 char tolen_l_[PADL_(socklen_t)]; socklen_t tolen; char tolen_r_[PADR_(socklen_t)];
512 };
513 struct shutdown_args {
514 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
515 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
516 };
517 struct socketpair_args {
518 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
519 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
520 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
521 char rsv_l_[PADL_(user_addr_t)]; user_addr_t rsv; char rsv_r_[PADR_(user_addr_t)];
522 };
523 struct mkdir_args {
524 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
525 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
526 };
527 struct rmdir_args {
528 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
529 };
530 struct utimes_args {
531 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
532 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
533 };
534 struct futimes_args {
535 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
536 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
537 };
538 struct adjtime_args {
539 char delta_l_[PADL_(user_addr_t)]; user_addr_t delta; char delta_r_[PADR_(user_addr_t)];
540 char olddelta_l_[PADL_(user_addr_t)]; user_addr_t olddelta; char olddelta_r_[PADR_(user_addr_t)];
541 };
542 struct setsid_args {
543 register_t dummy;
544 };
545 struct getpgid_args {
546 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
547 };
548 struct setprivexec_args {
549 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
550 };
551 struct pread_args {
552 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
553 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
554 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
555 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
556 };
557 struct pwrite_args {
558 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
559 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
560 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
561 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
562 };
563 #if NFSSERVER
564 struct nfssvc_args {
565 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
566 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
567 };
568 #else
569 #endif
570 struct statfs_args {
571 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
572 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
573 };
574 struct fstatfs_args {
575 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
576 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
577 };
578 struct unmount_args {
579 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
580 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
581 };
582 #if NFSCLIENT
583 struct getfh_args {
584 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
585 char fhp_l_[PADL_(user_addr_t)]; user_addr_t fhp; char fhp_r_[PADR_(user_addr_t)];
586 };
587 #else
588 #endif
589 struct quotactl_args {
590 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
591 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
592 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
593 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
594 };
595 struct mount_args {
596 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
597 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
598 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
599 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
600 };
601 struct waitid_args {
602 char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
603 char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)];
604 char infop_l_[PADL_(user_addr_t)]; user_addr_t infop; char infop_r_[PADR_(user_addr_t)];
605 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
606 };
607 struct add_profil_args {
608 char bufbase_l_[PADL_(user_addr_t)]; user_addr_t bufbase; char bufbase_r_[PADR_(user_addr_t)];
609 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
610 char pcoffset_l_[PADL_(user_ulong_t)]; user_ulong_t pcoffset; char pcoffset_r_[PADR_(user_ulong_t)];
611 char pcscale_l_[PADL_(u_int)]; u_int pcscale; char pcscale_r_[PADR_(u_int)];
612 };
613 struct kdebug_trace_args {
614 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
615 char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];
616 char arg2_l_[PADL_(int)]; int arg2; char arg2_r_[PADR_(int)];
617 char arg3_l_[PADL_(int)]; int arg3; char arg3_r_[PADR_(int)];
618 char arg4_l_[PADL_(int)]; int arg4; char arg4_r_[PADR_(int)];
619 char arg5_l_[PADL_(int)]; int arg5; char arg5_r_[PADR_(int)];
620 };
621 struct setgid_args {
622 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
623 };
624 struct setegid_args {
625 char egid_l_[PADL_(gid_t)]; gid_t egid; char egid_r_[PADR_(gid_t)];
626 };
627 struct seteuid_args {
628 char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
629 };
630 struct sigreturn_args {
631 char uctx_l_[PADL_(user_addr_t)]; user_addr_t uctx; char uctx_r_[PADR_(user_addr_t)];
632 char infostyle_l_[PADL_(int)]; int infostyle; char infostyle_r_[PADR_(int)];
633 };
634 struct chud_args {
635 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
636 char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];
637 char arg2_l_[PADL_(int)]; int arg2; char arg2_r_[PADR_(int)];
638 char arg3_l_[PADL_(int)]; int arg3; char arg3_r_[PADR_(int)];
639 char arg4_l_[PADL_(int)]; int arg4; char arg4_r_[PADR_(int)];
640 char arg5_l_[PADL_(int)]; int arg5; char arg5_r_[PADR_(int)];
641 };
642 struct stat_args {
643 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
644 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
645 };
646 struct fstat_args {
647 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
648 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
649 };
650 struct lstat_args {
651 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
652 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
653 };
654 struct pathconf_args {
655 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
656 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
657 };
658 struct fpathconf_args {
659 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
660 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
661 };
662 #if COMPAT_GETFSSTAT
663 struct getfsstat_args {
664 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
665 char bufsize_l_[PADL_(user_long_t)]; user_long_t bufsize; char bufsize_r_[PADR_(user_long_t)];
666 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
667 };
668 #else
669 #endif
670 struct getrlimit_args {
671 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
672 char rlp_l_[PADL_(user_addr_t)]; user_addr_t rlp; char rlp_r_[PADR_(user_addr_t)];
673 };
674 struct setrlimit_args {
675 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
676 char rlp_l_[PADL_(user_addr_t)]; user_addr_t rlp; char rlp_r_[PADR_(user_addr_t)];
677 };
678 struct getdirentries_args {
679 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
680 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
681 char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
682 char basep_l_[PADL_(user_addr_t)]; user_addr_t basep; char basep_r_[PADR_(user_addr_t)];
683 };
684 struct mmap_args {
685 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
686 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
687 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
688 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
689 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
690 char pos_l_[PADL_(off_t)]; off_t pos; char pos_r_[PADR_(off_t)];
691 };
692 struct lseek_args {
693 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
694 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
695 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
696 };
697 struct truncate_args {
698 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
699 char length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
700 };
701 struct ftruncate_args {
702 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
703 char length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
704 };
705 struct __sysctl_args {
706 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
707 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
708 char old_l_[PADL_(user_addr_t)]; user_addr_t old; char old_r_[PADR_(user_addr_t)];
709 char oldlenp_l_[PADL_(user_addr_t)]; user_addr_t oldlenp; char oldlenp_r_[PADR_(user_addr_t)];
710 char new_l_[PADL_(user_addr_t)]; user_addr_t new; char new_r_[PADR_(user_addr_t)];
711 char newlen_l_[PADL_(user_size_t)]; user_size_t newlen; char newlen_r_[PADR_(user_size_t)];
712 };
713 struct mlock_args {
714 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
715 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
716 };
717 struct munlock_args {
718 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
719 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
720 };
721 struct undelete_args {
722 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
723 };
724 struct ATsocket_args {
725 char proto_l_[PADL_(int)]; int proto; char proto_r_[PADR_(int)];
726 };
727 struct ATgetmsg_args {
728 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
729 char ctlptr_l_[PADL_(void *)]; void * ctlptr; char ctlptr_r_[PADR_(void *)];
730 char datptr_l_[PADL_(void *)]; void * datptr; char datptr_r_[PADR_(void *)];
731 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
732 };
733 struct ATputmsg_args {
734 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
735 char ctlptr_l_[PADL_(void *)]; void * ctlptr; char ctlptr_r_[PADR_(void *)];
736 char datptr_l_[PADL_(void *)]; void * datptr; char datptr_r_[PADR_(void *)];
737 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
738 };
739 struct ATPsndreq_args {
740 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
741 char buf_l_[PADL_(unsigned char *)]; unsigned char * buf; char buf_r_[PADR_(unsigned char *)];
742 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
743 char nowait_l_[PADL_(int)]; int nowait; char nowait_r_[PADR_(int)];
744 };
745 struct ATPsndrsp_args {
746 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
747 char respbuff_l_[PADL_(unsigned char *)]; unsigned char * respbuff; char respbuff_r_[PADR_(unsigned char *)];
748 char resplen_l_[PADL_(int)]; int resplen; char resplen_r_[PADR_(int)];
749 char datalen_l_[PADL_(int)]; int datalen; char datalen_r_[PADR_(int)];
750 };
751 struct ATPgetreq_args {
752 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
753 char buf_l_[PADL_(unsigned char *)]; unsigned char * buf; char buf_r_[PADR_(unsigned char *)];
754 char buflen_l_[PADL_(int)]; int buflen; char buflen_r_[PADR_(int)];
755 };
756 struct ATPgetrsp_args {
757 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
758 char bdsp_l_[PADL_(unsigned char *)]; unsigned char * bdsp; char bdsp_r_[PADR_(unsigned char *)];
759 };
760 struct kqueue_from_portset_np_args {
761 char portset_l_[PADL_(int)]; int portset; char portset_r_[PADR_(int)];
762 };
763 struct kqueue_portset_np_args {
764 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
765 };
766 struct getattrlist_args {
767 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
768 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
769 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
770 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
771 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
772 };
773 struct setattrlist_args {
774 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
775 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
776 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
777 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
778 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
779 };
780 struct getdirentriesattr_args {
781 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
782 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
783 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
784 char buffersize_l_[PADL_(user_size_t)]; user_size_t buffersize; char buffersize_r_[PADR_(user_size_t)];
785 char count_l_[PADL_(user_addr_t)]; user_addr_t count; char count_r_[PADR_(user_addr_t)];
786 char basep_l_[PADL_(user_addr_t)]; user_addr_t basep; char basep_r_[PADR_(user_addr_t)];
787 char newstate_l_[PADL_(user_addr_t)]; user_addr_t newstate; char newstate_r_[PADR_(user_addr_t)];
788 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
789 };
790 struct exchangedata_args {
791 char path1_l_[PADL_(user_addr_t)]; user_addr_t path1; char path1_r_[PADR_(user_addr_t)];
792 char path2_l_[PADL_(user_addr_t)]; user_addr_t path2; char path2_r_[PADR_(user_addr_t)];
793 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
794 };
795 #ifdef __APPLE_API_OBSOLETE
796 struct checkuseraccess_args {
797 char path_l_[PADL_(const char *)]; const char * path; char path_r_[PADR_(const char *)];
798 char userid_l_[PADL_(uid_t)]; uid_t userid; char userid_r_[PADR_(uid_t)];
799 char groups_l_[PADL_(gid_t *)]; gid_t * groups; char groups_r_[PADR_(gid_t *)];
800 char ngroups_l_[PADL_(int)]; int ngroups; char ngroups_r_[PADR_(int)];
801 char accessrequired_l_[PADL_(int)]; int accessrequired; char accessrequired_r_[PADR_(int)];
802 char options_l_[PADL_(u_long)]; u_long options; char options_r_[PADR_(u_long)];
803 };
804 #else
805 #endif /* __APPLE_API_OBSOLETE */
806 struct searchfs_args {
807 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
808 char searchblock_l_[PADL_(user_addr_t)]; user_addr_t searchblock; char searchblock_r_[PADR_(user_addr_t)];
809 char nummatches_l_[PADL_(user_addr_t)]; user_addr_t nummatches; char nummatches_r_[PADR_(user_addr_t)];
810 char scriptcode_l_[PADL_(user_ulong_t)]; user_ulong_t scriptcode; char scriptcode_r_[PADR_(user_ulong_t)];
811 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
812 char state_l_[PADL_(user_addr_t)]; user_addr_t state; char state_r_[PADR_(user_addr_t)];
813 };
814 struct delete_args {
815 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
816 };
817 struct copyfile_args {
818 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
819 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
820 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
821 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
822 };
823 struct poll_args {
824 char fds_l_[PADL_(user_addr_t)]; user_addr_t fds; char fds_r_[PADR_(user_addr_t)];
825 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
826 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
827 };
828 struct watchevent_args {
829 char u_req_l_[PADL_(struct eventreq *)]; struct eventreq * u_req; char u_req_r_[PADR_(struct eventreq *)];
830 char u_eventmask_l_[PADL_(int)]; int u_eventmask; char u_eventmask_r_[PADR_(int)];
831 };
832 struct waitevent_args {
833 char u_req_l_[PADL_(struct eventreq *)]; struct eventreq * u_req; char u_req_r_[PADR_(struct eventreq *)];
834 char tv_l_[PADL_(struct timeval *)]; struct timeval * tv; char tv_r_[PADR_(struct timeval *)];
835 };
836 struct modwatch_args {
837 char u_req_l_[PADL_(struct eventreq *)]; struct eventreq * u_req; char u_req_r_[PADR_(struct eventreq *)];
838 char u_eventmask_l_[PADL_(int)]; int u_eventmask; char u_eventmask_r_[PADR_(int)];
839 };
840 struct getxattr_args {
841 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
842 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
843 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
844 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
845 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
846 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
847 };
848 struct fgetxattr_args {
849 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
850 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
851 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
852 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
853 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
854 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
855 };
856 struct setxattr_args {
857 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
858 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
859 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
860 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
861 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
862 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
863 };
864 struct fsetxattr_args {
865 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
866 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
867 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
868 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
869 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
870 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
871 };
872 struct removexattr_args {
873 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
874 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
875 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
876 };
877 struct fremovexattr_args {
878 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
879 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
880 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
881 };
882 struct listxattr_args {
883 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
884 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
885 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
886 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
887 };
888 struct flistxattr_args {
889 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
890 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
891 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
892 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
893 };
894 struct fsctl_args {
895 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
896 char cmd_l_[PADL_(user_ulong_t)]; user_ulong_t cmd; char cmd_r_[PADR_(user_ulong_t)];
897 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
898 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
899 };
900 struct initgroups_args {
901 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
902 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
903 char gmuid_l_[PADL_(int)]; int gmuid; char gmuid_r_[PADR_(int)];
904 };
905 #if NFSCLIENT
906 struct nfsclnt_args {
907 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
908 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
909 };
910 struct fhopen_args {
911 char u_fhp_l_[PADL_(user_addr_t)]; user_addr_t u_fhp; char u_fhp_r_[PADR_(user_addr_t)];
912 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
913 };
914 #else
915 #endif
916 struct minherit_args {
917 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
918 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
919 char inherit_l_[PADL_(int)]; int inherit; char inherit_r_[PADR_(int)];
920 };
921 struct semsys_args {
922 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
923 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
924 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
925 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
926 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
927 };
928 struct msgsys_args {
929 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
930 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
931 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
932 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
933 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
934 };
935 struct shmsys_args {
936 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
937 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
938 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
939 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
940 };
941 struct semctl_args {
942 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
943 char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
944 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
945 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
946 };
947 struct semget_args {
948 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
949 char nsems_l_[PADL_(int)]; int nsems; char nsems_r_[PADR_(int)];
950 char semflg_l_[PADL_(int)]; int semflg; char semflg_r_[PADR_(int)];
951 };
952 struct semop_args {
953 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
954 char sops_l_[PADL_(user_addr_t)]; user_addr_t sops; char sops_r_[PADR_(user_addr_t)];
955 char nsops_l_[PADL_(int)]; int nsops; char nsops_r_[PADR_(int)];
956 };
957 struct msgctl_args {
958 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
959 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
960 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
961 };
962 struct msgget_args {
963 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
964 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
965 };
966 struct msgsnd_args {
967 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
968 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
969 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
970 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
971 };
972 struct msgrcv_args {
973 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
974 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
975 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
976 char msgtyp_l_[PADL_(user_long_t)]; user_long_t msgtyp; char msgtyp_r_[PADR_(user_long_t)];
977 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
978 };
979 struct shmat_args {
980 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
981 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
982 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
983 };
984 struct shmctl_args {
985 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
986 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
987 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
988 };
989 struct shmdt_args {
990 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
991 };
992 struct shmget_args {
993 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
994 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
995 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
996 };
997 struct shm_open_args {
998 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
999 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
1000 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1001 };
1002 struct shm_unlink_args {
1003 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1004 };
1005 struct sem_open_args {
1006 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1007 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
1008 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1009 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1010 };
1011 struct sem_close_args {
1012 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1013 };
1014 struct sem_unlink_args {
1015 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1016 };
1017 struct sem_wait_args {
1018 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1019 };
1020 struct sem_trywait_args {
1021 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1022 };
1023 struct sem_post_args {
1024 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1025 };
1026 struct sem_getvalue_args {
1027 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1028 char sval_l_[PADL_(user_addr_t)]; user_addr_t sval; char sval_r_[PADR_(user_addr_t)];
1029 };
1030 struct sem_init_args {
1031 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1032 char phsared_l_[PADL_(int)]; int phsared; char phsared_r_[PADR_(int)];
1033 char value_l_[PADL_(u_int)]; u_int value; char value_r_[PADR_(u_int)];
1034 };
1035 struct sem_destroy_args {
1036 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1037 };
1038 struct open_extended_args {
1039 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1040 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1041 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1042 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1043 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1044 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1045 };
1046 struct umask_extended_args {
1047 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
1048 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1049 };
1050 struct stat_extended_args {
1051 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1052 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1053 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1054 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1055 };
1056 struct lstat_extended_args {
1057 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1058 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1059 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1060 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1061 };
1062 struct fstat_extended_args {
1063 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1064 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1065 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1066 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1067 };
1068 struct chmod_extended_args {
1069 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1070 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1071 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1072 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1073 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1074 };
1075 struct fchmod_extended_args {
1076 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1077 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1078 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1079 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1080 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1081 };
1082 struct access_extended_args {
1083 char entries_l_[PADL_(user_addr_t)]; user_addr_t entries; char entries_r_[PADR_(user_addr_t)];
1084 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
1085 char results_l_[PADL_(user_addr_t)]; user_addr_t results; char results_r_[PADR_(user_addr_t)];
1086 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1087 };
1088 struct settid_args {
1089 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1090 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1091 };
1092 struct gettid_args {
1093 char uidp_l_[PADL_(user_addr_t)]; user_addr_t uidp; char uidp_r_[PADR_(user_addr_t)];
1094 char gidp_l_[PADL_(user_addr_t)]; user_addr_t gidp; char gidp_r_[PADR_(user_addr_t)];
1095 };
1096 struct setsgroups_args {
1097 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1098 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1099 };
1100 struct getsgroups_args {
1101 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1102 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1103 };
1104 struct setwgroups_args {
1105 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1106 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1107 };
1108 struct getwgroups_args {
1109 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1110 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1111 };
1112 struct mkfifo_extended_args {
1113 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1114 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1115 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1116 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1117 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1118 };
1119 struct mkdir_extended_args {
1120 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1121 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1122 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1123 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1124 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1125 };
1126 struct identitysvc_args {
1127 char opcode_l_[PADL_(int)]; int opcode; char opcode_r_[PADR_(int)];
1128 char message_l_[PADL_(user_addr_t)]; user_addr_t message; char message_r_[PADR_(user_addr_t)];
1129 };
1130 struct load_shared_file_args {
1131 char filename_l_[PADL_(char *)]; char * filename; char filename_r_[PADR_(char *)];
1132 char mfa_l_[PADL_(caddr_t)]; caddr_t mfa; char mfa_r_[PADR_(caddr_t)];
1133 char mfs_l_[PADL_(u_long)]; u_long mfs; char mfs_r_[PADR_(u_long)];
1134 char ba_l_[PADL_(caddr_t *)]; caddr_t * ba; char ba_r_[PADR_(caddr_t *)];
1135 char map_cnt_l_[PADL_(int)]; int map_cnt; char map_cnt_r_[PADR_(int)];
1136 char mappings_l_[PADL_(sf_mapping_t *)]; sf_mapping_t * mappings; char mappings_r_[PADR_(sf_mapping_t *)];
1137 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
1138 };
1139 struct reset_shared_file_args {
1140 char ba_l_[PADL_(caddr_t *)]; caddr_t * ba; char ba_r_[PADR_(caddr_t *)];
1141 char map_cnt_l_[PADL_(int)]; int map_cnt; char map_cnt_r_[PADR_(int)];
1142 char mappings_l_[PADL_(sf_mapping_t *)]; sf_mapping_t * mappings; char mappings_r_[PADR_(sf_mapping_t *)];
1143 };
1144 struct new_system_shared_regions_args {
1145 register_t dummy;
1146 };
1147 struct shared_region_map_file_np_args {
1148 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1149 char mappingCount_l_[PADL_(uint32_t)]; uint32_t mappingCount; char mappingCount_r_[PADR_(uint32_t)];
1150 char mappings_l_[PADL_(user_addr_t)]; user_addr_t mappings; char mappings_r_[PADR_(user_addr_t)];
1151 char slide_p_l_[PADL_(user_addr_t)]; user_addr_t slide_p; char slide_p_r_[PADR_(user_addr_t)];
1152 };
1153 struct shared_region_make_private_np_args {
1154 char rangeCount_l_[PADL_(uint32_t)]; uint32_t rangeCount; char rangeCount_r_[PADR_(uint32_t)];
1155 char ranges_l_[PADL_(user_addr_t)]; user_addr_t ranges; char ranges_r_[PADR_(user_addr_t)];
1156 };
1157 struct getsid_args {
1158 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1159 };
1160 struct settid_with_pid_args {
1161 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1162 char assume_l_[PADL_(int)]; int assume; char assume_r_[PADR_(int)];
1163 };
1164 struct aio_fsync_args {
1165 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1166 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1167 };
1168 struct aio_return_args {
1169 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1170 };
1171 struct aio_suspend_args {
1172 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1173 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1174 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
1175 };
1176 struct aio_cancel_args {
1177 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1178 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1179 };
1180 struct aio_error_args {
1181 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1182 };
1183 struct aio_read_args {
1184 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1185 };
1186 struct aio_write_args {
1187 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1188 };
1189 struct lio_listio_args {
1190 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1191 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1192 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1193 char sigp_l_[PADL_(user_addr_t)]; user_addr_t sigp; char sigp_r_[PADR_(user_addr_t)];
1194 };
1195 struct mlockall_args {
1196 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1197 };
1198 struct munlockall_args {
1199 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1200 };
1201 struct issetugid_args {
1202 register_t dummy;
1203 };
1204 struct __pthread_kill_args {
1205 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1206 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1207 };
1208 struct pthread_sigmask_args {
1209 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1210 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1211 char oset_l_[PADL_(user_addr_t)]; user_addr_t oset; char oset_r_[PADR_(user_addr_t)];
1212 };
1213 struct sigwait_args {
1214 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1215 char sig_l_[PADL_(user_addr_t)]; user_addr_t sig; char sig_r_[PADR_(user_addr_t)];
1216 };
1217 struct __disable_threadsignal_args {
1218 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1219 };
1220 struct __pthread_markcancel_args {
1221 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1222 };
1223 struct __pthread_canceled_args {
1224 char action_l_[PADL_(int)]; int action; char action_r_[PADR_(int)];
1225 };
1226 struct __semwait_signal_args {
1227 char cond_sem_l_[PADL_(int)]; int cond_sem; char cond_sem_r_[PADR_(int)];
1228 char mutex_sem_l_[PADL_(int)]; int mutex_sem; char mutex_sem_r_[PADR_(int)];
1229 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1230 char relative_l_[PADL_(int)]; int relative; char relative_r_[PADR_(int)];
1231 char tv_sec_l_[PADL_(time_t)]; time_t tv_sec; char tv_sec_r_[PADR_(time_t)];
1232 char tv_nsec_l_[PADL_(int32_t)]; int32_t tv_nsec; char tv_nsec_r_[PADR_(int32_t)];
1233 };
1234 struct utrace_args {
1235 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
1236 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1237 };
1238 struct proc_info_args {
1239 char callnum_l_[PADL_(int32_t)]; int32_t callnum; char callnum_r_[PADR_(int32_t)];
1240 char pid_l_[PADL_(int32_t)]; int32_t pid; char pid_r_[PADR_(int32_t)];
1241 char flavor_l_[PADL_(uint32_t)]; uint32_t flavor; char flavor_r_[PADR_(uint32_t)];
1242 char arg_l_[PADL_(uint64_t)]; uint64_t arg; char arg_r_[PADR_(uint64_t)];
1243 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
1244 char buffersize_l_[PADL_(int32_t)]; int32_t buffersize; char buffersize_r_[PADR_(int32_t)];
1245 };
1246 struct audit_args {
1247 char record_l_[PADL_(user_addr_t)]; user_addr_t record; char record_r_[PADR_(user_addr_t)];
1248 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1249 };
1250 struct auditon_args {
1251 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1252 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
1253 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1254 };
1255 struct getauid_args {
1256 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1257 };
1258 struct setauid_args {
1259 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1260 };
1261 struct getaudit_args {
1262 char auditinfo_l_[PADL_(user_addr_t)]; user_addr_t auditinfo; char auditinfo_r_[PADR_(user_addr_t)];
1263 };
1264 struct setaudit_args {
1265 char auditinfo_l_[PADL_(user_addr_t)]; user_addr_t auditinfo; char auditinfo_r_[PADR_(user_addr_t)];
1266 };
1267 struct getaudit_addr_args {
1268 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1269 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1270 };
1271 struct setaudit_addr_args {
1272 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1273 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1274 };
1275 struct auditctl_args {
1276 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1277 };
1278 struct kqueue_args {
1279 register_t dummy;
1280 };
1281 struct kevent_args {
1282 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1283 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1284 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1285 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1286 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1287 char timeout_l_[PADL_(user_addr_t)]; user_addr_t timeout; char timeout_r_[PADR_(user_addr_t)];
1288 };
1289 struct lchown_args {
1290 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1291 char owner_l_[PADL_(uid_t)]; uid_t owner; char owner_r_[PADR_(uid_t)];
1292 char group_l_[PADL_(gid_t)]; gid_t group; char group_r_[PADR_(gid_t)];
1293 };
1294 struct stack_snapshot_args {
1295 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1296 char tracebuf_l_[PADL_(user_addr_t)]; user_addr_t tracebuf; char tracebuf_r_[PADR_(user_addr_t)];
1297 char tracebuf_size_l_[PADL_(uint32_t)]; uint32_t tracebuf_size; char tracebuf_size_r_[PADR_(uint32_t)];
1298 char options_l_[PADL_(uint32_t)]; uint32_t options; char options_r_[PADR_(uint32_t)];
1299 };
1300 int nosys(struct proc *, struct nosys_args *, int *);
1301 void exit(struct proc *, struct exit_args *, int *);
1302 int fork(struct proc *, struct fork_args *, int *);
1303 int read(struct proc *, struct read_args *, user_ssize_t *);
1304 int write(struct proc *, struct write_args *, user_ssize_t *);
1305 int open(struct proc *, struct open_args *, int *);
1306 int close(struct proc *, struct close_args *, int *);
1307 int wait4(struct proc *, struct wait4_args *, int *);
1308 int link(struct proc *, struct link_args *, int *);
1309 int unlink(struct proc *, struct unlink_args *, int *);
1310 int chdir(struct proc *, struct chdir_args *, int *);
1311 int fchdir(struct proc *, struct fchdir_args *, int *);
1312 int mknod(struct proc *, struct mknod_args *, int *);
1313 int chmod(struct proc *, struct chmod_args *, int *);
1314 int chown(struct proc *, struct chown_args *, int *);
1315 int obreak(struct proc *, struct obreak_args *, int *);
1316 #if COMPAT_GETFSSTAT
1317 int ogetfsstat(struct proc *, struct ogetfsstat_args *, int *);
1318 #else
1319 int getfsstat(struct proc *, struct getfsstat_args *, int *);
1320 #endif
1321 int getpid(struct proc *, struct getpid_args *, int *);
1322 int setuid(struct proc *, struct setuid_args *, int *);
1323 int getuid(struct proc *, struct getuid_args *, int *);
1324 int geteuid(struct proc *, struct geteuid_args *, int *);
1325 int ptrace(struct proc *, struct ptrace_args *, int *);
1326 int recvmsg(struct proc *, struct recvmsg_args *, int *);
1327 int sendmsg(struct proc *, struct sendmsg_args *, int *);
1328 int recvfrom(struct proc *, struct recvfrom_args *, int *);
1329 int accept(struct proc *, struct accept_args *, int *);
1330 int getpeername(struct proc *, struct getpeername_args *, int *);
1331 int getsockname(struct proc *, struct getsockname_args *, int *);
1332 int access(struct proc *, struct access_args *, int *);
1333 int chflags(struct proc *, struct chflags_args *, int *);
1334 int fchflags(struct proc *, struct fchflags_args *, int *);
1335 int sync(struct proc *, struct sync_args *, int *);
1336 int kill(struct proc *, struct kill_args *, int *);
1337 int getppid(struct proc *, struct getppid_args *, int *);
1338 int dup(struct proc *, struct dup_args *, int *);
1339 int pipe(struct proc *, struct pipe_args *, int *);
1340 int getegid(struct proc *, struct getegid_args *, int *);
1341 int profil(struct proc *, struct profil_args *, int *);
1342 int ktrace(struct proc *, struct ktrace_args *, int *);
1343 int sigaction(struct proc *, struct sigaction_args *, int *);
1344 int getgid(struct proc *, struct getgid_args *, int *);
1345 int sigprocmask(struct proc *, struct sigprocmask_args *, int *);
1346 int getlogin(struct proc *, struct getlogin_args *, int *);
1347 int setlogin(struct proc *, struct setlogin_args *, int *);
1348 int acct(struct proc *, struct acct_args *, int *);
1349 int sigpending(struct proc *, struct sigpending_args *, int *);
1350 int sigaltstack(struct proc *, struct sigaltstack_args *, int *);
1351 int ioctl(struct proc *, struct ioctl_args *, int *);
1352 int reboot(struct proc *, struct reboot_args *, int *);
1353 int revoke(struct proc *, struct revoke_args *, int *);
1354 int symlink(struct proc *, struct symlink_args *, int *);
1355 int readlink(struct proc *, struct readlink_args *, int *);
1356 int execve(struct proc *, struct execve_args *, int *);
1357 int umask(struct proc *, struct umask_args *, int *);
1358 int chroot(struct proc *, struct chroot_args *, int *);
1359 int msync(struct proc *, struct msync_args *, int *);
1360 int vfork(struct proc *, struct vfork_args *, int *);
1361 int sbrk(struct proc *, struct sbrk_args *, int *);
1362 int sstk(struct proc *, struct sstk_args *, int *);
1363 int ovadvise(struct proc *, struct ovadvise_args *, int *);
1364 int munmap(struct proc *, struct munmap_args *, int *);
1365 int mprotect(struct proc *, struct mprotect_args *, int *);
1366 int madvise(struct proc *, struct madvise_args *, int *);
1367 int mincore(struct proc *, struct mincore_args *, int *);
1368 int getgroups(struct proc *, struct getgroups_args *, int *);
1369 int setgroups(struct proc *, struct setgroups_args *, int *);
1370 int getpgrp(struct proc *, struct getpgrp_args *, int *);
1371 int setpgid(struct proc *, struct setpgid_args *, int *);
1372 int setitimer(struct proc *, struct setitimer_args *, int *);
1373 int swapon(struct proc *, struct swapon_args *, int *);
1374 int getitimer(struct proc *, struct getitimer_args *, int *);
1375 int getdtablesize(struct proc *, struct getdtablesize_args *, int *);
1376 int dup2(struct proc *, struct dup2_args *, int *);
1377 int fcntl(struct proc *, struct fcntl_args *, int *);
1378 int select(struct proc *, struct select_args *, int *);
1379 int fsync(struct proc *, struct fsync_args *, int *);
1380 int setpriority(struct proc *, struct setpriority_args *, int *);
1381 int socket(struct proc *, struct socket_args *, int *);
1382 int connect(struct proc *, struct connect_args *, int *);
1383 int getpriority(struct proc *, struct getpriority_args *, int *);
1384 int bind(struct proc *, struct bind_args *, int *);
1385 int setsockopt(struct proc *, struct setsockopt_args *, int *);
1386 int listen(struct proc *, struct listen_args *, int *);
1387 int sigsuspend(struct proc *, struct sigsuspend_args *, int *);
1388 int gettimeofday(struct proc *, struct gettimeofday_args *, int *);
1389 int getrusage(struct proc *, struct getrusage_args *, int *);
1390 int getsockopt(struct proc *, struct getsockopt_args *, int *);
1391 int readv(struct proc *, struct readv_args *, user_ssize_t *);
1392 int writev(struct proc *, struct writev_args *, user_ssize_t *);
1393 int settimeofday(struct proc *, struct settimeofday_args *, int *);
1394 int fchown(struct proc *, struct fchown_args *, int *);
1395 int fchmod(struct proc *, struct fchmod_args *, int *);
1396 int rename(struct proc *, struct rename_args *, int *);
1397 int flock(struct proc *, struct flock_args *, int *);
1398 int mkfifo(struct proc *, struct mkfifo_args *, int *);
1399 int sendto(struct proc *, struct sendto_args *, int *);
1400 int shutdown(struct proc *, struct shutdown_args *, int *);
1401 int socketpair(struct proc *, struct socketpair_args *, int *);
1402 int mkdir(struct proc *, struct mkdir_args *, int *);
1403 int rmdir(struct proc *, struct rmdir_args *, int *);
1404 int utimes(struct proc *, struct utimes_args *, int *);
1405 int futimes(struct proc *, struct futimes_args *, int *);
1406 int adjtime(struct proc *, struct adjtime_args *, int *);
1407 int setsid(struct proc *, struct setsid_args *, int *);
1408 int getpgid(struct proc *, struct getpgid_args *, int *);
1409 int setprivexec(struct proc *, struct setprivexec_args *, int *);
1410 int pread(struct proc *, struct pread_args *, user_ssize_t *);
1411 int pwrite(struct proc *, struct pwrite_args *, user_ssize_t *);
1412 #if NFSSERVER
1413 int nfssvc(struct proc *, struct nfssvc_args *, int *);
1414 #else
1415 #endif
1416 int statfs(struct proc *, struct statfs_args *, int *);
1417 int fstatfs(struct proc *, struct fstatfs_args *, int *);
1418 int unmount(struct proc *, struct unmount_args *, int *);
1419 #if NFSCLIENT
1420 int getfh(struct proc *, struct getfh_args *, int *);
1421 #else
1422 #endif
1423 int quotactl(struct proc *, struct quotactl_args *, int *);
1424 int mount(struct proc *, struct mount_args *, int *);
1425 int waitid(struct proc *, struct waitid_args *, int *);
1426 int add_profil(struct proc *, struct add_profil_args *, int *);
1427 int kdebug_trace(struct proc *, struct kdebug_trace_args *, int *);
1428 int setgid(struct proc *, struct setgid_args *, int *);
1429 int setegid(struct proc *, struct setegid_args *, int *);
1430 int seteuid(struct proc *, struct seteuid_args *, int *);
1431 int sigreturn(struct proc *, struct sigreturn_args *, int *);
1432 int chud(struct proc *, struct chud_args *, int *);
1433 int stat(struct proc *, struct stat_args *, int *);
1434 int fstat(struct proc *, struct fstat_args *, int *);
1435 int lstat(struct proc *, struct lstat_args *, int *);
1436 int pathconf(struct proc *, struct pathconf_args *, int *);
1437 int fpathconf(struct proc *, struct fpathconf_args *, int *);
1438 #if COMPAT_GETFSSTAT
1439 int getfsstat(struct proc *, struct getfsstat_args *, int *);
1440 #else
1441 #endif
1442 int getrlimit(struct proc *, struct getrlimit_args *, int *);
1443 int setrlimit(struct proc *, struct setrlimit_args *, int *);
1444 int getdirentries(struct proc *, struct getdirentries_args *, int *);
1445 int mmap(struct proc *, struct mmap_args *, user_addr_t *);
1446 int lseek(struct proc *, struct lseek_args *, off_t *);
1447 int truncate(struct proc *, struct truncate_args *, int *);
1448 int ftruncate(struct proc *, struct ftruncate_args *, int *);
1449 int __sysctl(struct proc *, struct __sysctl_args *, int *);
1450 int mlock(struct proc *, struct mlock_args *, int *);
1451 int munlock(struct proc *, struct munlock_args *, int *);
1452 int undelete(struct proc *, struct undelete_args *, int *);
1453 int ATsocket(struct proc *, struct ATsocket_args *, int *);
1454 int ATgetmsg(struct proc *, struct ATgetmsg_args *, int *);
1455 int ATputmsg(struct proc *, struct ATputmsg_args *, int *);
1456 int ATPsndreq(struct proc *, struct ATPsndreq_args *, int *);
1457 int ATPsndrsp(struct proc *, struct ATPsndrsp_args *, int *);
1458 int ATPgetreq(struct proc *, struct ATPgetreq_args *, int *);
1459 int ATPgetrsp(struct proc *, struct ATPgetrsp_args *, int *);
1460 int kqueue_from_portset_np(struct proc *, struct kqueue_from_portset_np_args *, int *);
1461 int kqueue_portset_np(struct proc *, struct kqueue_portset_np_args *, int *);
1462 int getattrlist(struct proc *, struct getattrlist_args *, int *);
1463 int setattrlist(struct proc *, struct setattrlist_args *, int *);
1464 int getdirentriesattr(struct proc *, struct getdirentriesattr_args *, int *);
1465 int exchangedata(struct proc *, struct exchangedata_args *, int *);
1466 #ifdef __APPLE_API_OBSOLETE
1467 int checkuseraccess(struct proc *, struct checkuseraccess_args *, int *);
1468 #else
1469 #endif /* __APPLE_API_OBSOLETE */
1470 int searchfs(struct proc *, struct searchfs_args *, int *);
1471 int delete(struct proc *, struct delete_args *, int *);
1472 int copyfile(struct proc *, struct copyfile_args *, int *);
1473 int poll(struct proc *, struct poll_args *, int *);
1474 int watchevent(struct proc *, struct watchevent_args *, int *);
1475 int waitevent(struct proc *, struct waitevent_args *, int *);
1476 int modwatch(struct proc *, struct modwatch_args *, int *);
1477 int getxattr(struct proc *, struct getxattr_args *, user_ssize_t *);
1478 int fgetxattr(struct proc *, struct fgetxattr_args *, user_ssize_t *);
1479 int setxattr(struct proc *, struct setxattr_args *, int *);
1480 int fsetxattr(struct proc *, struct fsetxattr_args *, int *);
1481 int removexattr(struct proc *, struct removexattr_args *, int *);
1482 int fremovexattr(struct proc *, struct fremovexattr_args *, int *);
1483 int listxattr(struct proc *, struct listxattr_args *, user_ssize_t *);
1484 int flistxattr(struct proc *, struct flistxattr_args *, user_ssize_t *);
1485 int fsctl(struct proc *, struct fsctl_args *, int *);
1486 int initgroups(struct proc *, struct initgroups_args *, int *);
1487 #if NFSCLIENT
1488 int nfsclnt(struct proc *, struct nfsclnt_args *, int *);
1489 int fhopen(struct proc *, struct fhopen_args *, int *);
1490 #else
1491 #endif
1492 int minherit(struct proc *, struct minherit_args *, int *);
1493 int semsys(struct proc *, struct semsys_args *, int *);
1494 int msgsys(struct proc *, struct msgsys_args *, int *);
1495 int shmsys(struct proc *, struct shmsys_args *, int *);
1496 int semctl(struct proc *, struct semctl_args *, int *);
1497 int semget(struct proc *, struct semget_args *, int *);
1498 int semop(struct proc *, struct semop_args *, int *);
1499 int msgctl(struct proc *, struct msgctl_args *, int *);
1500 int msgget(struct proc *, struct msgget_args *, int *);
1501 int msgsnd(struct proc *, struct msgsnd_args *, int *);
1502 int msgrcv(struct proc *, struct msgrcv_args *, user_ssize_t *);
1503 int shmat(struct proc *, struct shmat_args *, int *);
1504 int shmctl(struct proc *, struct shmctl_args *, int *);
1505 int shmdt(struct proc *, struct shmdt_args *, int *);
1506 int shmget(struct proc *, struct shmget_args *, int *);
1507 int shm_open(struct proc *, struct shm_open_args *, int *);
1508 int shm_unlink(struct proc *, struct shm_unlink_args *, int *);
1509 int sem_open(struct proc *, struct sem_open_args *, user_addr_t *);
1510 int sem_close(struct proc *, struct sem_close_args *, int *);
1511 int sem_unlink(struct proc *, struct sem_unlink_args *, int *);
1512 int sem_wait(struct proc *, struct sem_wait_args *, int *);
1513 int sem_trywait(struct proc *, struct sem_trywait_args *, int *);
1514 int sem_post(struct proc *, struct sem_post_args *, int *);
1515 int sem_getvalue(struct proc *, struct sem_getvalue_args *, int *);
1516 int sem_init(struct proc *, struct sem_init_args *, int *);
1517 int sem_destroy(struct proc *, struct sem_destroy_args *, int *);
1518 int open_extended(struct proc *, struct open_extended_args *, int *);
1519 int umask_extended(struct proc *, struct umask_extended_args *, int *);
1520 int stat_extended(struct proc *, struct stat_extended_args *, int *);
1521 int lstat_extended(struct proc *, struct lstat_extended_args *, int *);
1522 int fstat_extended(struct proc *, struct fstat_extended_args *, int *);
1523 int chmod_extended(struct proc *, struct chmod_extended_args *, int *);
1524 int fchmod_extended(struct proc *, struct fchmod_extended_args *, int *);
1525 int access_extended(struct proc *, struct access_extended_args *, int *);
1526 int settid(struct proc *, struct settid_args *, int *);
1527 int gettid(struct proc *, struct gettid_args *, int *);
1528 int setsgroups(struct proc *, struct setsgroups_args *, int *);
1529 int getsgroups(struct proc *, struct getsgroups_args *, int *);
1530 int setwgroups(struct proc *, struct setwgroups_args *, int *);
1531 int getwgroups(struct proc *, struct getwgroups_args *, int *);
1532 int mkfifo_extended(struct proc *, struct mkfifo_extended_args *, int *);
1533 int mkdir_extended(struct proc *, struct mkdir_extended_args *, int *);
1534 int identitysvc(struct proc *, struct identitysvc_args *, int *);
1535 int load_shared_file(struct proc *, struct load_shared_file_args *, int *);
1536 int reset_shared_file(struct proc *, struct reset_shared_file_args *, int *);
1537 int new_system_shared_regions(struct proc *, struct new_system_shared_regions_args *, int *);
1538 int shared_region_map_file_np(struct proc *, struct shared_region_map_file_np_args *, int *);
1539 int shared_region_make_private_np(struct proc *, struct shared_region_make_private_np_args *, int *);
1540 int getsid(struct proc *, struct getsid_args *, int *);
1541 int settid_with_pid(struct proc *, struct settid_with_pid_args *, int *);
1542 int aio_fsync(struct proc *, struct aio_fsync_args *, int *);
1543 int aio_return(struct proc *, struct aio_return_args *, user_ssize_t *);
1544 int aio_suspend(struct proc *, struct aio_suspend_args *, int *);
1545 int aio_cancel(struct proc *, struct aio_cancel_args *, int *);
1546 int aio_error(struct proc *, struct aio_error_args *, int *);
1547 int aio_read(struct proc *, struct aio_read_args *, int *);
1548 int aio_write(struct proc *, struct aio_write_args *, int *);
1549 int lio_listio(struct proc *, struct lio_listio_args *, int *);
1550 int mlockall(struct proc *, struct mlockall_args *, int *);
1551 int munlockall(struct proc *, struct munlockall_args *, int *);
1552 int issetugid(struct proc *, struct issetugid_args *, int *);
1553 int __pthread_kill(struct proc *, struct __pthread_kill_args *, int *);
1554 int pthread_sigmask(struct proc *, struct pthread_sigmask_args *, int *);
1555 int sigwait(struct proc *, struct sigwait_args *, int *);
1556 int __disable_threadsignal(struct proc *, struct __disable_threadsignal_args *, int *);
1557 int __pthread_markcancel(struct proc *, struct __pthread_markcancel_args *, int *);
1558 int __pthread_canceled(struct proc *, struct __pthread_canceled_args *, int *);
1559 int __semwait_signal(struct proc *, struct __semwait_signal_args *, int *);
1560 int utrace(struct proc *, struct utrace_args *, int *);
1561 int proc_info(struct proc *, struct proc_info_args *, int *);
1562 int audit(struct proc *, struct audit_args *, int *);
1563 int auditon(struct proc *, struct auditon_args *, int *);
1564 int getauid(struct proc *, struct getauid_args *, int *);
1565 int setauid(struct proc *, struct setauid_args *, int *);
1566 int getaudit(struct proc *, struct getaudit_args *, int *);
1567 int setaudit(struct proc *, struct setaudit_args *, int *);
1568 int getaudit_addr(struct proc *, struct getaudit_addr_args *, int *);
1569 int setaudit_addr(struct proc *, struct setaudit_addr_args *, int *);
1570 int auditctl(struct proc *, struct auditctl_args *, int *);
1571 int kqueue(struct proc *, struct kqueue_args *, int *);
1572 int kevent(struct proc *, struct kevent_args *, int *);
1573 int lchown(struct proc *, struct lchown_args *, int *);
1574 int stack_snapshot(struct proc *, struct stack_snapshot_args *, int *);
1575
1576 __END_DECLS
1577 #undef PAD_
1578 #undef PADL_
1579 #undef PADR_
1580
1581 #endif /* __APPLE_API_PRIVATE */
1582 #endif /* KERNEL */
1583
1584 #endif /* !_SYS_SYSPROTO_H_ */