]> git.saurik.com Git - apple/xnu.git/blame - bsd/sys/sysproto.h
xnu-1228.3.13.tar.gz
[apple/xnu.git] / bsd / sys / sysproto.h
CommitLineData
91447636 1/*
2d21ac55 2 * Copyright (c) 2004-2007 Apple Inc. All rights reserved.
91447636 3 *
2d21ac55 4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
91447636 5 *
2d21ac55
A
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.
8f6c56a5 14 *
2d21ac55
A
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
8f6c56a5 17 *
2d21ac55
A
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@
91447636
A
27 *
28 *
29 * System call switch table.
30 *
31 * DO NOT EDIT-- this file is automatically generated.
32 * created from syscalls.master
33 */
34
35#ifndef _SYS_SYSPROTO_H_
36#define _SYS_SYSPROTO_H_
37
38#include <sys/appleapiopts.h>
39#include <sys/cdefs.h>
40#include <sys/mount_internal.h>
41#include <sys/types.h>
42#include <sys/sem_internal.h>
43#include <sys/semaphore.h>
44#include <sys/wait.h>
2d21ac55 45#include <mach/shared_region.h>
91447636
A
46
47#ifdef KERNEL
48#ifdef __APPLE_API_PRIVATE
91447636
A
49#define PAD_(t) (sizeof(uint64_t) <= sizeof(t) \
50 ? 0 : sizeof(uint64_t) - sizeof(t))
91447636
A
51#if BYTE_ORDER == LITTLE_ENDIAN
52#define PADL_(t) 0
53#define PADR_(t) PAD_(t)
54#else
55#define PADL_(t) PAD_(t)
56#define PADR_(t) 0
57#endif
58
59__BEGIN_DECLS
60#ifndef __MUNGE_ONCE
61#define __MUNGE_ONCE
91447636
A
62void munge_w(const void *, void *);
63void munge_ww(const void *, void *);
64void munge_www(const void *, void *);
65void munge_wwww(const void *, void *);
66void munge_wwwww(const void *, void *);
67void munge_wwwwww(const void *, void *);
68void munge_wwwwwww(const void *, void *);
69void munge_wwwwwwww(const void *, void *);
6601e61a
A
70void munge_wl(const void *, void *);
71void munge_wlw(const void *, void *);
72void munge_wwwl(const void *, void *);
2d21ac55
A
73void munge_wwwlww(const void *, void *);
74void munge_wwlwww(const void *, void *);
6601e61a
A
75void munge_wwwwl(const void *, void *);
76void munge_wwwwwl(const void *, void *);
77void munge_wsw(const void *, void *);
78void munge_wws(const void *, void *);
79void munge_wwwsw(const void *, void *);
0c530ab8
A
80#ifdef __ppc__
81void munge_d(const void *, void *);
82void munge_dd(const void *, void *);
83void munge_ddd(const void *, void *);
84void munge_dddd(const void *, void *);
85void munge_ddddd(const void *, void *);
86void munge_dddddd(const void *, void *);
87void munge_ddddddd(const void *, void *);
88void munge_dddddddd(const void *, void *);
91447636 89#else
91447636
A
90#define munge_d NULL
91#define munge_dd NULL
92#define munge_ddd NULL
93#define munge_dddd NULL
94#define munge_ddddd NULL
95#define munge_dddddd NULL
96#define munge_ddddddd NULL
97#define munge_dddddddd NULL
91447636
A
98#endif // __ppc__
99#endif /* !__MUNGE_ONCE */
100
101struct nosys_args {
102 register_t dummy;
103};
104struct exit_args {
105 char rval_l_[PADL_(int)]; int rval; char rval_r_[PADR_(int)];
106};
107struct fork_args {
108 register_t dummy;
109};
110struct read_args {
111 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
112 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
113 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
114};
115struct write_args {
116 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
117 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
118 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
119};
120struct open_args {
121 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
122 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
123 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
124};
125struct close_args {
126 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
127};
128struct wait4_args {
129 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
130 char status_l_[PADL_(user_addr_t)]; user_addr_t status; char status_r_[PADR_(user_addr_t)];
131 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
132 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
133};
134struct link_args {
135 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
136 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
137};
138struct unlink_args {
139 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
140};
141struct chdir_args {
142 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
143};
144struct fchdir_args {
145 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
146};
147struct mknod_args {
148 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
149 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
150 char dev_l_[PADL_(int)]; int dev; char dev_r_[PADR_(int)];
151};
152struct chmod_args {
153 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
154 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
155};
156struct chown_args {
157 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
158 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
159 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
160};
161struct obreak_args {
162 char nsize_l_[PADL_(char *)]; char * nsize; char nsize_r_[PADR_(char *)];
163};
164#if COMPAT_GETFSSTAT
165struct ogetfsstat_args {
166 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
167 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
168 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
169};
170#else
171struct getfsstat_args {
172 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
173 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
174 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
175};
176#endif
177struct getpid_args {
178 register_t dummy;
179};
180struct setuid_args {
181 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
182};
183struct getuid_args {
184 register_t dummy;
185};
186struct geteuid_args {
187 register_t dummy;
188};
189struct ptrace_args {
190 char req_l_[PADL_(int)]; int req; char req_r_[PADR_(int)];
191 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
192 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
193 char data_l_[PADL_(int)]; int data; char data_r_[PADR_(int)];
194};
2d21ac55 195#if SOCKETS
91447636
A
196struct recvmsg_args {
197 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
198 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
199 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
200};
201struct sendmsg_args {
202 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
203 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
204 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
205};
206struct recvfrom_args {
207 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
208 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
209 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
210 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
211 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
212 char fromlenaddr_l_[PADL_(user_addr_t)]; user_addr_t fromlenaddr; char fromlenaddr_r_[PADR_(user_addr_t)];
213};
214struct accept_args {
215 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
216 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
217 char anamelen_l_[PADL_(user_addr_t)]; user_addr_t anamelen; char anamelen_r_[PADR_(user_addr_t)];
218};
219struct getpeername_args {
220 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
221 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
222 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
223};
224struct getsockname_args {
225 char fdes_l_[PADL_(int)]; int fdes; char fdes_r_[PADR_(int)];
226 char asa_l_[PADL_(user_addr_t)]; user_addr_t asa; char asa_r_[PADR_(user_addr_t)];
227 char alen_l_[PADL_(user_addr_t)]; user_addr_t alen; char alen_r_[PADR_(user_addr_t)];
228};
2d21ac55
A
229#else
230#endif /* SOCKETS */
91447636
A
231struct access_args {
232 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
233 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
234};
235struct chflags_args {
236 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
237 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
238};
239struct fchflags_args {
240 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
241 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
242};
243struct sync_args {
244 register_t dummy;
245};
246struct kill_args {
247 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
248 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
2d21ac55 249 char posix_l_[PADL_(int)]; int posix; char posix_r_[PADR_(int)];
91447636
A
250};
251struct getppid_args {
252 register_t dummy;
253};
254struct dup_args {
255 char fd_l_[PADL_(u_int)]; u_int fd; char fd_r_[PADR_(u_int)];
256};
257struct pipe_args {
258 register_t dummy;
259};
260struct getegid_args {
261 register_t dummy;
262};
263struct profil_args {
264 char bufbase_l_[PADL_(user_addr_t)]; user_addr_t bufbase; char bufbase_r_[PADR_(user_addr_t)];
265 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
266 char pcoffset_l_[PADL_(user_ulong_t)]; user_ulong_t pcoffset; char pcoffset_r_[PADR_(user_ulong_t)];
267 char pcscale_l_[PADL_(u_int)]; u_int pcscale; char pcscale_r_[PADR_(u_int)];
268};
91447636
A
269struct sigaction_args {
270 char signum_l_[PADL_(int)]; int signum; char signum_r_[PADR_(int)];
271 char nsa_l_[PADL_(user_addr_t)]; user_addr_t nsa; char nsa_r_[PADR_(user_addr_t)];
272 char osa_l_[PADL_(user_addr_t)]; user_addr_t osa; char osa_r_[PADR_(user_addr_t)];
273};
274struct getgid_args {
275 register_t dummy;
276};
277struct sigprocmask_args {
278 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
279 char mask_l_[PADL_(user_addr_t)]; user_addr_t mask; char mask_r_[PADR_(user_addr_t)];
280 char omask_l_[PADL_(user_addr_t)]; user_addr_t omask; char omask_r_[PADR_(user_addr_t)];
281};
282struct getlogin_args {
283 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
284 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
285};
286struct setlogin_args {
287 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
288};
289struct acct_args {
290 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
291};
292struct sigpending_args {
293 char osv_l_[PADL_(user_addr_t)]; user_addr_t osv; char osv_r_[PADR_(user_addr_t)];
294};
295struct sigaltstack_args {
296 char nss_l_[PADL_(user_addr_t)]; user_addr_t nss; char nss_r_[PADR_(user_addr_t)];
297 char oss_l_[PADL_(user_addr_t)]; user_addr_t oss; char oss_r_[PADR_(user_addr_t)];
298};
299struct ioctl_args {
300 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
301 char com_l_[PADL_(user_ulong_t)]; user_ulong_t com; char com_r_[PADR_(user_ulong_t)];
302 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
303};
304struct reboot_args {
305 char opt_l_[PADL_(int)]; int opt; char opt_r_[PADR_(int)];
306 char command_l_[PADL_(user_addr_t)]; user_addr_t command; char command_r_[PADR_(user_addr_t)];
307};
308struct revoke_args {
309 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
310};
311struct symlink_args {
312 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
313 char link_l_[PADL_(user_addr_t)]; user_addr_t link; char link_r_[PADR_(user_addr_t)];
314};
315struct readlink_args {
316 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
317 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
318 char count_l_[PADL_(int)]; int count; char count_r_[PADR_(int)];
319};
320struct execve_args {
321 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
322 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
323 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
324};
325struct umask_args {
326 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
327};
328struct chroot_args {
329 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
330};
331struct msync_args {
332 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
333 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
334 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
335};
336struct vfork_args {
337 register_t dummy;
338};
339struct sbrk_args {
340 char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)];
341};
342struct sstk_args {
343 char incr_l_[PADL_(int)]; int incr; char incr_r_[PADR_(int)];
344};
345struct ovadvise_args {
346 register_t dummy;
347};
348struct munmap_args {
349 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
350 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
351};
352struct mprotect_args {
353 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
354 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
355 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
356};
357struct madvise_args {
358 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
359 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
360 char behav_l_[PADL_(int)]; int behav; char behav_r_[PADR_(int)];
361};
362struct mincore_args {
363 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
364 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
365 char vec_l_[PADL_(user_addr_t)]; user_addr_t vec; char vec_r_[PADR_(user_addr_t)];
366};
367struct getgroups_args {
368 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
369 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
370};
371struct setgroups_args {
372 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
373 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
374};
375struct getpgrp_args {
376 register_t dummy;
377};
378struct setpgid_args {
379 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
380 char pgid_l_[PADL_(int)]; int pgid; char pgid_r_[PADR_(int)];
381};
382struct setitimer_args {
383 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
384 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
385 char oitv_l_[PADL_(user_addr_t)]; user_addr_t oitv; char oitv_r_[PADR_(user_addr_t)];
386};
387struct swapon_args {
388 register_t dummy;
389};
390struct getitimer_args {
391 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
392 char itv_l_[PADL_(user_addr_t)]; user_addr_t itv; char itv_r_[PADR_(user_addr_t)];
393};
394struct getdtablesize_args {
395 register_t dummy;
396};
397struct dup2_args {
398 char from_l_[PADL_(u_int)]; u_int from; char from_r_[PADR_(u_int)];
399 char to_l_[PADL_(u_int)]; u_int to; char to_r_[PADR_(u_int)];
400};
401struct fcntl_args {
402 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
403 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
404 char arg_l_[PADL_(user_long_t)]; user_long_t arg; char arg_r_[PADR_(user_long_t)];
405};
406struct select_args {
407 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
408 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
409 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
410 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
411 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
412};
413struct fsync_args {
414 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
415};
416struct setpriority_args {
417 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
2d21ac55 418 char who_l_[PADL_(id_t)]; id_t who; char who_r_[PADR_(id_t)];
91447636
A
419 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
420};
2d21ac55 421#if SOCKETS
91447636
A
422struct socket_args {
423 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
424 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
425 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
426};
427struct connect_args {
428 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
429 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
430 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
431};
2d21ac55
A
432#else
433#endif /* SOCKETS */
91447636
A
434struct getpriority_args {
435 char which_l_[PADL_(int)]; int which; char which_r_[PADR_(int)];
2d21ac55 436 char who_l_[PADL_(id_t)]; id_t who; char who_r_[PADR_(id_t)];
91447636 437};
2d21ac55 438#if SOCKETS
91447636
A
439struct bind_args {
440 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
441 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
442 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
443};
444struct setsockopt_args {
445 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
446 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
447 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
448 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
449 char valsize_l_[PADL_(socklen_t)]; socklen_t valsize; char valsize_r_[PADR_(socklen_t)];
450};
451struct listen_args {
452 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
453 char backlog_l_[PADL_(int)]; int backlog; char backlog_r_[PADR_(int)];
454};
2d21ac55
A
455#else
456#endif /* SOCKETS */
91447636
A
457struct sigsuspend_args {
458 char mask_l_[PADL_(sigset_t)]; sigset_t mask; char mask_r_[PADR_(sigset_t)];
459};
2d21ac55
A
460#if SOCKETS
461#else
462#endif /* SOCKETS */
91447636
A
463struct gettimeofday_args {
464 char tp_l_[PADL_(user_addr_t)]; user_addr_t tp; char tp_r_[PADR_(user_addr_t)];
465 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
466};
91447636
A
467struct getrusage_args {
468 char who_l_[PADL_(int)]; int who; char who_r_[PADR_(int)];
469 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
470};
2d21ac55 471#if SOCKETS
91447636
A
472struct getsockopt_args {
473 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
474 char level_l_[PADL_(int)]; int level; char level_r_[PADR_(int)];
475 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
476 char val_l_[PADL_(user_addr_t)]; user_addr_t val; char val_r_[PADR_(user_addr_t)];
477 char avalsize_l_[PADL_(user_addr_t)]; user_addr_t avalsize; char avalsize_r_[PADR_(user_addr_t)];
478};
2d21ac55
A
479#else
480#endif /* SOCKETS */
91447636
A
481struct readv_args {
482 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
483 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
484 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
485};
486struct writev_args {
487 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
488 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
489 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
490};
491struct settimeofday_args {
492 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
493 char tzp_l_[PADL_(user_addr_t)]; user_addr_t tzp; char tzp_r_[PADR_(user_addr_t)];
494};
495struct fchown_args {
496 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
497 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
498 char gid_l_[PADL_(int)]; int gid; char gid_r_[PADR_(int)];
499};
500struct fchmod_args {
501 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
502 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
503};
2d21ac55
A
504struct setreuid_args {
505 char ruid_l_[PADL_(uid_t)]; uid_t ruid; char ruid_r_[PADR_(uid_t)];
506 char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
507};
508struct setregid_args {
509 char rgid_l_[PADL_(gid_t)]; gid_t rgid; char rgid_r_[PADR_(gid_t)];
510 char egid_l_[PADL_(gid_t)]; gid_t egid; char egid_r_[PADR_(gid_t)];
511};
91447636
A
512struct rename_args {
513 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
514 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
515};
516struct flock_args {
517 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
518 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
519};
520struct mkfifo_args {
521 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
522 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
523};
2d21ac55 524#if SOCKETS
91447636
A
525struct sendto_args {
526 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
527 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
528 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
529 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
530 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
531 char tolen_l_[PADL_(socklen_t)]; socklen_t tolen; char tolen_r_[PADR_(socklen_t)];
532};
533struct shutdown_args {
534 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
535 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
536};
537struct socketpair_args {
538 char domain_l_[PADL_(int)]; int domain; char domain_r_[PADR_(int)];
539 char type_l_[PADL_(int)]; int type; char type_r_[PADR_(int)];
540 char protocol_l_[PADL_(int)]; int protocol; char protocol_r_[PADR_(int)];
541 char rsv_l_[PADL_(user_addr_t)]; user_addr_t rsv; char rsv_r_[PADR_(user_addr_t)];
542};
2d21ac55
A
543#else
544#endif /* SOCKETS */
91447636
A
545struct mkdir_args {
546 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
547 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
548};
549struct rmdir_args {
550 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
551};
552struct utimes_args {
553 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
554 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
555};
556struct futimes_args {
557 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
558 char tptr_l_[PADL_(user_addr_t)]; user_addr_t tptr; char tptr_r_[PADR_(user_addr_t)];
559};
560struct adjtime_args {
561 char delta_l_[PADL_(user_addr_t)]; user_addr_t delta; char delta_r_[PADR_(user_addr_t)];
562 char olddelta_l_[PADL_(user_addr_t)]; user_addr_t olddelta; char olddelta_r_[PADR_(user_addr_t)];
563};
2d21ac55
A
564struct gethostuuid_args {
565 char uuid_buf_l_[PADL_(user_addr_t)]; user_addr_t uuid_buf; char uuid_buf_r_[PADR_(user_addr_t)];
566 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
567};
91447636
A
568struct setsid_args {
569 register_t dummy;
570};
571struct getpgid_args {
572 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
573};
574struct setprivexec_args {
575 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
576};
577struct pread_args {
578 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
579 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
580 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
581 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
582};
583struct pwrite_args {
584 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
585 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
586 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
587 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
588};
589#if NFSSERVER
590struct nfssvc_args {
591 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
592 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
593};
594#else
595#endif
596struct statfs_args {
597 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
598 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
599};
600struct fstatfs_args {
601 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
602 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
603};
604struct unmount_args {
605 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
606 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
607};
2d21ac55 608#if NFSSERVER
91447636
A
609struct getfh_args {
610 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
611 char fhp_l_[PADL_(user_addr_t)]; user_addr_t fhp; char fhp_r_[PADR_(user_addr_t)];
612};
613#else
614#endif
615struct quotactl_args {
616 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
617 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
618 char uid_l_[PADL_(int)]; int uid; char uid_r_[PADR_(int)];
619 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
620};
621struct mount_args {
622 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
623 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
624 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
625 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
626};
2d21ac55
A
627struct csops_args {
628 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
629 char ops_l_[PADL_(uint32_t)]; uint32_t ops; char ops_r_[PADR_(uint32_t)];
630 char useraddr_l_[PADL_(user_addr_t)]; user_addr_t useraddr; char useraddr_r_[PADR_(user_addr_t)];
631 char usersize_l_[PADL_(user_size_t)]; user_size_t usersize; char usersize_r_[PADR_(user_size_t)];
632};
91447636
A
633struct waitid_args {
634 char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
635 char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)];
636 char infop_l_[PADL_(user_addr_t)]; user_addr_t infop; char infop_r_[PADR_(user_addr_t)];
637 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
638};
639struct add_profil_args {
640 char bufbase_l_[PADL_(user_addr_t)]; user_addr_t bufbase; char bufbase_r_[PADR_(user_addr_t)];
641 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
642 char pcoffset_l_[PADL_(user_ulong_t)]; user_ulong_t pcoffset; char pcoffset_r_[PADR_(user_ulong_t)];
643 char pcscale_l_[PADL_(u_int)]; u_int pcscale; char pcscale_r_[PADR_(u_int)];
644};
645struct kdebug_trace_args {
646 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
647 char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];
648 char arg2_l_[PADL_(int)]; int arg2; char arg2_r_[PADR_(int)];
649 char arg3_l_[PADL_(int)]; int arg3; char arg3_r_[PADR_(int)];
650 char arg4_l_[PADL_(int)]; int arg4; char arg4_r_[PADR_(int)];
651 char arg5_l_[PADL_(int)]; int arg5; char arg5_r_[PADR_(int)];
652};
653struct setgid_args {
654 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
655};
656struct setegid_args {
657 char egid_l_[PADL_(gid_t)]; gid_t egid; char egid_r_[PADR_(gid_t)];
658};
659struct seteuid_args {
660 char euid_l_[PADL_(uid_t)]; uid_t euid; char euid_r_[PADR_(uid_t)];
661};
91447636
A
662struct sigreturn_args {
663 char uctx_l_[PADL_(user_addr_t)]; user_addr_t uctx; char uctx_r_[PADR_(user_addr_t)];
664 char infostyle_l_[PADL_(int)]; int infostyle; char infostyle_r_[PADR_(int)];
665};
0c530ab8
A
666struct chud_args {
667 char code_l_[PADL_(int)]; int code; char code_r_[PADR_(int)];
668 char arg1_l_[PADL_(int)]; int arg1; char arg1_r_[PADR_(int)];
669 char arg2_l_[PADL_(int)]; int arg2; char arg2_r_[PADR_(int)];
670 char arg3_l_[PADL_(int)]; int arg3; char arg3_r_[PADR_(int)];
671 char arg4_l_[PADL_(int)]; int arg4; char arg4_r_[PADR_(int)];
672 char arg5_l_[PADL_(int)]; int arg5; char arg5_r_[PADR_(int)];
673};
91447636
A
674struct stat_args {
675 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
676 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
677};
678struct fstat_args {
679 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
680 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
681};
682struct lstat_args {
683 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
684 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
685};
686struct pathconf_args {
687 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
688 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
689};
690struct fpathconf_args {
691 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
692 char name_l_[PADL_(int)]; int name; char name_r_[PADR_(int)];
693};
91447636
A
694struct getrlimit_args {
695 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
696 char rlp_l_[PADL_(user_addr_t)]; user_addr_t rlp; char rlp_r_[PADR_(user_addr_t)];
697};
698struct setrlimit_args {
699 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
700 char rlp_l_[PADL_(user_addr_t)]; user_addr_t rlp; char rlp_r_[PADR_(user_addr_t)];
701};
702struct getdirentries_args {
703 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
704 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
705 char count_l_[PADL_(u_int)]; u_int count; char count_r_[PADR_(u_int)];
706 char basep_l_[PADL_(user_addr_t)]; user_addr_t basep; char basep_r_[PADR_(user_addr_t)];
707};
708struct mmap_args {
709 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
710 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
711 char prot_l_[PADL_(int)]; int prot; char prot_r_[PADR_(int)];
712 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
713 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
714 char pos_l_[PADL_(off_t)]; off_t pos; char pos_r_[PADR_(off_t)];
715};
716struct lseek_args {
717 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
718 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
719 char whence_l_[PADL_(int)]; int whence; char whence_r_[PADR_(int)];
720};
721struct truncate_args {
722 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
723 char length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
724};
725struct ftruncate_args {
726 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
727 char length_l_[PADL_(off_t)]; off_t length; char length_r_[PADR_(off_t)];
728};
729struct __sysctl_args {
730 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
731 char namelen_l_[PADL_(u_int)]; u_int namelen; char namelen_r_[PADR_(u_int)];
732 char old_l_[PADL_(user_addr_t)]; user_addr_t old; char old_r_[PADR_(user_addr_t)];
733 char oldlenp_l_[PADL_(user_addr_t)]; user_addr_t oldlenp; char oldlenp_r_[PADR_(user_addr_t)];
734 char new_l_[PADL_(user_addr_t)]; user_addr_t new; char new_r_[PADR_(user_addr_t)];
735 char newlen_l_[PADL_(user_size_t)]; user_size_t newlen; char newlen_r_[PADR_(user_size_t)];
736};
737struct mlock_args {
738 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
739 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
740};
741struct munlock_args {
742 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
743 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
744};
745struct undelete_args {
746 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
747};
2d21ac55 748#if NETAT
91447636
A
749struct ATsocket_args {
750 char proto_l_[PADL_(int)]; int proto; char proto_r_[PADR_(int)];
751};
752struct ATgetmsg_args {
753 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
754 char ctlptr_l_[PADL_(void *)]; void * ctlptr; char ctlptr_r_[PADR_(void *)];
755 char datptr_l_[PADL_(void *)]; void * datptr; char datptr_r_[PADR_(void *)];
756 char flags_l_[PADL_(int *)]; int * flags; char flags_r_[PADR_(int *)];
757};
758struct ATputmsg_args {
759 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
760 char ctlptr_l_[PADL_(void *)]; void * ctlptr; char ctlptr_r_[PADR_(void *)];
761 char datptr_l_[PADL_(void *)]; void * datptr; char datptr_r_[PADR_(void *)];
762 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
763};
764struct ATPsndreq_args {
765 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
766 char buf_l_[PADL_(unsigned char *)]; unsigned char * buf; char buf_r_[PADR_(unsigned char *)];
767 char len_l_[PADL_(int)]; int len; char len_r_[PADR_(int)];
768 char nowait_l_[PADL_(int)]; int nowait; char nowait_r_[PADR_(int)];
769};
770struct ATPsndrsp_args {
771 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
772 char respbuff_l_[PADL_(unsigned char *)]; unsigned char * respbuff; char respbuff_r_[PADR_(unsigned char *)];
773 char resplen_l_[PADL_(int)]; int resplen; char resplen_r_[PADR_(int)];
774 char datalen_l_[PADL_(int)]; int datalen; char datalen_r_[PADR_(int)];
775};
776struct ATPgetreq_args {
777 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
778 char buf_l_[PADL_(unsigned char *)]; unsigned char * buf; char buf_r_[PADR_(unsigned char *)];
779 char buflen_l_[PADL_(int)]; int buflen; char buflen_r_[PADR_(int)];
780};
781struct ATPgetrsp_args {
782 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
783 char bdsp_l_[PADL_(unsigned char *)]; unsigned char * bdsp; char bdsp_r_[PADR_(unsigned char *)];
784};
2d21ac55
A
785#else
786#endif /* NETAT */
91447636
A
787struct kqueue_from_portset_np_args {
788 char portset_l_[PADL_(int)]; int portset; char portset_r_[PADR_(int)];
789};
790struct kqueue_portset_np_args {
791 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
792};
793struct getattrlist_args {
794 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
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 setattrlist_args {
801 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
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 getdirentriesattr_args {
808 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
809 char alist_l_[PADL_(user_addr_t)]; user_addr_t alist; char alist_r_[PADR_(user_addr_t)];
810 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
811 char buffersize_l_[PADL_(user_size_t)]; user_size_t buffersize; char buffersize_r_[PADR_(user_size_t)];
812 char count_l_[PADL_(user_addr_t)]; user_addr_t count; char count_r_[PADR_(user_addr_t)];
813 char basep_l_[PADL_(user_addr_t)]; user_addr_t basep; char basep_r_[PADR_(user_addr_t)];
814 char newstate_l_[PADL_(user_addr_t)]; user_addr_t newstate; char newstate_r_[PADR_(user_addr_t)];
815 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
816};
817struct exchangedata_args {
818 char path1_l_[PADL_(user_addr_t)]; user_addr_t path1; char path1_r_[PADR_(user_addr_t)];
819 char path2_l_[PADL_(user_addr_t)]; user_addr_t path2; char path2_r_[PADR_(user_addr_t)];
820 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
821};
91447636
A
822struct searchfs_args {
823 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
824 char searchblock_l_[PADL_(user_addr_t)]; user_addr_t searchblock; char searchblock_r_[PADR_(user_addr_t)];
825 char nummatches_l_[PADL_(user_addr_t)]; user_addr_t nummatches; char nummatches_r_[PADR_(user_addr_t)];
826 char scriptcode_l_[PADL_(user_ulong_t)]; user_ulong_t scriptcode; char scriptcode_r_[PADR_(user_ulong_t)];
827 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
828 char state_l_[PADL_(user_addr_t)]; user_addr_t state; char state_r_[PADR_(user_addr_t)];
829};
830struct delete_args {
831 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
832};
833struct copyfile_args {
834 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
835 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
836 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
837 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
838};
839struct poll_args {
840 char fds_l_[PADL_(user_addr_t)]; user_addr_t fds; char fds_r_[PADR_(user_addr_t)];
841 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
842 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
843};
844struct watchevent_args {
2d21ac55 845 char u_req_l_[PADL_(user_addr_t)]; user_addr_t u_req; char u_req_r_[PADR_(user_addr_t)];
91447636
A
846 char u_eventmask_l_[PADL_(int)]; int u_eventmask; char u_eventmask_r_[PADR_(int)];
847};
848struct waitevent_args {
2d21ac55
A
849 char u_req_l_[PADL_(user_addr_t)]; user_addr_t u_req; char u_req_r_[PADR_(user_addr_t)];
850 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
91447636
A
851};
852struct modwatch_args {
2d21ac55 853 char u_req_l_[PADL_(user_addr_t)]; user_addr_t u_req; char u_req_r_[PADR_(user_addr_t)];
91447636
A
854 char u_eventmask_l_[PADL_(int)]; int u_eventmask; char u_eventmask_r_[PADR_(int)];
855};
856struct getxattr_args {
857 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
858 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
859 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
860 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
861 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
862 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
863};
864struct fgetxattr_args {
865 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
866 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
867 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
868 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
869 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
870 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
871};
872struct setxattr_args {
873 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
874 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
875 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
876 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
877 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
878 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
879};
880struct fsetxattr_args {
881 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
882 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
883 char value_l_[PADL_(user_addr_t)]; user_addr_t value; char value_r_[PADR_(user_addr_t)];
884 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
885 char position_l_[PADL_(uint32_t)]; uint32_t position; char position_r_[PADR_(uint32_t)];
886 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
887};
888struct removexattr_args {
889 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
890 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
891 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
892};
893struct fremovexattr_args {
894 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
895 char attrname_l_[PADL_(user_addr_t)]; user_addr_t attrname; char attrname_r_[PADR_(user_addr_t)];
896 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
897};
898struct listxattr_args {
899 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
900 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
901 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
902 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
903};
904struct flistxattr_args {
905 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
906 char namebuf_l_[PADL_(user_addr_t)]; user_addr_t namebuf; char namebuf_r_[PADR_(user_addr_t)];
907 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
908 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
909};
910struct fsctl_args {
911 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
912 char cmd_l_[PADL_(user_ulong_t)]; user_ulong_t cmd; char cmd_r_[PADR_(user_ulong_t)];
913 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
914 char options_l_[PADL_(user_ulong_t)]; user_ulong_t options; char options_r_[PADR_(user_ulong_t)];
915};
916struct initgroups_args {
917 char gidsetsize_l_[PADL_(u_int)]; u_int gidsetsize; char gidsetsize_r_[PADR_(u_int)];
918 char gidset_l_[PADL_(user_addr_t)]; user_addr_t gidset; char gidset_r_[PADR_(user_addr_t)];
919 char gmuid_l_[PADL_(int)]; int gmuid; char gmuid_r_[PADR_(int)];
920};
2d21ac55
A
921struct posix_spawn_args {
922 char pid_l_[PADL_(user_addr_t)]; user_addr_t pid; char pid_r_[PADR_(user_addr_t)];
923 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
924 char adesc_l_[PADL_(user_addr_t)]; user_addr_t adesc; char adesc_r_[PADR_(user_addr_t)];
925 char argv_l_[PADL_(user_addr_t)]; user_addr_t argv; char argv_r_[PADR_(user_addr_t)];
926 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
927};
91447636
A
928#if NFSCLIENT
929struct nfsclnt_args {
930 char flag_l_[PADL_(int)]; int flag; char flag_r_[PADR_(int)];
931 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
932};
2d21ac55
A
933#else
934#endif
935#if NFSSERVER
91447636
A
936struct fhopen_args {
937 char u_fhp_l_[PADL_(user_addr_t)]; user_addr_t u_fhp; char u_fhp_r_[PADR_(user_addr_t)];
938 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
939};
940#else
941#endif
942struct minherit_args {
943 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
944 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
945 char inherit_l_[PADL_(int)]; int inherit; char inherit_r_[PADR_(int)];
946};
2d21ac55 947#if SYSV_SEM
91447636
A
948struct semsys_args {
949 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
950 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
951 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
952 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
953 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
954};
2d21ac55
A
955#else
956#endif
957#if SYSV_MSG
91447636
A
958struct msgsys_args {
959 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
960 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
961 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
962 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
963 char a5_l_[PADL_(int)]; int a5; char a5_r_[PADR_(int)];
964};
2d21ac55
A
965#else
966#endif
967#if SYSV_SHM
91447636
A
968struct shmsys_args {
969 char which_l_[PADL_(u_int)]; u_int which; char which_r_[PADR_(u_int)];
970 char a2_l_[PADL_(int)]; int a2; char a2_r_[PADR_(int)];
971 char a3_l_[PADL_(int)]; int a3; char a3_r_[PADR_(int)];
972 char a4_l_[PADL_(int)]; int a4; char a4_r_[PADR_(int)];
973};
2d21ac55
A
974#else
975#endif
976#if SYSV_SEM
91447636
A
977struct semctl_args {
978 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
979 char semnum_l_[PADL_(int)]; int semnum; char semnum_r_[PADR_(int)];
980 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
981 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
982};
983struct semget_args {
984 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
985 char nsems_l_[PADL_(int)]; int nsems; char nsems_r_[PADR_(int)];
986 char semflg_l_[PADL_(int)]; int semflg; char semflg_r_[PADR_(int)];
987};
988struct semop_args {
989 char semid_l_[PADL_(int)]; int semid; char semid_r_[PADR_(int)];
990 char sops_l_[PADL_(user_addr_t)]; user_addr_t sops; char sops_r_[PADR_(user_addr_t)];
991 char nsops_l_[PADL_(int)]; int nsops; char nsops_r_[PADR_(int)];
992};
2d21ac55
A
993#else
994#endif
995#if SYSV_MSG
91447636
A
996struct msgctl_args {
997 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
998 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
999 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1000};
1001struct msgget_args {
1002 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
1003 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1004};
1005struct msgsnd_args {
1006 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1007 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1008 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1009 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1010};
1011struct msgrcv_args {
1012 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1013 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1014 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1015 char msgtyp_l_[PADL_(user_long_t)]; user_long_t msgtyp; char msgtyp_r_[PADR_(user_long_t)];
1016 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1017};
2d21ac55
A
1018#else
1019#endif
1020#if SYSV_SHM
91447636
A
1021struct shmat_args {
1022 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
1023 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
1024 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
1025};
1026struct shmctl_args {
1027 char shmid_l_[PADL_(int)]; int shmid; char shmid_r_[PADR_(int)];
1028 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1029 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1030};
1031struct shmdt_args {
1032 char shmaddr_l_[PADL_(user_addr_t)]; user_addr_t shmaddr; char shmaddr_r_[PADR_(user_addr_t)];
1033};
1034struct shmget_args {
1035 char key_l_[PADL_(key_t)]; key_t key; char key_r_[PADR_(key_t)];
1036 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
1037 char shmflg_l_[PADL_(int)]; int shmflg; char shmflg_r_[PADR_(int)];
1038};
2d21ac55
A
1039#else
1040#endif
91447636
A
1041struct shm_open_args {
1042 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1043 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
1044 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1045};
1046struct shm_unlink_args {
1047 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1048};
1049struct sem_open_args {
1050 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1051 char oflag_l_[PADL_(int)]; int oflag; char oflag_r_[PADR_(int)];
1052 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1053 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1054};
1055struct sem_close_args {
1056 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1057};
1058struct sem_unlink_args {
1059 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1060};
1061struct sem_wait_args {
1062 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1063};
1064struct sem_trywait_args {
1065 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1066};
1067struct sem_post_args {
1068 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1069};
1070struct sem_getvalue_args {
1071 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1072 char sval_l_[PADL_(user_addr_t)]; user_addr_t sval; char sval_r_[PADR_(user_addr_t)];
1073};
1074struct sem_init_args {
1075 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1076 char phsared_l_[PADL_(int)]; int phsared; char phsared_r_[PADR_(int)];
1077 char value_l_[PADL_(u_int)]; u_int value; char value_r_[PADR_(u_int)];
1078};
1079struct sem_destroy_args {
1080 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1081};
1082struct open_extended_args {
1083 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1084 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1085 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1086 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1087 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1088 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1089};
1090struct umask_extended_args {
1091 char newmask_l_[PADL_(int)]; int newmask; char newmask_r_[PADR_(int)];
1092 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1093};
1094struct stat_extended_args {
1095 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1096 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1097 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1098 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1099};
1100struct lstat_extended_args {
1101 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1102 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1103 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1104 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1105};
1106struct fstat_extended_args {
1107 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1108 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1109 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1110 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1111};
1112struct chmod_extended_args {
1113 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1114 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1115 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1116 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1117 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1118};
1119struct fchmod_extended_args {
1120 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1121 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1122 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1123 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1124 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1125};
1126struct access_extended_args {
1127 char entries_l_[PADL_(user_addr_t)]; user_addr_t entries; char entries_r_[PADR_(user_addr_t)];
1128 char size_l_[PADL_(user_size_t)]; user_size_t size; char size_r_[PADR_(user_size_t)];
1129 char results_l_[PADL_(user_addr_t)]; user_addr_t results; char results_r_[PADR_(user_addr_t)];
1130 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1131};
1132struct settid_args {
1133 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1134 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1135};
1136struct gettid_args {
1137 char uidp_l_[PADL_(user_addr_t)]; user_addr_t uidp; char uidp_r_[PADR_(user_addr_t)];
1138 char gidp_l_[PADL_(user_addr_t)]; user_addr_t gidp; char gidp_r_[PADR_(user_addr_t)];
1139};
1140struct setsgroups_args {
1141 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1142 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1143};
1144struct getsgroups_args {
1145 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1146 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1147};
1148struct setwgroups_args {
1149 char setlen_l_[PADL_(int)]; int setlen; char setlen_r_[PADR_(int)];
1150 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1151};
1152struct getwgroups_args {
1153 char setlen_l_[PADL_(user_addr_t)]; user_addr_t setlen; char setlen_r_[PADR_(user_addr_t)];
1154 char guidset_l_[PADL_(user_addr_t)]; user_addr_t guidset; char guidset_r_[PADR_(user_addr_t)];
1155};
1156struct mkfifo_extended_args {
1157 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1158 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1159 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1160 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1161 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1162};
1163struct mkdir_extended_args {
1164 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1165 char uid_l_[PADL_(uid_t)]; uid_t uid; char uid_r_[PADR_(uid_t)];
1166 char gid_l_[PADL_(gid_t)]; gid_t gid; char gid_r_[PADR_(gid_t)];
1167 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1168 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1169};
1170struct identitysvc_args {
1171 char opcode_l_[PADL_(int)]; int opcode; char opcode_r_[PADR_(int)];
1172 char message_l_[PADL_(user_addr_t)]; user_addr_t message; char message_r_[PADR_(user_addr_t)];
1173};
2d21ac55
A
1174struct shared_region_check_np_args {
1175 char start_address_l_[PADL_(user_addr_t)]; user_addr_t start_address; char start_address_r_[PADR_(user_addr_t)];
91447636 1176};
2d21ac55 1177struct shared_region_map_np_args {
91447636 1178 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
2d21ac55 1179 char count_l_[PADL_(uint32_t)]; uint32_t count; char count_r_[PADR_(uint32_t)];
91447636 1180 char mappings_l_[PADL_(user_addr_t)]; user_addr_t mappings; char mappings_r_[PADR_(user_addr_t)];
91447636 1181};
2d21ac55
A
1182struct __pthread_mutex_destroy_args {
1183 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1184};
1185struct __pthread_mutex_init_args {
1186 char mutex_l_[PADL_(user_addr_t)]; user_addr_t mutex; char mutex_r_[PADR_(user_addr_t)];
1187 char attr_l_[PADL_(user_addr_t)]; user_addr_t attr; char attr_r_[PADR_(user_addr_t)];
1188};
1189struct __pthread_mutex_lock_args {
1190 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1191};
1192struct __pthread_mutex_trylock_args {
1193 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1194};
1195struct __pthread_mutex_unlock_args {
1196 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1197};
1198struct __pthread_cond_init_args {
1199 char cond_l_[PADL_(user_addr_t)]; user_addr_t cond; char cond_r_[PADR_(user_addr_t)];
1200 char attr_l_[PADL_(user_addr_t)]; user_addr_t attr; char attr_r_[PADR_(user_addr_t)];
1201};
1202struct __pthread_cond_destroy_args {
1203 char condid_l_[PADL_(int)]; int condid; char condid_r_[PADR_(int)];
1204};
1205struct __pthread_cond_broadcast_args {
1206 char condid_l_[PADL_(int)]; int condid; char condid_r_[PADR_(int)];
1207};
1208struct __pthread_cond_signal_args {
1209 char condid_l_[PADL_(int)]; int condid; char condid_r_[PADR_(int)];
91447636
A
1210};
1211struct getsid_args {
1212 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1213};
1214struct settid_with_pid_args {
1215 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1216 char assume_l_[PADL_(int)]; int assume; char assume_r_[PADR_(int)];
1217};
2d21ac55
A
1218struct __pthread_cond_timedwait_args {
1219 char condid_l_[PADL_(int)]; int condid; char condid_r_[PADR_(int)];
1220 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1221 char abstime_l_[PADL_(user_addr_t)]; user_addr_t abstime; char abstime_r_[PADR_(user_addr_t)];
1222};
91447636
A
1223struct aio_fsync_args {
1224 char op_l_[PADL_(int)]; int op; char op_r_[PADR_(int)];
1225 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1226};
1227struct aio_return_args {
1228 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1229};
1230struct aio_suspend_args {
1231 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1232 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1233 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
1234};
1235struct aio_cancel_args {
1236 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1237 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1238};
1239struct aio_error_args {
1240 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1241};
1242struct aio_read_args {
1243 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1244};
1245struct aio_write_args {
1246 char aiocbp_l_[PADL_(user_addr_t)]; user_addr_t aiocbp; char aiocbp_r_[PADR_(user_addr_t)];
1247};
1248struct lio_listio_args {
1249 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1250 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1251 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1252 char sigp_l_[PADL_(user_addr_t)]; user_addr_t sigp; char sigp_r_[PADR_(user_addr_t)];
1253};
2d21ac55
A
1254struct __pthread_cond_wait_args {
1255 char condid_l_[PADL_(int)]; int condid; char condid_r_[PADR_(int)];
1256 char mutexid_l_[PADL_(int)]; int mutexid; char mutexid_r_[PADR_(int)];
1257};
1258struct iopolicysys_args {
1259 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1260 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
1261};
91447636
A
1262struct mlockall_args {
1263 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1264};
1265struct munlockall_args {
1266 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1267};
1268struct issetugid_args {
1269 register_t dummy;
1270};
1271struct __pthread_kill_args {
1272 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1273 char sig_l_[PADL_(int)]; int sig; char sig_r_[PADR_(int)];
1274};
2d21ac55 1275struct __pthread_sigmask_args {
91447636
A
1276 char how_l_[PADL_(int)]; int how; char how_r_[PADR_(int)];
1277 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1278 char oset_l_[PADL_(user_addr_t)]; user_addr_t oset; char oset_r_[PADR_(user_addr_t)];
1279};
2d21ac55 1280struct __sigwait_args {
91447636
A
1281 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1282 char sig_l_[PADL_(user_addr_t)]; user_addr_t sig; char sig_r_[PADR_(user_addr_t)];
1283};
1284struct __disable_threadsignal_args {
1285 char value_l_[PADL_(int)]; int value; char value_r_[PADR_(int)];
1286};
1287struct __pthread_markcancel_args {
1288 char thread_port_l_[PADL_(int)]; int thread_port; char thread_port_r_[PADR_(int)];
1289};
1290struct __pthread_canceled_args {
1291 char action_l_[PADL_(int)]; int action; char action_r_[PADR_(int)];
1292};
1293struct __semwait_signal_args {
1294 char cond_sem_l_[PADL_(int)]; int cond_sem; char cond_sem_r_[PADR_(int)];
1295 char mutex_sem_l_[PADL_(int)]; int mutex_sem; char mutex_sem_r_[PADR_(int)];
1296 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1297 char relative_l_[PADL_(int)]; int relative; char relative_r_[PADR_(int)];
1298 char tv_sec_l_[PADL_(time_t)]; time_t tv_sec; char tv_sec_r_[PADR_(time_t)];
1299 char tv_nsec_l_[PADL_(int32_t)]; int32_t tv_nsec; char tv_nsec_r_[PADR_(int32_t)];
1300};
0c530ab8
A
1301struct proc_info_args {
1302 char callnum_l_[PADL_(int32_t)]; int32_t callnum; char callnum_r_[PADR_(int32_t)];
1303 char pid_l_[PADL_(int32_t)]; int32_t pid; char pid_r_[PADR_(int32_t)];
1304 char flavor_l_[PADL_(uint32_t)]; uint32_t flavor; char flavor_r_[PADR_(uint32_t)];
1305 char arg_l_[PADL_(uint64_t)]; uint64_t arg; char arg_r_[PADR_(uint64_t)];
1306 char buffer_l_[PADL_(user_addr_t)]; user_addr_t buffer; char buffer_r_[PADR_(user_addr_t)];
1307 char buffersize_l_[PADL_(int32_t)]; int32_t buffersize; char buffersize_r_[PADR_(int32_t)];
1308};
2d21ac55
A
1309#if SENDFILE
1310struct sendfile_args {
1311 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1312 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1313 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1314 char nbytes_l_[PADL_(user_addr_t)]; user_addr_t nbytes; char nbytes_r_[PADR_(user_addr_t)];
1315 char hdtr_l_[PADL_(user_addr_t)]; user_addr_t hdtr; char hdtr_r_[PADR_(user_addr_t)];
1316 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1317};
1318#else /* !SENDFILE */
1319#endif /* SENDFILE */
1320struct stat64_args {
1321 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1322 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1323};
1324struct fstat64_args {
1325 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1326 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1327};
1328struct lstat64_args {
1329 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1330 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1331};
1332struct stat64_extended_args {
1333 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1334 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1335 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1336 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1337};
1338struct lstat64_extended_args {
1339 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1340 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1341 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1342 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1343};
1344struct fstat64_extended_args {
1345 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1346 char ub_l_[PADL_(user_addr_t)]; user_addr_t ub; char ub_r_[PADR_(user_addr_t)];
1347 char xsecurity_l_[PADL_(user_addr_t)]; user_addr_t xsecurity; char xsecurity_r_[PADR_(user_addr_t)];
1348 char xsecurity_size_l_[PADL_(user_addr_t)]; user_addr_t xsecurity_size; char xsecurity_size_r_[PADR_(user_addr_t)];
1349};
1350struct getdirentries64_args {
1351 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1352 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1353 char bufsize_l_[PADL_(user_size_t)]; user_size_t bufsize; char bufsize_r_[PADR_(user_size_t)];
1354 char position_l_[PADL_(user_addr_t)]; user_addr_t position; char position_r_[PADR_(user_addr_t)];
1355};
1356struct statfs64_args {
1357 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1358 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1359};
1360struct fstatfs64_args {
1361 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1362 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1363};
1364struct getfsstat64_args {
1365 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1366 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
1367 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1368};
1369struct __pthread_chdir_args {
1370 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1371};
1372struct __pthread_fchdir_args {
1373 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1374};
1375#if AUDIT
91447636
A
1376struct audit_args {
1377 char record_l_[PADL_(user_addr_t)]; user_addr_t record; char record_r_[PADR_(user_addr_t)];
1378 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1379};
1380struct auditon_args {
1381 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1382 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
1383 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1384};
1385struct getauid_args {
1386 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1387};
1388struct setauid_args {
1389 char auid_l_[PADL_(user_addr_t)]; user_addr_t auid; char auid_r_[PADR_(user_addr_t)];
1390};
1391struct getaudit_args {
1392 char auditinfo_l_[PADL_(user_addr_t)]; user_addr_t auditinfo; char auditinfo_r_[PADR_(user_addr_t)];
1393};
1394struct setaudit_args {
1395 char auditinfo_l_[PADL_(user_addr_t)]; user_addr_t auditinfo; char auditinfo_r_[PADR_(user_addr_t)];
1396};
1397struct getaudit_addr_args {
1398 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1399 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1400};
1401struct setaudit_addr_args {
1402 char auditinfo_addr_l_[PADL_(user_addr_t)]; user_addr_t auditinfo_addr; char auditinfo_addr_r_[PADR_(user_addr_t)];
1403 char length_l_[PADL_(int)]; int length; char length_r_[PADR_(int)];
1404};
1405struct auditctl_args {
1406 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1407};
2d21ac55
A
1408#else
1409#endif
1410struct bsdthread_create_args {
1411 char func_l_[PADL_(user_addr_t)]; user_addr_t func; char func_r_[PADR_(user_addr_t)];
1412 char func_arg_l_[PADL_(user_addr_t)]; user_addr_t func_arg; char func_arg_r_[PADR_(user_addr_t)];
1413 char stack_l_[PADL_(user_addr_t)]; user_addr_t stack; char stack_r_[PADR_(user_addr_t)];
1414 char pthread_l_[PADL_(user_addr_t)]; user_addr_t pthread; char pthread_r_[PADR_(user_addr_t)];
1415 char flags_l_[PADL_(uint32_t)]; uint32_t flags; char flags_r_[PADR_(uint32_t)];
1416};
1417struct bsdthread_terminate_args {
1418 char stackaddr_l_[PADL_(user_addr_t)]; user_addr_t stackaddr; char stackaddr_r_[PADR_(user_addr_t)];
1419 char freesize_l_[PADL_(user_size_t)]; user_size_t freesize; char freesize_r_[PADR_(user_size_t)];
1420 char port_l_[PADL_(uint32_t)]; uint32_t port; char port_r_[PADR_(uint32_t)];
1421 char sem_l_[PADL_(uint32_t)]; uint32_t sem; char sem_r_[PADR_(uint32_t)];
1422};
91447636
A
1423struct kqueue_args {
1424 register_t dummy;
1425};
1426struct kevent_args {
1427 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1428 char changelist_l_[PADL_(user_addr_t)]; user_addr_t changelist; char changelist_r_[PADR_(user_addr_t)];
1429 char nchanges_l_[PADL_(int)]; int nchanges; char nchanges_r_[PADR_(int)];
1430 char eventlist_l_[PADL_(user_addr_t)]; user_addr_t eventlist; char eventlist_r_[PADR_(user_addr_t)];
1431 char nevents_l_[PADL_(int)]; int nevents; char nevents_r_[PADR_(int)];
1432 char timeout_l_[PADL_(user_addr_t)]; user_addr_t timeout; char timeout_r_[PADR_(user_addr_t)];
1433};
1434struct lchown_args {
1435 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1436 char owner_l_[PADL_(uid_t)]; uid_t owner; char owner_r_[PADR_(uid_t)];
1437 char group_l_[PADL_(gid_t)]; gid_t group; char group_r_[PADR_(gid_t)];
1438};
0c530ab8
A
1439struct stack_snapshot_args {
1440 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1441 char tracebuf_l_[PADL_(user_addr_t)]; user_addr_t tracebuf; char tracebuf_r_[PADR_(user_addr_t)];
1442 char tracebuf_size_l_[PADL_(uint32_t)]; uint32_t tracebuf_size; char tracebuf_size_r_[PADR_(uint32_t)];
1443 char options_l_[PADL_(uint32_t)]; uint32_t options; char options_r_[PADR_(uint32_t)];
1444};
2d21ac55
A
1445struct bsdthread_register_args {
1446 char threadstart_l_[PADL_(user_addr_t)]; user_addr_t threadstart; char threadstart_r_[PADR_(user_addr_t)];
1447 char wqthread_l_[PADL_(user_addr_t)]; user_addr_t wqthread; char wqthread_r_[PADR_(user_addr_t)];
1448 char pthsize_l_[PADL_(int)]; int pthsize; char pthsize_r_[PADR_(int)];
1449};
1450struct workq_open_args {
1451 register_t dummy;
1452};
1453struct workq_ops_args {
1454 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1455 char item_l_[PADL_(user_addr_t)]; user_addr_t item; char item_r_[PADR_(user_addr_t)];
1456 char prio_l_[PADL_(int)]; int prio; char prio_r_[PADR_(int)];
1457};
1458struct __mac_execve_args {
1459 char fname_l_[PADL_(user_addr_t)]; user_addr_t fname; char fname_r_[PADR_(user_addr_t)];
1460 char argp_l_[PADL_(user_addr_t)]; user_addr_t argp; char argp_r_[PADR_(user_addr_t)];
1461 char envp_l_[PADL_(user_addr_t)]; user_addr_t envp; char envp_r_[PADR_(user_addr_t)];
1462 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1463};
1464struct __mac_syscall_args {
1465 char policy_l_[PADL_(user_addr_t)]; user_addr_t policy; char policy_r_[PADR_(user_addr_t)];
1466 char call_l_[PADL_(int)]; int call; char call_r_[PADR_(int)];
1467 char arg_l_[PADL_(user_addr_t)]; user_addr_t arg; char arg_r_[PADR_(user_addr_t)];
1468};
1469struct __mac_get_file_args {
1470 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1471 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1472};
1473struct __mac_set_file_args {
1474 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1475 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1476};
1477struct __mac_get_link_args {
1478 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1479 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1480};
1481struct __mac_set_link_args {
1482 char path_p_l_[PADL_(user_addr_t)]; user_addr_t path_p; char path_p_r_[PADR_(user_addr_t)];
1483 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1484};
1485struct __mac_get_proc_args {
1486 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1487};
1488struct __mac_set_proc_args {
1489 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1490};
1491struct __mac_get_fd_args {
1492 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1493 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1494};
1495struct __mac_set_fd_args {
1496 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1497 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1498};
1499struct __mac_get_pid_args {
1500 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1501 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1502};
1503struct __mac_get_lcid_args {
1504 char lcid_l_[PADL_(pid_t)]; pid_t lcid; char lcid_r_[PADR_(pid_t)];
1505 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1506};
1507struct __mac_get_lctx_args {
1508 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1509};
1510struct __mac_set_lctx_args {
1511 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1512};
1513struct setlcid_args {
1514 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1515 char lcid_l_[PADL_(pid_t)]; pid_t lcid; char lcid_r_[PADR_(pid_t)];
1516};
1517struct getlcid_args {
1518 char pid_l_[PADL_(pid_t)]; pid_t pid; char pid_r_[PADR_(pid_t)];
1519};
1520struct read_nocancel_args {
1521 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1522 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
1523 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1524};
1525struct write_nocancel_args {
1526 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1527 char cbuf_l_[PADL_(user_addr_t)]; user_addr_t cbuf; char cbuf_r_[PADR_(user_addr_t)];
1528 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1529};
1530struct open_nocancel_args {
1531 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1532 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1533 char mode_l_[PADL_(int)]; int mode; char mode_r_[PADR_(int)];
1534};
1535struct close_nocancel_args {
1536 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1537};
1538struct wait4_nocancel_args {
1539 char pid_l_[PADL_(int)]; int pid; char pid_r_[PADR_(int)];
1540 char status_l_[PADL_(user_addr_t)]; user_addr_t status; char status_r_[PADR_(user_addr_t)];
1541 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1542 char rusage_l_[PADL_(user_addr_t)]; user_addr_t rusage; char rusage_r_[PADR_(user_addr_t)];
1543};
1544#if SOCKETS
1545struct recvmsg_nocancel_args {
1546 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1547 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
1548 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1549};
1550struct sendmsg_nocancel_args {
1551 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1552 char msg_l_[PADL_(user_addr_t)]; user_addr_t msg; char msg_r_[PADR_(user_addr_t)];
1553 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1554};
1555struct recvfrom_nocancel_args {
1556 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1557 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1558 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1559 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1560 char from_l_[PADL_(user_addr_t)]; user_addr_t from; char from_r_[PADR_(user_addr_t)];
1561 char fromlenaddr_l_[PADL_(user_addr_t)]; user_addr_t fromlenaddr; char fromlenaddr_r_[PADR_(user_addr_t)];
1562};
1563struct accept_nocancel_args {
1564 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1565 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1566 char anamelen_l_[PADL_(user_addr_t)]; user_addr_t anamelen; char anamelen_r_[PADR_(user_addr_t)];
1567};
1568#else
1569#endif /* SOCKETS */
1570struct msync_nocancel_args {
1571 char addr_l_[PADL_(user_addr_t)]; user_addr_t addr; char addr_r_[PADR_(user_addr_t)];
1572 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1573 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1574};
1575struct fcntl_nocancel_args {
1576 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1577 char cmd_l_[PADL_(int)]; int cmd; char cmd_r_[PADR_(int)];
1578 char arg_l_[PADL_(user_long_t)]; user_long_t arg; char arg_r_[PADR_(user_long_t)];
1579};
1580struct select_nocancel_args {
1581 char nd_l_[PADL_(int)]; int nd; char nd_r_[PADR_(int)];
1582 char in_l_[PADL_(user_addr_t)]; user_addr_t in; char in_r_[PADR_(user_addr_t)];
1583 char ou_l_[PADL_(user_addr_t)]; user_addr_t ou; char ou_r_[PADR_(user_addr_t)];
1584 char ex_l_[PADL_(user_addr_t)]; user_addr_t ex; char ex_r_[PADR_(user_addr_t)];
1585 char tv_l_[PADL_(user_addr_t)]; user_addr_t tv; char tv_r_[PADR_(user_addr_t)];
1586};
1587struct fsync_nocancel_args {
1588 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1589};
1590#if SOCKETS
1591struct connect_nocancel_args {
1592 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1593 char name_l_[PADL_(user_addr_t)]; user_addr_t name; char name_r_[PADR_(user_addr_t)];
1594 char namelen_l_[PADL_(socklen_t)]; socklen_t namelen; char namelen_r_[PADR_(socklen_t)];
1595};
1596#else
1597#endif /* SOCKETS */
1598struct sigsuspend_nocancel_args {
1599 char mask_l_[PADL_(sigset_t)]; sigset_t mask; char mask_r_[PADR_(sigset_t)];
1600};
1601struct readv_nocancel_args {
1602 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1603 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
1604 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1605};
1606struct writev_nocancel_args {
1607 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1608 char iovp_l_[PADL_(user_addr_t)]; user_addr_t iovp; char iovp_r_[PADR_(user_addr_t)];
1609 char iovcnt_l_[PADL_(u_int)]; u_int iovcnt; char iovcnt_r_[PADR_(u_int)];
1610};
1611#if SOCKETS
1612struct sendto_nocancel_args {
1613 char s_l_[PADL_(int)]; int s; char s_r_[PADR_(int)];
1614 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1615 char len_l_[PADL_(user_size_t)]; user_size_t len; char len_r_[PADR_(user_size_t)];
1616 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1617 char to_l_[PADL_(user_addr_t)]; user_addr_t to; char to_r_[PADR_(user_addr_t)];
1618 char tolen_l_[PADL_(socklen_t)]; socklen_t tolen; char tolen_r_[PADR_(socklen_t)];
1619};
1620#else
1621#endif /* SOCKETS */
1622struct pread_nocancel_args {
1623 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1624 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1625 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1626 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1627};
1628struct pwrite_nocancel_args {
1629 char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)];
1630 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1631 char nbyte_l_[PADL_(user_size_t)]; user_size_t nbyte; char nbyte_r_[PADR_(user_size_t)];
1632 char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)];
1633};
1634struct waitid_nocancel_args {
1635 char idtype_l_[PADL_(idtype_t)]; idtype_t idtype; char idtype_r_[PADR_(idtype_t)];
1636 char id_l_[PADL_(id_t)]; id_t id; char id_r_[PADR_(id_t)];
1637 char infop_l_[PADL_(user_addr_t)]; user_addr_t infop; char infop_r_[PADR_(user_addr_t)];
1638 char options_l_[PADL_(int)]; int options; char options_r_[PADR_(int)];
1639};
1640struct poll_nocancel_args {
1641 char fds_l_[PADL_(user_addr_t)]; user_addr_t fds; char fds_r_[PADR_(user_addr_t)];
1642 char nfds_l_[PADL_(u_int)]; u_int nfds; char nfds_r_[PADR_(u_int)];
1643 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1644};
1645#if SYSV_MSG
1646struct msgsnd_nocancel_args {
1647 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1648 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1649 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1650 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1651};
1652struct msgrcv_nocancel_args {
1653 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)];
1654 char msgp_l_[PADL_(user_addr_t)]; user_addr_t msgp; char msgp_r_[PADR_(user_addr_t)];
1655 char msgsz_l_[PADL_(user_size_t)]; user_size_t msgsz; char msgsz_r_[PADR_(user_size_t)];
1656 char msgtyp_l_[PADL_(user_long_t)]; user_long_t msgtyp; char msgtyp_r_[PADR_(user_long_t)];
1657 char msgflg_l_[PADL_(int)]; int msgflg; char msgflg_r_[PADR_(int)];
1658};
1659#else
1660#endif
1661struct sem_wait_nocancel_args {
1662 char sem_l_[PADL_(user_addr_t)]; user_addr_t sem; char sem_r_[PADR_(user_addr_t)];
1663};
1664struct aio_suspend_nocancel_args {
1665 char aiocblist_l_[PADL_(user_addr_t)]; user_addr_t aiocblist; char aiocblist_r_[PADR_(user_addr_t)];
1666 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)];
1667 char timeoutp_l_[PADL_(user_addr_t)]; user_addr_t timeoutp; char timeoutp_r_[PADR_(user_addr_t)];
1668};
1669struct __sigwait_nocancel_args {
1670 char set_l_[PADL_(user_addr_t)]; user_addr_t set; char set_r_[PADR_(user_addr_t)];
1671 char sig_l_[PADL_(user_addr_t)]; user_addr_t sig; char sig_r_[PADR_(user_addr_t)];
1672};
1673struct __semwait_signal_nocancel_args {
1674 char cond_sem_l_[PADL_(int)]; int cond_sem; char cond_sem_r_[PADR_(int)];
1675 char mutex_sem_l_[PADL_(int)]; int mutex_sem; char mutex_sem_r_[PADR_(int)];
1676 char timeout_l_[PADL_(int)]; int timeout; char timeout_r_[PADR_(int)];
1677 char relative_l_[PADL_(int)]; int relative; char relative_r_[PADR_(int)];
1678 char tv_sec_l_[PADL_(time_t)]; time_t tv_sec; char tv_sec_r_[PADR_(time_t)];
1679 char tv_nsec_l_[PADL_(int32_t)]; int32_t tv_nsec; char tv_nsec_r_[PADR_(int32_t)];
1680};
1681struct __mac_mount_args {
1682 char type_l_[PADL_(user_addr_t)]; user_addr_t type; char type_r_[PADR_(user_addr_t)];
1683 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1684 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1685 char data_l_[PADL_(user_addr_t)]; user_addr_t data; char data_r_[PADR_(user_addr_t)];
1686 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1687};
1688struct __mac_get_mount_args {
1689 char path_l_[PADL_(user_addr_t)]; user_addr_t path; char path_r_[PADR_(user_addr_t)];
1690 char mac_p_l_[PADL_(user_addr_t)]; user_addr_t mac_p; char mac_p_r_[PADR_(user_addr_t)];
1691};
1692struct __mac_getfsstat_args {
1693 char buf_l_[PADL_(user_addr_t)]; user_addr_t buf; char buf_r_[PADR_(user_addr_t)];
1694 char bufsize_l_[PADL_(int)]; int bufsize; char bufsize_r_[PADR_(int)];
1695 char mac_l_[PADL_(user_addr_t)]; user_addr_t mac; char mac_r_[PADR_(user_addr_t)];
1696 char macsize_l_[PADL_(int)]; int macsize; char macsize_r_[PADR_(int)];
1697 char flags_l_[PADL_(int)]; int flags; char flags_r_[PADR_(int)];
1698};
91447636
A
1699int nosys(struct proc *, struct nosys_args *, int *);
1700void exit(struct proc *, struct exit_args *, int *);
1701int fork(struct proc *, struct fork_args *, int *);
1702int read(struct proc *, struct read_args *, user_ssize_t *);
1703int write(struct proc *, struct write_args *, user_ssize_t *);
1704int open(struct proc *, struct open_args *, int *);
1705int close(struct proc *, struct close_args *, int *);
1706int wait4(struct proc *, struct wait4_args *, int *);
1707int link(struct proc *, struct link_args *, int *);
1708int unlink(struct proc *, struct unlink_args *, int *);
1709int chdir(struct proc *, struct chdir_args *, int *);
1710int fchdir(struct proc *, struct fchdir_args *, int *);
1711int mknod(struct proc *, struct mknod_args *, int *);
1712int chmod(struct proc *, struct chmod_args *, int *);
1713int chown(struct proc *, struct chown_args *, int *);
1714int obreak(struct proc *, struct obreak_args *, int *);
1715#if COMPAT_GETFSSTAT
1716int ogetfsstat(struct proc *, struct ogetfsstat_args *, int *);
1717#else
1718int getfsstat(struct proc *, struct getfsstat_args *, int *);
1719#endif
1720int getpid(struct proc *, struct getpid_args *, int *);
1721int setuid(struct proc *, struct setuid_args *, int *);
1722int getuid(struct proc *, struct getuid_args *, int *);
1723int geteuid(struct proc *, struct geteuid_args *, int *);
1724int ptrace(struct proc *, struct ptrace_args *, int *);
2d21ac55 1725#if SOCKETS
91447636
A
1726int recvmsg(struct proc *, struct recvmsg_args *, int *);
1727int sendmsg(struct proc *, struct sendmsg_args *, int *);
1728int recvfrom(struct proc *, struct recvfrom_args *, int *);
1729int accept(struct proc *, struct accept_args *, int *);
1730int getpeername(struct proc *, struct getpeername_args *, int *);
1731int getsockname(struct proc *, struct getsockname_args *, int *);
2d21ac55
A
1732#else
1733#endif /* SOCKETS */
91447636
A
1734int access(struct proc *, struct access_args *, int *);
1735int chflags(struct proc *, struct chflags_args *, int *);
1736int fchflags(struct proc *, struct fchflags_args *, int *);
1737int sync(struct proc *, struct sync_args *, int *);
1738int kill(struct proc *, struct kill_args *, int *);
1739int getppid(struct proc *, struct getppid_args *, int *);
1740int dup(struct proc *, struct dup_args *, int *);
1741int pipe(struct proc *, struct pipe_args *, int *);
1742int getegid(struct proc *, struct getegid_args *, int *);
1743int profil(struct proc *, struct profil_args *, int *);
91447636
A
1744int sigaction(struct proc *, struct sigaction_args *, int *);
1745int getgid(struct proc *, struct getgid_args *, int *);
1746int sigprocmask(struct proc *, struct sigprocmask_args *, int *);
1747int getlogin(struct proc *, struct getlogin_args *, int *);
1748int setlogin(struct proc *, struct setlogin_args *, int *);
1749int acct(struct proc *, struct acct_args *, int *);
1750int sigpending(struct proc *, struct sigpending_args *, int *);
1751int sigaltstack(struct proc *, struct sigaltstack_args *, int *);
1752int ioctl(struct proc *, struct ioctl_args *, int *);
1753int reboot(struct proc *, struct reboot_args *, int *);
1754int revoke(struct proc *, struct revoke_args *, int *);
1755int symlink(struct proc *, struct symlink_args *, int *);
1756int readlink(struct proc *, struct readlink_args *, int *);
1757int execve(struct proc *, struct execve_args *, int *);
1758int umask(struct proc *, struct umask_args *, int *);
1759int chroot(struct proc *, struct chroot_args *, int *);
1760int msync(struct proc *, struct msync_args *, int *);
1761int vfork(struct proc *, struct vfork_args *, int *);
1762int sbrk(struct proc *, struct sbrk_args *, int *);
1763int sstk(struct proc *, struct sstk_args *, int *);
1764int ovadvise(struct proc *, struct ovadvise_args *, int *);
1765int munmap(struct proc *, struct munmap_args *, int *);
1766int mprotect(struct proc *, struct mprotect_args *, int *);
1767int madvise(struct proc *, struct madvise_args *, int *);
1768int mincore(struct proc *, struct mincore_args *, int *);
1769int getgroups(struct proc *, struct getgroups_args *, int *);
1770int setgroups(struct proc *, struct setgroups_args *, int *);
1771int getpgrp(struct proc *, struct getpgrp_args *, int *);
1772int setpgid(struct proc *, struct setpgid_args *, int *);
1773int setitimer(struct proc *, struct setitimer_args *, int *);
1774int swapon(struct proc *, struct swapon_args *, int *);
1775int getitimer(struct proc *, struct getitimer_args *, int *);
1776int getdtablesize(struct proc *, struct getdtablesize_args *, int *);
1777int dup2(struct proc *, struct dup2_args *, int *);
1778int fcntl(struct proc *, struct fcntl_args *, int *);
1779int select(struct proc *, struct select_args *, int *);
1780int fsync(struct proc *, struct fsync_args *, int *);
1781int setpriority(struct proc *, struct setpriority_args *, int *);
2d21ac55 1782#if SOCKETS
91447636
A
1783int socket(struct proc *, struct socket_args *, int *);
1784int connect(struct proc *, struct connect_args *, int *);
2d21ac55
A
1785#else
1786#endif /* SOCKETS */
91447636 1787int getpriority(struct proc *, struct getpriority_args *, int *);
2d21ac55 1788#if SOCKETS
91447636
A
1789int bind(struct proc *, struct bind_args *, int *);
1790int setsockopt(struct proc *, struct setsockopt_args *, int *);
1791int listen(struct proc *, struct listen_args *, int *);
2d21ac55
A
1792#else
1793#endif /* SOCKETS */
91447636 1794int sigsuspend(struct proc *, struct sigsuspend_args *, int *);
2d21ac55
A
1795#if SOCKETS
1796#else
1797#endif /* SOCKETS */
91447636 1798int gettimeofday(struct proc *, struct gettimeofday_args *, int *);
91447636 1799int getrusage(struct proc *, struct getrusage_args *, int *);
2d21ac55 1800#if SOCKETS
91447636 1801int getsockopt(struct proc *, struct getsockopt_args *, int *);
2d21ac55
A
1802#else
1803#endif /* SOCKETS */
91447636
A
1804int readv(struct proc *, struct readv_args *, user_ssize_t *);
1805int writev(struct proc *, struct writev_args *, user_ssize_t *);
1806int settimeofday(struct proc *, struct settimeofday_args *, int *);
1807int fchown(struct proc *, struct fchown_args *, int *);
1808int fchmod(struct proc *, struct fchmod_args *, int *);
2d21ac55
A
1809int setreuid(struct proc *, struct setreuid_args *, int *);
1810int setregid(struct proc *, struct setregid_args *, int *);
91447636
A
1811int rename(struct proc *, struct rename_args *, int *);
1812int flock(struct proc *, struct flock_args *, int *);
1813int mkfifo(struct proc *, struct mkfifo_args *, int *);
2d21ac55 1814#if SOCKETS
91447636
A
1815int sendto(struct proc *, struct sendto_args *, int *);
1816int shutdown(struct proc *, struct shutdown_args *, int *);
1817int socketpair(struct proc *, struct socketpair_args *, int *);
2d21ac55
A
1818#else
1819#endif /* SOCKETS */
91447636
A
1820int mkdir(struct proc *, struct mkdir_args *, int *);
1821int rmdir(struct proc *, struct rmdir_args *, int *);
1822int utimes(struct proc *, struct utimes_args *, int *);
1823int futimes(struct proc *, struct futimes_args *, int *);
1824int adjtime(struct proc *, struct adjtime_args *, int *);
2d21ac55 1825int gethostuuid(struct proc *, struct gethostuuid_args *, int *);
91447636
A
1826int setsid(struct proc *, struct setsid_args *, int *);
1827int getpgid(struct proc *, struct getpgid_args *, int *);
1828int setprivexec(struct proc *, struct setprivexec_args *, int *);
1829int pread(struct proc *, struct pread_args *, user_ssize_t *);
1830int pwrite(struct proc *, struct pwrite_args *, user_ssize_t *);
1831#if NFSSERVER
1832int nfssvc(struct proc *, struct nfssvc_args *, int *);
1833#else
1834#endif
1835int statfs(struct proc *, struct statfs_args *, int *);
1836int fstatfs(struct proc *, struct fstatfs_args *, int *);
1837int unmount(struct proc *, struct unmount_args *, int *);
2d21ac55 1838#if NFSSERVER
91447636
A
1839int getfh(struct proc *, struct getfh_args *, int *);
1840#else
1841#endif
1842int quotactl(struct proc *, struct quotactl_args *, int *);
1843int mount(struct proc *, struct mount_args *, int *);
2d21ac55 1844int csops(struct proc *, struct csops_args *, int *);
91447636
A
1845int waitid(struct proc *, struct waitid_args *, int *);
1846int add_profil(struct proc *, struct add_profil_args *, int *);
1847int kdebug_trace(struct proc *, struct kdebug_trace_args *, int *);
1848int setgid(struct proc *, struct setgid_args *, int *);
1849int setegid(struct proc *, struct setegid_args *, int *);
1850int seteuid(struct proc *, struct seteuid_args *, int *);
91447636 1851int sigreturn(struct proc *, struct sigreturn_args *, int *);
0c530ab8 1852int chud(struct proc *, struct chud_args *, int *);
91447636
A
1853int stat(struct proc *, struct stat_args *, int *);
1854int fstat(struct proc *, struct fstat_args *, int *);
1855int lstat(struct proc *, struct lstat_args *, int *);
1856int pathconf(struct proc *, struct pathconf_args *, int *);
1857int fpathconf(struct proc *, struct fpathconf_args *, int *);
91447636
A
1858int getrlimit(struct proc *, struct getrlimit_args *, int *);
1859int setrlimit(struct proc *, struct setrlimit_args *, int *);
1860int getdirentries(struct proc *, struct getdirentries_args *, int *);
1861int mmap(struct proc *, struct mmap_args *, user_addr_t *);
1862int lseek(struct proc *, struct lseek_args *, off_t *);
1863int truncate(struct proc *, struct truncate_args *, int *);
1864int ftruncate(struct proc *, struct ftruncate_args *, int *);
1865int __sysctl(struct proc *, struct __sysctl_args *, int *);
1866int mlock(struct proc *, struct mlock_args *, int *);
1867int munlock(struct proc *, struct munlock_args *, int *);
1868int undelete(struct proc *, struct undelete_args *, int *);
2d21ac55 1869#if NETAT
91447636
A
1870int ATsocket(struct proc *, struct ATsocket_args *, int *);
1871int ATgetmsg(struct proc *, struct ATgetmsg_args *, int *);
1872int ATputmsg(struct proc *, struct ATputmsg_args *, int *);
1873int ATPsndreq(struct proc *, struct ATPsndreq_args *, int *);
1874int ATPsndrsp(struct proc *, struct ATPsndrsp_args *, int *);
1875int ATPgetreq(struct proc *, struct ATPgetreq_args *, int *);
1876int ATPgetrsp(struct proc *, struct ATPgetrsp_args *, int *);
2d21ac55
A
1877#else
1878#endif /* NETAT */
91447636
A
1879int kqueue_from_portset_np(struct proc *, struct kqueue_from_portset_np_args *, int *);
1880int kqueue_portset_np(struct proc *, struct kqueue_portset_np_args *, int *);
1881int getattrlist(struct proc *, struct getattrlist_args *, int *);
1882int setattrlist(struct proc *, struct setattrlist_args *, int *);
1883int getdirentriesattr(struct proc *, struct getdirentriesattr_args *, int *);
1884int exchangedata(struct proc *, struct exchangedata_args *, int *);
91447636
A
1885int searchfs(struct proc *, struct searchfs_args *, int *);
1886int delete(struct proc *, struct delete_args *, int *);
1887int copyfile(struct proc *, struct copyfile_args *, int *);
1888int poll(struct proc *, struct poll_args *, int *);
1889int watchevent(struct proc *, struct watchevent_args *, int *);
1890int waitevent(struct proc *, struct waitevent_args *, int *);
1891int modwatch(struct proc *, struct modwatch_args *, int *);
1892int getxattr(struct proc *, struct getxattr_args *, user_ssize_t *);
1893int fgetxattr(struct proc *, struct fgetxattr_args *, user_ssize_t *);
1894int setxattr(struct proc *, struct setxattr_args *, int *);
1895int fsetxattr(struct proc *, struct fsetxattr_args *, int *);
1896int removexattr(struct proc *, struct removexattr_args *, int *);
1897int fremovexattr(struct proc *, struct fremovexattr_args *, int *);
1898int listxattr(struct proc *, struct listxattr_args *, user_ssize_t *);
1899int flistxattr(struct proc *, struct flistxattr_args *, user_ssize_t *);
1900int fsctl(struct proc *, struct fsctl_args *, int *);
1901int initgroups(struct proc *, struct initgroups_args *, int *);
2d21ac55 1902int posix_spawn(struct proc *, struct posix_spawn_args *, int *);
91447636
A
1903#if NFSCLIENT
1904int nfsclnt(struct proc *, struct nfsclnt_args *, int *);
2d21ac55
A
1905#else
1906#endif
1907#if NFSSERVER
91447636
A
1908int fhopen(struct proc *, struct fhopen_args *, int *);
1909#else
1910#endif
1911int minherit(struct proc *, struct minherit_args *, int *);
2d21ac55 1912#if SYSV_SEM
91447636 1913int semsys(struct proc *, struct semsys_args *, int *);
2d21ac55
A
1914#else
1915#endif
1916#if SYSV_MSG
91447636 1917int msgsys(struct proc *, struct msgsys_args *, int *);
2d21ac55
A
1918#else
1919#endif
1920#if SYSV_SHM
91447636 1921int shmsys(struct proc *, struct shmsys_args *, int *);
2d21ac55
A
1922#else
1923#endif
1924#if SYSV_SEM
91447636
A
1925int semctl(struct proc *, struct semctl_args *, int *);
1926int semget(struct proc *, struct semget_args *, int *);
1927int semop(struct proc *, struct semop_args *, int *);
2d21ac55
A
1928#else
1929#endif
1930#if SYSV_MSG
91447636
A
1931int msgctl(struct proc *, struct msgctl_args *, int *);
1932int msgget(struct proc *, struct msgget_args *, int *);
1933int msgsnd(struct proc *, struct msgsnd_args *, int *);
1934int msgrcv(struct proc *, struct msgrcv_args *, user_ssize_t *);
2d21ac55
A
1935#else
1936#endif
1937#if SYSV_SHM
1938int shmat(struct proc *, struct shmat_args *, user_addr_t *);
91447636
A
1939int shmctl(struct proc *, struct shmctl_args *, int *);
1940int shmdt(struct proc *, struct shmdt_args *, int *);
1941int shmget(struct proc *, struct shmget_args *, int *);
2d21ac55
A
1942#else
1943#endif
91447636
A
1944int shm_open(struct proc *, struct shm_open_args *, int *);
1945int shm_unlink(struct proc *, struct shm_unlink_args *, int *);
1946int sem_open(struct proc *, struct sem_open_args *, user_addr_t *);
1947int sem_close(struct proc *, struct sem_close_args *, int *);
1948int sem_unlink(struct proc *, struct sem_unlink_args *, int *);
1949int sem_wait(struct proc *, struct sem_wait_args *, int *);
1950int sem_trywait(struct proc *, struct sem_trywait_args *, int *);
1951int sem_post(struct proc *, struct sem_post_args *, int *);
1952int sem_getvalue(struct proc *, struct sem_getvalue_args *, int *);
1953int sem_init(struct proc *, struct sem_init_args *, int *);
1954int sem_destroy(struct proc *, struct sem_destroy_args *, int *);
1955int open_extended(struct proc *, struct open_extended_args *, int *);
1956int umask_extended(struct proc *, struct umask_extended_args *, int *);
1957int stat_extended(struct proc *, struct stat_extended_args *, int *);
1958int lstat_extended(struct proc *, struct lstat_extended_args *, int *);
1959int fstat_extended(struct proc *, struct fstat_extended_args *, int *);
1960int chmod_extended(struct proc *, struct chmod_extended_args *, int *);
1961int fchmod_extended(struct proc *, struct fchmod_extended_args *, int *);
1962int access_extended(struct proc *, struct access_extended_args *, int *);
1963int settid(struct proc *, struct settid_args *, int *);
1964int gettid(struct proc *, struct gettid_args *, int *);
1965int setsgroups(struct proc *, struct setsgroups_args *, int *);
1966int getsgroups(struct proc *, struct getsgroups_args *, int *);
1967int setwgroups(struct proc *, struct setwgroups_args *, int *);
1968int getwgroups(struct proc *, struct getwgroups_args *, int *);
1969int mkfifo_extended(struct proc *, struct mkfifo_extended_args *, int *);
1970int mkdir_extended(struct proc *, struct mkdir_extended_args *, int *);
1971int identitysvc(struct proc *, struct identitysvc_args *, int *);
2d21ac55
A
1972int shared_region_check_np(struct proc *, struct shared_region_check_np_args *, int *);
1973int shared_region_map_np(struct proc *, struct shared_region_map_np_args *, int *);
1974int __pthread_mutex_destroy(struct proc *, struct __pthread_mutex_destroy_args *, int *);
1975int __pthread_mutex_init(struct proc *, struct __pthread_mutex_init_args *, int *);
1976int __pthread_mutex_lock(struct proc *, struct __pthread_mutex_lock_args *, int *);
1977int __pthread_mutex_trylock(struct proc *, struct __pthread_mutex_trylock_args *, int *);
1978int __pthread_mutex_unlock(struct proc *, struct __pthread_mutex_unlock_args *, int *);
1979int __pthread_cond_init(struct proc *, struct __pthread_cond_init_args *, int *);
1980int __pthread_cond_destroy(struct proc *, struct __pthread_cond_destroy_args *, int *);
1981int __pthread_cond_broadcast(struct proc *, struct __pthread_cond_broadcast_args *, int *);
1982int __pthread_cond_signal(struct proc *, struct __pthread_cond_signal_args *, int *);
91447636
A
1983int getsid(struct proc *, struct getsid_args *, int *);
1984int settid_with_pid(struct proc *, struct settid_with_pid_args *, int *);
2d21ac55 1985int __pthread_cond_timedwait(struct proc *, struct __pthread_cond_timedwait_args *, int *);
91447636
A
1986int aio_fsync(struct proc *, struct aio_fsync_args *, int *);
1987int aio_return(struct proc *, struct aio_return_args *, user_ssize_t *);
1988int aio_suspend(struct proc *, struct aio_suspend_args *, int *);
1989int aio_cancel(struct proc *, struct aio_cancel_args *, int *);
1990int aio_error(struct proc *, struct aio_error_args *, int *);
1991int aio_read(struct proc *, struct aio_read_args *, int *);
1992int aio_write(struct proc *, struct aio_write_args *, int *);
1993int lio_listio(struct proc *, struct lio_listio_args *, int *);
2d21ac55
A
1994int __pthread_cond_wait(struct proc *, struct __pthread_cond_wait_args *, int *);
1995int iopolicysys(struct proc *, struct iopolicysys_args *, int *);
91447636
A
1996int mlockall(struct proc *, struct mlockall_args *, int *);
1997int munlockall(struct proc *, struct munlockall_args *, int *);
1998int issetugid(struct proc *, struct issetugid_args *, int *);
1999int __pthread_kill(struct proc *, struct __pthread_kill_args *, int *);
2d21ac55
A
2000int __pthread_sigmask(struct proc *, struct __pthread_sigmask_args *, int *);
2001int __sigwait(struct proc *, struct __sigwait_args *, int *);
91447636
A
2002int __disable_threadsignal(struct proc *, struct __disable_threadsignal_args *, int *);
2003int __pthread_markcancel(struct proc *, struct __pthread_markcancel_args *, int *);
2004int __pthread_canceled(struct proc *, struct __pthread_canceled_args *, int *);
2005int __semwait_signal(struct proc *, struct __semwait_signal_args *, int *);
0c530ab8 2006int proc_info(struct proc *, struct proc_info_args *, int *);
2d21ac55
A
2007#if SENDFILE
2008int sendfile(struct proc *, struct sendfile_args *, int *);
2009#else /* !SENDFILE */
2010#endif /* SENDFILE */
2011int stat64(struct proc *, struct stat64_args *, int *);
2012int fstat64(struct proc *, struct fstat64_args *, int *);
2013int lstat64(struct proc *, struct lstat64_args *, int *);
2014int stat64_extended(struct proc *, struct stat64_extended_args *, int *);
2015int lstat64_extended(struct proc *, struct lstat64_extended_args *, int *);
2016int fstat64_extended(struct proc *, struct fstat64_extended_args *, int *);
2017int getdirentries64(struct proc *, struct getdirentries64_args *, user_ssize_t *);
2018int statfs64(struct proc *, struct statfs64_args *, int *);
2019int fstatfs64(struct proc *, struct fstatfs64_args *, int *);
2020int getfsstat64(struct proc *, struct getfsstat64_args *, int *);
2021int __pthread_chdir(struct proc *, struct __pthread_chdir_args *, int *);
2022int __pthread_fchdir(struct proc *, struct __pthread_fchdir_args *, int *);
2023#if AUDIT
91447636
A
2024int audit(struct proc *, struct audit_args *, int *);
2025int auditon(struct proc *, struct auditon_args *, int *);
2026int getauid(struct proc *, struct getauid_args *, int *);
2027int setauid(struct proc *, struct setauid_args *, int *);
2028int getaudit(struct proc *, struct getaudit_args *, int *);
2029int setaudit(struct proc *, struct setaudit_args *, int *);
2030int getaudit_addr(struct proc *, struct getaudit_addr_args *, int *);
2031int setaudit_addr(struct proc *, struct setaudit_addr_args *, int *);
2032int auditctl(struct proc *, struct auditctl_args *, int *);
2d21ac55
A
2033#else
2034#endif
2035int bsdthread_create(struct proc *, struct bsdthread_create_args *, user_addr_t *);
2036int bsdthread_terminate(struct proc *, struct bsdthread_terminate_args *, int *);
91447636
A
2037int kqueue(struct proc *, struct kqueue_args *, int *);
2038int kevent(struct proc *, struct kevent_args *, int *);
2039int lchown(struct proc *, struct lchown_args *, int *);
0c530ab8 2040int stack_snapshot(struct proc *, struct stack_snapshot_args *, int *);
2d21ac55
A
2041int bsdthread_register(struct proc *, struct bsdthread_register_args *, int *);
2042int workq_open(struct proc *, struct workq_open_args *, int *);
2043int workq_ops(struct proc *, struct workq_ops_args *, int *);
2044int __mac_execve(struct proc *, struct __mac_execve_args *, int *);
2045int __mac_syscall(struct proc *, struct __mac_syscall_args *, int *);
2046int __mac_get_file(struct proc *, struct __mac_get_file_args *, int *);
2047int __mac_set_file(struct proc *, struct __mac_set_file_args *, int *);
2048int __mac_get_link(struct proc *, struct __mac_get_link_args *, int *);
2049int __mac_set_link(struct proc *, struct __mac_set_link_args *, int *);
2050int __mac_get_proc(struct proc *, struct __mac_get_proc_args *, int *);
2051int __mac_set_proc(struct proc *, struct __mac_set_proc_args *, int *);
2052int __mac_get_fd(struct proc *, struct __mac_get_fd_args *, int *);
2053int __mac_set_fd(struct proc *, struct __mac_set_fd_args *, int *);
2054int __mac_get_pid(struct proc *, struct __mac_get_pid_args *, int *);
2055int __mac_get_lcid(struct proc *, struct __mac_get_lcid_args *, int *);
2056int __mac_get_lctx(struct proc *, struct __mac_get_lctx_args *, int *);
2057int __mac_set_lctx(struct proc *, struct __mac_set_lctx_args *, int *);
2058int setlcid(struct proc *, struct setlcid_args *, int *);
2059int getlcid(struct proc *, struct getlcid_args *, int *);
2060int read_nocancel(struct proc *, struct read_nocancel_args *, user_ssize_t *);
2061int write_nocancel(struct proc *, struct write_nocancel_args *, user_ssize_t *);
2062int open_nocancel(struct proc *, struct open_nocancel_args *, int *);
2063int close_nocancel(struct proc *, struct close_nocancel_args *, int *);
2064int wait4_nocancel(struct proc *, struct wait4_nocancel_args *, int *);
2065#if SOCKETS
2066int recvmsg_nocancel(struct proc *, struct recvmsg_nocancel_args *, int *);
2067int sendmsg_nocancel(struct proc *, struct sendmsg_nocancel_args *, int *);
2068int recvfrom_nocancel(struct proc *, struct recvfrom_nocancel_args *, int *);
2069int accept_nocancel(struct proc *, struct accept_nocancel_args *, int *);
2070#else
2071#endif /* SOCKETS */
2072int msync_nocancel(struct proc *, struct msync_nocancel_args *, int *);
2073int fcntl_nocancel(struct proc *, struct fcntl_nocancel_args *, int *);
2074int select_nocancel(struct proc *, struct select_nocancel_args *, int *);
2075int fsync_nocancel(struct proc *, struct fsync_nocancel_args *, int *);
2076#if SOCKETS
2077int connect_nocancel(struct proc *, struct connect_nocancel_args *, int *);
2078#else
2079#endif /* SOCKETS */
2080int sigsuspend_nocancel(struct proc *, struct sigsuspend_nocancel_args *, int *);
2081int readv_nocancel(struct proc *, struct readv_nocancel_args *, user_ssize_t *);
2082int writev_nocancel(struct proc *, struct writev_nocancel_args *, user_ssize_t *);
2083#if SOCKETS
2084int sendto_nocancel(struct proc *, struct sendto_nocancel_args *, int *);
2085#else
2086#endif /* SOCKETS */
2087int pread_nocancel(struct proc *, struct pread_nocancel_args *, user_ssize_t *);
2088int pwrite_nocancel(struct proc *, struct pwrite_nocancel_args *, user_ssize_t *);
2089int waitid_nocancel(struct proc *, struct waitid_nocancel_args *, int *);
2090int poll_nocancel(struct proc *, struct poll_nocancel_args *, int *);
2091#if SYSV_MSG
2092int msgsnd_nocancel(struct proc *, struct msgsnd_nocancel_args *, int *);
2093int msgrcv_nocancel(struct proc *, struct msgrcv_nocancel_args *, user_ssize_t *);
2094#else
2095#endif
2096int sem_wait_nocancel(struct proc *, struct sem_wait_nocancel_args *, int *);
2097int aio_suspend_nocancel(struct proc *, struct aio_suspend_nocancel_args *, int *);
2098int __sigwait_nocancel(struct proc *, struct __sigwait_nocancel_args *, int *);
2099int __semwait_signal_nocancel(struct proc *, struct __semwait_signal_nocancel_args *, int *);
2100int __mac_mount(struct proc *, struct __mac_mount_args *, int *);
2101int __mac_get_mount(struct proc *, struct __mac_get_mount_args *, int *);
2102int __mac_getfsstat(struct proc *, struct __mac_getfsstat_args *, int *);
91447636
A
2103
2104__END_DECLS
2105#undef PAD_
2106#undef PADL_
2107#undef PADR_
2108
2109#endif /* __APPLE_API_PRIVATE */
2110#endif /* KERNEL */
2111
2112#endif /* !_SYS_SYSPROTO_H_ */