1/*	$OpenBSD: syscallargs.h,v 1.166 2015/05/06 11:26:02 jsg Exp $	*/
2
3/*
4 * System call argument lists.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from;	OpenBSD: syscalls.master,v 1.153 2015/05/06 11:20:07 jsg Exp
8 */
9
10#ifdef	syscallarg
11#undef	syscallarg
12#endif
13
14#define	syscallarg(x)							\
15	union {								\
16		register_t pad;						\
17		struct { x datum; } le;					\
18		struct {						\
19			int8_t pad[ (sizeof (register_t) < sizeof (x))	\
20				? 0					\
21				: sizeof (register_t) - sizeof (x)];	\
22			x datum;					\
23		} be;							\
24	}
25
26struct sys_exit_args {
27	syscallarg(int) rval;
28};
29
30struct sys_read_args {
31	syscallarg(int) fd;
32	syscallarg(void *) buf;
33	syscallarg(size_t) nbyte;
34};
35
36struct sys_write_args {
37	syscallarg(int) fd;
38	syscallarg(const void *) buf;
39	syscallarg(size_t) nbyte;
40};
41
42struct sys_open_args {
43	syscallarg(const char *) path;
44	syscallarg(int) flags;
45	syscallarg(mode_t) mode;
46};
47
48struct sys_close_args {
49	syscallarg(int) fd;
50};
51
52struct sys_getentropy_args {
53	syscallarg(void *) buf;
54	syscallarg(size_t) nbyte;
55};
56
57struct sys___tfork_args {
58	syscallarg(const struct __tfork *) param;
59	syscallarg(size_t) psize;
60};
61
62struct sys_link_args {
63	syscallarg(const char *) path;
64	syscallarg(const char *) link;
65};
66
67struct sys_unlink_args {
68	syscallarg(const char *) path;
69};
70
71struct sys_wait4_args {
72	syscallarg(pid_t) pid;
73	syscallarg(int *) status;
74	syscallarg(int) options;
75	syscallarg(struct rusage *) rusage;
76};
77
78struct sys_chdir_args {
79	syscallarg(const char *) path;
80};
81
82struct sys_fchdir_args {
83	syscallarg(int) fd;
84};
85
86struct sys_mknod_args {
87	syscallarg(const char *) path;
88	syscallarg(mode_t) mode;
89	syscallarg(dev_t) dev;
90};
91
92struct sys_chmod_args {
93	syscallarg(const char *) path;
94	syscallarg(mode_t) mode;
95};
96
97struct sys_chown_args {
98	syscallarg(const char *) path;
99	syscallarg(uid_t) uid;
100	syscallarg(gid_t) gid;
101};
102
103struct sys_obreak_args {
104	syscallarg(char *) nsize;
105};
106
107struct sys_getrusage_args {
108	syscallarg(int) who;
109	syscallarg(struct rusage *) rusage;
110};
111
112struct sys_mount_args {
113	syscallarg(const char *) type;
114	syscallarg(const char *) path;
115	syscallarg(int) flags;
116	syscallarg(void *) data;
117};
118
119struct sys_unmount_args {
120	syscallarg(const char *) path;
121	syscallarg(int) flags;
122};
123
124struct sys_setuid_args {
125	syscallarg(uid_t) uid;
126};
127
128struct sys_ptrace_args {
129	syscallarg(int) req;
130	syscallarg(pid_t) pid;
131	syscallarg(caddr_t) addr;
132	syscallarg(int) data;
133};
134
135struct sys_recvmsg_args {
136	syscallarg(int) s;
137	syscallarg(struct msghdr *) msg;
138	syscallarg(int) flags;
139};
140
141struct sys_sendmsg_args {
142	syscallarg(int) s;
143	syscallarg(const struct msghdr *) msg;
144	syscallarg(int) flags;
145};
146
147struct sys_recvfrom_args {
148	syscallarg(int) s;
149	syscallarg(void *) buf;
150	syscallarg(size_t) len;
151	syscallarg(int) flags;
152	syscallarg(struct sockaddr *) from;
153	syscallarg(socklen_t *) fromlenaddr;
154};
155
156struct sys_accept_args {
157	syscallarg(int) s;
158	syscallarg(struct sockaddr *) name;
159	syscallarg(socklen_t *) anamelen;
160};
161
162struct sys_getpeername_args {
163	syscallarg(int) fdes;
164	syscallarg(struct sockaddr *) asa;
165	syscallarg(socklen_t *) alen;
166};
167
168struct sys_getsockname_args {
169	syscallarg(int) fdes;
170	syscallarg(struct sockaddr *) asa;
171	syscallarg(socklen_t *) alen;
172};
173
174struct sys_access_args {
175	syscallarg(const char *) path;
176	syscallarg(int) amode;
177};
178
179struct sys_chflags_args {
180	syscallarg(const char *) path;
181	syscallarg(u_int) flags;
182};
183
184struct sys_fchflags_args {
185	syscallarg(int) fd;
186	syscallarg(u_int) flags;
187};
188
189struct sys_kill_args {
190	syscallarg(int) pid;
191	syscallarg(int) signum;
192};
193
194struct sys_stat_args {
195	syscallarg(const char *) path;
196	syscallarg(struct stat *) ub;
197};
198
199struct sys_lstat_args {
200	syscallarg(const char *) path;
201	syscallarg(struct stat *) ub;
202};
203
204struct sys_dup_args {
205	syscallarg(int) fd;
206};
207
208struct sys_fstatat_args {
209	syscallarg(int) fd;
210	syscallarg(const char *) path;
211	syscallarg(struct stat *) buf;
212	syscallarg(int) flag;
213};
214
215struct sys_profil_args {
216	syscallarg(caddr_t) samples;
217	syscallarg(size_t) size;
218	syscallarg(u_long) offset;
219	syscallarg(u_int) scale;
220};
221
222struct sys_ktrace_args {
223	syscallarg(const char *) fname;
224	syscallarg(int) ops;
225	syscallarg(int) facs;
226	syscallarg(pid_t) pid;
227};
228
229struct sys_sigaction_args {
230	syscallarg(int) signum;
231	syscallarg(const struct sigaction *) nsa;
232	syscallarg(struct sigaction *) osa;
233};
234
235struct sys_sigprocmask_args {
236	syscallarg(int) how;
237	syscallarg(sigset_t) mask;
238};
239
240struct sys_getlogin_args {
241	syscallarg(char *) namebuf;
242	syscallarg(u_int) namelen;
243};
244
245struct sys_setlogin_args {
246	syscallarg(const char *) namebuf;
247};
248
249struct sys_acct_args {
250	syscallarg(const char *) path;
251};
252
253struct sys_fstat_args {
254	syscallarg(int) fd;
255	syscallarg(struct stat *) sb;
256};
257
258struct sys_ioctl_args {
259	syscallarg(int) fd;
260	syscallarg(u_long) com;
261	syscallarg(void *) data;
262};
263
264struct sys_reboot_args {
265	syscallarg(int) opt;
266};
267
268struct sys_revoke_args {
269	syscallarg(const char *) path;
270};
271
272struct sys_symlink_args {
273	syscallarg(const char *) path;
274	syscallarg(const char *) link;
275};
276
277struct sys_readlink_args {
278	syscallarg(const char *) path;
279	syscallarg(char *) buf;
280	syscallarg(size_t) count;
281};
282
283struct sys_execve_args {
284	syscallarg(const char *) path;
285	syscallarg(char *const *) argp;
286	syscallarg(char *const *) envp;
287};
288
289struct sys_umask_args {
290	syscallarg(mode_t) newmask;
291};
292
293struct sys_chroot_args {
294	syscallarg(const char *) path;
295};
296
297struct sys_getfsstat_args {
298	syscallarg(struct statfs *) buf;
299	syscallarg(size_t) bufsize;
300	syscallarg(int) flags;
301};
302
303struct sys_statfs_args {
304	syscallarg(const char *) path;
305	syscallarg(struct statfs *) buf;
306};
307
308struct sys_fstatfs_args {
309	syscallarg(int) fd;