1/*
2 * Copyright (c) 2004-2008 Apple 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 /bsd.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_region.h>
46
47#ifdef KERNEL
48#ifdef __APPLE_API_PRIVATE
49/*
50 * The kernel may support multiple userspace ABIs, and must use
51 * argument structures with elements large enough for any of them.
52*/
53
54#if CONFIG_REQUIRES_U32_MUNGING
55#define PAD_(t) (sizeof(uint64_t) <= sizeof(t) \
56 ? 0 : sizeof(uint64_t) - sizeof(t))
57#else
58#define PAD_(t) (sizeof(uint32_t) <= sizeof(t) \
59 ? 0 : sizeof(uint32_t) - sizeof(t))
60#endif
61#if BYTE_ORDER == LITTLE_ENDIAN
62#define PADL_(t) 0
63#define PADR_(t) PAD_(t)
64#else
65#define PADL_(t) PAD_(t)
66#define PADR_(t) 0
67#endif
68
69__BEGIN_DECLS
70#include <sys/munge.h>
71
72struct nosys_args {
73 int32_t dummy;
74};
75struct exit_args {
76 char rval_l_[PADL_(int)]; int rval; char rval_r_[PADR_(int)];
77};
78struct fork_args {
79 int32_t dummy;
80};
81struct read_args {
82 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
83 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
84 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
85};
86struct write_args {
87 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
88 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
89 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
90};
91struct open_args {
92 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
93 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
94 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
95};
96struct close_args {
97 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
98};
99struct wait4_args {
100 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
101 char status_l_[PADL_(user_addr_t)]; user_addr_t status; char status_r_[PADR_(user_addr_t)];
102 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
103 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
104};
105struct link_args {
106 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
107 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
108};
109struct unlink_args {
110 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
111};
112struct chdir_args {
113 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
114};
115struct fchdir_args {
116 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
117};
118struct mknod_args {
119 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
120 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
121 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
122};
123struct chmod_args {
124 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
125 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
126};
127struct chown_args {
128 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
129 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
130 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
131};
132struct getfsstat_args {
133 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
134 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
135 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
136};
137struct getpid_args {
138 int32_t dummy;
139};
140struct setuid_args {
141 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
142};
143struct getuid_args {
144 int32_t dummy;
145};
146struct geteuid_args {
147 int32_t dummy;
148};
149struct ptrace_args {
150 char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
151 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
152 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
153 char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
154};
155#if SOCKETS
156struct recvmsg_args {
157 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
158 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
159 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
160};
161struct sendmsg_args {
162 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
163 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
164 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
165};
166struct recvfrom_args {
167 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
168 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
169 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
170 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
171 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
172 char fromlenaddr_l_[PADL_(user_addr_t)]; user_addr_t fromlenaddr; char fromlenaddr_r_[PADR_(user_addr_t)];
173};
174struct accept_args {
175 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
176 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
177 char anamelen_l_[PADL_(user_addr_t)]; user_addr_t anamelen; char anamelen_r_[PADR_(user_addr_t)];
178};
179struct getpeername_args {
180 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
181 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
182 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
183};
184struct getsockname_args {
185 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
186 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
187 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
188};
189#else
190#endif /* SOCKETS */
191struct access_args {
192 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
193 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
194};
195struct chflags_args {
196 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
197 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
198};
199struct fchflags_args {
200 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
201 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
202};
203struct sync_args {
204 int32_t dummy;
205};
206struct kill_args {
207 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
208 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
209 char posix_l_[PADL_(int)]; int posix; char posix_r_[PADR_(int)];
210};
211struct crossarch_trap_args {
212 char name_l_[PADL_(uint32_t)]; uint32_t name; char name_r_[PADR_(uint32_t)];
213};
214struct getppid_args {
215 int32_t dummy;
216};
217struct dup_args {
218 char fd_l_[PADL_(u_int)]; u_int fd; char fd_r_[PADR_(u_int)];
219};
220struct pipe_args {
221 int32_t dummy;
222};
223struct getegid_args {
224 int32_t dummy;
225};
226struct sigaction_args {
227 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
228 char nsa_l_[PADL_(user_addr_t)]; user_addr_t nsa; char nsa_r_[PADR_(user_addr_t)];
229 char osa_l_[PADL_(user_addr_t)]; user_addr_t osa; char osa_r_[PADR_(user_addr_t)];
230};
231struct getgid_args {
232 int32_t dummy;
233};
234struct sigprocmask_args {
235 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
236 char mask_l_[PADL_(user_addr_t)]; user_addr_t mask; char mask_r_[PADR_(user_addr_t)];
237 char omask_l_[PADL_(user_addr_t)]; user_addr_t omask; char omask_r_[PADR_(user_addr_t)];
238};
239struct getlogin_args {
240 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
241 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
242};
243struct setlogin_args {
244 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
245};
246struct acct_args {
247 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
248};
249struct sigpending_args {
250 char osv_l_[PADL_(user_addr_t)]; user_addr_t osv; char osv_r_[PADR_(user_addr_t)];
251};
252struct sigaltstack_args {
253 char nss_l_[PADL_(user_addr_t)]; user_addr_t nss; char nss_r_[PADR_(user_addr_t)];
254 char oss_l_[PADL_(user_addr_t)]; user_addr_t oss; char oss_r_[PADR_(user_addr_t)];
255};
256struct ioctl_args {
257 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
258 char com_l_[PADL_(user_ulong_t)]; user_ulong_t com; char com_r_[PADR_(user_ulong_t)];
259 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
260};
261struct reboot_args {
262 char opt_l_[PADL_(int)]; int opt; char opt_r_[PADR_(int)];
263 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
264};
265struct revoke_args {
266 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
267};
268struct symlink_args {
269 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
270 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
271};
272struct readlink_args {
273 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
274 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
275 char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
276};
277struct execve_args {
278 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
279 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
280 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
281};
282struct umask_args {
283 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
284};
285struct chroot_args {
286 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
287};
288struct msync_args {
289 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
290 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
291 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
292};
293#if CONFIG_VFORK
294struct vfork_args {
295 int32_t dummy;
296};
297#else
298#endif
299struct munmap_args {
300 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
301 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
302};
303struct mprotect_args {
304 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
305 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
306 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
307};
308struct madvise_args {
309 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
310 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
311 char behav_l_[PADL_(int)]; int behav; char behav_r_[PADR_(int)];
312};
313struct mincore_args {
314 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
315 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
316 char vec_l_[PADL_(user_addr_t)]; user_addr_t vec; char vec_r_[PADR_(user_addr_t)];
317};
318struct getgroups_args {
319 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
320 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
321};
322struct setgroups_args {
323 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
324 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
325};
326struct getpgrp_args {
327 int32_t dummy;
328};
329struct setpgid_args {
330 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
331 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
332};
333struct setitimer_args {
334 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
335 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
336 char oitv_l_[PADL_(user_addr_t)]; user_addr_t oitv; char oitv_r_[PADR_(user_addr_t)];
337};
338struct swapon_args {
339 int32_t dummy;
340};
341struct getitimer_args {
342 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
343 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
344};
345struct getdtablesize_args {
346 int32_t dummy;
347};
348struct dup2_args {
349 char from_l_[PADL_(u_int)]; u_int from; char from_r_[PADR_(u_int)];
350 char to_l_[PADL_(u_int)]; u_int to; char to_r_[PADR_(u_int)];
351};
352struct fcntl_args {
353 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
354 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
355 char arg_l_[PADL_(user_long_t)]; user_long_t arg; char arg_r_[PADR_(user_long_t)];
356};
357struct select_args {
358 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
359 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
360 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
361 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
362 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
363};
364struct fsync_args {
365 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
366};
367struct setpriority_args {
368 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
369 char who_l_[PADL_(id_t)]; id_t who; char who_r_[PADR_(id_t)];
370 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
371};
372#if SOCKETS
373struct socket_args {
374 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
375 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
376 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
377};
378struct connect_args {
379 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
380 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
381 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
382};
383#else
384#endif /* SOCKETS */
385struct getpriority_args {
386 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
387 char who_l_[PADL_(id_t)]; id_t who; char who_r_[PADR_(id_t)];
388};
389#if SOCKETS
390struct bind_args {
391 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
392 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
393 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
394};
395struct setsockopt_args {
396 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
397 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
398 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
399 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
400 char valsize_l_[PADL_(socklen_t)]; socklen_t valsize; char valsize_r_[PADR_(socklen_t)];
401};
402struct listen_args {
403 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
404 char backlog_l_[PADL_(int)]; int backlog; char backlog_r_[PADR_(int)];
405};
406#else
407#endif /* SOCKETS */
408struct sigsuspend_args {
409 char mask_l_[PADL_(sigset_t)]; sigset_t mask; char mask_r_[PADR_(sigset_t)];
410};
411#if SOCKETS
412#else
413#endif /* SOCKETS */
414struct gettimeofday_args {
415 char tp_l_[PADL_(user_addr_t)]; user_addr_t tp; char tp_r_[PADR_(user_addr_t)];
416 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
417 char mach_absolute_time_l_[PADL_(user_addr_t)]; user_addr_t mach_absolute_time; char mach_absolute_time_r_[PADR_(user_addr_t)];
418};
419struct getrusage_args {
420 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
421 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
422};
423#if SOCKETS
424struct getsockopt_args {
425 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
426 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
427 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
428 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
429 char avalsize_l_[PADL_(user_addr_t)]; user_addr_t avalsize; char avalsize_r_[PADR_(user_addr_t)];
430};
431#else
432#endif /* SOCKETS */
433struct readv_args {
434 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
435 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
436 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
437};
438struct writev_args {
439 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
440 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
441 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
442};
443struct settimeofday_args {
444 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
445 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
446};
447struct fchown_args {
448 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
449 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
450 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
451};
452struct fchmod_args {
453 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
454 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
455};
456struct setreuid_args {
457 char ruid_l_[PADL_(uid_t)]; uid_t ruid; char ruid_r_[PADR_(uid_t)];
458 char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
459};
460struct setregid_args {
461 char rgid_l_[PADL_(gid_t)]; gid_t rgid; char rgid_r_[PADR_(gid_t)];
462 char egid_l_[PADL_(gid_t)]; gid_t egid; char egid_r_[PADR_(gid_t)];
463};
464struct rename_args {
465 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
466 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
467};
468struct flock_args {
469 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
470 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
471};
472struct mkfifo_args {
473 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
474 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
475};
476#if SOCKETS
477struct sendto_args {
478 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
479 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
480 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
481 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
482 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
483 char tolen_l_[PADL_(socklen_t)]; socklen_t tolen; char tolen_r_[PADR_(socklen_t)];
484};
485struct shutdown_args {
486 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
487 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
488};
489struct socketpair_args {
490 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
491 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
492 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
493 char rsv_l_[PADL_(user_addr_t)]; user_addr_t rsv; char rsv_r_[PADR_(user_addr_t)];
494};
495#else
496#endif /* SOCKETS */
497struct mkdir_args {
498 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
499 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
500};
501struct rmdir_args {
502 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
503};
504struct utimes_args {
505 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
506 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
507};
508struct futimes_args {
509 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
510 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
511};
512struct adjtime_args {
513 char delta_l_[PADL_(user_addr_t)]; user_addr_t delta; char delta_r_[PADR_(user_addr_t)];
514 char olddelta_l_[PADL_(user_addr_t)]; user_addr_t olddelta; char olddelta_r_[PADR_(user_addr_t)];
515};
516struct gethostuuid_args {
517 char uuid_buf_l_[PADL_(user_addr_t)]; user_addr_t uuid_buf; char uuid_buf_r_[PADR_(user_addr_t)];
518 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
519};
520struct setsid_args {
521 int32_t dummy;
522};
523struct getpgid_args {
524 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
525};
526struct setprivexec_args {
527 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
528};
529struct pread_args {
530 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
531 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
532 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
533 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
534};
535struct pwrite_args {
536 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
537 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
538 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
539 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
540};
541#if NFSSERVER /* XXX */
542struct nfssvc_args {
543 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
544 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
545};
546#else
547#endif
548struct statfs_args {
549 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
550 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
551};
552struct fstatfs_args {
553 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
554 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
555};
556struct unmount_args {
557 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
558 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
559};
560#if NFSSERVER /* XXX */
561struct getfh_args {
562 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
563 char fhp_l_[PADL_(user_addr_t)]; user_addr_t fhp; char fhp_r_[PADR_(user_addr_t)];
564};
565#else
566#endif
567struct quotactl_args {
568 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
569 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
570 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
571 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
572};
573struct mount_args {
574 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
575 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
576 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
577 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
578};
579struct csops_args {
580 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
581 char ops_l_[PADL_(uint32_t)]; uint32_t ops; char ops_r_[PADR_(uint32_t)];
582 char useraddr_l_[PADL_(user_addr_t)]; user_addr_t useraddr; char useraddr_r_[PADR_(user_addr_t)];
583 char usersize_l_[PADL_(user_size_t)]; user_size_t usersize; char usersize_r_[PADR_(user_size_t)];
584};
585struct csops_audittoken_args {
586 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
587 char ops_l_[PADL_(uint32_t)]; uint32_t ops; char ops_r_[PADR_(uint32_t)];
588 char useraddr_l_[PADL_(user_addr_t)]; user_addr_t useraddr; char useraddr_r_[PADR_(user_addr_t)];
589 char usersize_l_[PADL_(user_size_t)]; user_size_t usersize; char usersize_r_[PADR_(user_size_t)];
590 char uaudittoken_l_[PADL_(user_addr_t)]; user_addr_t uaudittoken; char uaudittoken_r_[PADR_(user_addr_t)];
591};
592struct waitid_args {
593 char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
594 char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)];
595 char infop_l_[PADL_(user_addr_t)]; user_addr_t infop; char infop_r_[PADR_(user_addr_t)];
596 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
597};
598struct kdebug_typefilter_args {
599 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
600 char size_l_[PADL_(user_addr_t)]; user_addr_t size; char size_r_[PADR_(user_addr_t)];
601};
602struct kdebug_trace_string_args {
603 char debugid_l_[PADL_(uint32_t)]; uint32_t debugid; char debugid_r_[PADR_(uint32_t)];
604 char str_id_l_[PADL_(uint64_t)]; uint64_t str_id; char str_id_r_[PADR_(uint64_t)];
605 char str_l_[PADL_(user_addr_t)]; user_addr_t str; char str_r_[PADR_(user_addr_t)];
606};
607struct kdebug_trace64_args {
608 char code_l_[PADL_(uint32_t)]; uint32_t code; char code_r_[PADR_(uint32_t)];
609 char arg1_l_[PADL_(uint64_t)]; uint64_t arg1; char arg1_r_[PADR_(uint64_t)];
610 char arg2_l_[PADL_(uint64_t)]; uint64_t arg2; char arg2_r_[PADR_(uint64_t)];
611 char arg3_l_[PADL_(uint64_t)]; uint64_t arg3; char arg3_r_[PADR_(uint64_t)];
612 char arg4_l_[PADL_(uint64_t)]; uint64_t arg4; char arg4_r_[PADR_(uint64_t)];
613};
614struct kdebug_trace_args {
615 char code_l_[PADL_(uint32_t)]; uint32_t code; char code_r_[PADR_(uint32_t)];
616 char arg1_l_[PADL_(user_ulong_t)]; user_ulong_t arg1; char arg1_r_[PADR_(user_ulong_t)];
617 char arg2_l_[PADL_(user_ulong_t)]; user_ulong_t arg2; char arg2_r_[PADR_(user_ulong_t)];
618 char arg3_l_[PADL_(user_ulong_t)]; user_ulong_t arg3; char arg3_r_[PADR_(user_ulong_t)];
619 char arg4_l_[PADL_(user_ulong_t)]; user_ulong_t arg4; char arg4_r_[PADR_(user_ulong_t)];
620};
621struct setgid_args {
622 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
623};
624struct setegid_args {
625 char egid_l_[PADL_(gid_t)]; gid_t egid; char egid_r_[PADR_(gid_t)];
626};
627struct seteuid_args {
628 char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
629};
630struct 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 char token_l_[PADL_(user_addr_t)]; user_addr_t token; char token_r_[PADR_(user_addr_t)];
634};
635struct panic_with_data_args {
636 char uuid_l_[PADL_(user_addr_t)]; user_addr_t uuid; char uuid_r_[PADR_(user_addr_t)];
637 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
638 char len_l_[PADL_(uint32_t)]; uint32_t len; char len_r_[PADR_(uint32_t)];
639 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
640 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
641};
642struct thread_selfcounts_args {
643 char kind_l_[PADL_(uint32_t)]; uint32_t kind; char kind_r_[PADR_(uint32_t)];
644 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
645 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
646};
647struct fdatasync_args {
648 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
649};
650struct stat_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};
654struct fstat_args {
655 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
656 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
657};
658struct lstat_args {
659 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
660 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
661};
662struct pathconf_args {
663 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
664 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
665};
666struct fpathconf_args {
667 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
668 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
669};
670struct 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};
674struct 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};
678struct 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};
684struct 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};
692struct 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};
697struct 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};
701struct 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};
705struct 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};
713struct 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};
717struct 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};
721struct undelete_args {
722 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
723};
724struct open_dprotected_np_args {
725 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
726 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
727 char class_l_[PADL_(int)]; int class; char class_r_[PADR_(int)];
728 char dpflags_l_[PADL_(int)]; int dpflags; char dpflags_r_[PADR_(int)];
729 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
730};
731struct fsgetpath_ext_args {
732 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
733 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
734 char fsid_l_[PADL_(user_addr_t)]; user_addr_t fsid; char fsid_r_[PADR_(user_addr_t)];
735 char objid_l_[PADL_(uint64_t)]; uint64_t objid; char objid_r_[PADR_(uint64_t)];
736 char options_l_[PADL_(uint32_t)]; uint32_t options; char options_r_[PADR_(uint32_t)];
737};
738struct openat_dprotected_np_args {
739 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
740 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
741 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
742 char class_l_[PADL_(int)]; int class; char class_r_[PADR_(int)];
743 char dpflags_l_[PADL_(int)]; int dpflags; char dpflags_r_[PADR_(int)];
744 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
745 char authfd_l_[PADL_(int)]; int authfd; char authfd_r_[PADR_(int)];
746};
747struct getattrlist_args {
748 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
749 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
750 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
751 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
752 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
753};
754struct setattrlist_args {
755 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
756 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
757 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
758 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
759 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
760};
761struct getdirentriesattr_args {
762 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
763 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
764 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
765 char buffersize_l_[PADL_(user_size_t)]; user_size_t buffersize; char buffersize_r_[PADR_(user_size_t)];
766 char count_l_[PADL_(user_addr_t)]; user_addr_t count; char count_r_[PADR_(user_addr_t)];
767 char basep_l_[PADL_(user_addr_t)]; user_addr_t basep; char basep_r_[PADR_(user_addr_t)];
768 char newstate_l_[PADL_(user_addr_t)]; user_addr_t newstate; char newstate_r_[PADR_(user_addr_t)];
769 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
770};
771struct exchangedata_args {
772 char path1_l_[PADL_(user_addr_t)]; user_addr_t path1; char path1_r_[PADR_(user_addr_t)];
773 char path2_l_[PADL_(user_addr_t)]; user_addr_t path2; char path2_r_[PADR_(user_addr_t)];
774 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
775};
776struct searchfs_args {
777 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
778 char searchblock_l_[PADL_(user_addr_t)]; user_addr_t searchblock; char searchblock_r_[PADR_(user_addr_t)];
779 char nummatches_l_[PADL_(user_addr_t)]; user_addr_t nummatches; char nummatches_r_[PADR_(user_addr_t)];
780 char scriptcode_l_[PADL_(uint32_t)]; uint32_t scriptcode; char scriptcode_r_[PADR_(uint32_t)];
781 char options_l_[PADL_(uint32_t)]; uint32_t options; char options_r_[PADR_(uint32_t)];
782 char state_l_[PADL_(user_addr_t)]; user_addr_t state; char state_r_[PADR_(user_addr_t)];
783};
784struct delete_args {
785 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
786};
787struct copyfile_args {
788 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
789 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
790 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
791 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
792};
793struct fgetattrlist_args {
794 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
795 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
796 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
797 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
798 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
799};
800struct fsetattrlist_args {
801 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
802 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
803 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
804 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
805 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
806};
807struct poll_args {
808 char fds_l_[PADL_(user_addr_t)]; user_addr_t fds; char fds_r_[PADR_(user_addr_t)];
809 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
810 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
811};
812struct getxattr_args {
813 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
814 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
815 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
816 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
817 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
818 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
819};
820struct fgetxattr_args {
821 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
822 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
823 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
824 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
825 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
826 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
827};
828struct setxattr_args {
829 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
830 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
831 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
832 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
833 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
834 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
835};
836struct fsetxattr_args {
837 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
838 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
839 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
840 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
841 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
842 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
843};
844struct removexattr_args {
845 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
846 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
847 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
848};
849struct fremovexattr_args {
850 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
851 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
852 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
853};
854struct listxattr_args {
855 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
856 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
857 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
858 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
859};
860struct flistxattr_args {
861 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
862 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
863 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
864 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
865};
866struct fsctl_args {
867 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
868 char cmd_l_[PADL_(user_ulong_t)]; user_ulong_t cmd; char cmd_r_[PADR_(user_ulong_t)];
869 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
870 char options_l_[PADL_(u_int)]; u_int options; char options_r_[PADR_(u_int)];
871};
872struct initgroups_args {
873 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
874 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
875 char gmuid_l_[PADL_(int)]; int gmuid; char gmuid_r_[PADR_(int)];
876};
877struct posix_spawn_args {
878 char pid_l_[PADL_(user_addr_t)]; user_addr_t pid; char pid_r_[PADR_(user_addr_t)];
879 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
880 char adesc_l_[PADL_(user_addr_t)]; user_addr_t adesc; char adesc_r_[PADR_(user_addr_t)];
881 char argv_l_[PADL_(user_addr_t)]; user_addr_t argv; char argv_r_[PADR_(user_addr_t)];
882 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
883};
884struct ffsctl_args {
885 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
886 char cmd_l_[PADL_(user_ulong_t)]; user_ulong_t cmd; char cmd_r_[PADR_(user_ulong_t)];
887 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
888 char options_l_[PADL_(u_int)]; u_int options; char options_r_[PADR_(u_int)];
889};
890#if NFSSERVER /* XXX */
891struct fhopen_args {
892 char u_fhp_l_[PADL_(user_addr_t)]; user_addr_t u_fhp; char u_fhp_r_[PADR_(user_addr_t)];
893 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
894};
895#else
896#endif
897struct minherit_args {
898 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
899 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
900 char inherit_l_[PADL_(int)]; int inherit; char inherit_r_[PADR_(int)];
901};
902#if SYSV_SEM
903struct semsys_args {
904 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
905 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
906 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
907 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
908 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
909};
910#else
911#endif
912#if SYSV_MSG
913struct msgsys_args {
914 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
915 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
916 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
917 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
918 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
919};
920#else
921#endif
922#if SYSV_SHM
923struct shmsys_args {
924 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
925 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
926 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
927 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
928};
929#else
930#endif
931#if SYSV_SEM
932struct semctl_args {
933 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
934 char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
935 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
936 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
937};
938struct semget_args {
939 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
940 char nsems_l_[PADL_(int)]; int nsems; char nsems_r_[PADR_(int)];
941 char semflg_l_[PADL_(int)]; int semflg; char semflg_r_[PADR_(int)];
942};
943struct semop_args {
944 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
945 char sops_l_[PADL_(user_addr_t)]; user_addr_t sops; char sops_r_[PADR_(user_addr_t)];
946 char nsops_l_[PADL_(int)]; int nsops; char nsops_r_[PADR_(int)];
947};
948#else
949#endif
950#if SYSV_MSG
951struct msgctl_args {
952 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
953 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
954 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
955};
956struct msgget_args {
957 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
958 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
959};
960struct msgsnd_args {
961 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
962 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
963 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
964 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
965};
966struct msgrcv_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 msgtyp_l_[PADL_(user_long_t)]; user_long_t msgtyp; char msgtyp_r_[PADR_(user_long_t)];
971 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
972};
973#else
974#endif
975#if SYSV_SHM
976struct shmat_args {
977 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
978 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
979 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
980};
981struct shmctl_args {
982 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
983 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
984 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
985};
986struct shmdt_args {
987 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
988};
989struct shmget_args {
990 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
991 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
992 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
993};
994#else
995#endif
996struct shm_open_args {
997 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
998 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
999 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1000};
1001struct shm_unlink_args {
1002 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1003};
1004struct sem_open_args {
1005 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1006 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
1007 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1008 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1009};
1010struct sem_close_args {
1011 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1012};
1013struct sem_unlink_args {
1014 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1015};
1016struct sem_wait_args {
1017 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1018};
1019struct sem_trywait_args {
1020 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1021};
1022struct sem_post_args {
1023 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1024};
1025struct sysctlbyname_args {
1026 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1027 char namelen_l_[PADL_(user_size_t)]; user_size_t namelen; char namelen_r_[PADR_(user_size_t)];
1028 char old_l_[PADL_(user_addr_t)]; user_addr_t old; char old_r_[PADR_(user_addr_t)];
1029 char oldlenp_l_[PADL_(user_addr_t)]; user_addr_t oldlenp; char oldlenp_r_[PADR_(user_addr_t)];
1030 char new_l_[PADL_(user_addr_t)]; user_addr_t new; char new_r_[PADR_(user_addr_t)];
1031 char newlen_l_[PADL_(user_size_t)]; user_size_t newlen; char newlen_r_[PADR_(user_size_t)];
1032};
1033struct open_extended_args {
1034 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1035 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1036 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1037 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1038 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1039 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1040};
1041struct umask_extended_args {
1042 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
1043 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1044};
1045struct stat_extended_args {
1046 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1047 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1048 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1049 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1050};
1051struct lstat_extended_args {
1052 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1053 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1054 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1055 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1056};
1057struct fstat_extended_args {
1058 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1059 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1060 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1061 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1062};
1063struct chmod_extended_args {
1064 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1065 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1066 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1067 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1068 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1069};
1070struct fchmod_extended_args {
1071 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1072 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1073 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1074 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1075 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1076};
1077struct access_extended_args {
1078 char entries_l_[PADL_(user_addr_t)]; user_addr_t entries; char entries_r_[PADR_(user_addr_t)];
1079 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
1080 char results_l_[PADL_(user_addr_t)]; user_addr_t results; char results_r_[PADR_(user_addr_t)];
1081 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1082};
1083struct settid_args {
1084 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1085 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1086};
1087struct gettid_args {
1088 char uidp_l_[PADL_(user_addr_t)]; user_addr_t uidp; char uidp_r_[PADR_(user_addr_t)];
1089 char gidp_l_[PADL_(user_addr_t)]; user_addr_t gidp; char gidp_r_[PADR_(user_addr_t)];
1090};
1091struct setsgroups_args {
1092 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1093 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1094};
1095struct getsgroups_args {
1096 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1097 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1098};
1099struct setwgroups_args {
1100 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1101 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1102};
1103struct getwgroups_args {
1104 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1105 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1106};
1107struct mkfifo_extended_args {
1108 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1109 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1110 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1111 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1112 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1113};
1114struct mkdir_extended_args {
1115 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1116 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1117 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1118 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1119 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1120};
1121#if CONFIG_EXT_RESOLVER
1122struct identitysvc_args {
1123 char opcode_l_[PADL_(int)]; int opcode; char opcode_r_[PADR_(int)];
1124 char message_l_[PADL_(user_addr_t)]; user_addr_t message; char message_r_[PADR_(user_addr_t)];
1125};
1126#else
1127#endif
1128struct shared_region_check_np_args {
1129 char start_address_l_[PADL_(user_addr_t)]; user_addr_t start_address; char start_address_r_[PADR_(user_addr_t)];
1130};
1131struct vm_pressure_monitor_args {
1132 char wait_for_pressure_l_[PADL_(int)]; int wait_for_pressure; char wait_for_pressure_r_[PADR_(int)];
1133 char nsecs_monitored_l_[PADL_(int)]; int nsecs_monitored; char nsecs_monitored_r_[PADR_(int)];
1134 char pages_reclaimed_l_[PADL_(user_addr_t)]; user_addr_t pages_reclaimed; char pages_reclaimed_r_[PADR_(user_addr_t)];
1135};
1136#if PSYNCH
1137struct psynch_rw_longrdlock_args {
1138 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1139 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1140 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1141 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1142 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1143};
1144struct psynch_rw_yieldwrlock_args {
1145 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1146 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1147 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1148 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1149 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1150};
1151struct psynch_rw_downgrade_args {
1152 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1153 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1154 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1155 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1156 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1157};
1158struct psynch_rw_upgrade_args {
1159 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1160 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1161 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1162 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1163 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1164};
1165struct psynch_mutexwait_args {
1166 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1167 char mgen_l_[PADL_(uint32_t)]; uint32_t mgen; char mgen_r_[PADR_(uint32_t)];
1168 char ugen_l_[PADL_(uint32_t)]; uint32_t ugen; char ugen_r_[PADR_(uint32_t)];
1169 char tid_l_[PADL_(uint64_t)]; uint64_t tid; char tid_r_[PADR_(uint64_t)];
1170 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1171};
1172struct psynch_mutexdrop_args {
1173 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1174 char mgen_l_[PADL_(uint32_t)]; uint32_t mgen; char mgen_r_[PADR_(uint32_t)];
1175 char ugen_l_[PADL_(uint32_t)]; uint32_t ugen; char ugen_r_[PADR_(uint32_t)];
1176 char tid_l_[PADL_(uint64_t)]; uint64_t tid; char tid_r_[PADR_(uint64_t)];
1177 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1178};
1179struct psynch_cvbroad_args {
1180 char cv_l_[PADL_(user_addr_t)]; user_addr_t cv; char cv_r_[PADR_(user_addr_t)];
1181 char cvlsgen_l_[PADL_(uint64_t)]; uint64_t cvlsgen; char cvlsgen_r_[PADR_(uint64_t)];
1182 char cvudgen_l_[PADL_(uint64_t)]; uint64_t cvudgen; char cvudgen_r_[PADR_(uint64_t)];
1183 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1184 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1185 char mugen_l_[PADL_(uint64_t)]; uint64_t mugen; char mugen_r_[PADR_(uint64_t)];
1186 char tid_l_[PADL_(uint64_t)]; uint64_t tid; char tid_r_[PADR_(uint64_t)];
1187};
1188struct psynch_cvsignal_args {
1189 char cv_l_[PADL_(user_addr_t)]; user_addr_t cv; char cv_r_[PADR_(user_addr_t)];
1190 char cvlsgen_l_[PADL_(uint64_t)]; uint64_t cvlsgen; char cvlsgen_r_[PADR_(uint64_t)];
1191 char cvugen_l_[PADL_(uint32_t)]; uint32_t cvugen; char cvugen_r_[PADR_(uint32_t)];
1192 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1193 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1194 char mugen_l_[PADL_(uint64_t)]; uint64_t mugen; char mugen_r_[PADR_(uint64_t)];
1195 char tid_l_[PADL_(uint64_t)]; uint64_t tid; char tid_r_[PADR_(uint64_t)];
1196 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1197};
1198struct psynch_cvwait_args {
1199 char cv_l_[PADL_(user_addr_t)]; user_addr_t cv; char cv_r_[PADR_(user_addr_t)];
1200 char cvlsgen_l_[PADL_(uint64_t)]; uint64_t cvlsgen; char cvlsgen_r_[PADR_(uint64_t)];
1201 char cvugen_l_[PADL_(uint32_t)]; uint32_t cvugen; char cvugen_r_[PADR_(uint32_t)];
1202 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1203 char mugen_l_[PADL_(uint64_t)]; uint64_t mugen; char mugen_r_[PADR_(uint64_t)];
1204 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1205 char sec_l_[PADL_(int64_t)]; int64_t sec; char sec_r_[PADR_(int64_t)];
1206 char nsec_l_[PADL_(uint32_t)]; uint32_t nsec; char nsec_r_[PADR_(uint32_t)];
1207};
1208struct psynch_rw_rdlock_args {
1209 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1210 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1211 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1212 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1213 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1214};
1215struct psynch_rw_wrlock_args {
1216 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1217 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1218 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1219 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1220 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1221};
1222struct psynch_rw_unlock_args {
1223 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1224 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1225 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1226 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1227 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1228};
1229struct psynch_rw_unlock2_args {
1230 char rwlock_l_[PADL_(user_addr_t)]; user_addr_t rwlock; char rwlock_r_[PADR_(user_addr_t)];
1231 char lgenval_l_[PADL_(uint32_t)]; uint32_t lgenval; char lgenval_r_[PADR_(uint32_t)];
1232 char ugenval_l_[PADL_(uint32_t)]; uint32_t ugenval; char ugenval_r_[PADR_(uint32_t)];
1233 char rw_wc_l_[PADL_(uint32_t)]; uint32_t rw_wc; char rw_wc_r_[PADR_(uint32_t)];
1234 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1235};
1236#else
1237#endif
1238struct getsid_args {
1239 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1240};
1241struct settid_with_pid_args {
1242 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1243 char assume_l_[PADL_(int)]; int assume; char assume_r_[PADR_(int)];
1244};
1245#if PSYNCH
1246struct psynch_cvclrprepost_args {
1247 char cv_l_[PADL_(user_addr_t)]; user_addr_t cv; char cv_r_[PADR_(user_addr_t)];
1248 char cvgen_l_[PADL_(uint32_t)]; uint32_t cvgen; char cvgen_r_[PADR_(uint32_t)];
1249 char cvugen_l_[PADL_(uint32_t)]; uint32_t cvugen; char cvugen_r_[PADR_(uint32_t)];
1250 char cvsgen_l_[PADL_(uint32_t)]; uint32_t cvsgen; char cvsgen_r_[PADR_(uint32_t)];
1251 char prepocnt_l_[PADL_(uint32_t)]; uint32_t prepocnt; char prepocnt_r_[PADR_(uint32_t)];
1252 char preposeq_l_[PADL_(uint32_t)]; uint32_t preposeq; char preposeq_r_[PADR_(uint32_t)];
1253 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1254};
1255#else
1256#endif
1257struct aio_fsync_args {
1258 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1259 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1260};
1261struct aio_return_args {
1262 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1263};
1264struct aio_suspend_args {
1265 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1266 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1267 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
1268};
1269struct aio_cancel_args {
1270 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1271 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1272};
1273struct aio_error_args {
1274 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1275};
1276struct aio_read_args {
1277 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1278};
1279struct aio_write_args {
1280 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1281};
1282struct lio_listio_args {
1283 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1284 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1285 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1286 char sigp_l_[PADL_(user_addr_t)]; user_addr_t sigp; char sigp_r_[PADR_(user_addr_t)];
1287};
1288struct iopolicysys_args {
1289 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1290 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
1291};
1292struct process_policy_args {
1293 char scope_l_[PADL_(int)]; int scope; char scope_r_[PADR_(int)];
1294 char action_l_[PADL_(int)]; int action; char action_r_[PADR_(int)];
1295 char policy_l_[PADL_(int)]; int policy; char policy_r_[PADR_(int)];
1296 char policy_subtype_l_[PADL_(int)]; int policy_subtype; char policy_subtype_r_[PADR_(int)];
1297 char attrp_l_[PADL_(user_addr_t)]; user_addr_t attrp; char attrp_r_[PADR_(user_addr_t)];
1298 char target_pid_l_[PADL_(pid_t)]; pid_t target_pid; char target_pid_r_[PADR_(pid_t)];
1299 char target_threadid_l_[PADL_(uint64_t)]; uint64_t target_threadid; char target_threadid_r_[PADR_(uint64_t)];
1300};
1301struct mlockall_args {
1302 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1303};
1304struct munlockall_args {
1305 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1306};
1307struct issetugid_args {
1308 int32_t dummy;
1309};
1310struct __pthread_kill_args {
1311 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1312 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1313};
1314struct __pthread_sigmask_args {
1315 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1316 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1317 char oset_l_[PADL_(user_addr_t)]; user_addr_t oset; char oset_r_[PADR_(user_addr_t)];
1318};
1319struct __sigwait_args {
1320 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1321 char sig_l_[PADL_(user_addr_t)]; user_addr_t sig; char sig_r_[PADR_(user_addr_t)];
1322};
1323struct __disable_threadsignal_args {
1324 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1325};
1326struct __pthread_markcancel_args {
1327 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1328};
1329struct __pthread_canceled_args {
1330 char action_l_[PADL_(int)]; int action; char action_r_[PADR_(int)];
1331};
1332struct __semwait_signal_args {
1333 char cond_sem_l_[PADL_(int)]; int cond_sem; char cond_sem_r_[PADR_(int)];
1334 char mutex_sem_l_[PADL_(int)]; int mutex_sem; char mutex_sem_r_[PADR_(int)];
1335 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1336 char relative_l_[PADL_(int)]; int relative; char relative_r_[PADR_(int)];
1337 char tv_sec_l_[PADL_(int64_t)]; int64_t tv_sec; char tv_sec_r_[PADR_(int64_t)];
1338 char tv_nsec_l_[PADL_(int32_t)]; int32_t tv_nsec; char tv_nsec_r_[PADR_(int32_t)];
1339};
1340struct proc_info_args {
1341 char callnum_l_[PADL_(int32_t)]; int32_t callnum; char callnum_r_[PADR_(int32_t)];
1342 char pid_l_[PADL_(int32_t)]; int32_t pid; char pid_r_[PADR_(int32_t)];
1343 char flavor_l_[PADL_(uint32_t)]; uint32_t flavor; char flavor_r_[PADR_(uint32_t)];
1344 char arg_l_[PADL_(uint64_t)]; uint64_t arg; char arg_r_[PADR_(uint64_t)];
1345 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
1346 char buffersize_l_[PADL_(int32_t)]; int32_t buffersize; char buffersize_r_[PADR_(int32_t)];
1347};
1348#if SENDFILE
1349struct sendfile_args {
1350 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1351 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1352 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1353 char nbytes_l_[PADL_(user_addr_t)]; user_addr_t nbytes; char nbytes_r_[PADR_(user_addr_t)];
1354 char hdtr_l_[PADL_(user_addr_t)]; user_addr_t hdtr; char hdtr_r_[PADR_(user_addr_t)];
1355 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1356};
1357#else /* !SENDFILE */
1358#endif /* SENDFILE */
1359struct stat64_args {
1360 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1361 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1362};
1363struct fstat64_args {
1364 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1365 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1366};
1367struct lstat64_args {
1368 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1369 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1370};
1371struct stat64_extended_args {
1372 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1373 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1374 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1375 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1376};
1377struct lstat64_extended_args {
1378 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1379 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1380 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1381 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1382};
1383struct fstat64_extended_args {
1384 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1385 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1386 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1387 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1388};
1389struct getdirentries64_args {
1390 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1391 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1392 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
1393 char position_l_[PADL_(user_addr_t)]; user_addr_t position; char position_r_[PADR_(user_addr_t)];
1394};
1395struct statfs64_args {
1396 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1397 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1398};
1399struct fstatfs64_args {
1400 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1401 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1402};
1403struct getfsstat64_args {
1404 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1405 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
1406 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1407};
1408struct __pthread_chdir_args {
1409 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1410};
1411struct __pthread_fchdir_args {
1412 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1413};
1414struct audit_args {
1415 char record_l_[PADL_(user_addr_t)]; user_addr_t record; char record_r_[PADR_(user_addr_t)];
1416 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1417};
1418struct auditon_args {
1419 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1420 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
1421 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1422};
1423struct getauid_args {
1424 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1425};
1426struct setauid_args {
1427 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1428};
1429struct getaudit_addr_args {
1430 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1431 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1432};
1433struct setaudit_addr_args {
1434 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1435 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1436};
1437struct auditctl_args {
1438 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1439};
1440struct bsdthread_create_args {
1441 char func_l_[PADL_(user_addr_t)]; user_addr_t func; char func_r_[PADR_(user_addr_t)];
1442 char func_arg_l_[PADL_(user_addr_t)]; user_addr_t func_arg; char func_arg_r_[PADR_(user_addr_t)];
1443 char stack_l_[PADL_(user_addr_t)]; user_addr_t stack; char stack_r_[PADR_(user_addr_t)];
1444 char pthread_l_[PADL_(user_addr_t)]; user_addr_t pthread; char pthread_r_[PADR_(user_addr_t)];
1445 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1446};
1447struct bsdthread_terminate_args {
1448 char stackaddr_l_[PADL_(user_addr_t)]; user_addr_t stackaddr; char stackaddr_r_[PADR_(user_addr_t)];
1449 char freesize_l_[PADL_(user_size_t)]; user_size_t freesize; char freesize_r_[PADR_(user_size_t)];
1450 char port_l_[PADL_(uint32_t)]; uint32_t port; char port_r_[PADR_(uint32_t)];
1451 char sema_or_ulock_l_[PADL_(user_addr_t)]; user_addr_t sema_or_ulock; char sema_or_ulock_r_[PADR_(user_addr_t)];
1452};
1453struct kqueue_args {
1454 int32_t dummy;
1455};
1456struct kevent_args {
1457 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1458 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1459 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1460 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1461 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1462 char timeout_l_[PADL_(user_addr_t)]; user_addr_t timeout; char timeout_r_[PADR_(user_addr_t)];
1463};
1464struct lchown_args {
1465 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1466 char owner_l_[PADL_(uid_t)]; uid_t owner; char owner_r_[PADR_(uid_t)];
1467 char group_l_[PADL_(gid_t)]; gid_t group; char group_r_[PADR_(gid_t)];
1468};
1469struct bsdthread_register_args {
1470 char threadstart_l_[PADL_(user_addr_t)]; user_addr_t threadstart; char threadstart_r_[PADR_(user_addr_t)];
1471 char wqthread_l_[PADL_(user_addr_t)]; user_addr_t wqthread; char wqthread_r_[PADR_(user_addr_t)];
1472 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1473 char stack_addr_hint_l_[PADL_(user_addr_t)]; user_addr_t stack_addr_hint; char stack_addr_hint_r_[PADR_(user_addr_t)];
1474 char targetconc_ptr_l_[PADL_(user_addr_t)]; user_addr_t targetconc_ptr; char targetconc_ptr_r_[PADR_(user_addr_t)];
1475 char dispatchqueue_offset_l_[PADL_(uint32_t)]; uint32_t dispatchqueue_offset; char dispatchqueue_offset_r_[PADR_(uint32_t)];
1476 char tsd_offset_l_[PADL_(uint32_t)]; uint32_t tsd_offset; char tsd_offset_r_[PADR_(uint32_t)];
1477};
1478struct workq_open_args {
1479 int32_t dummy;
1480};
1481struct workq_kernreturn_args {
1482 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1483 char item_l_[PADL_(user_addr_t)]; user_addr_t item; char item_r_[PADR_(user_addr_t)];
1484 char affinity_l_[PADL_(int)]; int affinity; char affinity_r_[PADR_(int)];
1485 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
1486};
1487struct kevent64_args {
1488 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1489 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1490 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1491 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1492 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1493 char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)];
1494 char timeout_l_[PADL_(user_addr_t)]; user_addr_t timeout; char timeout_r_[PADR_(user_addr_t)];
1495};
1496struct thread_selfid_args {
1497 int32_t dummy;
1498};
1499struct ledger_args {
1500 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1501 char arg1_l_[PADL_(user_addr_t)]; user_addr_t arg1; char arg1_r_[PADR_(user_addr_t)];
1502 char arg2_l_[PADL_(user_addr_t)]; user_addr_t arg2; char arg2_r_[PADR_(user_addr_t)];
1503 char arg3_l_[PADL_(user_addr_t)]; user_addr_t arg3; char arg3_r_[PADR_(user_addr_t)];
1504};
1505struct kevent_qos_args {
1506 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1507 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1508 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1509 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1510 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1511 char data_out_l_[PADL_(user_addr_t)]; user_addr_t data_out; char data_out_r_[PADR_(user_addr_t)];
1512 char data_available_l_[PADL_(user_addr_t)]; user_addr_t data_available; char data_available_r_[PADR_(user_addr_t)];
1513 char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)];
1514};
1515struct kevent_id_args {
1516 char id_l_[PADL_(uint64_t)]; uint64_t id; char id_r_[PADR_(uint64_t)];
1517 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1518 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1519 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1520 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1521 char data_out_l_[PADL_(user_addr_t)]; user_addr_t data_out; char data_out_r_[PADR_(user_addr_t)];
1522 char data_available_l_[PADL_(user_addr_t)]; user_addr_t data_available; char data_available_r_[PADR_(user_addr_t)];
1523 char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)];
1524};
1525struct __mac_execve_args {
1526 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
1527 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
1528 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
1529 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1530};
1531#if CONFIG_MACF
1532struct __mac_syscall_args {
1533 char policy_l_[PADL_(user_addr_t)]; user_addr_t policy; char policy_r_[PADR_(user_addr_t)];
1534 char call_l_[PADL_(int)]; int call; char call_r_[PADR_(int)];
1535 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
1536};
1537struct __mac_get_file_args {
1538 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1539 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1540};
1541struct __mac_set_file_args {
1542 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1543 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1544};
1545struct __mac_get_link_args {
1546 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1547 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1548};
1549struct __mac_set_link_args {
1550 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1551 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1552};
1553struct __mac_get_proc_args {
1554 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1555};
1556struct __mac_set_proc_args {
1557 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1558};
1559struct __mac_get_fd_args {
1560 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1561 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1562};
1563struct __mac_set_fd_args {
1564 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1565 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1566};
1567struct __mac_get_pid_args {
1568 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1569 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1570};
1571#else
1572#endif
1573struct pselect_args {
1574 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
1575 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
1576 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
1577 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
1578 char ts_l_[PADL_(user_addr_t)]; user_addr_t ts; char ts_r_[PADR_(user_addr_t)];
1579 char mask_l_[PADL_(user_addr_t)]; user_addr_t mask; char mask_r_[PADR_(user_addr_t)];
1580};
1581struct pselect_nocancel_args {
1582 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
1583 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
1584 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
1585 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
1586 char ts_l_[PADL_(user_addr_t)]; user_addr_t ts; char ts_r_[PADR_(user_addr_t)];
1587 char mask_l_[PADL_(user_addr_t)]; user_addr_t mask; char mask_r_[PADR_(user_addr_t)];
1588};
1589struct read_nocancel_args {
1590 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1591 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
1592 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1593};
1594struct write_nocancel_args {
1595 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1596 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
1597 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1598};
1599struct open_nocancel_args {
1600 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1601 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1602 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1603};
1604struct close_nocancel_args {
1605 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1606};
1607struct wait4_nocancel_args {
1608 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1609 char status_l_[PADL_(user_addr_t)]; user_addr_t status; char status_r_[PADR_(user_addr_t)];
1610 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1611 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
1612};
1613#if SOCKETS
1614struct recvmsg_nocancel_args {
1615 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1616 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
1617 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1618};
1619struct sendmsg_nocancel_args {
1620 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1621 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
1622 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1623};
1624struct recvfrom_nocancel_args {
1625 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1626 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1627 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1628 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1629 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
1630 char fromlenaddr_l_[PADL_(user_addr_t)]; user_addr_t fromlenaddr; char fromlenaddr_r_[PADR_(user_addr_t)];
1631};
1632struct accept_nocancel_args {
1633 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1634 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1635 char anamelen_l_[PADL_(user_addr_t)]; user_addr_t anamelen; char anamelen_r_[PADR_(user_addr_t)];
1636};
1637#else
1638#endif /* SOCKETS */
1639struct msync_nocancel_args {
1640 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
1641 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1642 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1643};
1644struct fcntl_nocancel_args {
1645 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1646 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1647 char arg_l_[PADL_(user_long_t)]; user_long_t arg; char arg_r_[PADR_(user_long_t)];
1648};
1649struct select_nocancel_args {
1650 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
1651 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
1652 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
1653 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
1654 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
1655};
1656struct fsync_nocancel_args {
1657 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1658};
1659#if SOCKETS
1660struct connect_nocancel_args {
1661 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1662 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1663 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
1664};
1665#else
1666#endif /* SOCKETS */
1667struct sigsuspend_nocancel_args {
1668 char mask_l_[PADL_(sigset_t)]; sigset_t mask; char mask_r_[PADR_(sigset_t)];
1669};
1670struct readv_nocancel_args {
1671 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1672 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
1673 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1674};
1675struct writev_nocancel_args {
1676 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1677 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
1678 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1679};
1680#if SOCKETS
1681struct sendto_nocancel_args {
1682 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1683 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1684 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1685 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1686 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
1687 char tolen_l_[PADL_(socklen_t)]; socklen_t tolen; char tolen_r_[PADR_(socklen_t)];
1688};
1689#else
1690#endif /* SOCKETS */
1691struct pread_nocancel_args {
1692 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1693 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1694 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1695 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1696};
1697struct pwrite_nocancel_args {
1698 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1699 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1700 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1701 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1702};
1703struct waitid_nocancel_args {
1704 char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
1705 char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)];
1706 char infop_l_[PADL_(user_addr_t)]; user_addr_t infop; char infop_r_[PADR_(user_addr_t)];
1707 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1708};
1709struct poll_nocancel_args {
1710 char fds_l_[PADL_(user_addr_t)]; user_addr_t fds; char fds_r_[PADR_(user_addr_t)];
1711 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
1712 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1713};
1714#if SYSV_MSG
1715struct msgsnd_nocancel_args {
1716 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1717 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1718 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1719 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1720};
1721struct msgrcv_nocancel_args {
1722 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1723 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1724 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1725 char msgtyp_l_[PADL_(user_long_t)]; user_long_t msgtyp; char msgtyp_r_[PADR_(user_long_t)];
1726 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1727};
1728#else
1729#endif
1730struct sem_wait_nocancel_args {
1731 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1732};
1733struct aio_suspend_nocancel_args {
1734 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1735 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1736 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
1737};
1738struct __sigwait_nocancel_args {
1739 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1740 char sig_l_[PADL_(user_addr_t)]; user_addr_t sig; char sig_r_[PADR_(user_addr_t)];
1741};
1742struct __semwait_signal_nocancel_args {
1743 char cond_sem_l_[PADL_(int)]; int cond_sem; char cond_sem_r_[PADR_(int)];
1744 char mutex_sem_l_[PADL_(int)]; int mutex_sem; char mutex_sem_r_[PADR_(int)];
1745 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1746 char relative_l_[PADL_(int)]; int relative; char relative_r_[PADR_(int)];
1747 char tv_sec_l_[PADL_(int64_t)]; int64_t tv_sec; char tv_sec_r_[PADR_(int64_t)];
1748 char tv_nsec_l_[PADL_(int32_t)]; int32_t tv_nsec; char tv_nsec_r_[PADR_(int32_t)];
1749};
1750struct __mac_mount_args {
1751 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
1752 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1753 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1754 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
1755 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1756};
1757#if CONFIG_MACF
1758struct __mac_get_mount_args {
1759 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1760 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1761};
1762#else
1763#endif
1764struct __mac_getfsstat_args {
1765 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1766 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
1767 char mac_l_[PADL_(user_addr_t)]; user_addr_t mac; char mac_r_[PADR_(user_addr_t)];
1768 char macsize_l_[PADL_(int)]; int macsize; char macsize_r_[PADR_(int)];
1769 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1770};
1771struct fsgetpath_args {
1772 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1773 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
1774 char fsid_l_[PADL_(user_addr_t)]; user_addr_t fsid; char fsid_r_[PADR_(user_addr_t)];
1775 char objid_l_[PADL_(uint64_t)]; uint64_t objid; char objid_r_[PADR_(uint64_t)];
1776};
1777struct audit_session_self_args {
1778 int32_t dummy;
1779};
1780struct audit_session_join_args {
1781 char port_l_[PADL_(mach_port_name_t)]; mach_port_name_t port; char port_r_[PADR_(mach_port_name_t)];
1782};
1783struct fileport_makeport_args {
1784 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1785 char portnamep_l_[PADL_(user_addr_t)]; user_addr_t portnamep; char portnamep_r_[PADR_(user_addr_t)];
1786};
1787struct fileport_makefd_args {
1788 char port_l_[PADL_(mach_port_name_t)]; mach_port_name_t port; char port_r_[PADR_(mach_port_name_t)];
1789};
1790struct audit_session_port_args {
1791 char asid_l_[PADL_(au_asid_t)]; au_asid_t asid; char asid_r_[PADR_(au_asid_t)];
1792 char portnamep_l_[PADL_(user_addr_t)]; user_addr_t portnamep; char portnamep_r_[PADR_(user_addr_t)];
1793};
1794struct pid_suspend_args {
1795 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1796};
1797struct pid_resume_args {
1798 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1799};
1800#if CONFIG_EMBEDDED
1801struct pid_hibernate_args {
1802 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1803};
1804#else
1805#endif
1806#if SOCKETS
1807struct pid_shutdown_sockets_args {
1808 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1809 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
1810};
1811#else
1812#endif
1813struct kas_info_args {
1814 char selector_l_[PADL_(int)]; int selector; char selector_r_[PADR_(int)];
1815 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
1816 char size_l_[PADL_(user_addr_t)]; user_addr_t size; char size_r_[PADR_(user_addr_t)];
1817};
1818#if CONFIG_MEMORYSTATUS
1819struct memorystatus_control_args {
1820 char command_l_[PADL_(uint32_t)]; uint32_t command; char command_r_[PADR_(uint32_t)];
1821 char pid_l_[PADL_(int32_t)]; int32_t pid; char pid_r_[PADR_(int32_t)];
1822 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1823 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
1824 char buffersize_l_[PADL_(user_size_t)]; user_size_t buffersize; char buffersize_r_[PADR_(user_size_t)];
1825};
1826#else
1827#endif
1828struct guarded_open_np_args {
1829 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1830 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
1831 char guardflags_l_[PADL_(u_int)]; u_int guardflags; char guardflags_r_[PADR_(u_int)];
1832 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1833 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1834};
1835struct guarded_close_np_args {
1836 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1837 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
1838};
1839struct guarded_kqueue_np_args {
1840 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
1841 char guardflags_l_[PADL_(u_int)]; u_int guardflags; char guardflags_r_[PADR_(u_int)];
1842};
1843struct change_fdguard_np_args {
1844 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1845 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
1846 char guardflags_l_[PADL_(u_int)]; u_int guardflags; char guardflags_r_[PADR_(u_int)];
1847 char nguard_l_[PADL_(user_addr_t)]; user_addr_t nguard; char nguard_r_[PADR_(user_addr_t)];
1848 char nguardflags_l_[PADL_(u_int)]; u_int nguardflags; char nguardflags_r_[PADR_(u_int)];
1849 char fdflagsp_l_[PADL_(user_addr_t)]; user_addr_t fdflagsp; char fdflagsp_r_[PADR_(user_addr_t)];
1850};
1851struct usrctl_args {
1852 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1853};
1854struct proc_rlimit_control_args {
1855 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1856 char flavor_l_[PADL_(int)]; int flavor; char flavor_r_[PADR_(int)];
1857 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
1858};
1859#if SOCKETS
1860struct connectx_args {
1861 char socket_l_[PADL_(int)]; int socket; char socket_r_[PADR_(int)];
1862 char endpoints_l_[PADL_(user_addr_t)]; user_addr_t endpoints; char endpoints_r_[PADR_(user_addr_t)];
1863 char associd_l_[PADL_(sae_associd_t)]; sae_associd_t associd; char associd_r_[PADR_(sae_associd_t)];
1864 char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)];
1865 char iov_l_[PADL_(user_addr_t)]; user_addr_t iov; char iov_r_[PADR_(user_addr_t)];
1866 char iovcnt_l_[PADL_(unsigned int)]; unsigned int iovcnt; char iovcnt_r_[PADR_(unsigned int)];
1867 char len_l_[PADL_(user_addr_t)]; user_addr_t len; char len_r_[PADR_(user_addr_t)];
1868 char connid_l_[PADL_(user_addr_t)]; user_addr_t connid; char connid_r_[PADR_(user_addr_t)];
1869};
1870struct disconnectx_args {
1871 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1872 char aid_l_[PADL_(sae_associd_t)]; sae_associd_t aid; char aid_r_[PADR_(sae_associd_t)];
1873 char cid_l_[PADL_(sae_connid_t)]; sae_connid_t cid; char cid_r_[PADR_(sae_connid_t)];
1874};
1875struct peeloff_args {
1876 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1877 char aid_l_[PADL_(sae_associd_t)]; sae_associd_t aid; char aid_r_[PADR_(sae_associd_t)];
1878};
1879struct socket_delegate_args {
1880 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
1881 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
1882 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
1883 char epid_l_[PADL_(pid_t)]; pid_t epid; char epid_r_[PADR_(pid_t)];
1884};
1885#else
1886#endif /* SOCKETS */
1887struct telemetry_args {
1888 char cmd_l_[PADL_(uint64_t)]; uint64_t cmd; char cmd_r_[PADR_(uint64_t)];
1889 char deadline_l_[PADL_(uint64_t)]; uint64_t deadline; char deadline_r_[PADR_(uint64_t)];
1890 char interval_l_[PADL_(uint64_t)]; uint64_t interval; char interval_r_[PADR_(uint64_t)];
1891 char leeway_l_[PADL_(uint64_t)]; uint64_t leeway; char leeway_r_[PADR_(uint64_t)];
1892 char arg4_l_[PADL_(uint64_t)]; uint64_t arg4; char arg4_r_[PADR_(uint64_t)];
1893 char arg5_l_[PADL_(uint64_t)]; uint64_t arg5; char arg5_r_[PADR_(uint64_t)];
1894};
1895#if CONFIG_PROC_UUID_POLICY
1896struct proc_uuid_policy_args {
1897 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
1898 char uuid_l_[PADL_(user_addr_t)]; user_addr_t uuid; char uuid_r_[PADR_(user_addr_t)];
1899 char uuidlen_l_[PADL_(user_size_t)]; user_size_t uuidlen; char uuidlen_r_[PADR_(user_size_t)];
1900 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1901};
1902#else
1903#endif
1904#if CONFIG_MEMORYSTATUS
1905struct memorystatus_get_level_args {
1906 char level_l_[PADL_(user_addr_t)]; user_addr_t level; char level_r_[PADR_(user_addr_t)];
1907};
1908#else
1909#endif
1910struct system_override_args {
1911 char timeout_l_[PADL_(uint64_t)]; uint64_t timeout; char timeout_r_[PADR_(uint64_t)];
1912 char flags_l_[PADL_(uint64_t)]; uint64_t flags; char flags_r_[PADR_(uint64_t)];
1913};
1914struct vfs_purge_args {
1915 int32_t dummy;
1916};
1917struct sfi_ctl_args {
1918 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
1919 char sfi_class_l_[PADL_(uint32_t)]; uint32_t sfi_class; char sfi_class_r_[PADR_(uint32_t)];
1920 char time_l_[PADL_(uint64_t)]; uint64_t time; char time_r_[PADR_(uint64_t)];
1921 char out_time_l_[PADL_(user_addr_t)]; user_addr_t out_time; char out_time_r_[PADR_(user_addr_t)];
1922};
1923struct sfi_pidctl_args {
1924 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
1925 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1926 char sfi_flags_l_[PADL_(uint32_t)]; uint32_t sfi_flags; char sfi_flags_r_[PADR_(uint32_t)];
1927 char out_sfi_flags_l_[PADL_(user_addr_t)]; user_addr_t out_sfi_flags; char out_sfi_flags_r_[PADR_(user_addr_t)];
1928};
1929#if CONFIG_COALITIONS
1930struct coalition_args {
1931 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
1932 char cid_l_[PADL_(user_addr_t)]; user_addr_t cid; char cid_r_[PADR_(user_addr_t)];
1933 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1934};
1935struct coalition_info_args {
1936 char flavor_l_[PADL_(uint32_t)]; uint32_t flavor; char flavor_r_[PADR_(uint32_t)];
1937 char cid_l_[PADL_(user_addr_t)]; user_addr_t cid; char cid_r_[PADR_(user_addr_t)];
1938 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
1939 char bufsize_l_[PADL_(user_addr_t)]; user_addr_t bufsize; char bufsize_r_[PADR_(user_addr_t)];
1940};
1941#else
1942#endif /* COALITIONS */
1943#if NECP
1944struct necp_match_policy_args {
1945 char parameters_l_[PADL_(user_addr_t)]; user_addr_t parameters; char parameters_r_[PADR_(user_addr_t)];
1946 char parameters_size_l_[PADL_(user_size_t)]; user_size_t parameters_size; char parameters_size_r_[PADR_(user_size_t)];
1947 char returned_result_l_[PADL_(user_addr_t)]; user_addr_t returned_result; char returned_result_r_[PADR_(user_addr_t)];
1948};
1949#else
1950#endif /* NECP */
1951struct getattrlistbulk_args {
1952 char dirfd_l_[PADL_(int)]; int dirfd; char dirfd_r_[PADR_(int)];
1953 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
1954 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
1955 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
1956 char options_l_[PADL_(uint64_t)]; uint64_t options; char options_r_[PADR_(uint64_t)];
1957};
1958struct clonefileat_args {
1959 char src_dirfd_l_[PADL_(int)]; int src_dirfd; char src_dirfd_r_[PADR_(int)];
1960 char src_l_[PADL_(user_addr_t)]; user_addr_t src; char src_r_[PADR_(user_addr_t)];
1961 char dst_dirfd_l_[PADL_(int)]; int dst_dirfd; char dst_dirfd_r_[PADR_(int)];
1962 char dst_l_[PADL_(user_addr_t)]; user_addr_t dst; char dst_r_[PADR_(user_addr_t)];
1963 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1964};
1965struct openat_args {
1966 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1967 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1968 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1969 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1970};
1971struct openat_nocancel_args {
1972 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1973 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1974 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1975 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1976};
1977struct renameat_args {
1978 char fromfd_l_[PADL_(int)]; int fromfd; char fromfd_r_[PADR_(int)];
1979 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
1980 char tofd_l_[PADL_(int)]; int tofd; char tofd_r_[PADR_(int)];
1981 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
1982};
1983struct faccessat_args {
1984 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1985 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1986 char amode_l_[PADL_(int)]; int amode; char amode_r_[PADR_(int)];
1987 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1988};
1989struct fchmodat_args {
1990 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1991 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1992 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1993 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
1994};
1995struct fchownat_args {
1996 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1997 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1998 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1999 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
2000 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
2001};
2002struct fstatat_args {
2003 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2004 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2005 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
2006 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
2007};
2008struct fstatat64_args {
2009 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2010 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2011 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
2012 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
2013};
2014struct linkat_args {
2015 char fd1_l_[PADL_(int)]; int fd1; char fd1_r_[PADR_(int)];
2016 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2017 char fd2_l_[PADL_(int)]; int fd2; char fd2_r_[PADR_(int)];
2018 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
2019 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
2020};
2021struct unlinkat_args {
2022 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2023 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2024 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
2025};
2026struct readlinkat_args {
2027 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2028 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2029 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
2030 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
2031};
2032struct symlinkat_args {
2033 char path1_l_[PADL_(user_addr_t)]; user_addr_t path1; char path1_r_[PADR_(user_addr_t)];
2034 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2035 char path2_l_[PADL_(user_addr_t)]; user_addr_t path2; char path2_r_[PADR_(user_addr_t)];
2036};
2037struct mkdirat_args {
2038 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2039 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2040 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2041};
2042struct getattrlistat_args {
2043 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2044 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2045 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
2046 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
2047 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
2048 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
2049};
2050struct proc_trace_log_args {
2051 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
2052 char uniqueid_l_[PADL_(uint64_t)]; uint64_t uniqueid; char uniqueid_r_[PADR_(uint64_t)];
2053};
2054struct bsdthread_ctl_args {
2055 char cmd_l_[PADL_(user_addr_t)]; user_addr_t cmd; char cmd_r_[PADR_(user_addr_t)];
2056 char arg1_l_[PADL_(user_addr_t)]; user_addr_t arg1; char arg1_r_[PADR_(user_addr_t)];
2057 char arg2_l_[PADL_(user_addr_t)]; user_addr_t arg2; char arg2_r_[PADR_(user_addr_t)];
2058 char arg3_l_[PADL_(user_addr_t)]; user_addr_t arg3; char arg3_r_[PADR_(user_addr_t)];
2059};
2060struct openbyid_np_args {
2061 char fsid_l_[PADL_(user_addr_t)]; user_addr_t fsid; char fsid_r_[PADR_(user_addr_t)];
2062 char objid_l_[PADL_(user_addr_t)]; user_addr_t objid; char objid_r_[PADR_(user_addr_t)];
2063 char oflags_l_[PADL_(int)]; int oflags; char oflags_r_[PADR_(int)];
2064};
2065#if SOCKETS
2066struct recvmsg_x_args {
2067 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
2068 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
2069 char cnt_l_[PADL_(u_int)]; u_int cnt; char cnt_r_[PADR_(u_int)];
2070 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2071};
2072struct sendmsg_x_args {
2073 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
2074 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
2075 char cnt_l_[PADL_(u_int)]; u_int cnt; char cnt_r_[PADR_(u_int)];
2076 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2077};
2078#else
2079#endif /* SOCKETS */
2080struct thread_selfusage_args {
2081 int32_t dummy;
2082};
2083#if CONFIG_CSR
2084struct csrctl_args {
2085 char op_l_[PADL_(uint32_t)]; uint32_t op; char op_r_[PADR_(uint32_t)];
2086 char useraddr_l_[PADL_(user_addr_t)]; user_addr_t useraddr; char useraddr_r_[PADR_(user_addr_t)];
2087 char usersize_l_[PADL_(user_addr_t)]; user_addr_t usersize; char usersize_r_[PADR_(user_addr_t)];
2088};
2089#else
2090#endif /* CSR */
2091struct guarded_open_dprotected_np_args {
2092 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2093 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
2094 char guardflags_l_[PADL_(u_int)]; u_int guardflags; char guardflags_r_[PADR_(u_int)];
2095 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2096 char dpclass_l_[PADL_(int)]; int dpclass; char dpclass_r_[PADR_(int)];
2097 char dpflags_l_[PADL_(int)]; int dpflags; char dpflags_r_[PADR_(int)];
2098 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2099};
2100struct guarded_write_np_args {
2101 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2102 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
2103 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
2104 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
2105};
2106struct guarded_pwrite_np_args {
2107 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2108 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
2109 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
2110 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
2111 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
2112};
2113struct guarded_writev_np_args {
2114 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2115 char guard_l_[PADL_(user_addr_t)]; user_addr_t guard; char guard_r_[PADR_(user_addr_t)];
2116 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
2117 char iovcnt_l_[PADL_(int)]; int iovcnt; char iovcnt_r_[PADR_(int)];
2118};
2119struct renameatx_np_args {
2120 char fromfd_l_[PADL_(int)]; int fromfd; char fromfd_r_[PADR_(int)];
2121 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
2122 char tofd_l_[PADL_(int)]; int tofd; char tofd_r_[PADR_(int)];
2123 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
2124 char flags_l_[PADL_(u_int)]; u_int flags; char flags_r_[PADR_(u_int)];
2125};
2126#if CONFIG_CODE_DECRYPTION
2127struct mremap_encrypted_args {
2128 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
2129 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
2130 char cryptid_l_[PADL_(uint32_t)]; uint32_t cryptid; char cryptid_r_[PADR_(uint32_t)];
2131 char cputype_l_[PADL_(uint32_t)]; uint32_t cputype; char cputype_r_[PADR_(uint32_t)];
2132 char cpusubtype_l_[PADL_(uint32_t)]; uint32_t cpusubtype; char cpusubtype_r_[PADR_(uint32_t)];
2133};
2134#else
2135#endif
2136#if NETWORKING
2137struct netagent_trigger_args {
2138 char agent_uuid_l_[PADL_(user_addr_t)]; user_addr_t agent_uuid; char agent_uuid_r_[PADR_(user_addr_t)];
2139 char agent_uuidlen_l_[PADL_(user_size_t)]; user_size_t agent_uuidlen; char agent_uuidlen_r_[PADR_(user_size_t)];
2140};
2141#else
2142#endif /* NETWORKING */
2143struct stack_snapshot_with_config_args {
2144 char stackshot_config_version_l_[PADL_(int)]; int stackshot_config_version; char stackshot_config_version_r_[PADR_(int)];
2145 char stackshot_config_l_[PADL_(user_addr_t)]; user_addr_t stackshot_config; char stackshot_config_r_[PADR_(user_addr_t)];
2146 char stackshot_config_size_l_[PADL_(user_size_t)]; user_size_t stackshot_config_size; char stackshot_config_size_r_[PADR_(user_size_t)];
2147};
2148#if CONFIG_TELEMETRY
2149struct microstackshot_args {
2150 char tracebuf_l_[PADL_(user_addr_t)]; user_addr_t tracebuf; char tracebuf_r_[PADR_(user_addr_t)];
2151 char tracebuf_size_l_[PADL_(uint32_t)]; uint32_t tracebuf_size; char tracebuf_size_r_[PADR_(uint32_t)];
2152 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
2153};
2154#else
2155#endif /* CONFIG_TELEMETRY */
2156#if PGO
2157struct grab_pgo_data_args {
2158 char uuid_l_[PADL_(user_addr_t)]; user_addr_t uuid; char uuid_r_[PADR_(user_addr_t)];
2159 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2160 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2161 char size_l_[PADL_(user_ssize_t)]; user_ssize_t size; char size_r_[PADR_(user_ssize_t)];
2162};
2163#else
2164#endif
2165#if CONFIG_PERSONAS
2166struct persona_args {
2167 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2168 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
2169 char info_l_[PADL_(user_addr_t)]; user_addr_t info; char info_r_[PADR_(user_addr_t)];
2170 char id_l_[PADL_(user_addr_t)]; user_addr_t id; char id_r_[PADR_(user_addr_t)];
2171 char idlen_l_[PADL_(user_addr_t)]; user_addr_t idlen; char idlen_r_[PADR_(user_addr_t)];
2172 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2173};
2174#else
2175#endif
2176struct mach_eventlink_signal_args {
2177 char eventlink_port_l_[PADL_(mach_port_name_t)]; mach_port_name_t eventlink_port; char eventlink_port_r_[PADR_(mach_port_name_t)];
2178 char signal_count_l_[PADL_(uint64_t)]; uint64_t signal_count; char signal_count_r_[PADR_(uint64_t)];
2179};
2180struct mach_eventlink_wait_until_args {
2181 char eventlink_port_l_[PADL_(mach_port_name_t)]; mach_port_name_t eventlink_port; char eventlink_port_r_[PADR_(mach_port_name_t)];
2182 char wait_count_l_[PADL_(uint64_t)]; uint64_t wait_count; char wait_count_r_[PADR_(uint64_t)];
2183 char deadline_l_[PADL_(uint64_t)]; uint64_t deadline; char deadline_r_[PADR_(uint64_t)];
2184 char clock_id_l_[PADL_(uint32_t)]; uint32_t clock_id; char clock_id_r_[PADR_(uint32_t)];
2185 char option_l_[PADL_(uint32_t)]; uint32_t option; char option_r_[PADR_(uint32_t)];
2186};
2187struct mach_eventlink_signal_wait_until_args {
2188 char eventlink_port_l_[PADL_(mach_port_name_t)]; mach_port_name_t eventlink_port; char eventlink_port_r_[PADR_(mach_port_name_t)];
2189 char wait_count_l_[PADL_(uint64_t)]; uint64_t wait_count; char wait_count_r_[PADR_(uint64_t)];
2190 char signal_count_l_[PADL_(uint64_t)]; uint64_t signal_count; char signal_count_r_[PADR_(uint64_t)];
2191 char deadline_l_[PADL_(uint64_t)]; uint64_t deadline; char deadline_r_[PADR_(uint64_t)];
2192 char clock_id_l_[PADL_(uint32_t)]; uint32_t clock_id; char clock_id_r_[PADR_(uint32_t)];
2193 char option_l_[PADL_(uint32_t)]; uint32_t option; char option_r_[PADR_(uint32_t)];
2194};
2195struct work_interval_ctl_args {
2196 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2197 char work_interval_id_l_[PADL_(uint64_t)]; uint64_t work_interval_id; char work_interval_id_r_[PADR_(uint64_t)];
2198 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
2199 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
2200};
2201struct getentropy_args {
2202 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2203 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
2204};
2205#if NECP
2206struct necp_open_args {
2207 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2208};
2209struct necp_client_action_args {
2210 char necp_fd_l_[PADL_(int)]; int necp_fd; char necp_fd_r_[PADR_(int)];
2211 char action_l_[PADL_(uint32_t)]; uint32_t action; char action_r_[PADR_(uint32_t)];
2212 char client_id_l_[PADL_(user_addr_t)]; user_addr_t client_id; char client_id_r_[PADR_(user_addr_t)];
2213 char client_id_len_l_[PADL_(user_size_t)]; user_size_t client_id_len; char client_id_len_r_[PADR_(user_size_t)];
2214 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2215 char buffer_size_l_[PADL_(user_size_t)]; user_size_t buffer_size; char buffer_size_r_[PADR_(user_size_t)];
2216};
2217#else
2218#endif /* NECP */
2219#if SKYWALK
2220struct __nexus_open_args {
2221 char init_l_[PADL_(user_addr_t)]; user_addr_t init; char init_r_[PADR_(user_addr_t)];
2222 char init_len_l_[PADL_(uint32_t)]; uint32_t init_len; char init_len_r_[PADR_(uint32_t)];
2223};
2224struct __nexus_register_args {
2225 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2226 char reg_l_[PADL_(user_addr_t)]; user_addr_t reg; char reg_r_[PADR_(user_addr_t)];
2227 char reg_len_l_[PADL_(uint32_t)]; uint32_t reg_len; char reg_len_r_[PADR_(uint32_t)];
2228 char prov_uuid_l_[PADL_(user_addr_t)]; user_addr_t prov_uuid; char prov_uuid_r_[PADR_(user_addr_t)];
2229 char prov_uuid_len_l_[PADL_(uint32_t)]; uint32_t prov_uuid_len; char prov_uuid_len_r_[PADR_(uint32_t)];
2230};
2231struct __nexus_deregister_args {
2232 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2233 char prov_uuid_l_[PADL_(user_addr_t)]; user_addr_t prov_uuid; char prov_uuid_r_[PADR_(user_addr_t)];
2234 char prov_uuid_len_l_[PADL_(uint32_t)]; uint32_t prov_uuid_len; char prov_uuid_len_r_[PADR_(uint32_t)];
2235};
2236struct __nexus_create_args {
2237 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2238 char prov_uuid_l_[PADL_(user_addr_t)]; user_addr_t prov_uuid; char prov_uuid_r_[PADR_(user_addr_t)];
2239 char prov_uuid_len_l_[PADL_(uint32_t)]; uint32_t prov_uuid_len; char prov_uuid_len_r_[PADR_(uint32_t)];
2240 char nx_uuid_l_[PADL_(user_addr_t)]; user_addr_t nx_uuid; char nx_uuid_r_[PADR_(user_addr_t)];
2241 char nx_uuid_len_l_[PADL_(uint32_t)]; uint32_t nx_uuid_len; char nx_uuid_len_r_[PADR_(uint32_t)];
2242};
2243struct __nexus_destroy_args {
2244 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2245 char nx_uuid_l_[PADL_(user_addr_t)]; user_addr_t nx_uuid; char nx_uuid_r_[PADR_(user_addr_t)];
2246 char nx_uuid_len_l_[PADL_(uint32_t)]; uint32_t nx_uuid_len; char nx_uuid_len_r_[PADR_(uint32_t)];
2247};
2248struct __nexus_get_opt_args {
2249 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2250 char opt_l_[PADL_(uint32_t)]; uint32_t opt; char opt_r_[PADR_(uint32_t)];
2251 char aoptval_l_[PADL_(user_addr_t)]; user_addr_t aoptval; char aoptval_r_[PADR_(user_addr_t)];
2252 char aoptlen_l_[PADL_(user_addr_t)]; user_addr_t aoptlen; char aoptlen_r_[PADR_(user_addr_t)];
2253};
2254struct __nexus_set_opt_args {
2255 char ctl_l_[PADL_(int)]; int ctl; char ctl_r_[PADR_(int)];
2256 char opt_l_[PADL_(uint32_t)]; uint32_t opt; char opt_r_[PADR_(uint32_t)];
2257 char aoptval_l_[PADL_(user_addr_t)]; user_addr_t aoptval; char aoptval_r_[PADR_(user_addr_t)];
2258 char optlen_l_[PADL_(uint32_t)]; uint32_t optlen; char optlen_r_[PADR_(uint32_t)];
2259};
2260struct __channel_open_args {
2261 char init_l_[PADL_(user_addr_t)]; user_addr_t init; char init_r_[PADR_(user_addr_t)];
2262 char init_len_l_[PADL_(uint32_t)]; uint32_t init_len; char init_len_r_[PADR_(uint32_t)];
2263};
2264struct __channel_get_info_args {
2265 char c_l_[PADL_(int)]; int c; char c_r_[PADR_(int)];
2266 char cinfo_l_[PADL_(user_addr_t)]; user_addr_t cinfo; char cinfo_r_[PADR_(user_addr_t)];
2267 char cinfolen_l_[PADL_(uint32_t)]; uint32_t cinfolen; char cinfolen_r_[PADR_(uint32_t)];
2268};
2269struct __channel_sync_args {
2270 char c_l_[PADL_(int)]; int c; char c_r_[PADR_(int)];
2271 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2272 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2273};
2274struct __channel_get_opt_args {
2275 char c_l_[PADL_(int)]; int c; char c_r_[PADR_(int)];
2276 char opt_l_[PADL_(uint32_t)]; uint32_t opt; char opt_r_[PADR_(uint32_t)];
2277 char aoptval_l_[PADL_(user_addr_t)]; user_addr_t aoptval; char aoptval_r_[PADR_(user_addr_t)];
2278 char aoptlen_l_[PADL_(user_addr_t)]; user_addr_t aoptlen; char aoptlen_r_[PADR_(user_addr_t)];
2279};
2280struct __channel_set_opt_args {
2281 char c_l_[PADL_(int)]; int c; char c_r_[PADR_(int)];
2282 char opt_l_[PADL_(uint32_t)]; uint32_t opt; char opt_r_[PADR_(uint32_t)];
2283 char aoptval_l_[PADL_(user_addr_t)]; user_addr_t aoptval; char aoptval_r_[PADR_(user_addr_t)];
2284 char optlen_l_[PADL_(uint32_t)]; uint32_t optlen; char optlen_r_[PADR_(uint32_t)];
2285};
2286#else
2287#endif /* !SKYWALK */
2288struct ulock_wait_args {
2289 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2290 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
2291 char value_l_[PADL_(uint64_t)]; uint64_t value; char value_r_[PADR_(uint64_t)];
2292 char timeout_l_[PADL_(uint32_t)]; uint32_t timeout; char timeout_r_[PADR_(uint32_t)];
2293};
2294struct ulock_wake_args {
2295 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2296 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
2297 char wake_value_l_[PADL_(uint64_t)]; uint64_t wake_value; char wake_value_r_[PADR_(uint64_t)];
2298};
2299struct fclonefileat_args {
2300 char src_fd_l_[PADL_(int)]; int src_fd; char src_fd_r_[PADR_(int)];
2301 char dst_dirfd_l_[PADL_(int)]; int dst_dirfd; char dst_dirfd_r_[PADR_(int)];
2302 char dst_l_[PADL_(user_addr_t)]; user_addr_t dst; char dst_r_[PADR_(user_addr_t)];
2303 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
2304};
2305struct fs_snapshot_args {
2306 char op_l_[PADL_(uint32_t)]; uint32_t op; char op_r_[PADR_(uint32_t)];
2307 char dirfd_l_[PADL_(int)]; int dirfd; char dirfd_r_[PADR_(int)];
2308 char name1_l_[PADL_(user_addr_t)]; user_addr_t name1; char name1_r_[PADR_(user_addr_t)];
2309 char name2_l_[PADL_(user_addr_t)]; user_addr_t name2; char name2_r_[PADR_(user_addr_t)];
2310 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
2311 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
2312};
2313struct terminate_with_payload_args {
2314 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
2315 char reason_namespace_l_[PADL_(uint32_t)]; uint32_t reason_namespace; char reason_namespace_r_[PADR_(uint32_t)];
2316 char reason_code_l_[PADL_(uint64_t)]; uint64_t reason_code; char reason_code_r_[PADR_(uint64_t)];
2317 char payload_l_[PADL_(user_addr_t)]; user_addr_t payload; char payload_r_[PADR_(user_addr_t)];
2318 char payload_size_l_[PADL_(uint32_t)]; uint32_t payload_size; char payload_size_r_[PADR_(uint32_t)];
2319 char reason_string_l_[PADL_(user_addr_t)]; user_addr_t reason_string; char reason_string_r_[PADR_(user_addr_t)];
2320 char reason_flags_l_[PADL_(uint64_t)]; uint64_t reason_flags; char reason_flags_r_[PADR_(uint64_t)];
2321};
2322struct abort_with_payload_args {
2323 char reason_namespace_l_[PADL_(uint32_t)]; uint32_t reason_namespace; char reason_namespace_r_[PADR_(uint32_t)];
2324 char reason_code_l_[PADL_(uint64_t)]; uint64_t reason_code; char reason_code_r_[PADR_(uint64_t)];
2325 char payload_l_[PADL_(user_addr_t)]; user_addr_t payload; char payload_r_[PADR_(user_addr_t)];
2326 char payload_size_l_[PADL_(uint32_t)]; uint32_t payload_size; char payload_size_r_[PADR_(uint32_t)];
2327 char reason_string_l_[PADL_(user_addr_t)]; user_addr_t reason_string; char reason_string_r_[PADR_(user_addr_t)];
2328 char reason_flags_l_[PADL_(uint64_t)]; uint64_t reason_flags; char reason_flags_r_[PADR_(uint64_t)];
2329};
2330#if NECP
2331struct necp_session_open_args {
2332 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2333};
2334struct necp_session_action_args {
2335 char necp_fd_l_[PADL_(int)]; int necp_fd; char necp_fd_r_[PADR_(int)];
2336 char action_l_[PADL_(uint32_t)]; uint32_t action; char action_r_[PADR_(uint32_t)];
2337 char in_buffer_l_[PADL_(user_addr_t)]; user_addr_t in_buffer; char in_buffer_r_[PADR_(user_addr_t)];
2338 char in_buffer_length_l_[PADL_(user_size_t)]; user_size_t in_buffer_length; char in_buffer_length_r_[PADR_(user_size_t)];
2339 char out_buffer_l_[PADL_(user_addr_t)]; user_addr_t out_buffer; char out_buffer_r_[PADR_(user_addr_t)];
2340 char out_buffer_length_l_[PADL_(user_size_t)]; user_size_t out_buffer_length; char out_buffer_length_r_[PADR_(user_size_t)];
2341};
2342#else /* NECP */
2343#endif /* NECP */
2344struct setattrlistat_args {
2345 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2346 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2347 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
2348 char attributeBuffer_l_[PADL_(user_addr_t)]; user_addr_t attributeBuffer; char attributeBuffer_r_[PADR_(user_addr_t)];
2349 char bufferSize_l_[PADL_(user_size_t)]; user_size_t bufferSize; char bufferSize_r_[PADR_(user_size_t)];
2350 char options_l_[PADL_(uint32_t)]; uint32_t options; char options_r_[PADR_(uint32_t)];
2351};
2352struct net_qos_guideline_args {
2353 char param_l_[PADL_(user_addr_t)]; user_addr_t param; char param_r_[PADR_(user_addr_t)];
2354 char param_len_l_[PADL_(uint32_t)]; uint32_t param_len; char param_len_r_[PADR_(uint32_t)];
2355};
2356struct fmount_args {
2357 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
2358 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2359 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
2360 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
2361};
2362struct ntp_adjtime_args {
2363 char tp_l_[PADL_(user_addr_t)]; user_addr_t tp; char tp_r_[PADR_(user_addr_t)];
2364};
2365struct ntp_gettime_args {
2366 char ntvp_l_[PADL_(user_addr_t)]; user_addr_t ntvp; char ntvp_r_[PADR_(user_addr_t)];
2367};
2368struct os_fault_with_payload_args {
2369 char reason_namespace_l_[PADL_(uint32_t)]; uint32_t reason_namespace; char reason_namespace_r_[PADR_(uint32_t)];
2370 char reason_code_l_[PADL_(uint64_t)]; uint64_t reason_code; char reason_code_r_[PADR_(uint64_t)];
2371 char payload_l_[PADL_(user_addr_t)]; user_addr_t payload; char payload_r_[PADR_(user_addr_t)];
2372 char payload_size_l_[PADL_(uint32_t)]; uint32_t payload_size; char payload_size_r_[PADR_(uint32_t)];
2373 char reason_string_l_[PADL_(user_addr_t)]; user_addr_t reason_string; char reason_string_r_[PADR_(user_addr_t)];
2374 char reason_flags_l_[PADL_(uint64_t)]; uint64_t reason_flags; char reason_flags_r_[PADR_(uint64_t)];
2375};
2376struct kqueue_workloop_ctl_args {
2377 char cmd_l_[PADL_(user_addr_t)]; user_addr_t cmd; char cmd_r_[PADR_(user_addr_t)];
2378 char options_l_[PADL_(uint64_t)]; uint64_t options; char options_r_[PADR_(uint64_t)];
2379 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
2380 char sz_l_[PADL_(user_size_t)]; user_size_t sz; char sz_r_[PADR_(user_size_t)];
2381};
2382struct __mach_bridge_remote_time_args {
2383 char local_timestamp_l_[PADL_(uint64_t)]; uint64_t local_timestamp; char local_timestamp_r_[PADR_(uint64_t)];
2384};
2385#if CONFIG_COALITIONS
2386struct coalition_ledger_args {
2387 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2388 char cid_l_[PADL_(user_addr_t)]; user_addr_t cid; char cid_r_[PADR_(user_addr_t)];
2389 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2390 char bufsize_l_[PADL_(user_addr_t)]; user_addr_t bufsize; char bufsize_r_[PADR_(user_addr_t)];
2391};
2392#else
2393#endif // CONFIG_COALITIONS
2394struct log_data_args {
2395 char tag_l_[PADL_(unsigned int)]; unsigned int tag; char tag_r_[PADR_(unsigned int)];
2396 char flags_l_[PADL_(unsigned int)]; unsigned int flags; char flags_r_[PADR_(unsigned int)];
2397 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2398 char size_l_[PADL_(unsigned int)]; unsigned int size; char size_r_[PADR_(unsigned int)];
2399};
2400struct memorystatus_available_memory_args {
2401 int32_t dummy;
2402};
2403struct shared_region_map_and_slide_2_np_args {
2404 char files_count_l_[PADL_(uint32_t)]; uint32_t files_count; char files_count_r_[PADR_(uint32_t)];
2405 char files_l_[PADL_(user_addr_t)]; user_addr_t files; char files_r_[PADR_(user_addr_t)];
2406 char mappings_count_l_[PADL_(uint32_t)]; uint32_t mappings_count; char mappings_count_r_[PADR_(uint32_t)];
2407 char mappings_l_[PADL_(user_addr_t)]; user_addr_t mappings; char mappings_r_[PADR_(user_addr_t)];
2408};
2409struct pivot_root_args {
2410 char new_rootfs_path_before_l_[PADL_(user_addr_t)]; user_addr_t new_rootfs_path_before; char new_rootfs_path_before_r_[PADR_(user_addr_t)];
2411 char old_rootfs_path_after_l_[PADL_(user_addr_t)]; user_addr_t old_rootfs_path_after; char old_rootfs_path_after_r_[PADR_(user_addr_t)];
2412};
2413struct task_inspect_for_pid_args {
2414 char target_tport_l_[PADL_(mach_port_name_t)]; mach_port_name_t target_tport; char target_tport_r_[PADR_(mach_port_name_t)];
2415 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
2416 char t_l_[PADL_(user_addr_t)]; user_addr_t t; char t_r_[PADR_(user_addr_t)];
2417};
2418struct task_read_for_pid_args {
2419 char target_tport_l_[PADL_(mach_port_name_t)]; mach_port_name_t target_tport; char target_tport_r_[PADR_(mach_port_name_t)];
2420 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
2421 char t_l_[PADL_(user_addr_t)]; user_addr_t t; char t_r_[PADR_(user_addr_t)];
2422};
2423struct preadv_args {
2424 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2425 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
2426 char iovcnt_l_[PADL_(int)]; int iovcnt; char iovcnt_r_[PADR_(int)];
2427 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
2428};
2429struct pwritev_args {
2430 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2431 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
2432 char iovcnt_l_[PADL_(int)]; int iovcnt; char iovcnt_r_[PADR_(int)];
2433 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
2434};
2435struct preadv_nocancel_args {
2436 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2437 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
2438 char iovcnt_l_[PADL_(int)]; int iovcnt; char iovcnt_r_[PADR_(int)];
2439 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
2440};
2441struct pwritev_nocancel_args {
2442 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2443 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
2444 char iovcnt_l_[PADL_(int)]; int iovcnt; char iovcnt_r_[PADR_(int)];
2445 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
2446};
2447struct ulock_wait2_args {
2448 char operation_l_[PADL_(uint32_t)]; uint32_t operation; char operation_r_[PADR_(uint32_t)];
2449 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
2450 char value_l_[PADL_(uint64_t)]; uint64_t value; char value_r_[PADR_(uint64_t)];
2451 char timeout_l_[PADL_(uint64_t)]; uint64_t timeout; char timeout_r_[PADR_(uint64_t)];
2452 char value2_l_[PADL_(uint64_t)]; uint64_t value2; char value2_r_[PADR_(uint64_t)];
2453};
2454struct proc_info_extended_id_args {
2455 char callnum_l_[PADL_(int32_t)]; int32_t callnum; char callnum_r_[PADR_(int32_t)];
2456 char pid_l_[PADL_(int32_t)]; int32_t pid; char pid_r_[PADR_(int32_t)];
2457 char flavor_l_[PADL_(uint32_t)]; uint32_t flavor; char flavor_r_[PADR_(uint32_t)];
2458 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
2459 char ext_id_l_[PADL_(uint64_t)]; uint64_t ext_id; char ext_id_r_[PADR_(uint64_t)];
2460 char arg_l_[PADL_(uint64_t)]; uint64_t arg; char arg_r_[PADR_(uint64_t)];
2461 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2462 char buffersize_l_[PADL_(int32_t)]; int32_t buffersize; char buffersize_r_[PADR_(int32_t)];
2463};
2464#if SOCKETS
2465struct tracker_action_args {
2466 char action_l_[PADL_(int)]; int action; char action_r_[PADR_(int)];
2467 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
2468 char buffer_size_l_[PADL_(user_size_t)]; user_size_t buffer_size; char buffer_size_r_[PADR_(user_size_t)];
2469};
2470#else
2471#endif /* SOCKETS */
2472struct debug_syscall_reject_args {
2473 char packed_selectors_l_[PADL_(uint64_t)]; uint64_t packed_selectors; char packed_selectors_r_[PADR_(uint64_t)];
2474};
2475struct debug_syscall_reject_config_args {
2476 char packed_selectors1_l_[PADL_(uint64_t)]; uint64_t packed_selectors1; char packed_selectors1_r_[PADR_(uint64_t)];
2477 char packed_selectors2_l_[PADL_(uint64_t)]; uint64_t packed_selectors2; char packed_selectors2_r_[PADR_(uint64_t)];
2478 char flags_l_[PADL_(uint64_t)]; uint64_t flags; char flags_r_[PADR_(uint64_t)];
2479};
2480struct graftdmg_args {
2481 char dmg_fd_l_[PADL_(int)]; int dmg_fd; char dmg_fd_r_[PADR_(int)];
2482 char mountdir_l_[PADL_(user_addr_t)]; user_addr_t mountdir; char mountdir_r_[PADR_(user_addr_t)];
2483 char graft_type_l_[PADL_(uint32_t)]; uint32_t graft_type; char graft_type_r_[PADR_(uint32_t)];
2484 char gda_l_[PADL_(user_addr_t)]; user_addr_t gda; char gda_r_[PADR_(user_addr_t)];
2485};
2486struct map_with_linking_np_args {
2487 char regions_l_[PADL_(user_addr_t)]; user_addr_t regions; char regions_r_[PADR_(user_addr_t)];
2488 char region_count_l_[PADL_(uint32_t)]; uint32_t region_count; char region_count_r_[PADR_(uint32_t)];
2489 char link_info_l_[PADL_(user_addr_t)]; user_addr_t link_info; char link_info_r_[PADR_(user_addr_t)];
2490 char link_info_size_l_[PADL_(uint32_t)]; uint32_t link_info_size; char link_info_size_r_[PADR_(uint32_t)];
2491};
2492struct freadlink_args {
2493 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2494 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
2495 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
2496};
2497struct record_system_event_args {
2498 char type_l_[PADL_(uint32_t)]; uint32_t type; char type_r_[PADR_(uint32_t)];
2499 char subsystem_l_[PADL_(uint32_t)]; uint32_t subsystem; char subsystem_r_[PADR_(uint32_t)];
2500 char event_l_[PADL_(user_addr_t)]; user_addr_t event; char event_r_[PADR_(user_addr_t)];
2501 char payload_l_[PADL_(user_addr_t)]; user_addr_t payload; char payload_r_[PADR_(user_addr_t)];
2502};
2503struct mkfifoat_args {
2504 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2505 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2506 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2507};
2508struct mknodat_args {
2509 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2510 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
2511 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
2512 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
2513};
2514struct ungraftdmg_args {
2515 char mountdir_l_[PADL_(user_addr_t)]; user_addr_t mountdir; char mountdir_r_[PADR_(user_addr_t)];
2516 char flags_l_[PADL_(uint64_t)]; uint64_t flags; char flags_r_[PADR_(uint64_t)];
2517};
2518int nosys(struct proc *, struct nosys_args *, int *);
2519void exit(struct proc *, struct exit_args *, int32_t *);
2520int fork(struct proc *, struct fork_args *, int *);
2521int read(struct proc *, struct read_args *, user_ssize_t *);
2522int write(struct proc *, struct write_args *, user_ssize_t *);
2523int open(struct proc *, struct open_args *, int *);
2524int sys_close(struct proc *, struct close_args *, int *);
2525int wait4(struct proc *, struct wait4_args *, int *);
2526int link(struct proc *, struct link_args *, int *);
2527int unlink(struct proc *, struct unlink_args *, int *);
2528int sys_chdir(struct proc *, struct chdir_args *, int *);
2529int sys_fchdir(struct proc *, struct fchdir_args *, int *);
2530int mknod(struct proc *, struct mknod_args *, int *);
2531int chmod(struct proc *, struct chmod_args *, int *);
2532int chown(struct proc *, struct chown_args *, int *);
2533int getfsstat(struct proc *, struct getfsstat_args *, int *);
2534int getpid(struct proc *, struct getpid_args *, int *);
2535int setuid(struct proc *, struct setuid_args *, int *);
2536int getuid(struct proc *, struct getuid_args *, int *);
2537int geteuid(struct proc *, struct geteuid_args *, int *);
2538int ptrace(struct proc *, struct ptrace_args *, int *);
2539#if SOCKETS
2540int recvmsg(struct proc *, struct recvmsg_args *, int *);
2541int sendmsg(struct proc *, struct sendmsg_args *, int *);
2542int recvfrom(struct proc *, struct recvfrom_args *, int *);
2543int accept(struct proc *, struct accept_args *, int *);
2544int getpeername(struct proc *, struct getpeername_args *, int *);
2545int getsockname(struct proc *, struct getsockname_args *, int *);
2546#else
2547#endif /* SOCKETS */
2548int access(struct proc *, struct access_args *, int *);
2549int chflags(struct proc *, struct chflags_args *, int *);
2550int fchflags(struct proc *, struct fchflags_args *, int *);
2551int sync(struct proc *, struct sync_args *, int *);
2552int kill(struct proc *, struct kill_args *, int *);
2553int sys_crossarch_trap(struct proc *, struct crossarch_trap_args *, int *);
2554int getppid(struct proc *, struct getppid_args *, int *);
2555int sys_dup(struct proc *, struct dup_args *, int *);
2556int pipe(struct proc *, struct pipe_args *, int *);
2557int getegid(struct proc *, struct getegid_args *, int *);
2558int sigaction(struct proc *, struct sigaction_args *, int *);
2559int getgid(struct proc *, struct getgid_args *, int *);
2560int sigprocmask(struct proc *, struct sigprocmask_args *, int *);
2561int getlogin(struct proc *, struct getlogin_args *, int *);
2562int setlogin(struct proc *, struct setlogin_args *, int *);
2563int acct(struct proc *, struct acct_args *, int *);
2564int sigpending(struct proc *, struct sigpending_args *, int *);
2565int sigaltstack(struct proc *, struct sigaltstack_args *, int *);
2566int ioctl(struct proc *, struct ioctl_args *, int *);
2567int reboot(struct proc *, struct reboot_args *, int *);
2568int revoke(struct proc *, struct revoke_args *, int *);
2569int symlink(struct proc *, struct symlink_args *, int *);
2570int readlink(struct proc *, struct readlink_args *, int *);
2571int execve(struct proc *, struct execve_args *, int *);
2572int umask(struct proc *, struct umask_args *, int *);
2573int chroot(struct proc *, struct chroot_args *, int *);
2574int msync(struct proc *, struct msync_args *, int *);
2575#if CONFIG_VFORK
2576int vfork(struct proc *, struct vfork_args *, int *);
2577#else
2578#endif
2579int munmap(struct proc *, struct munmap_args *, int *);
2580int mprotect(struct proc *, struct mprotect_args *, int *);
2581int madvise(struct proc *, struct madvise_args *, int *);
2582int mincore(struct proc *, struct mincore_args *, int *);
2583int getgroups(struct proc *, struct getgroups_args *, int *);
2584int setgroups(struct proc *, struct setgroups_args *, int *);
2585int getpgrp(struct proc *, struct getpgrp_args *, int *);
2586int setpgid(struct proc *, struct setpgid_args *, int *);
2587int setitimer(struct proc *, struct setitimer_args *, int *);
2588int swapon(struct proc *, struct swapon_args *, int *);
2589int getitimer(struct proc *, struct getitimer_args *, int *);
2590int sys_getdtablesize(struct proc *, struct getdtablesize_args *, int *);
2591int sys_dup2(struct proc *, struct dup2_args *, int *);
2592int sys_fcntl(struct proc *, struct fcntl_args *, int *);
2593int select(struct proc *, struct select_args *, int *);
2594int fsync(struct proc *, struct fsync_args *, int *);
2595int setpriority(struct proc *, struct setpriority_args *, int *);
2596#if SOCKETS
2597int socket(struct proc *, struct socket_args *, int *);
2598int connect(struct proc *, struct connect_args *, int *);
2599#else
2600#endif /* SOCKETS */
2601int getpriority(struct proc *, struct getpriority_args *, int *);
2602#if SOCKETS
2603int bind(struct proc *, struct bind_args *, int *);
2604int setsockopt(struct proc *, struct setsockopt_args *, int *);
2605int listen(struct proc *, struct listen_args *, int *);
2606#else
2607#endif /* SOCKETS */
2608int sigsuspend(struct proc *, struct sigsuspend_args *, int *);
2609#if SOCKETS
2610#else
2611#endif /* SOCKETS */
2612int gettimeofday(struct proc *, struct gettimeofday_args *, int *);
2613int getrusage(struct proc *, struct getrusage_args *, int *);
2614#if SOCKETS
2615int getsockopt(struct proc *, struct getsockopt_args *, int *);
2616#else
2617#endif /* SOCKETS */
2618int readv(struct proc *, struct readv_args *, user_ssize_t *);
2619int writev(struct proc *, struct writev_args *, user_ssize_t *);
2620int settimeofday(struct proc *, struct settimeofday_args *, int *);
2621int fchown(struct proc *, struct fchown_args *, int *);
2622int fchmod(struct proc *, struct fchmod_args *, int *);
2623int setreuid(struct proc *, struct setreuid_args *, int *);
2624int setregid(struct proc *, struct setregid_args *, int *);
2625int rename(struct proc *, struct rename_args *, int *);
2626int sys_flock(struct proc *, struct flock_args *, int *);
2627int mkfifo(struct proc *, struct mkfifo_args *, int *);
2628#if SOCKETS
2629int sendto(struct proc *, struct sendto_args *, int *);
2630int shutdown(struct proc *, struct shutdown_args *, int *);
2631int socketpair(struct proc *, struct socketpair_args *, int *);
2632#else
2633#endif /* SOCKETS */
2634int mkdir(struct proc *, struct mkdir_args *, int *);
2635int rmdir(struct proc *, struct rmdir_args *, int *);
2636int utimes(struct proc *, struct utimes_args *, int *);
2637int futimes(struct proc *, struct futimes_args *, int *);
2638int adjtime(struct proc *, struct adjtime_args *, int *);
2639int gethostuuid(struct proc *, struct gethostuuid_args *, int *);
2640int setsid(struct proc *, struct setsid_args *, int *);
2641int getpgid(struct proc *, struct getpgid_args *, int *);
2642int setprivexec(struct proc *, struct setprivexec_args *, int *);
2643int pread(struct proc *, struct pread_args *, user_ssize_t *);
2644int pwrite(struct proc *, struct pwrite_args *, user_ssize_t *);
2645#if NFSSERVER /* XXX */
2646int nfssvc(struct proc *, struct nfssvc_args *, int *);
2647#else
2648#endif
2649int statfs(struct proc *, struct statfs_args *, int *);
2650int fstatfs(struct proc *, struct fstatfs_args *, int *);
2651int unmount(struct proc *, struct unmount_args *, int *);
2652#if NFSSERVER /* XXX */
2653int getfh(struct proc *, struct getfh_args *, int *);
2654#else
2655#endif
2656int quotactl(struct proc *, struct quotactl_args *, int *);
2657int mount(struct proc *, struct mount_args *, int *);
2658int csops(struct proc *, struct csops_args *, int *);
2659int csops_audittoken(struct proc *, struct csops_audittoken_args *, int *);
2660int waitid(struct proc *, struct waitid_args *, int *);
2661int kdebug_typefilter(struct proc *, struct kdebug_typefilter_args *, int *);
2662int kdebug_trace_string(struct proc *, struct kdebug_trace_string_args *, uint64_t *);
2663int kdebug_trace64(struct proc *, struct kdebug_trace64_args *, int *);
2664int kdebug_trace(struct proc *, struct kdebug_trace_args *, int *);
2665int setgid(struct proc *, struct setgid_args *, int *);
2666int setegid(struct proc *, struct setegid_args *, int *);
2667int seteuid(struct proc *, struct seteuid_args *, int *);
2668int sigreturn(struct proc *, struct sigreturn_args *, int *);
2669int sys_panic_with_data(struct proc *, struct panic_with_data_args *, int *);
2670int thread_selfcounts(struct proc *, struct thread_selfcounts_args *, int *);
2671int fdatasync(struct proc *, struct fdatasync_args *, int *);
2672int stat(struct proc *, struct stat_args *, int *);
2673int sys_fstat(struct proc *, struct fstat_args *, int *);
2674int lstat(struct proc *, struct lstat_args *, int *);
2675int pathconf(struct proc *, struct pathconf_args *, int *);
2676int sys_fpathconf(struct proc *, struct fpathconf_args *, int *);
2677int getrlimit(struct proc *, struct getrlimit_args *, int *);
2678int setrlimit(struct proc *, struct setrlimit_args *, int *);
2679int getdirentries(struct proc *, struct getdirentries_args *, int *);
2680int mmap(struct proc *, struct mmap_args *, user_addr_t *);
2681int lseek(struct proc *, struct lseek_args *, off_t *);
2682int truncate(struct proc *, struct truncate_args *, int *);
2683int ftruncate(struct proc *, struct ftruncate_args *, int *);
2684int sysctl(struct proc *, struct sysctl_args *, int *);
2685int mlock(struct proc *, struct mlock_args *, int *);
2686int munlock(struct proc *, struct munlock_args *, int *);
2687int undelete(struct proc *, struct undelete_args *, int *);
2688int open_dprotected_np(struct proc *, struct open_dprotected_np_args *, int *);
2689int fsgetpath_ext(struct proc *, struct fsgetpath_ext_args *, user_ssize_t *);
2690int openat_dprotected_np(struct proc *, struct openat_dprotected_np_args *, int *);
2691int getattrlist(struct proc *, struct getattrlist_args *, int *);
2692int setattrlist(struct proc *, struct setattrlist_args *, int *);
2693int getdirentriesattr(struct proc *, struct getdirentriesattr_args *, int *);
2694int exchangedata(struct proc *, struct exchangedata_args *, int *);
2695int searchfs(struct proc *, struct searchfs_args *, int *);
2696int delete(struct proc *, struct delete_args *, int *);
2697int copyfile(struct proc *, struct copyfile_args *, int *);
2698int fgetattrlist(struct proc *, struct fgetattrlist_args *, int *);
2699int fsetattrlist(struct proc *, struct fsetattrlist_args *, int *);
2700int poll(struct proc *, struct poll_args *, int *);
2701int getxattr(struct proc *, struct getxattr_args *, user_ssize_t *);
2702int fgetxattr(struct proc *, struct fgetxattr_args *, user_ssize_t *);
2703int setxattr(struct proc *, struct setxattr_args *, int *);
2704int fsetxattr(struct proc *, struct fsetxattr_args *, int *);
2705int removexattr(struct proc *, struct removexattr_args *, int *);
2706int fremovexattr(struct proc *, struct fremovexattr_args *, int *);
2707int listxattr(struct proc *, struct listxattr_args *, user_ssize_t *);
2708int flistxattr(struct proc *, struct flistxattr_args *, user_ssize_t *);
2709int fsctl(struct proc *, struct fsctl_args *, int *);
2710int initgroups(struct proc *, struct initgroups_args *, int *);
2711int posix_spawn(struct proc *, struct posix_spawn_args *, int *);
2712int ffsctl(struct proc *, struct ffsctl_args *, int *);
2713#if NFSSERVER /* XXX */
2714int fhopen(struct proc *, struct fhopen_args *, int *);
2715#else
2716#endif
2717int minherit(struct proc *, struct minherit_args *, int *);
2718#if SYSV_SEM
2719int semsys(struct proc *, struct semsys_args *, int *);
2720#else
2721#endif
2722#if SYSV_MSG
2723int msgsys(struct proc *, struct msgsys_args *, int *);
2724#else
2725#endif
2726#if SYSV_SHM
2727int shmsys(struct proc *, struct shmsys_args *, int *);
2728#else
2729#endif
2730#if SYSV_SEM
2731int semctl(struct proc *, struct semctl_args *, int *);
2732int semget(struct proc *, struct semget_args *, int *);
2733int semop(struct proc *, struct semop_args *, int *);
2734#else
2735#endif
2736#if SYSV_MSG
2737int msgctl(struct proc *, struct msgctl_args *, int *);
2738int msgget(struct proc *, struct msgget_args *, int *);
2739int msgsnd(struct proc *, struct msgsnd_args *, int *);
2740int msgrcv(struct proc *, struct msgrcv_args *, user_ssize_t *);
2741#else
2742#endif
2743#if SYSV_SHM
2744int shmat(struct proc *, struct shmat_args *, user_addr_t *);
2745int shmctl(struct proc *, struct shmctl_args *, int *);
2746int shmdt(struct proc *, struct shmdt_args *, int *);
2747int shmget(struct proc *, struct shmget_args *, int *);
2748#else
2749#endif
2750int shm_open(struct proc *, struct shm_open_args *, int *);
2751int shm_unlink(struct proc *, struct shm_unlink_args *, int *);
2752int sem_open(struct proc *, struct sem_open_args *, user_addr_t *);
2753int sem_close(struct proc *, struct sem_close_args *, int *);
2754int sem_unlink(struct proc *, struct sem_unlink_args *, int *);
2755int sem_wait(struct proc *, struct sem_wait_args *, int *);
2756int sem_trywait(struct proc *, struct sem_trywait_args *, int *);
2757int sem_post(struct proc *, struct sem_post_args *, int *);
2758int sys_sysctlbyname(struct proc *, struct sysctlbyname_args *, int *);
2759int open_extended(struct proc *, struct open_extended_args *, int *);
2760int umask_extended(struct proc *, struct umask_extended_args *, int *);
2761int stat_extended(struct proc *, struct stat_extended_args *, int *);
2762int lstat_extended(struct proc *, struct lstat_extended_args *, int *);
2763int sys_fstat_extended(struct proc *, struct fstat_extended_args *, int *);
2764int chmod_extended(struct proc *, struct chmod_extended_args *, int *);
2765int fchmod_extended(struct proc *, struct fchmod_extended_args *, int *);
2766int access_extended(struct proc *, struct access_extended_args *, int *);
2767int sys_settid(struct proc *, struct settid_args *, int *);
2768int gettid(struct proc *, struct gettid_args *, int *);
2769int setsgroups(struct proc *, struct setsgroups_args *, int *);
2770int getsgroups(struct proc *, struct getsgroups_args *, int *);
2771int setwgroups(struct proc *, struct setwgroups_args *, int *);
2772int getwgroups(struct proc *, struct getwgroups_args *, int *);
2773int mkfifo_extended(struct proc *, struct mkfifo_extended_args *, int *);
2774int mkdir_extended(struct proc *, struct mkdir_extended_args *, int *);
2775#if CONFIG_EXT_RESOLVER
2776int identitysvc(struct proc *, struct identitysvc_args *, int *);
2777#else
2778#endif
2779int shared_region_check_np(struct proc *, struct shared_region_check_np_args *, int *);
2780int vm_pressure_monitor(struct proc *, struct vm_pressure_monitor_args *, int *);
2781#if PSYNCH
2782int psynch_rw_longrdlock(struct proc *, struct psynch_rw_longrdlock_args *, uint32_t *);
2783int psynch_rw_yieldwrlock(struct proc *, struct psynch_rw_yieldwrlock_args *, uint32_t *);
2784int psynch_rw_downgrade(struct proc *, struct psynch_rw_downgrade_args *, int *);
2785int psynch_rw_upgrade(struct proc *, struct psynch_rw_upgrade_args *, uint32_t *);
2786int psynch_mutexwait(struct proc *, struct psynch_mutexwait_args *, uint32_t *);
2787int psynch_mutexdrop(struct proc *, struct psynch_mutexdrop_args *, uint32_t *);
2788int psynch_cvbroad(struct proc *, struct psynch_cvbroad_args *, uint32_t *);
2789int psynch_cvsignal(struct proc *, struct psynch_cvsignal_args *, uint32_t *);
2790int psynch_cvwait(struct proc *, struct psynch_cvwait_args *, uint32_t *);
2791int psynch_rw_rdlock(struct proc *, struct psynch_rw_rdlock_args *, uint32_t *);
2792int psynch_rw_wrlock(struct proc *, struct psynch_rw_wrlock_args *, uint32_t *);
2793int psynch_rw_unlock(struct proc *, struct psynch_rw_unlock_args *, uint32_t *);
2794int psynch_rw_unlock2(struct proc *, struct psynch_rw_unlock2_args *, uint32_t *);
2795#else
2796#endif
2797int getsid(struct proc *, struct getsid_args *, int *);
2798int sys_settid_with_pid(struct proc *, struct settid_with_pid_args *, int *);
2799#if PSYNCH
2800int psynch_cvclrprepost(struct proc *, struct psynch_cvclrprepost_args *, int *);
2801#else
2802#endif
2803int aio_fsync(struct proc *, struct aio_fsync_args *, int *);
2804int aio_return(struct proc *, struct aio_return_args *, user_ssize_t *);
2805int aio_suspend(struct proc *, struct aio_suspend_args *, int *);
2806int aio_cancel(struct proc *, struct aio_cancel_args *, int *);
2807int aio_error(struct proc *, struct aio_error_args *, int *);
2808int aio_read(struct proc *, struct aio_read_args *, int *);
2809int aio_write(struct proc *, struct aio_write_args *, int *);
2810int lio_listio(struct proc *, struct lio_listio_args *, int *);
2811int iopolicysys(struct proc *, struct iopolicysys_args *, int *);
2812int process_policy(struct proc *, struct process_policy_args *, int *);
2813int mlockall(struct proc *, struct mlockall_args *, int *);
2814int munlockall(struct proc *, struct munlockall_args *, int *);
2815int issetugid(struct proc *, struct issetugid_args *, int *);
2816int __pthread_kill(struct proc *, struct __pthread_kill_args *, int *);
2817int __pthread_sigmask(struct proc *, struct __pthread_sigmask_args *, int *);
2818int __sigwait(struct proc *, struct __sigwait_args *, int *);
2819int __disable_threadsignal(struct proc *, struct __disable_threadsignal_args *, int *);
2820int __pthread_markcancel(struct proc *, struct __pthread_markcancel_args *, int *);
2821int __pthread_canceled(struct proc *, struct __pthread_canceled_args *, int *);
2822int __semwait_signal(struct proc *, struct __semwait_signal_args *, int *);
2823int proc_info(struct proc *, struct proc_info_args *, int *);
2824#if SENDFILE
2825int sendfile(struct proc *, struct sendfile_args *, int *);
2826#else /* !SENDFILE */
2827#endif /* SENDFILE */
2828int stat64(struct proc *, struct stat64_args *, int *);
2829int sys_fstat64(struct proc *, struct fstat64_args *, int *);
2830int lstat64(struct proc *, struct lstat64_args *, int *);
2831int stat64_extended(struct proc *, struct stat64_extended_args *, int *);
2832int lstat64_extended(struct proc *, struct lstat64_extended_args *, int *);
2833int sys_fstat64_extended(struct proc *, struct fstat64_extended_args *, int *);
2834int getdirentries64(struct proc *, struct getdirentries64_args *, user_ssize_t *);
2835int statfs64(struct proc *, struct statfs64_args *, int *);
2836int fstatfs64(struct proc *, struct fstatfs64_args *, int *);
2837int getfsstat64(struct proc *, struct getfsstat64_args *, int *);
2838int __pthread_chdir(struct proc *, struct __pthread_chdir_args *, int *);
2839int __pthread_fchdir(struct proc *, struct __pthread_fchdir_args *, int *);
2840int audit(struct proc *, struct audit_args *, int *);
2841int auditon(struct proc *, struct auditon_args *, int *);
2842int getauid(struct proc *, struct getauid_args *, int *);
2843int setauid(struct proc *, struct setauid_args *, int *);
2844int getaudit_addr(struct proc *, struct getaudit_addr_args *, int *);
2845int setaudit_addr(struct proc *, struct setaudit_addr_args *, int *);
2846int auditctl(struct proc *, struct auditctl_args *, int *);
2847int bsdthread_create(struct proc *, struct bsdthread_create_args *, user_addr_t *);
2848int bsdthread_terminate(struct proc *, struct bsdthread_terminate_args *, int *);
2849int kqueue(struct proc *, struct kqueue_args *, int *);
2850int kevent(struct proc *, struct kevent_args *, int *);
2851int lchown(struct proc *, struct lchown_args *, int *);
2852int bsdthread_register(struct proc *, struct bsdthread_register_args *, int *);
2853int workq_open(struct proc *, struct workq_open_args *, int *);
2854int workq_kernreturn(struct proc *, struct workq_kernreturn_args *, int *);
2855int kevent64(struct proc *, struct kevent64_args *, int *);
2856int thread_selfid(struct proc *, struct thread_selfid_args *, uint64_t *);
2857int ledger(struct proc *, struct ledger_args *, int *);
2858int kevent_qos(struct proc *, struct kevent_qos_args *, int *);
2859int kevent_id(struct proc *, struct kevent_id_args *, int *);
2860int __mac_execve(struct proc *, struct __mac_execve_args *, int *);
2861#if CONFIG_MACF
2862int __mac_syscall(struct proc *, struct __mac_syscall_args *, int *);
2863int __mac_get_file(struct proc *, struct __mac_get_file_args *, int *);
2864int __mac_set_file(struct proc *, struct __mac_set_file_args *, int *);
2865int __mac_get_link(struct proc *, struct __mac_get_link_args *, int *);
2866int __mac_set_link(struct proc *, struct __mac_set_link_args *, int *);
2867int __mac_get_proc(struct proc *, struct __mac_get_proc_args *, int *);
2868int __mac_set_proc(struct proc *, struct __mac_set_proc_args *, int *);
2869int __mac_get_fd(struct proc *, struct __mac_get_fd_args *, int *);
2870int __mac_set_fd(struct proc *, struct __mac_set_fd_args *, int *);
2871int __mac_get_pid(struct proc *, struct __mac_get_pid_args *, int *);
2872#else
2873#endif
2874int pselect(struct proc *, struct pselect_args *, int *);
2875int pselect_nocancel(struct proc *, struct pselect_nocancel_args *, int *);
2876int read_nocancel(struct proc *, struct read_nocancel_args *, user_ssize_t *);
2877int write_nocancel(struct proc *, struct write_nocancel_args *, user_ssize_t *);
2878int open_nocancel(struct proc *, struct open_nocancel_args *, int *);
2879int sys_close_nocancel(struct proc *, struct close_nocancel_args *, int *);
2880int wait4_nocancel(struct proc *, struct wait4_nocancel_args *, int *);
2881#if SOCKETS
2882int recvmsg_nocancel(struct proc *, struct recvmsg_nocancel_args *, int *);
2883int sendmsg_nocancel(struct proc *, struct sendmsg_nocancel_args *, int *);
2884int recvfrom_nocancel(struct proc *, struct recvfrom_nocancel_args *, int *);
2885int accept_nocancel(struct proc *, struct accept_nocancel_args *, int *);
2886#else
2887#endif /* SOCKETS */
2888int msync_nocancel(struct proc *, struct msync_nocancel_args *, int *);
2889int sys_fcntl_nocancel(struct proc *, struct fcntl_nocancel_args *, int *);
2890int select_nocancel(struct proc *, struct select_nocancel_args *, int *);
2891int fsync_nocancel(struct proc *, struct fsync_nocancel_args *, int *);
2892#if SOCKETS
2893int connect_nocancel(struct proc *, struct connect_nocancel_args *, int *);
2894#else
2895#endif /* SOCKETS */
2896int sigsuspend_nocancel(struct proc *, struct sigsuspend_nocancel_args *, int *);
2897int readv_nocancel(struct proc *, struct readv_nocancel_args *, user_ssize_t *);
2898int writev_nocancel(struct proc *, struct writev_nocancel_args *, user_ssize_t *);
2899#if SOCKETS
2900int sendto_nocancel(struct proc *, struct sendto_nocancel_args *, int *);
2901#else
2902#endif /* SOCKETS */
2903int pread_nocancel(struct proc *, struct pread_nocancel_args *, user_ssize_t *);
2904int pwrite_nocancel(struct proc *, struct pwrite_nocancel_args *, user_ssize_t *);
2905int waitid_nocancel(struct proc *, struct waitid_nocancel_args *, int *);
2906int poll_nocancel(struct proc *, struct poll_nocancel_args *, int *);
2907#if SYSV_MSG
2908int msgsnd_nocancel(struct proc *, struct msgsnd_nocancel_args *, int *);
2909int msgrcv_nocancel(struct proc *, struct msgrcv_nocancel_args *, user_ssize_t *);
2910#else
2911#endif
2912int sem_wait_nocancel(struct proc *, struct sem_wait_nocancel_args *, int *);
2913int aio_suspend_nocancel(struct proc *, struct aio_suspend_nocancel_args *, int *);
2914int __sigwait_nocancel(struct proc *, struct __sigwait_nocancel_args *, int *);
2915int __semwait_signal_nocancel(struct proc *, struct __semwait_signal_nocancel_args *, int *);
2916int __mac_mount(struct proc *, struct __mac_mount_args *, int *);
2917#if CONFIG_MACF
2918int __mac_get_mount(struct proc *, struct __mac_get_mount_args *, int *);
2919#else
2920#endif
2921int __mac_getfsstat(struct proc *, struct __mac_getfsstat_args *, int *);
2922int fsgetpath(struct proc *, struct fsgetpath_args *, user_ssize_t *);
2923int audit_session_self(struct proc *, struct audit_session_self_args *, mach_port_name_t *);
2924int audit_session_join(struct proc *, struct audit_session_join_args *, int *);
2925int sys_fileport_makeport(struct proc *, struct fileport_makeport_args *, int *);
2926int sys_fileport_makefd(struct proc *, struct fileport_makefd_args *, int *);
2927int audit_session_port(struct proc *, struct audit_session_port_args *, int *);
2928int pid_suspend(struct proc *, struct pid_suspend_args *, int *);
2929int pid_resume(struct proc *, struct pid_resume_args *, int *);
2930#if CONFIG_EMBEDDED
2931int pid_hibernate(struct proc *, struct pid_hibernate_args *, int *);
2932#else
2933#endif
2934#if SOCKETS
2935int pid_shutdown_sockets(struct proc *, struct pid_shutdown_sockets_args *, int *);
2936#else
2937#endif
2938int kas_info(struct proc *, struct kas_info_args *, int *);
2939#if CONFIG_MEMORYSTATUS
2940int memorystatus_control(struct proc *, struct memorystatus_control_args *, int *);
2941#else
2942#endif
2943int guarded_open_np(struct proc *, struct guarded_open_np_args *, int *);
2944int guarded_close_np(struct proc *, struct guarded_close_np_args *, int *);
2945int guarded_kqueue_np(struct proc *, struct guarded_kqueue_np_args *, int *);
2946int change_fdguard_np(struct proc *, struct change_fdguard_np_args *, int *);
2947int usrctl(struct proc *, struct usrctl_args *, int *);
2948int proc_rlimit_control(struct proc *, struct proc_rlimit_control_args *, int *);
2949#if SOCKETS
2950int connectx(struct proc *, struct connectx_args *, int *);
2951int disconnectx(struct proc *, struct disconnectx_args *, int *);
2952int peeloff(struct proc *, struct peeloff_args *, int *);
2953int socket_delegate(struct proc *, struct socket_delegate_args *, int *);
2954#else
2955#endif /* SOCKETS */
2956int telemetry(struct proc *, struct telemetry_args *, int *);
2957#if CONFIG_PROC_UUID_POLICY
2958int proc_uuid_policy(struct proc *, struct proc_uuid_policy_args *, int *);
2959#else
2960#endif
2961#if CONFIG_MEMORYSTATUS
2962int memorystatus_get_level(struct proc *, struct memorystatus_get_level_args *, int *);
2963#else
2964#endif
2965int system_override(struct proc *, struct system_override_args *, int *);
2966int vfs_purge(struct proc *, struct vfs_purge_args *, int *);
2967int sfi_ctl(struct proc *, struct sfi_ctl_args *, int *);
2968int sfi_pidctl(struct proc *, struct sfi_pidctl_args *, int *);
2969#if CONFIG_COALITIONS
2970int coalition(struct proc *, struct coalition_args *, int *);
2971int coalition_info(struct proc *, struct coalition_info_args *, int *);
2972#else
2973#endif /* COALITIONS */
2974#if NECP
2975int necp_match_policy(struct proc *, struct necp_match_policy_args *, int *);
2976#else
2977#endif /* NECP */
2978int getattrlistbulk(struct proc *, struct getattrlistbulk_args *, int *);
2979int clonefileat(struct proc *, struct clonefileat_args *, int *);
2980int openat(struct proc *, struct openat_args *, int *);
2981int openat_nocancel(struct proc *, struct openat_nocancel_args *, int *);
2982int renameat(struct proc *, struct renameat_args *, int *);
2983int faccessat(struct proc *, struct faccessat_args *, int *);
2984int fchmodat(struct proc *, struct fchmodat_args *, int *);
2985int fchownat(struct proc *, struct fchownat_args *, int *);
2986int fstatat(struct proc *, struct fstatat_args *, int *);
2987int fstatat64(struct proc *, struct fstatat64_args *, int *);
2988int linkat(struct proc *, struct linkat_args *, int *);
2989int unlinkat(struct proc *, struct unlinkat_args *, int *);
2990int readlinkat(struct proc *, struct readlinkat_args *, int *);
2991int symlinkat(struct proc *, struct symlinkat_args *, int *);
2992int mkdirat(struct proc *, struct mkdirat_args *, int *);
2993int getattrlistat(struct proc *, struct getattrlistat_args *, int *);
2994int proc_trace_log(struct proc *, struct proc_trace_log_args *, int *);
2995int bsdthread_ctl(struct proc *, struct bsdthread_ctl_args *, int *);
2996int openbyid_np(struct proc *, struct openbyid_np_args *, int *);
2997#if SOCKETS
2998int recvmsg_x(struct proc *, struct recvmsg_x_args *, user_ssize_t *);
2999int sendmsg_x(struct proc *, struct sendmsg_x_args *, user_ssize_t *);
3000#else
3001#endif /* SOCKETS */
3002int thread_selfusage(struct proc *, struct thread_selfusage_args *, uint64_t *);
3003#if CONFIG_CSR
3004int csrctl(struct proc *, struct csrctl_args *, int *);
3005#else
3006#endif /* CSR */
3007int guarded_open_dprotected_np(struct proc *, struct guarded_open_dprotected_np_args *, int *);
3008int guarded_write_np(struct proc *, struct guarded_write_np_args *, user_ssize_t *);
3009int guarded_pwrite_np(struct proc *, struct guarded_pwrite_np_args *, user_ssize_t *);
3010int guarded_writev_np(struct proc *, struct guarded_writev_np_args *, user_ssize_t *);
3011int renameatx_np(struct proc *, struct renameatx_np_args *, int *);
3012#if CONFIG_CODE_DECRYPTION
3013int mremap_encrypted(struct proc *, struct mremap_encrypted_args *, int *);
3014#else
3015#endif
3016#if NETWORKING
3017int netagent_trigger(struct proc *, struct netagent_trigger_args *, int *);
3018#else
3019#endif /* NETWORKING */
3020int stack_snapshot_with_config(struct proc *, struct stack_snapshot_with_config_args *, int *);
3021#if CONFIG_TELEMETRY
3022int microstackshot(struct proc *, struct microstackshot_args *, int *);
3023#else
3024#endif /* CONFIG_TELEMETRY */
3025#if PGO
3026int grab_pgo_data(struct proc *, struct grab_pgo_data_args *, user_ssize_t *);
3027#else
3028#endif
3029#if CONFIG_PERSONAS
3030int persona(struct proc *, struct persona_args *, int *);
3031#else
3032#endif
3033int mach_eventlink_signal(struct proc *, struct mach_eventlink_signal_args *, uint64_t *);
3034int mach_eventlink_wait_until(struct proc *, struct mach_eventlink_wait_until_args *, uint64_t *);
3035int mach_eventlink_signal_wait_until(struct proc *, struct mach_eventlink_signal_wait_until_args *, uint64_t *);
3036int work_interval_ctl(struct proc *, struct work_interval_ctl_args *, int *);
3037int getentropy(struct proc *, struct getentropy_args *, int *);
3038#if NECP
3039int necp_open(struct proc *, struct necp_open_args *, int *);
3040int necp_client_action(struct proc *, struct necp_client_action_args *, int *);
3041#else
3042#endif /* NECP */
3043#if SKYWALK
3044int __nexus_open(struct proc *, struct __nexus_open_args *, int *);
3045int __nexus_register(struct proc *, struct __nexus_register_args *, int *);
3046int __nexus_deregister(struct proc *, struct __nexus_deregister_args *, int *);
3047int __nexus_create(struct proc *, struct __nexus_create_args *, int *);
3048int __nexus_destroy(struct proc *, struct __nexus_destroy_args *, int *);
3049int __nexus_get_opt(struct proc *, struct __nexus_get_opt_args *, int *);
3050int __nexus_set_opt(struct proc *, struct __nexus_set_opt_args *, int *);
3051int __channel_open(struct proc *, struct __channel_open_args *, int *);
3052int __channel_get_info(struct proc *, struct __channel_get_info_args *, int *);
3053int __channel_sync(struct proc *, struct __channel_sync_args *, int *);
3054int __channel_get_opt(struct proc *, struct __channel_get_opt_args *, int *);
3055int __channel_set_opt(struct proc *, struct __channel_set_opt_args *, int *);
3056#else
3057#endif /* !SKYWALK */
3058int sys_ulock_wait(struct proc *, struct ulock_wait_args *, int *);
3059int sys_ulock_wake(struct proc *, struct ulock_wake_args *, int *);
3060int fclonefileat(struct proc *, struct fclonefileat_args *, int *);
3061int fs_snapshot(struct proc *, struct fs_snapshot_args *, int *);
3062int terminate_with_payload(struct proc *, struct terminate_with_payload_args *, int *);
3063int abort_with_payload(struct proc *, struct abort_with_payload_args *, void *);
3064#if NECP
3065int necp_session_open(struct proc *, struct necp_session_open_args *, int *);
3066int necp_session_action(struct proc *, struct necp_session_action_args *, int *);
3067#else /* NECP */
3068#endif /* NECP */
3069int setattrlistat(struct proc *, struct setattrlistat_args *, int *);
3070int net_qos_guideline(struct proc *, struct net_qos_guideline_args *, int *);
3071int fmount(struct proc *, struct fmount_args *, int *);
3072int ntp_adjtime(struct proc *, struct ntp_adjtime_args *, int *);
3073int ntp_gettime(struct proc *, struct ntp_gettime_args *, int *);
3074int os_fault_with_payload(struct proc *, struct os_fault_with_payload_args *, int *);
3075int kqueue_workloop_ctl(struct proc *, struct kqueue_workloop_ctl_args *, int *);
3076int __mach_bridge_remote_time(struct proc *, struct __mach_bridge_remote_time_args *, uint64_t *);
3077#if CONFIG_COALITIONS
3078int coalition_ledger(struct proc *, struct coalition_ledger_args *, int *);
3079#else
3080#endif // CONFIG_COALITIONS
3081int log_data(struct proc *, struct log_data_args *, int *);
3082int memorystatus_available_memory(struct proc *, struct memorystatus_available_memory_args *, uint64_t *);
3083int shared_region_map_and_slide_2_np(struct proc *, struct shared_region_map_and_slide_2_np_args *, int *);
3084int pivot_root(struct proc *, struct pivot_root_args *, int *);
3085int task_inspect_for_pid(struct proc *, struct task_inspect_for_pid_args *, int *);
3086int task_read_for_pid(struct proc *, struct task_read_for_pid_args *, int *);
3087int sys_preadv(struct proc *, struct preadv_args *, user_ssize_t *);
3088int sys_pwritev(struct proc *, struct pwritev_args *, user_ssize_t *);
3089int sys_preadv_nocancel(struct proc *, struct preadv_nocancel_args *, user_ssize_t *);
3090int sys_pwritev_nocancel(struct proc *, struct pwritev_nocancel_args *, user_ssize_t *);
3091int sys_ulock_wait2(struct proc *, struct ulock_wait2_args *, int *);
3092int proc_info_extended_id(struct proc *, struct proc_info_extended_id_args *, int *);
3093#if SOCKETS
3094int tracker_action(struct proc *, struct tracker_action_args *, int *);
3095#else
3096#endif /* SOCKETS */
3097int debug_syscall_reject(struct proc *, struct debug_syscall_reject_args *, int *);
3098int sys_debug_syscall_reject_config(struct proc *, struct debug_syscall_reject_config_args *, int *);
3099int graftdmg(struct proc *, struct graftdmg_args *, int *);
3100int map_with_linking_np(struct proc *, struct map_with_linking_np_args *, int *);
3101int freadlink(struct proc *, struct freadlink_args *, int *);
3102int sys_record_system_event(struct proc *, struct record_system_event_args *, int *);
3103int mkfifoat(struct proc *, struct mkfifoat_args *, int *);
3104int mknodat(struct proc *, struct mknodat_args *, int *);
3105int ungraftdmg(struct proc *, struct ungraftdmg_args *, int *);
3106
3107__END_DECLS
3108#undef PAD_
3109#undef PADL_
3110#undef PADR_
3111
3112#endif /* __APPLE_API_PRIVATE */
3113#endif /* KERNEL */
3114
3115#endif /* !_SYS_SYSPROTO_H_ */
3116