linux32_syscallargs.h revision 1.26 1 1.15 christos /* $NetBSD: linux32_syscallargs.h,v 1.26 2007/12/24 14:26:51 njoly Exp $ */
2 1.1 manu
3 1.1 manu /*
4 1.1 manu * System call argument lists.
5 1.1 manu *
6 1.1 manu * DO NOT EDIT-- this file is automatically generated.
7 1.26 njoly * created from NetBSD: syscalls.master,v 1.23 2007/12/24 14:25:30 njoly Exp
8 1.1 manu */
9 1.1 manu
10 1.1 manu #ifndef _LINUX32_SYS_SYSCALLARGS_H_
11 1.1 manu #define _LINUX32_SYS_SYSCALLARGS_H_
12 1.1 manu
13 1.22 christos #define LINUX32_SYS_MAXSYSARGS 8
14 1.22 christos
15 1.1 manu #undef syscallarg
16 1.1 manu #define syscallarg(x) \
17 1.1 manu union { \
18 1.1 manu register32_t pad; \
19 1.1 manu struct { x datum; } le; \
20 1.1 manu struct { /* LINTED zero array dimension */ \
21 1.1 manu int8_t pad[ /* CONSTCOND */ \
22 1.1 manu (sizeof (register32_t) < sizeof (x)) \
23 1.1 manu ? 0 \
24 1.1 manu : sizeof (register32_t) - sizeof (x)]; \
25 1.1 manu x datum; \
26 1.1 manu } be; \
27 1.1 manu }
28 1.1 manu
29 1.22 christos #undef check_syscall_args
30 1.22 christos #define check_syscall_args(call) \
31 1.22 christos typedef char call##_check_args[sizeof (struct call##_args) \
32 1.22 christos <= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1];
33 1.22 christos
34 1.24 dsl struct netbsd32_exit_args;
35 1.24 dsl
36 1.24 dsl struct netbsd32_read_args;
37 1.24 dsl
38 1.24 dsl struct netbsd32_write_args;
39 1.24 dsl
40 1.1 manu struct linux32_sys_open_args {
41 1.1 manu syscallarg(const netbsd32_charp) path;
42 1.1 manu syscallarg(int) flags;
43 1.1 manu syscallarg(int) mode;
44 1.1 manu };
45 1.22 christos check_syscall_args(linux32_sys_open)
46 1.1 manu
47 1.24 dsl struct netbsd32_close_args;
48 1.24 dsl
49 1.1 manu struct linux32_sys_waitpid_args {
50 1.1 manu syscallarg(int) pid;
51 1.1 manu syscallarg(netbsd32_intp) status;
52 1.1 manu syscallarg(int) options;
53 1.1 manu };
54 1.22 christos check_syscall_args(linux32_sys_waitpid)
55 1.1 manu
56 1.1 manu struct linux32_sys_creat_args {
57 1.1 manu syscallarg(const netbsd32_charp) path;
58 1.1 manu syscallarg(int) mode;
59 1.1 manu };
60 1.22 christos check_syscall_args(linux32_sys_creat)
61 1.1 manu
62 1.24 dsl struct netbsd32_link_args;
63 1.24 dsl
64 1.1 manu struct linux32_sys_unlink_args {
65 1.1 manu syscallarg(const netbsd32_charp) path;
66 1.1 manu };
67 1.22 christos check_syscall_args(linux32_sys_unlink)
68 1.1 manu
69 1.24 dsl struct netbsd32_execve_args;
70 1.24 dsl
71 1.24 dsl struct netbsd32_chdir_args;
72 1.24 dsl
73 1.1 manu struct linux32_sys_time_args {
74 1.1 manu syscallarg(linux32_timep_t) t;
75 1.1 manu };
76 1.22 christos check_syscall_args(linux32_sys_time)
77 1.1 manu
78 1.1 manu struct linux32_sys_mknod_args {
79 1.1 manu syscallarg(const netbsd32_charp) path;
80 1.1 manu syscallarg(int) mode;
81 1.1 manu syscallarg(int) dev;
82 1.1 manu };
83 1.22 christos check_syscall_args(linux32_sys_mknod)
84 1.1 manu
85 1.24 dsl struct netbsd32_chmod_args;
86 1.24 dsl
87 1.1 manu struct linux32_sys_lchown16_args {
88 1.1 manu syscallarg(const netbsd32_charp) path;
89 1.1 manu syscallarg(int) uid;
90 1.1 manu syscallarg(int) gid;
91 1.1 manu };
92 1.22 christos check_syscall_args(linux32_sys_lchown16)
93 1.1 manu
94 1.1 manu struct linux32_sys_break_args {
95 1.1 manu syscallarg(netbsd32_charp) nsize;
96 1.1 manu };
97 1.22 christos check_syscall_args(linux32_sys_break)
98 1.1 manu
99 1.24 dsl struct compat_43_netbsd32_olseek_args;
100 1.24 dsl
101 1.24 dsl struct netbsd32_setuid_args;
102 1.24 dsl
103 1.1 manu struct linux32_sys_stime_args {
104 1.1 manu syscallarg(linux32_timep_t) t;
105 1.1 manu };
106 1.22 christos check_syscall_args(linux32_sys_stime)
107 1.1 manu
108 1.21 njoly struct linux32_sys_alarm_args {
109 1.21 njoly syscallarg(unsigned int) secs;
110 1.21 njoly };
111 1.22 christos check_syscall_args(linux32_sys_alarm)
112 1.21 njoly
113 1.1 manu struct linux32_sys_utime_args {
114 1.1 manu syscallarg(const netbsd32_charp) path;
115 1.1 manu syscallarg(linux32_utimbufp_t) times;
116 1.1 manu };
117 1.22 christos check_syscall_args(linux32_sys_utime)
118 1.1 manu
119 1.24 dsl struct netbsd32_access_args;
120 1.24 dsl
121 1.21 njoly struct linux32_sys_nice_args {
122 1.21 njoly syscallarg(int) incr;
123 1.21 njoly };
124 1.22 christos check_syscall_args(linux32_sys_nice)
125 1.21 njoly
126 1.1 manu struct linux32_sys_kill_args {
127 1.1 manu syscallarg(int) pid;
128 1.1 manu syscallarg(int) signum;
129 1.1 manu };
130 1.22 christos check_syscall_args(linux32_sys_kill)
131 1.1 manu
132 1.1 manu struct linux32_sys_rename_args {
133 1.1 manu syscallarg(const netbsd32_charp) from;
134 1.1 manu syscallarg(const netbsd32_charp) to;
135 1.1 manu };
136 1.22 christos check_syscall_args(linux32_sys_rename)
137 1.1 manu
138 1.24 dsl struct netbsd32_mkdir_args;
139 1.24 dsl
140 1.24 dsl struct netbsd32_rmdir_args;
141 1.24 dsl
142 1.24 dsl struct netbsd32_dup_args;
143 1.24 dsl
144 1.1 manu struct linux32_sys_pipe_args {
145 1.1 manu syscallarg(netbsd32_intp) fd;
146 1.1 manu };
147 1.22 christos check_syscall_args(linux32_sys_pipe)
148 1.1 manu
149 1.1 manu struct linux32_sys_times_args {
150 1.1 manu syscallarg(linux32_tmsp_t) tms;
151 1.1 manu };
152 1.22 christos check_syscall_args(linux32_sys_times)
153 1.1 manu
154 1.1 manu struct linux32_sys_brk_args {
155 1.1 manu syscallarg(netbsd32_charp) nsize;
156 1.1 manu };
157 1.22 christos check_syscall_args(linux32_sys_brk)
158 1.1 manu
159 1.24 dsl struct netbsd32_setgid_args;
160 1.24 dsl
161 1.1 manu struct linux32_sys_signal_args {
162 1.1 manu syscallarg(int) signum;
163 1.1 manu syscallarg(linux32_handler_t) handler;
164 1.1 manu };
165 1.22 christos check_syscall_args(linux32_sys_signal)
166 1.1 manu
167 1.24 dsl struct netbsd32_acct_args;
168 1.24 dsl
169 1.1 manu struct linux32_sys_ioctl_args {
170 1.1 manu syscallarg(int) fd;
171 1.1 manu syscallarg(netbsd32_u_long) com;
172 1.1 manu syscallarg(netbsd32_charp) data;
173 1.1 manu };
174 1.22 christos check_syscall_args(linux32_sys_ioctl)
175 1.1 manu
176 1.1 manu struct linux32_sys_fcntl_args {
177 1.1 manu syscallarg(int) fd;
178 1.1 manu syscallarg(int) cmd;
179 1.1 manu syscallarg(netbsd32_voidp) arg;
180 1.1 manu };
181 1.22 christos check_syscall_args(linux32_sys_fcntl)
182 1.1 manu
183 1.24 dsl struct netbsd32_setpgid_args;
184 1.24 dsl
185 1.1 manu struct linux32_sys_oldolduname_args {
186 1.1 manu syscallarg(linux32_oldold_utsnamep_t) up;
187 1.1 manu };
188 1.22 christos check_syscall_args(linux32_sys_oldolduname)
189 1.1 manu
190 1.24 dsl struct netbsd32_umask_args;
191 1.24 dsl
192 1.24 dsl struct netbsd32_chroot_args;
193 1.24 dsl
194 1.24 dsl struct netbsd32_dup2_args;
195 1.24 dsl
196 1.21 njoly struct linux32_sys_setreuid16_args {
197 1.1 manu syscallarg(int) ruid;
198 1.1 manu syscallarg(int) euid;
199 1.1 manu };
200 1.22 christos check_syscall_args(linux32_sys_setreuid16)
201 1.1 manu
202 1.21 njoly struct linux32_sys_setregid16_args {
203 1.1 manu syscallarg(int) rgid;
204 1.1 manu syscallarg(int) egid;
205 1.1 manu };
206 1.22 christos check_syscall_args(linux32_sys_setregid16)
207 1.1 manu
208 1.24 dsl struct compat_43_netbsd32_osethostname_args;
209 1.24 dsl
210 1.1 manu struct linux32_sys_setrlimit_args {
211 1.1 manu syscallarg(u_int) which;
212 1.1 manu syscallarg(netbsd32_orlimitp_t) rlp;
213 1.1 manu };
214 1.22 christos check_syscall_args(linux32_sys_setrlimit)
215 1.1 manu
216 1.1 manu struct linux32_sys_getrlimit_args {
217 1.1 manu syscallarg(u_int) which;
218 1.1 manu syscallarg(netbsd32_orlimitp_t) rlp;
219 1.1 manu };
220 1.22 christos check_syscall_args(linux32_sys_getrlimit)
221 1.1 manu
222 1.24 dsl struct netbsd32_getrusage_args;
223 1.24 dsl
224 1.1 manu struct linux32_sys_gettimeofday_args {
225 1.1 manu syscallarg(netbsd32_timevalp_t) tp;
226 1.1 manu syscallarg(netbsd32_timezonep_t) tzp;
227 1.1 manu };
228 1.22 christos check_syscall_args(linux32_sys_gettimeofday)
229 1.1 manu
230 1.1 manu struct linux32_sys_settimeofday_args {
231 1.1 manu syscallarg(netbsd32_timevalp_t) tp;
232 1.1 manu syscallarg(netbsd32_timezonep_t) tzp;
233 1.1 manu };
234 1.22 christos check_syscall_args(linux32_sys_settimeofday)
235 1.1 manu
236 1.1 manu struct linux32_sys_getgroups16_args {
237 1.1 manu syscallarg(int) gidsetsize;
238 1.1 manu syscallarg(linux32_gidp_t) gidset;
239 1.1 manu };
240 1.22 christos check_syscall_args(linux32_sys_getgroups16)
241 1.1 manu
242 1.1 manu struct linux32_sys_setgroups16_args {
243 1.1 manu syscallarg(int) gidsetsize;
244 1.1 manu syscallarg(linux32_gidp_t) gidset;
245 1.1 manu };
246 1.22 christos check_syscall_args(linux32_sys_setgroups16)
247 1.1 manu
248 1.1 manu struct linux32_sys_oldselect_args {
249 1.1 manu syscallarg(linux32_oldselectp_t) lsp;
250 1.1 manu };
251 1.22 christos check_syscall_args(linux32_sys_oldselect)
252 1.1 manu
253 1.24 dsl struct netbsd32_symlink_args;
254 1.24 dsl
255 1.24 dsl struct compat_43_netbsd32_lstat43_args;
256 1.24 dsl
257 1.24 dsl struct netbsd32_readlink_args;
258 1.24 dsl
259 1.1 manu struct linux32_sys_swapon_args {
260 1.1 manu syscallarg(netbsd32_charp) name;
261 1.1 manu };
262 1.22 christos check_syscall_args(linux32_sys_swapon)
263 1.1 manu
264 1.1 manu struct linux32_sys_reboot_args {
265 1.1 manu syscallarg(int) magic1;
266 1.1 manu syscallarg(int) magic2;
267 1.1 manu syscallarg(int) cmd;
268 1.1 manu syscallarg(netbsd32_voidp) arg;
269 1.1 manu };
270 1.22 christos check_syscall_args(linux32_sys_reboot)
271 1.1 manu
272 1.1 manu struct linux32_sys_old_mmap_args {
273 1.1 manu syscallarg(linux32_oldmmapp) lmp;
274 1.1 manu };
275 1.22 christos check_syscall_args(linux32_sys_old_mmap)
276 1.1 manu
277 1.24 dsl struct netbsd32_munmap_args;
278 1.24 dsl
279 1.1 manu struct linux32_sys_truncate_args {
280 1.1 manu syscallarg(const netbsd32_charp) path;
281 1.1 manu syscallarg(netbsd32_long) length;
282 1.1 manu };
283 1.22 christos check_syscall_args(linux32_sys_truncate)
284 1.1 manu
285 1.24 dsl struct compat_43_netbsd32_oftruncate_args;
286 1.24 dsl
287 1.24 dsl struct netbsd32_fchmod_args;
288 1.24 dsl
289 1.1 manu struct linux32_sys_fchown16_args {
290 1.1 manu syscallarg(int) fd;
291 1.1 manu syscallarg(int) uid;
292 1.1 manu syscallarg(int) gid;
293 1.1 manu };
294 1.22 christos check_syscall_args(linux32_sys_fchown16)
295 1.1 manu
296 1.4 manu struct linux32_sys_getpriority_args {
297 1.4 manu syscallarg(int) which;
298 1.4 manu syscallarg(int) who;
299 1.4 manu };
300 1.22 christos check_syscall_args(linux32_sys_getpriority)
301 1.4 manu
302 1.4 manu struct linux32_sys_setpriority_args {
303 1.4 manu syscallarg(int) which;
304 1.4 manu syscallarg(int) who;
305 1.4 manu syscallarg(int) prio;
306 1.4 manu };
307 1.22 christos check_syscall_args(linux32_sys_setpriority)
308 1.4 manu
309 1.16 njoly struct linux32_sys_statfs_args {
310 1.16 njoly syscallarg(const netbsd32_charp) path;
311 1.16 njoly syscallarg(linux32_statfsp) sp;
312 1.16 njoly };
313 1.22 christos check_syscall_args(linux32_sys_statfs)
314 1.16 njoly
315 1.1 manu struct linux32_sys_socketcall_args {
316 1.1 manu syscallarg(int) what;
317 1.1 manu syscallarg(netbsd32_voidp) args;
318 1.1 manu };
319 1.22 christos check_syscall_args(linux32_sys_socketcall)
320 1.1 manu
321 1.24 dsl struct netbsd32_setitimer_args;
322 1.24 dsl
323 1.24 dsl struct netbsd32_getitimer_args;
324 1.24 dsl
325 1.1 manu struct linux32_sys_wait4_args {
326 1.1 manu syscallarg(int) pid;
327 1.1 manu syscallarg(netbsd32_intp) status;
328 1.1 manu syscallarg(int) options;
329 1.1 manu syscallarg(netbsd32_rusagep_t) rusage;
330 1.1 manu };
331 1.22 christos check_syscall_args(linux32_sys_wait4)
332 1.1 manu
333 1.1 manu struct linux32_sys_swapoff_args {
334 1.1 manu syscallarg(const netbsd32_charp) path;
335 1.1 manu };
336 1.22 christos check_syscall_args(linux32_sys_swapoff)
337 1.1 manu
338 1.10 manu struct linux32_sys_sysinfo_args {
339 1.10 manu syscallarg(linux32_sysinfop_t) arg;
340 1.10 manu };
341 1.22 christos check_syscall_args(linux32_sys_sysinfo)
342 1.10 manu
343 1.24 dsl struct netbsd32_fsync_args;
344 1.24 dsl
345 1.1 manu struct linux32_sys_sigreturn_args {
346 1.1 manu syscallarg(linux32_sigcontextp_t) scp;
347 1.1 manu };
348 1.22 christos check_syscall_args(linux32_sys_sigreturn)
349 1.1 manu
350 1.1 manu struct linux32_sys_clone_args {
351 1.1 manu syscallarg(int) flags;
352 1.1 manu syscallarg(netbsd32_voidp) stack;
353 1.1 manu };
354 1.22 christos check_syscall_args(linux32_sys_clone)
355 1.1 manu
356 1.1 manu struct linux32_sys_uname_args {
357 1.1 manu syscallarg(linux32_utsnamep) up;
358 1.1 manu };
359 1.22 christos check_syscall_args(linux32_sys_uname)
360 1.1 manu
361 1.1 manu struct linux32_sys_mprotect_args {
362 1.24 dsl syscallarg(netbsd32_voidp) start;
363 1.1 manu syscallarg(netbsd32_size_t) len;
364 1.1 manu syscallarg(int) prot;
365 1.1 manu };
366 1.22 christos check_syscall_args(linux32_sys_mprotect)
367 1.1 manu
368 1.26 njoly struct netbsd32_getpgid_args;
369 1.26 njoly
370 1.24 dsl struct netbsd32_fchdir_args;
371 1.24 dsl
372 1.24 dsl struct linux32_sys_setfsuid_args;
373 1.24 dsl
374 1.25 njoly struct linux32_sys_setfsgid_args;
375 1.25 njoly
376 1.1 manu struct linux32_sys_llseek_args {
377 1.1 manu syscallarg(int) fd;
378 1.1 manu syscallarg(u_int32_t) ohigh;
379 1.1 manu syscallarg(u_int32_t) olow;
380 1.15 christos syscallarg(netbsd32_caddr_t) res;
381 1.1 manu syscallarg(int) whence;
382 1.1 manu };
383 1.22 christos check_syscall_args(linux32_sys_llseek)
384 1.1 manu
385 1.1 manu struct linux32_sys_getdents_args {
386 1.1 manu syscallarg(int) fd;
387 1.1 manu syscallarg(linux32_direntp_t) dent;
388 1.1 manu syscallarg(unsigned int) count;
389 1.1 manu };
390 1.22 christos check_syscall_args(linux32_sys_getdents)
391 1.1 manu
392 1.1 manu struct linux32_sys_select_args {
393 1.1 manu syscallarg(int) nfds;
394 1.1 manu syscallarg(netbsd32_fd_setp_t) readfds;
395 1.1 manu syscallarg(netbsd32_fd_setp_t) writefds;
396 1.1 manu syscallarg(netbsd32_fd_setp_t) exceptfds;
397 1.1 manu syscallarg(netbsd32_timevalp_t) timeout;
398 1.1 manu };
399 1.22 christos check_syscall_args(linux32_sys_select)
400 1.1 manu
401 1.24 dsl struct netbsd32_flock_args;
402 1.24 dsl
403 1.24 dsl struct netbsd32_readv_args;
404 1.24 dsl
405 1.24 dsl struct netbsd32_writev_args;
406 1.24 dsl
407 1.24 dsl struct netbsd32_getsid_args;
408 1.24 dsl
409 1.21 njoly struct linux32_sys_fdatasync_args {
410 1.21 njoly syscallarg(int) fd;
411 1.21 njoly };
412 1.22 christos check_syscall_args(linux32_sys_fdatasync)
413 1.21 njoly
414 1.1 manu struct linux32_sys___sysctl_args {
415 1.1 manu syscallarg(linux32___sysctlp_t) lsp;
416 1.1 manu };
417 1.22 christos check_syscall_args(linux32_sys___sysctl)
418 1.1 manu
419 1.24 dsl struct netbsd32_mlockall_args;
420 1.24 dsl
421 1.10 manu struct linux32_sys_sched_getparam_args {
422 1.10 manu syscallarg(pid_t) pid;
423 1.10 manu syscallarg(linux32_sched_paramp_t) sp;
424 1.10 manu };
425 1.22 christos check_syscall_args(linux32_sys_sched_getparam)
426 1.10 manu
427 1.1 manu struct linux32_sys_sched_setscheduler_args {
428 1.1 manu syscallarg(pid_t) pid;
429 1.1 manu syscallarg(int) policy;
430 1.1 manu syscallarg(const linux32_sched_paramp_t) sp;
431 1.1 manu };
432 1.22 christos check_syscall_args(linux32_sys_sched_setscheduler)
433 1.1 manu
434 1.21 njoly struct linux32_sys_sched_getscheduler_args {
435 1.21 njoly syscallarg(pid_t) pid;
436 1.21 njoly };
437 1.22 christos check_syscall_args(linux32_sys_sched_getscheduler)
438 1.21 njoly
439 1.24 dsl struct netbsd32_nanosleep_args;
440 1.24 dsl
441 1.10 manu struct linux32_sys_mremap_args {
442 1.10 manu syscallarg(netbsd32_voidp) old_address;
443 1.10 manu syscallarg(netbsd32_size_t) old_size;
444 1.10 manu syscallarg(netbsd32_size_t) new_size;
445 1.10 manu syscallarg(netbsd32_u_long) flags;
446 1.10 manu };
447 1.22 christos check_syscall_args(linux32_sys_mremap)
448 1.10 manu
449 1.21 njoly struct linux32_sys_setresuid16_args {
450 1.21 njoly syscallarg(uid_t) ruid;
451 1.21 njoly syscallarg(uid_t) euid;
452 1.21 njoly syscallarg(uid_t) suid;
453 1.21 njoly };
454 1.22 christos check_syscall_args(linux32_sys_setresuid16)
455 1.21 njoly
456 1.24 dsl struct netbsd32_poll_args;
457 1.24 dsl
458 1.21 njoly struct linux32_sys_setresgid16_args {
459 1.21 njoly syscallarg(gid_t) rgid;
460 1.21 njoly syscallarg(gid_t) egid;
461 1.21 njoly syscallarg(gid_t) sgid;
462 1.21 njoly };
463 1.22 christos check_syscall_args(linux32_sys_setresgid16)
464 1.21 njoly
465 1.1 manu struct linux32_sys_rt_sigreturn_args {
466 1.1 manu syscallarg(linux32_ucontextp_t) ucp;
467 1.1 manu };
468 1.22 christos check_syscall_args(linux32_sys_rt_sigreturn)
469 1.1 manu
470 1.1 manu struct linux32_sys_rt_sigaction_args {
471 1.1 manu syscallarg(int) signum;
472 1.1 manu syscallarg(const linux32_sigactionp_t) nsa;
473 1.1 manu syscallarg(linux32_sigactionp_t) osa;
474 1.1 manu syscallarg(netbsd32_size_t) sigsetsize;
475 1.1 manu };
476 1.22 christos check_syscall_args(linux32_sys_rt_sigaction)
477 1.1 manu
478 1.1 manu struct linux32_sys_rt_sigprocmask_args {
479 1.1 manu syscallarg(int) how;
480 1.1 manu syscallarg(const linux32_sigsetp_t) set;
481 1.1 manu syscallarg(linux32_sigsetp_t) oset;
482 1.1 manu syscallarg(netbsd32_size_t) sigsetsize;
483 1.1 manu };
484 1.22 christos check_syscall_args(linux32_sys_rt_sigprocmask)
485 1.1 manu
486 1.1 manu struct linux32_sys_rt_sigsuspend_args {
487 1.1 manu syscallarg(linux32_sigsetp_t) unewset;
488 1.1 manu syscallarg(netbsd32_size_t) sigsetsize;
489 1.1 manu };
490 1.22 christos check_syscall_args(linux32_sys_rt_sigsuspend)
491 1.1 manu
492 1.18 njoly struct linux32_sys_chown16_args {
493 1.18 njoly syscallarg(const netbsd32_charp) path;
494 1.18 njoly syscallarg(int) uid;
495 1.18 njoly syscallarg(int) gid;
496 1.18 njoly };
497 1.22 christos check_syscall_args(linux32_sys_chown16)
498 1.18 njoly
499 1.24 dsl struct netbsd32___getcwd_args;
500 1.24 dsl
501 1.1 manu struct linux32_sys_ugetrlimit_args {
502 1.1 manu syscallarg(int) which;
503 1.1 manu syscallarg(netbsd32_orlimitp_t) rlp;
504 1.1 manu };
505 1.22 christos check_syscall_args(linux32_sys_ugetrlimit)
506 1.24 dsl #define linux32_sys_mmap2_args linux32_sys_mmap_args
507 1.1 manu
508 1.10 manu struct linux32_sys_mmap2_args {
509 1.10 manu syscallarg(netbsd32_u_long) addr;
510 1.10 manu syscallarg(netbsd32_size_t) len;
511 1.10 manu syscallarg(int) prot;
512 1.10 manu syscallarg(int) flags;
513 1.10 manu syscallarg(int) fd;
514 1.10 manu syscallarg(linux32_off_t) offset;
515 1.10 manu };
516 1.22 christos check_syscall_args(linux32_sys_mmap2)
517 1.10 manu
518 1.1 manu struct linux32_sys_stat64_args {
519 1.1 manu syscallarg(const netbsd32_charp) path;
520 1.1 manu syscallarg(linux32_stat64p) sp;
521 1.1 manu };
522 1.22 christos check_syscall_args(linux32_sys_stat64)
523 1.1 manu
524 1.1 manu struct linux32_sys_lstat64_args {
525 1.1 manu syscallarg(const netbsd32_charp) path;
526 1.1 manu syscallarg(linux32_stat64p) sp;
527 1.1 manu };
528 1.22 christos check_syscall_args(linux32_sys_lstat64)
529 1.1 manu
530 1.1 manu struct linux32_sys_fstat64_args {
531 1.1 manu syscallarg(int) fd;
532 1.1 manu syscallarg(linux32_stat64p) sp;
533 1.1 manu };
534 1.22 christos check_syscall_args(linux32_sys_fstat64)
535 1.1 manu
536 1.24 dsl struct netbsd32___posix_lchown_args;
537 1.24 dsl
538 1.24 dsl struct netbsd32_setreuid_args;
539 1.24 dsl
540 1.24 dsl struct netbsd32_setregid_args;
541 1.24 dsl
542 1.24 dsl struct netbsd32_getgroups_args;
543 1.24 dsl
544 1.24 dsl struct netbsd32_setgroups_args;
545 1.24 dsl
546 1.24 dsl struct netbsd32___posix_fchown_args;
547 1.24 dsl
548 1.8 manu struct linux32_sys_setresuid_args {
549 1.8 manu syscallarg(uid_t) ruid;
550 1.8 manu syscallarg(uid_t) euid;
551 1.8 manu syscallarg(uid_t) suid;
552 1.8 manu };
553 1.22 christos check_syscall_args(linux32_sys_setresuid)
554 1.8 manu
555 1.8 manu struct linux32_sys_setresgid_args {
556 1.8 manu syscallarg(gid_t) rgid;
557 1.8 manu syscallarg(gid_t) egid;
558 1.8 manu syscallarg(gid_t) sgid;
559 1.8 manu };
560 1.22 christos check_syscall_args(linux32_sys_setresgid)
561 1.8 manu
562 1.24 dsl struct netbsd32___posix_chown_args;
563 1.24 dsl
564 1.24 dsl struct netbsd32_setuid_args;
565 1.24 dsl
566 1.24 dsl struct netbsd32_setgid_args;
567 1.24 dsl
568 1.21 njoly struct linux32_sys_setfsuid_args {
569 1.21 njoly syscallarg(uid_t) uid;
570 1.21 njoly };
571 1.22 christos check_syscall_args(linux32_sys_setfsuid)
572 1.21 njoly
573 1.25 njoly struct linux32_sys_setfsgid_args {
574 1.25 njoly syscallarg(gid_t) gid;
575 1.25 njoly };
576 1.25 njoly check_syscall_args(linux32_sys_setfsgid)
577 1.25 njoly
578 1.24 dsl struct netbsd32_madvise_args;
579 1.24 dsl
580 1.1 manu struct linux32_sys_getdents64_args {
581 1.1 manu syscallarg(int) fd;
582 1.1 manu syscallarg(linux32_dirent64p_t) dent;
583 1.1 manu syscallarg(unsigned int) count;
584 1.1 manu };
585 1.22 christos check_syscall_args(linux32_sys_getdents64)
586 1.1 manu
587 1.1 manu struct linux32_sys_fcntl64_args {
588 1.1 manu syscallarg(int) fd;
589 1.1 manu syscallarg(int) cmd;
590 1.1 manu syscallarg(netbsd32_voidp) arg;
591 1.1 manu };
592 1.22 christos check_syscall_args(linux32_sys_fcntl64)
593 1.1 manu
594 1.21 njoly struct linux32_sys_exit_group_args {
595 1.21 njoly syscallarg(int) error_code;
596 1.21 njoly };
597 1.22 christos check_syscall_args(linux32_sys_exit_group)
598 1.21 njoly
599 1.1 manu /*
600 1.1 manu * System call prototypes.
601 1.1 manu */
602 1.1 manu
603 1.24 dsl int linux_sys_nosys(struct lwp *, const void *, register_t *);
604 1.1 manu
605 1.24 dsl int netbsd32_exit(struct lwp *, const struct netbsd32_exit_args *, register_t *);
606 1.1 manu
607 1.24 dsl int sys_fork(struct lwp *, const void *, register_t *);
608 1.1 manu
609 1.24 dsl int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *);
610 1.1 manu
611 1.24 dsl int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *);
612 1.1 manu
613 1.24 dsl int linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *);
614 1.1 manu
615 1.24 dsl int netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *);
616 1.1 manu
617 1.24 dsl int linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *);
618 1.1 manu
619 1.24 dsl int linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *);
620 1.1 manu
621 1.24 dsl int netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *);
622 1.1 manu
623 1.24 dsl int linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *);
624 1.1 manu
625 1.24 dsl int netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *);
626 1.1 manu
627 1.24 dsl int netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *);
628 1.1 manu
629 1.24 dsl int linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *);
630 1.1 manu
631 1.24 dsl int linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *);
632 1.1 manu
633 1.24 dsl int netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *);
634 1.1 manu
635 1.24 dsl int linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *);
636 1.1 manu
637 1.24 dsl int linux32_sys_break(struct lwp *, const struct linux32_sys_break_args *, register_t *);
638 1.1 manu
639 1.24 dsl int compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *);
640 1.1 manu
641 1.24 dsl int linux_sys_getpid(struct lwp *, const void *, register_t *);
642 1.1 manu
643 1.24 dsl int netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *);
644 1.1 manu
645 1.24 dsl int sys_getuid(struct lwp *, const void *, register_t *);
646 1.1 manu
647 1.24 dsl int linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *);
648 1.1 manu
649 1.24 dsl int linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *);
650 1.1 manu
651 1.24 dsl int linux_sys_pause(struct lwp *, const void *, register_t *);
652 1.1 manu
653 1.24 dsl int linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *);
654 1.1 manu
655 1.24 dsl int netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *);
656 1.1 manu
657 1.24 dsl int linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *);
658 1.1 manu
659 1.24 dsl int sys_sync(struct lwp *, const void *, register_t *);
660 1.1 manu
661 1.24 dsl int linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *);
662 1.1 manu
663 1.24 dsl int linux32_sys_rename(struct lwp *, const struct linux32_sys_rename_args *, register_t *);
664 1.1 manu
665 1.24 dsl int netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *);
666 1.1 manu
667 1.24 dsl int netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *);
668 1.1 manu
669 1.24 dsl int netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *);
670 1.1 manu
671 1.24 dsl int linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *);
672 1.1 manu
673 1.24 dsl int linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *);
674 1.1 manu
675 1.24 dsl int linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *);
676 1.1 manu
677 1.24 dsl int netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *);
678 1.1 manu
679 1.24 dsl int sys_getgid(struct lwp *, const void *, register_t *);
680 1.1 manu
681 1.24 dsl int linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *);
682 1.1 manu
683 1.24 dsl int sys_geteuid(struct lwp *, const void *, register_t *);
684 1.1 manu
685 1.24 dsl int sys_getegid(struct lwp *, const void *, register_t *);
686 1.1 manu
687 1.24 dsl int netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *);
688 1.1 manu
689 1.24 dsl int linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *);
690 1.1 manu
691 1.24 dsl int linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *);
692 1.1 manu
693 1.24 dsl int netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *);
694 1.1 manu
695 1.24 dsl int linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *);
696 1.1 manu
697 1.24 dsl int netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *);
698 1.1 manu
699 1.24 dsl int netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *);
700 1.1 manu
701 1.24 dsl int netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *);
702 1.1 manu
703 1.24 dsl int linux_sys_getppid(struct lwp *, const void *, register_t *);
704 1.1 manu
705 1.24 dsl int sys_getpgrp(struct lwp *, const void *, register_t *);
706 1.1 manu
707 1.24 dsl int sys_setsid(struct lwp *, const void *, register_t *);
708 1.1 manu
709 1.24 dsl int linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *);
710 1.1 manu
711 1.24 dsl int linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *);
712 1.1 manu
713 1.24 dsl int compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *);
714 1.1 manu
715 1.24 dsl int linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *);
716 1.1 manu
717 1.24 dsl int linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *);
718 1.1 manu
719 1.24 dsl int netbsd32_getrusage(struct lwp *, const struct netbsd32_getrusage_args *, register_t *);
720 1.1 manu
721 1.24 dsl int linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *);
722 1.1 manu
723 1.24 dsl int linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *);
724 1.1 manu
725 1.24 dsl int linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *);
726 1.1 manu
727 1.24 dsl int linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *);
728 1.1 manu
729 1.24 dsl int linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *);
730 1.1 manu
731 1.24 dsl int netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *);
732 1.1 manu
733 1.24 dsl int compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *);
734 1.1 manu
735 1.24 dsl int netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *);
736 1.1 manu
737 1.24 dsl int linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *);
738 1.1 manu
739 1.24 dsl int linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *);
740 1.1 manu
741 1.24 dsl int linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *);
742 1.1 manu
743 1.24 dsl int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *);
744 1.1 manu
745 1.24 dsl int linux32_sys_truncate(struct lwp *, const struct linux32_sys_truncate_args *, register_t *);
746 1.1 manu
747 1.24 dsl int compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *);
748 1.1 manu
749 1.24 dsl int netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *);
750 1.1 manu
751 1.24 dsl int linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *);
752 1.1 manu
753 1.24 dsl int linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *);
754 1.1 manu
755 1.24 dsl int linux32_sys_setpriority(struct lwp *, const struct linux32_sys_setpriority_args *, register_t *);
756 1.1 manu
757 1.24 dsl int linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *);
758 1.16 njoly
759 1.24 dsl int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *);
760 1.1 manu
761 1.24 dsl int netbsd32_setitimer(struct lwp *, const struct netbsd32_setitimer_args *, register_t *);
762 1.1 manu
763 1.24 dsl int netbsd32_getitimer(struct lwp *, const struct netbsd32_getitimer_args *, register_t *);
764 1.1 manu
765 1.24 dsl int linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *);
766 1.1 manu
767 1.24 dsl int linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *);
768 1.1 manu
769 1.24 dsl int linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *);
770 1.10 manu
771 1.24 dsl int netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *);
772 1.1 manu
773 1.24 dsl int linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *);
774 1.1 manu
775 1.24 dsl int linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *);
776 1.1 manu
777 1.24 dsl int linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *);
778 1.1 manu
779 1.24 dsl int linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *);
780 1.1 manu
781 1.26 njoly int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *);
782 1.26 njoly
783 1.24 dsl int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *);
784 1.1 manu
785 1.24 dsl int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *);
786 1.13 njoly
787 1.25 njoly int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *);
788 1.13 njoly
789 1.24 dsl int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *);
790 1.1 manu
791 1.24 dsl int linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *);
792 1.1 manu
793 1.24 dsl int linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *);
794 1.1 manu
795 1.24 dsl int netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *);
796 1.1 manu
797 1.24 dsl int netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *);
798 1.1 manu
799 1.24 dsl int netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *);
800 1.1 manu
801 1.24 dsl int netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *);
802 1.1 manu
803 1.24 dsl int linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *);
804 1.9 manu
805 1.24 dsl int linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *);
806 1.1 manu
807 1.24 dsl int netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *);
808 1.1 manu
809 1.24 dsl int sys_munlockall(struct lwp *, const void *, register_t *);
810 1.1 manu
811 1.24 dsl int linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *);
812 1.10 manu
813 1.24 dsl int linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *);
814 1.1 manu
815 1.24 dsl int linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *);
816 1.10 manu
817 1.24 dsl int linux_sys_sched_yield(struct lwp *, const void *, register_t *);
818 1.13 njoly
819 1.24 dsl int netbsd32_nanosleep(struct lwp *, const struct netbsd32_nanosleep_args *, register_t *);
820 1.1 manu
821 1.24 dsl int linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *);
822 1.10 manu
823 1.24 dsl int linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *);
824 1.1 manu
825 1.24 dsl int netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *);
826 1.1 manu
827 1.24 dsl int linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *);
828 1.1 manu
829 1.24 dsl int linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *);
830 1.1 manu
831 1.24 dsl int linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *);
832 1.1 manu
833 1.24 dsl int linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *);
834 1.1 manu
835 1.24 dsl int linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *);
836 1.1 manu
837 1.24 dsl int linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *);
838 1.18 njoly
839 1.24 dsl int netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *);
840 1.2 manu
841 1.24 dsl int sys___vfork14(struct lwp *, const void *, register_t *);
842 1.1 manu
843 1.24 dsl int linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *);
844 1.1 manu
845 1.24 dsl #define linux32_sys_mmap2_args linux32_sys_mmap_args
846 1.24 dsl int linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *);
847 1.10 manu
848 1.24 dsl int linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *);
849 1.1 manu
850 1.24 dsl int linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *);
851 1.1 manu
852 1.24 dsl int linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *);
853 1.1 manu
854 1.24 dsl int netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *);
855 1.18 njoly
856 1.24 dsl int netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *);
857 1.1 manu
858 1.24 dsl int netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *);
859 1.1 manu
860 1.24 dsl int netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *);
861 1.3 manu
862 1.24 dsl int netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *);
863 1.3 manu
864 1.24 dsl int netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *);
865 1.1 manu
866 1.24 dsl int linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *);
867 1.1 manu
868 1.24 dsl int linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *);
869 1.1 manu
870 1.24 dsl int netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *);
871 1.18 njoly
872 1.24 dsl int netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *);
873 1.10 manu
874 1.24 dsl int linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *);
875 1.1 manu
876 1.24 dsl int linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *);
877 1.1 manu
878 1.24 dsl int linux_sys_gettid(struct lwp *, const void *, register_t *);
879 1.4 manu
880 1.24 dsl int linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *);
881 1.1 manu
882 1.1 manu #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */
883