1 1.1 ryo /* $NetBSD: linux32_syscallargs.h,v 1.3 2021/12/02 04:39:45 ryo Exp $ */ 2 1.1 ryo 3 1.1 ryo /* 4 1.1 ryo * System call argument lists. 5 1.1 ryo * 6 1.1 ryo * DO NOT EDIT-- this file is automatically generated. 7 1.2 ryo * created from NetBSD: syscalls.master,v 1.2 2021/11/27 21:15:07 ryo Exp 8 1.1 ryo */ 9 1.1 ryo 10 1.1 ryo #ifndef _LINUX32_SYS_SYSCALLARGS_H_ 11 1.1 ryo #define _LINUX32_SYS_SYSCALLARGS_H_ 12 1.1 ryo 13 1.1 ryo /* Forward declaration */ 14 1.1 ryo struct lwp; 15 1.1 ryo 16 1.1 ryo #define LINUX32_SYS_MAXSYSARGS 8 17 1.1 ryo 18 1.1 ryo #undef syscallarg 19 1.1 ryo #define syscallarg(x) \ 20 1.1 ryo union { \ 21 1.1 ryo register32_t pad; \ 22 1.1 ryo struct { x datum; } le; \ 23 1.1 ryo struct { /* LINTED zero array dimension */ \ 24 1.1 ryo int8_t pad[ /* CONSTCOND */ \ 25 1.1 ryo (sizeof (register32_t) < sizeof (x)) \ 26 1.1 ryo ? 0 \ 27 1.1 ryo : sizeof (register32_t) - sizeof (x)]; \ 28 1.1 ryo x datum; \ 29 1.1 ryo } be; \ 30 1.1 ryo } 31 1.1 ryo 32 1.1 ryo #undef check_syscall_args 33 1.1 ryo #define check_syscall_args(call) /*LINTED*/ \ 34 1.1 ryo typedef char call##_check_args[sizeof (struct call##_args) \ 35 1.1 ryo <= LINUX32_SYS_MAXSYSARGS * sizeof (register32_t) ? 1 : -1]; 36 1.1 ryo 37 1.1 ryo struct linux32_sys_exit_args { 38 1.1 ryo syscallarg(int) rval; 39 1.1 ryo }; 40 1.1 ryo check_syscall_args(linux32_sys_exit) 41 1.1 ryo 42 1.1 ryo struct netbsd32_read_args; 43 1.1 ryo 44 1.1 ryo struct netbsd32_write_args; 45 1.1 ryo 46 1.1 ryo struct linux32_sys_open_args { 47 1.1 ryo syscallarg(netbsd32_charp) path; 48 1.1 ryo syscallarg(int) flags; 49 1.1 ryo syscallarg(linux_umode_t) mode; 50 1.1 ryo }; 51 1.1 ryo check_syscall_args(linux32_sys_open) 52 1.1 ryo 53 1.1 ryo struct netbsd32_close_args; 54 1.1 ryo 55 1.1 ryo struct linux32_sys_waitpid_args { 56 1.1 ryo syscallarg(int) pid; 57 1.1 ryo syscallarg(netbsd32_intp) status; 58 1.1 ryo syscallarg(int) options; 59 1.1 ryo }; 60 1.1 ryo check_syscall_args(linux32_sys_waitpid) 61 1.1 ryo 62 1.1 ryo struct linux32_sys_creat_args { 63 1.1 ryo syscallarg(netbsd32_charp) path; 64 1.1 ryo syscallarg(linux_umode_t) mode; 65 1.1 ryo }; 66 1.1 ryo check_syscall_args(linux32_sys_creat) 67 1.1 ryo 68 1.1 ryo struct netbsd32_link_args; 69 1.1 ryo 70 1.1 ryo struct linux32_sys_unlink_args { 71 1.1 ryo syscallarg(netbsd32_charp) path; 72 1.1 ryo }; 73 1.1 ryo check_syscall_args(linux32_sys_unlink) 74 1.1 ryo 75 1.1 ryo struct netbsd32_execve_args; 76 1.1 ryo 77 1.1 ryo struct netbsd32_chdir_args; 78 1.1 ryo 79 1.1 ryo struct linux32_sys_time_args { 80 1.1 ryo syscallarg(linux32_timep_t) t; 81 1.1 ryo }; 82 1.1 ryo check_syscall_args(linux32_sys_time) 83 1.1 ryo 84 1.1 ryo struct linux32_sys_mknod_args { 85 1.1 ryo syscallarg(netbsd32_charp) path; 86 1.1 ryo syscallarg(linux_umode_t) mode; 87 1.1 ryo syscallarg(unsigned) dev; 88 1.1 ryo }; 89 1.1 ryo check_syscall_args(linux32_sys_mknod) 90 1.1 ryo 91 1.1 ryo struct netbsd32_chmod_args; 92 1.1 ryo 93 1.1 ryo struct linux32_sys_lchown16_args { 94 1.1 ryo syscallarg(netbsd32_charp) path; 95 1.1 ryo syscallarg(linux32_uid16_t) uid; 96 1.1 ryo syscallarg(linux32_gid16_t) gid; 97 1.1 ryo }; 98 1.1 ryo check_syscall_args(linux32_sys_lchown16) 99 1.1 ryo 100 1.1 ryo struct compat_43_netbsd32_olseek_args; 101 1.1 ryo 102 1.1 ryo struct netbsd32_setuid_args; 103 1.1 ryo 104 1.1 ryo struct linux32_sys_stime_args { 105 1.1 ryo syscallarg(linux32_timep_t) t; 106 1.1 ryo }; 107 1.1 ryo check_syscall_args(linux32_sys_stime) 108 1.1 ryo 109 1.1 ryo struct linux32_sys_ptrace_args { 110 1.1 ryo syscallarg(int) request; 111 1.1 ryo syscallarg(int) pid; 112 1.1 ryo syscallarg(int) addr; 113 1.1 ryo syscallarg(int) data; 114 1.1 ryo }; 115 1.1 ryo check_syscall_args(linux32_sys_ptrace) 116 1.1 ryo 117 1.1 ryo struct linux32_sys_alarm_args { 118 1.1 ryo syscallarg(unsigned int) secs; 119 1.1 ryo }; 120 1.1 ryo check_syscall_args(linux32_sys_alarm) 121 1.1 ryo 122 1.1 ryo struct linux32_sys_utime_args { 123 1.1 ryo syscallarg(netbsd32_charp) path; 124 1.1 ryo syscallarg(linux32_utimbufp_t) times; 125 1.1 ryo }; 126 1.1 ryo check_syscall_args(linux32_sys_utime) 127 1.1 ryo 128 1.1 ryo struct netbsd32_access_args; 129 1.1 ryo 130 1.1 ryo struct linux32_sys_nice_args { 131 1.1 ryo syscallarg(int) incr; 132 1.1 ryo }; 133 1.1 ryo check_syscall_args(linux32_sys_nice) 134 1.1 ryo 135 1.1 ryo struct linux32_sys_kill_args { 136 1.1 ryo syscallarg(int) pid; 137 1.1 ryo syscallarg(int) signum; 138 1.1 ryo }; 139 1.1 ryo check_syscall_args(linux32_sys_kill) 140 1.1 ryo 141 1.1 ryo struct netbsd32___posix_rename_args; 142 1.1 ryo 143 1.1 ryo struct netbsd32_mkdir_args; 144 1.1 ryo 145 1.1 ryo struct netbsd32_rmdir_args; 146 1.1 ryo 147 1.1 ryo struct netbsd32_dup_args; 148 1.1 ryo 149 1.1 ryo struct linux32_sys_pipe_args { 150 1.1 ryo syscallarg(netbsd32_intp) fd; 151 1.1 ryo }; 152 1.1 ryo check_syscall_args(linux32_sys_pipe) 153 1.1 ryo 154 1.1 ryo struct linux32_sys_times_args { 155 1.1 ryo syscallarg(linux32_tmsp_t) tms; 156 1.1 ryo }; 157 1.1 ryo check_syscall_args(linux32_sys_times) 158 1.1 ryo 159 1.1 ryo struct linux32_sys_brk_args { 160 1.1 ryo syscallarg(netbsd32_charp) nsize; 161 1.1 ryo }; 162 1.1 ryo check_syscall_args(linux32_sys_brk) 163 1.1 ryo 164 1.1 ryo struct netbsd32_setgid_args; 165 1.1 ryo 166 1.1 ryo struct linux32_sys_signal_args { 167 1.1 ryo syscallarg(int) signum; 168 1.1 ryo syscallarg(linux32_handlerp_t) handler; 169 1.1 ryo }; 170 1.1 ryo check_syscall_args(linux32_sys_signal) 171 1.1 ryo 172 1.1 ryo struct netbsd32_acct_args; 173 1.1 ryo 174 1.1 ryo struct linux32_sys_ioctl_args { 175 1.1 ryo syscallarg(int) fd; 176 1.1 ryo syscallarg(netbsd32_u_long) com; 177 1.1 ryo syscallarg(netbsd32_charp) data; 178 1.1 ryo }; 179 1.1 ryo check_syscall_args(linux32_sys_ioctl) 180 1.1 ryo 181 1.1 ryo struct linux32_sys_fcntl_args { 182 1.1 ryo syscallarg(int) fd; 183 1.1 ryo syscallarg(int) cmd; 184 1.1 ryo syscallarg(netbsd32_voidp) arg; 185 1.1 ryo }; 186 1.1 ryo check_syscall_args(linux32_sys_fcntl) 187 1.1 ryo 188 1.1 ryo struct netbsd32_setpgid_args; 189 1.1 ryo 190 1.1 ryo struct linux32_sys_oldolduname_args { 191 1.1 ryo syscallarg(linux32_oldold_utsnamep_t) up; 192 1.1 ryo }; 193 1.1 ryo check_syscall_args(linux32_sys_oldolduname) 194 1.1 ryo 195 1.1 ryo struct netbsd32_umask_args; 196 1.1 ryo 197 1.1 ryo struct netbsd32_chroot_args; 198 1.1 ryo 199 1.1 ryo struct netbsd32_dup2_args; 200 1.1 ryo 201 1.1 ryo struct linux32_sys_sigsetmask_args { 202 1.1 ryo syscallarg(linux32_old_sigset_t) mask; 203 1.1 ryo }; 204 1.1 ryo check_syscall_args(linux32_sys_sigsetmask) 205 1.1 ryo 206 1.1 ryo struct linux32_sys_setreuid16_args { 207 1.1 ryo syscallarg(linux32_uid16_t) ruid; 208 1.1 ryo syscallarg(linux32_uid16_t) euid; 209 1.1 ryo }; 210 1.1 ryo check_syscall_args(linux32_sys_setreuid16) 211 1.1 ryo 212 1.1 ryo struct linux32_sys_setregid16_args { 213 1.1 ryo syscallarg(linux32_gid16_t) rgid; 214 1.1 ryo syscallarg(linux32_gid16_t) egid; 215 1.1 ryo }; 216 1.1 ryo check_syscall_args(linux32_sys_setregid16) 217 1.1 ryo 218 1.1 ryo struct compat_43_netbsd32_osethostname_args; 219 1.1 ryo 220 1.1 ryo struct linux32_sys_setrlimit_args { 221 1.1 ryo syscallarg(u_int) which; 222 1.1 ryo syscallarg(netbsd32_orlimitp_t) rlp; 223 1.1 ryo }; 224 1.1 ryo check_syscall_args(linux32_sys_setrlimit) 225 1.1 ryo 226 1.1 ryo struct linux32_sys_getrlimit_args { 227 1.1 ryo syscallarg(u_int) which; 228 1.1 ryo syscallarg(netbsd32_orlimitp_t) rlp; 229 1.1 ryo }; 230 1.1 ryo check_syscall_args(linux32_sys_getrlimit) 231 1.1 ryo 232 1.1 ryo struct compat_50_netbsd32_getrusage_args; 233 1.1 ryo 234 1.1 ryo struct linux32_sys_gettimeofday_args { 235 1.1 ryo syscallarg(netbsd32_timeval50p_t) tp; 236 1.1 ryo syscallarg(netbsd32_timezonep_t) tzp; 237 1.1 ryo }; 238 1.1 ryo check_syscall_args(linux32_sys_gettimeofday) 239 1.1 ryo 240 1.1 ryo struct linux32_sys_settimeofday_args { 241 1.1 ryo syscallarg(netbsd32_timeval50p_t) tp; 242 1.1 ryo syscallarg(netbsd32_timezonep_t) tzp; 243 1.1 ryo }; 244 1.1 ryo check_syscall_args(linux32_sys_settimeofday) 245 1.1 ryo 246 1.1 ryo struct linux32_sys_getgroups16_args { 247 1.1 ryo syscallarg(int) gidsetsize; 248 1.1 ryo syscallarg(linux32_gid16p_t) gidset; 249 1.1 ryo }; 250 1.1 ryo check_syscall_args(linux32_sys_getgroups16) 251 1.1 ryo 252 1.1 ryo struct linux32_sys_setgroups16_args { 253 1.1 ryo syscallarg(int) gidsetsize; 254 1.1 ryo syscallarg(linux32_gid16p_t) gidset; 255 1.1 ryo }; 256 1.1 ryo check_syscall_args(linux32_sys_setgroups16) 257 1.1 ryo 258 1.1 ryo struct linux32_sys_oldselect_args { 259 1.1 ryo syscallarg(linux32_oldselectp_t) lsp; 260 1.1 ryo }; 261 1.1 ryo check_syscall_args(linux32_sys_oldselect) 262 1.1 ryo 263 1.1 ryo struct netbsd32_symlink_args; 264 1.1 ryo 265 1.1 ryo struct compat_43_netbsd32_lstat43_args; 266 1.1 ryo 267 1.1 ryo struct netbsd32_readlink_args; 268 1.1 ryo 269 1.1 ryo struct linux32_sys_swapon_args { 270 1.1 ryo syscallarg(netbsd32_charp) name; 271 1.1 ryo }; 272 1.1 ryo check_syscall_args(linux32_sys_swapon) 273 1.1 ryo 274 1.1 ryo struct linux32_sys_reboot_args { 275 1.1 ryo syscallarg(int) magic1; 276 1.1 ryo syscallarg(int) magic2; 277 1.1 ryo syscallarg(int) cmd; 278 1.1 ryo syscallarg(netbsd32_voidp) arg; 279 1.1 ryo }; 280 1.1 ryo check_syscall_args(linux32_sys_reboot) 281 1.1 ryo 282 1.1 ryo struct linux32_sys_readdir_args { 283 1.1 ryo syscallarg(int) fd; 284 1.1 ryo syscallarg(netbsd32_voidp) dent; 285 1.1 ryo syscallarg(unsigned int) count; 286 1.1 ryo }; 287 1.1 ryo check_syscall_args(linux32_sys_readdir) 288 1.1 ryo 289 1.1 ryo struct linux32_sys_old_mmap_args { 290 1.1 ryo syscallarg(linux32_oldmmapp) lmp; 291 1.1 ryo }; 292 1.1 ryo check_syscall_args(linux32_sys_old_mmap) 293 1.1 ryo 294 1.1 ryo struct netbsd32_munmap_args; 295 1.1 ryo 296 1.1 ryo struct compat_43_netbsd32_otruncate_args; 297 1.1 ryo 298 1.1 ryo struct compat_43_netbsd32_oftruncate_args; 299 1.1 ryo 300 1.1 ryo struct netbsd32_fchmod_args; 301 1.1 ryo 302 1.1 ryo struct linux32_sys_fchown16_args { 303 1.1 ryo syscallarg(int) fd; 304 1.1 ryo syscallarg(linux32_uid16_t) uid; 305 1.1 ryo syscallarg(linux32_gid16_t) gid; 306 1.1 ryo }; 307 1.1 ryo check_syscall_args(linux32_sys_fchown16) 308 1.1 ryo 309 1.1 ryo struct linux32_sys_getpriority_args { 310 1.1 ryo syscallarg(int) which; 311 1.1 ryo syscallarg(int) who; 312 1.1 ryo }; 313 1.1 ryo check_syscall_args(linux32_sys_getpriority) 314 1.1 ryo 315 1.1 ryo struct netbsd32_setpriority_args; 316 1.1 ryo 317 1.1 ryo struct netbsd32_profil_args; 318 1.1 ryo 319 1.1 ryo struct linux32_sys_statfs_args { 320 1.1 ryo syscallarg(netbsd32_charp) path; 321 1.1 ryo syscallarg(linux32_statfsp) sp; 322 1.1 ryo }; 323 1.1 ryo check_syscall_args(linux32_sys_statfs) 324 1.1 ryo 325 1.1 ryo struct linux32_sys_fstatfs_args { 326 1.1 ryo syscallarg(int) fd; 327 1.1 ryo syscallarg(linux32_statfsp) sp; 328 1.1 ryo }; 329 1.1 ryo check_syscall_args(linux32_sys_fstatfs) 330 1.1 ryo 331 1.1 ryo struct linux32_sys_socketcall_args { 332 1.1 ryo syscallarg(int) what; 333 1.1 ryo syscallarg(netbsd32_voidp) args; 334 1.1 ryo }; 335 1.1 ryo check_syscall_args(linux32_sys_socketcall) 336 1.1 ryo 337 1.1 ryo struct compat_50_netbsd32_setitimer_args; 338 1.1 ryo 339 1.1 ryo struct compat_50_netbsd32_getitimer_args; 340 1.1 ryo 341 1.1 ryo struct linux32_sys_stat_args { 342 1.1 ryo syscallarg(netbsd32_charp) path; 343 1.1 ryo syscallarg(linux32_statp) sp; 344 1.1 ryo }; 345 1.1 ryo check_syscall_args(linux32_sys_stat) 346 1.1 ryo 347 1.1 ryo struct linux32_sys_lstat_args { 348 1.1 ryo syscallarg(netbsd32_charp) path; 349 1.1 ryo syscallarg(linux32_statp) sp; 350 1.1 ryo }; 351 1.1 ryo check_syscall_args(linux32_sys_lstat) 352 1.1 ryo 353 1.1 ryo struct linux32_sys_fstat_args { 354 1.1 ryo syscallarg(int) fd; 355 1.1 ryo syscallarg(linux32_statp) sp; 356 1.1 ryo }; 357 1.1 ryo check_syscall_args(linux32_sys_fstat) 358 1.1 ryo 359 1.1 ryo struct linux32_sys_olduname_args { 360 1.1 ryo syscallarg(linux32_oldutsnamep_t) up; 361 1.1 ryo }; 362 1.1 ryo check_syscall_args(linux32_sys_olduname) 363 1.1 ryo 364 1.1 ryo struct linux32_sys_wait4_args { 365 1.1 ryo syscallarg(int) pid; 366 1.1 ryo syscallarg(netbsd32_intp) status; 367 1.1 ryo syscallarg(int) options; 368 1.1 ryo syscallarg(netbsd32_rusage50p_t) rusage; 369 1.1 ryo }; 370 1.1 ryo check_syscall_args(linux32_sys_wait4) 371 1.1 ryo 372 1.1 ryo struct linux32_sys_swapoff_args { 373 1.1 ryo syscallarg(netbsd32_charp) path; 374 1.1 ryo }; 375 1.1 ryo check_syscall_args(linux32_sys_swapoff) 376 1.1 ryo 377 1.1 ryo struct linux32_sys_sysinfo_args { 378 1.1 ryo syscallarg(linux32_sysinfop_t) arg; 379 1.1 ryo }; 380 1.1 ryo check_syscall_args(linux32_sys_sysinfo) 381 1.1 ryo 382 1.1 ryo struct linux32_sys_ipc_args { 383 1.1 ryo syscallarg(int) what; 384 1.1 ryo syscallarg(int) a1; 385 1.1 ryo syscallarg(int) a2; 386 1.1 ryo syscallarg(int) a3; 387 1.1 ryo syscallarg(netbsd32_voidp) ptr; 388 1.1 ryo }; 389 1.1 ryo check_syscall_args(linux32_sys_ipc) 390 1.1 ryo 391 1.1 ryo struct netbsd32_fsync_args; 392 1.1 ryo 393 1.1 ryo struct linux32_sys_sigreturn_args { 394 1.1 ryo syscallarg(linux32_sigcontextp_t) scp; 395 1.1 ryo }; 396 1.1 ryo check_syscall_args(linux32_sys_sigreturn) 397 1.1 ryo 398 1.1 ryo struct linux32_sys_clone_args { 399 1.1 ryo syscallarg(int) flags; 400 1.1 ryo syscallarg(netbsd32_voidp) stack; 401 1.1 ryo syscallarg(netbsd32_voidp) parent_tidptr; 402 1.1 ryo syscallarg(netbsd32_voidp) tls; 403 1.1 ryo syscallarg(netbsd32_voidp) child_tidptr; 404 1.1 ryo }; 405 1.1 ryo check_syscall_args(linux32_sys_clone) 406 1.1 ryo 407 1.1 ryo struct linux32_sys_setdomainname_args { 408 1.1 ryo syscallarg(netbsd32_charp) domainname; 409 1.1 ryo syscallarg(int) len; 410 1.1 ryo }; 411 1.1 ryo check_syscall_args(linux32_sys_setdomainname) 412 1.1 ryo 413 1.1 ryo struct linux32_sys_uname_args { 414 1.1 ryo syscallarg(linux32_utsnamep) up; 415 1.1 ryo }; 416 1.1 ryo check_syscall_args(linux32_sys_uname) 417 1.1 ryo 418 1.1 ryo struct linux32_sys_mprotect_args { 419 1.1 ryo syscallarg(netbsd32_voidp) start; 420 1.1 ryo syscallarg(netbsd32_size_t) len; 421 1.1 ryo syscallarg(int) prot; 422 1.1 ryo }; 423 1.1 ryo check_syscall_args(linux32_sys_mprotect) 424 1.1 ryo 425 1.1 ryo struct netbsd32_getpgid_args; 426 1.1 ryo 427 1.1 ryo struct netbsd32_fchdir_args; 428 1.1 ryo 429 1.1 ryo struct linux32_sys_personality_args { 430 1.1 ryo syscallarg(netbsd32_u_long) per; 431 1.1 ryo }; 432 1.1 ryo check_syscall_args(linux32_sys_personality) 433 1.1 ryo 434 1.1 ryo struct linux32_sys_setfsuid_args; 435 1.1 ryo 436 1.1 ryo struct linux32_sys_setfsgid_args; 437 1.1 ryo 438 1.1 ryo struct linux32_sys_llseek_args { 439 1.1 ryo syscallarg(int) fd; 440 1.1 ryo syscallarg(u_int32_t) ohigh; 441 1.1 ryo syscallarg(u_int32_t) olow; 442 1.1 ryo syscallarg(netbsd32_voidp) res; 443 1.1 ryo syscallarg(int) whence; 444 1.1 ryo }; 445 1.1 ryo check_syscall_args(linux32_sys_llseek) 446 1.1 ryo 447 1.1 ryo struct linux32_sys_getdents_args { 448 1.1 ryo syscallarg(int) fd; 449 1.1 ryo syscallarg(linux32_direntp_t) dent; 450 1.1 ryo syscallarg(unsigned int) count; 451 1.1 ryo }; 452 1.1 ryo check_syscall_args(linux32_sys_getdents) 453 1.1 ryo 454 1.1 ryo struct linux32_sys_select_args { 455 1.1 ryo syscallarg(int) nfds; 456 1.1 ryo syscallarg(netbsd32_fd_setp_t) readfds; 457 1.1 ryo syscallarg(netbsd32_fd_setp_t) writefds; 458 1.1 ryo syscallarg(netbsd32_fd_setp_t) exceptfds; 459 1.1 ryo syscallarg(netbsd32_timeval50p_t) timeout; 460 1.1 ryo }; 461 1.1 ryo check_syscall_args(linux32_sys_select) 462 1.1 ryo 463 1.1 ryo struct netbsd32_flock_args; 464 1.1 ryo 465 1.1 ryo struct netbsd32___msync13_args; 466 1.1 ryo 467 1.1 ryo struct netbsd32_readv_args; 468 1.1 ryo 469 1.1 ryo struct netbsd32_writev_args; 470 1.1 ryo 471 1.1 ryo struct netbsd32_getsid_args; 472 1.1 ryo 473 1.1 ryo struct linux32_sys_fdatasync_args { 474 1.1 ryo syscallarg(int) fd; 475 1.1 ryo }; 476 1.1 ryo check_syscall_args(linux32_sys_fdatasync) 477 1.1 ryo 478 1.1 ryo struct linux32_sys___sysctl_args { 479 1.1 ryo syscallarg(linux32___sysctlp_t) lsp; 480 1.1 ryo }; 481 1.1 ryo check_syscall_args(linux32_sys___sysctl) 482 1.1 ryo 483 1.1 ryo struct netbsd32_mlock_args; 484 1.1 ryo 485 1.1 ryo struct netbsd32_munlock_args; 486 1.1 ryo 487 1.1 ryo struct netbsd32_mlockall_args; 488 1.1 ryo 489 1.1 ryo struct linux32_sys_sched_setparam_args { 490 1.1 ryo syscallarg(pid_t) pid; 491 1.1 ryo syscallarg(const linux32_sched_paramp_t) sp; 492 1.1 ryo }; 493 1.1 ryo check_syscall_args(linux32_sys_sched_setparam) 494 1.1 ryo 495 1.1 ryo struct linux32_sys_sched_getparam_args { 496 1.1 ryo syscallarg(pid_t) pid; 497 1.1 ryo syscallarg(linux32_sched_paramp_t) sp; 498 1.1 ryo }; 499 1.1 ryo check_syscall_args(linux32_sys_sched_getparam) 500 1.1 ryo 501 1.1 ryo struct linux32_sys_sched_setscheduler_args { 502 1.1 ryo syscallarg(pid_t) pid; 503 1.1 ryo syscallarg(int) policy; 504 1.1 ryo syscallarg(linux32_sched_paramp_t) sp; 505 1.1 ryo }; 506 1.1 ryo check_syscall_args(linux32_sys_sched_setscheduler) 507 1.1 ryo 508 1.1 ryo struct linux32_sys_sched_getscheduler_args { 509 1.1 ryo syscallarg(pid_t) pid; 510 1.1 ryo }; 511 1.1 ryo check_syscall_args(linux32_sys_sched_getscheduler) 512 1.1 ryo 513 1.1 ryo struct linux32_sys_sched_get_priority_max_args { 514 1.1 ryo syscallarg(int) policy; 515 1.1 ryo }; 516 1.1 ryo check_syscall_args(linux32_sys_sched_get_priority_max) 517 1.1 ryo 518 1.1 ryo struct linux32_sys_sched_get_priority_min_args { 519 1.1 ryo syscallarg(int) policy; 520 1.1 ryo }; 521 1.1 ryo check_syscall_args(linux32_sys_sched_get_priority_min) 522 1.1 ryo 523 1.1 ryo struct linux32_sys_nanosleep_args { 524 1.1 ryo syscallarg(linux32_timespecp_t) rqtp; 525 1.1 ryo syscallarg(linux32_timespecp_t) rmtp; 526 1.1 ryo }; 527 1.1 ryo check_syscall_args(linux32_sys_nanosleep) 528 1.1 ryo 529 1.1 ryo struct linux32_sys_mremap_args { 530 1.1 ryo syscallarg(netbsd32_voidp) old_address; 531 1.1 ryo syscallarg(netbsd32_size_t) old_size; 532 1.1 ryo syscallarg(netbsd32_size_t) new_size; 533 1.1 ryo syscallarg(netbsd32_u_long) flags; 534 1.1 ryo }; 535 1.1 ryo check_syscall_args(linux32_sys_mremap) 536 1.1 ryo 537 1.1 ryo struct linux32_sys_setresuid16_args { 538 1.1 ryo syscallarg(linux32_uid16_t) ruid; 539 1.1 ryo syscallarg(linux32_uid16_t) euid; 540 1.1 ryo syscallarg(linux32_uid16_t) suid; 541 1.1 ryo }; 542 1.1 ryo check_syscall_args(linux32_sys_setresuid16) 543 1.1 ryo 544 1.1 ryo struct linux32_sys_getresuid16_args { 545 1.1 ryo syscallarg(linux32_uid16p_t) ruid; 546 1.1 ryo syscallarg(linux32_uid16p_t) euid; 547 1.1 ryo syscallarg(linux32_uid16p_t) suid; 548 1.1 ryo }; 549 1.1 ryo check_syscall_args(linux32_sys_getresuid16) 550 1.1 ryo 551 1.1 ryo struct netbsd32_poll_args; 552 1.1 ryo 553 1.1 ryo struct linux32_sys_setresgid16_args { 554 1.1 ryo syscallarg(linux32_gid16_t) rgid; 555 1.1 ryo syscallarg(linux32_gid16_t) egid; 556 1.1 ryo syscallarg(linux32_gid16_t) sgid; 557 1.1 ryo }; 558 1.1 ryo check_syscall_args(linux32_sys_setresgid16) 559 1.1 ryo 560 1.1 ryo struct linux32_sys_getresgid16_args { 561 1.1 ryo syscallarg(linux32_gid16p_t) rgid; 562 1.1 ryo syscallarg(linux32_gid16p_t) egid; 563 1.1 ryo syscallarg(linux32_gid16p_t) sgid; 564 1.1 ryo }; 565 1.1 ryo check_syscall_args(linux32_sys_getresgid16) 566 1.1 ryo 567 1.1 ryo struct linux32_sys_rt_sigreturn_args { 568 1.1 ryo syscallarg(linux32_ucontextp_t) ucp; 569 1.1 ryo }; 570 1.1 ryo check_syscall_args(linux32_sys_rt_sigreturn) 571 1.1 ryo 572 1.1 ryo struct linux32_sys_rt_sigaction_args { 573 1.1 ryo syscallarg(int) signum; 574 1.1 ryo syscallarg(linux32_sigactionp_t) nsa; 575 1.1 ryo syscallarg(linux32_sigactionp_t) osa; 576 1.1 ryo syscallarg(netbsd32_size_t) sigsetsize; 577 1.1 ryo }; 578 1.1 ryo check_syscall_args(linux32_sys_rt_sigaction) 579 1.1 ryo 580 1.1 ryo struct linux32_sys_rt_sigprocmask_args { 581 1.1 ryo syscallarg(int) how; 582 1.1 ryo syscallarg(linux32_sigsetp_t) set; 583 1.1 ryo syscallarg(linux32_sigsetp_t) oset; 584 1.1 ryo syscallarg(netbsd32_size_t) sigsetsize; 585 1.1 ryo }; 586 1.1 ryo check_syscall_args(linux32_sys_rt_sigprocmask) 587 1.1 ryo 588 1.1 ryo struct linux32_sys_rt_sigpending_args { 589 1.1 ryo syscallarg(linux32_sigsetp_t) set; 590 1.1 ryo syscallarg(netbsd32_size_t) sigsetsize; 591 1.1 ryo }; 592 1.1 ryo check_syscall_args(linux32_sys_rt_sigpending) 593 1.1 ryo 594 1.1 ryo struct linux32_sys_rt_sigtimedwait_args { 595 1.1 ryo syscallarg(const linux32_sigsetp_t) set; 596 1.1 ryo syscallarg(linux32_siginfop_t) info; 597 1.1 ryo syscallarg(const linux32_timespecp_t) timeout; 598 1.1 ryo }; 599 1.1 ryo check_syscall_args(linux32_sys_rt_sigtimedwait) 600 1.1 ryo 601 1.1 ryo struct linux32_sys_rt_queueinfo_args { 602 1.1 ryo syscallarg(int) pid; 603 1.1 ryo syscallarg(int) sig; 604 1.1 ryo syscallarg(linux32_siginfop_t) uinfo; 605 1.1 ryo }; 606 1.1 ryo check_syscall_args(linux32_sys_rt_queueinfo) 607 1.1 ryo 608 1.1 ryo struct linux32_sys_rt_sigsuspend_args { 609 1.1 ryo syscallarg(linux32_sigsetp_t) unewset; 610 1.1 ryo syscallarg(netbsd32_size_t) sigsetsize; 611 1.1 ryo }; 612 1.1 ryo check_syscall_args(linux32_sys_rt_sigsuspend) 613 1.1 ryo 614 1.1 ryo struct linux32_sys_pread_args { 615 1.1 ryo syscallarg(int) fd; 616 1.1 ryo syscallarg(netbsd32_voidp) buf; 617 1.1 ryo syscallarg(netbsd32_size_t) nbyte; 618 1.1 ryo syscallarg(netbsd32_off_t) offset; 619 1.1 ryo }; 620 1.1 ryo check_syscall_args(linux32_sys_pread) 621 1.1 ryo 622 1.1 ryo struct linux32_sys_pwrite_args { 623 1.1 ryo syscallarg(int) fd; 624 1.1 ryo syscallarg(netbsd32_voidp) buf; 625 1.1 ryo syscallarg(netbsd32_size_t) nbyte; 626 1.1 ryo syscallarg(netbsd32_off_t) offset; 627 1.1 ryo }; 628 1.1 ryo check_syscall_args(linux32_sys_pwrite) 629 1.1 ryo 630 1.1 ryo struct linux32_sys_chown16_args { 631 1.1 ryo syscallarg(netbsd32_charp) path; 632 1.1 ryo syscallarg(linux32_uid16_t) uid; 633 1.1 ryo syscallarg(linux32_gid16_t) gid; 634 1.1 ryo }; 635 1.1 ryo check_syscall_args(linux32_sys_chown16) 636 1.1 ryo 637 1.1 ryo struct netbsd32___getcwd_args; 638 1.1 ryo 639 1.1 ryo struct linux32_sys_ugetrlimit_args { 640 1.1 ryo syscallarg(int) which; 641 1.1 ryo syscallarg(netbsd32_orlimitp_t) rlp; 642 1.1 ryo }; 643 1.1 ryo check_syscall_args(linux32_sys_ugetrlimit) 644 1.1 ryo 645 1.1 ryo struct linux32_sys_mmap2_args { 646 1.1 ryo syscallarg(netbsd32_u_long) addr; 647 1.1 ryo syscallarg(netbsd32_size_t) len; 648 1.1 ryo syscallarg(int) prot; 649 1.1 ryo syscallarg(int) flags; 650 1.1 ryo syscallarg(int) fd; 651 1.1 ryo syscallarg(linux32_off_t) offset; 652 1.1 ryo }; 653 1.1 ryo check_syscall_args(linux32_sys_mmap2) 654 1.1 ryo 655 1.1 ryo struct linux32_sys_truncate64_args { 656 1.1 ryo syscallarg(netbsd32_charp) path; 657 1.1 ryo syscallarg(uint32_t) lenlo; 658 1.1 ryo syscallarg(uint32_t) lenhi; 659 1.1 ryo }; 660 1.1 ryo check_syscall_args(linux32_sys_truncate64) 661 1.1 ryo 662 1.1 ryo struct linux32_sys_ftruncate64_args { 663 1.1 ryo syscallarg(unsigned int) fd; 664 1.1 ryo syscallarg(uint32_t) lenlo; 665 1.1 ryo syscallarg(uint32_t) lenhi; 666 1.1 ryo }; 667 1.1 ryo check_syscall_args(linux32_sys_ftruncate64) 668 1.1 ryo 669 1.1 ryo struct linux32_sys_stat64_args { 670 1.1 ryo syscallarg(netbsd32_charp) path; 671 1.1 ryo syscallarg(linux32_stat64p) sp; 672 1.1 ryo }; 673 1.1 ryo check_syscall_args(linux32_sys_stat64) 674 1.1 ryo 675 1.1 ryo struct linux32_sys_lstat64_args { 676 1.1 ryo syscallarg(netbsd32_charp) path; 677 1.1 ryo syscallarg(linux32_stat64p) sp; 678 1.1 ryo }; 679 1.1 ryo check_syscall_args(linux32_sys_lstat64) 680 1.1 ryo 681 1.1 ryo struct linux32_sys_fstat64_args { 682 1.1 ryo syscallarg(int) fd; 683 1.1 ryo syscallarg(linux32_stat64p) sp; 684 1.1 ryo }; 685 1.1 ryo check_syscall_args(linux32_sys_fstat64) 686 1.1 ryo 687 1.1 ryo struct netbsd32___posix_lchown_args; 688 1.1 ryo 689 1.1 ryo struct netbsd32_setreuid_args; 690 1.1 ryo 691 1.1 ryo struct netbsd32_setregid_args; 692 1.1 ryo 693 1.1 ryo struct netbsd32_getgroups_args; 694 1.1 ryo 695 1.1 ryo struct netbsd32_setgroups_args; 696 1.1 ryo 697 1.1 ryo struct netbsd32___posix_fchown_args; 698 1.1 ryo 699 1.1 ryo struct linux32_sys_setresuid_args { 700 1.1 ryo syscallarg(uid_t) ruid; 701 1.1 ryo syscallarg(uid_t) euid; 702 1.1 ryo syscallarg(uid_t) suid; 703 1.1 ryo }; 704 1.1 ryo check_syscall_args(linux32_sys_setresuid) 705 1.1 ryo 706 1.1 ryo struct linux32_sys_getresuid_args { 707 1.1 ryo syscallarg(linux32_uidp_t) ruid; 708 1.1 ryo syscallarg(linux32_uidp_t) euid; 709 1.1 ryo syscallarg(linux32_uidp_t) suid; 710 1.1 ryo }; 711 1.1 ryo check_syscall_args(linux32_sys_getresuid) 712 1.1 ryo 713 1.1 ryo struct linux32_sys_setresgid_args { 714 1.1 ryo syscallarg(gid_t) rgid; 715 1.1 ryo syscallarg(gid_t) egid; 716 1.1 ryo syscallarg(gid_t) sgid; 717 1.1 ryo }; 718 1.1 ryo check_syscall_args(linux32_sys_setresgid) 719 1.1 ryo 720 1.1 ryo struct linux32_sys_getresgid_args { 721 1.1 ryo syscallarg(linux32_gidp_t) rgid; 722 1.1 ryo syscallarg(linux32_gidp_t) egid; 723 1.1 ryo syscallarg(linux32_gidp_t) sgid; 724 1.1 ryo }; 725 1.1 ryo check_syscall_args(linux32_sys_getresgid) 726 1.1 ryo 727 1.1 ryo struct netbsd32___posix_chown_args; 728 1.1 ryo 729 1.1 ryo struct netbsd32_setuid_args; 730 1.1 ryo 731 1.1 ryo struct netbsd32_setgid_args; 732 1.1 ryo 733 1.1 ryo struct linux32_sys_setfsuid_args { 734 1.1 ryo syscallarg(uid_t) uid; 735 1.1 ryo }; 736 1.1 ryo check_syscall_args(linux32_sys_setfsuid) 737 1.1 ryo 738 1.1 ryo struct linux32_sys_setfsgid_args { 739 1.1 ryo syscallarg(gid_t) gid; 740 1.1 ryo }; 741 1.1 ryo check_syscall_args(linux32_sys_setfsgid) 742 1.1 ryo 743 1.1 ryo struct linux32_sys_getdents64_args { 744 1.1 ryo syscallarg(int) fd; 745 1.1 ryo syscallarg(linux32_dirent64p_t) dent; 746 1.1 ryo syscallarg(unsigned int) count; 747 1.1 ryo }; 748 1.1 ryo check_syscall_args(linux32_sys_getdents64) 749 1.1 ryo 750 1.1 ryo struct netbsd32_mincore_args; 751 1.1 ryo 752 1.1 ryo struct netbsd32_madvise_args; 753 1.1 ryo #define linux32_sys_fcntl64 linux32_sys_fcntl 754 1.1 ryo #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 755 1.1 ryo 756 1.1 ryo struct linux32_sys_fcntl64_args; 757 1.1 ryo 758 1.1 ryo struct netbsd32_setxattr_args; 759 1.1 ryo 760 1.1 ryo struct netbsd32_lsetxattr_args; 761 1.1 ryo 762 1.1 ryo struct netbsd32_fsetxattr_args; 763 1.1 ryo 764 1.1 ryo struct netbsd32_getxattr_args; 765 1.1 ryo 766 1.1 ryo struct netbsd32_lgetxattr_args; 767 1.1 ryo 768 1.1 ryo struct netbsd32_fgetxattr_args; 769 1.1 ryo 770 1.1 ryo struct netbsd32_listxattr_args; 771 1.1 ryo 772 1.1 ryo struct netbsd32_llistxattr_args; 773 1.1 ryo 774 1.1 ryo struct netbsd32_flistxattr_args; 775 1.1 ryo 776 1.1 ryo struct netbsd32_removexattr_args; 777 1.1 ryo 778 1.1 ryo struct netbsd32_lremovexattr_args; 779 1.1 ryo 780 1.1 ryo struct netbsd32_fremovexattr_args; 781 1.1 ryo 782 1.1 ryo struct linux32_sys_tkill_args { 783 1.1 ryo syscallarg(int) tid; 784 1.1 ryo syscallarg(int) sig; 785 1.1 ryo }; 786 1.1 ryo check_syscall_args(linux32_sys_tkill) 787 1.1 ryo 788 1.1 ryo struct linux32_sys_futex_args { 789 1.1 ryo syscallarg(linux32_intp_t) uaddr; 790 1.1 ryo syscallarg(int) op; 791 1.1 ryo syscallarg(int) val; 792 1.1 ryo syscallarg(linux32_timespecp_t) timeout; 793 1.1 ryo syscallarg(linux32_intp_t) uaddr2; 794 1.1 ryo syscallarg(int) val3; 795 1.1 ryo }; 796 1.1 ryo check_syscall_args(linux32_sys_futex) 797 1.1 ryo 798 1.1 ryo struct linux32_sys_sched_setaffinity_args { 799 1.1 ryo syscallarg(pid_t) pid; 800 1.1 ryo syscallarg(unsigned int) len; 801 1.1 ryo syscallarg(linux32_ulongp_t) mask; 802 1.1 ryo }; 803 1.1 ryo check_syscall_args(linux32_sys_sched_setaffinity) 804 1.1 ryo 805 1.1 ryo struct linux32_sys_sched_getaffinity_args { 806 1.1 ryo syscallarg(pid_t) pid; 807 1.1 ryo syscallarg(unsigned int) len; 808 1.1 ryo syscallarg(linux32_ulongp_t) mask; 809 1.1 ryo }; 810 1.1 ryo check_syscall_args(linux32_sys_sched_getaffinity) 811 1.1 ryo 812 1.1 ryo struct linux32_sys_exit_group_args { 813 1.1 ryo syscallarg(int) error_code; 814 1.1 ryo }; 815 1.1 ryo check_syscall_args(linux32_sys_exit_group) 816 1.1 ryo 817 1.1 ryo struct linux32_sys_set_tid_address_args { 818 1.1 ryo syscallarg(linux32_intp_t) tid; 819 1.1 ryo }; 820 1.1 ryo check_syscall_args(linux32_sys_set_tid_address) 821 1.1 ryo 822 1.1 ryo struct linux32_sys_timer_create_args { 823 1.1 ryo syscallarg(clockid_t) clockid; 824 1.1 ryo syscallarg(struct linux32_sigevent *) evp; 825 1.1 ryo syscallarg(timer_t *) timerid; 826 1.1 ryo }; 827 1.1 ryo check_syscall_args(linux32_sys_timer_create) 828 1.1 ryo 829 1.1 ryo struct linux32_sys_timer_settime_args { 830 1.1 ryo syscallarg(timer_t) timerid; 831 1.1 ryo syscallarg(int) flags; 832 1.1 ryo syscallarg(const struct linux32_itimerspec *) tim; 833 1.1 ryo syscallarg(struct linux32_itimerspec *) otim; 834 1.1 ryo }; 835 1.1 ryo check_syscall_args(linux32_sys_timer_settime) 836 1.1 ryo 837 1.1 ryo struct linux32_sys_timer_gettime_args { 838 1.1 ryo syscallarg(timer_t) timerid; 839 1.1 ryo syscallarg(struct linux32_itimerspec *) tim; 840 1.1 ryo }; 841 1.1 ryo check_syscall_args(linux32_sys_timer_gettime) 842 1.1 ryo 843 1.1 ryo struct sys_timer_getoverrun_args; 844 1.1 ryo 845 1.1 ryo struct sys_timer_delete_args; 846 1.1 ryo 847 1.1 ryo struct linux32_sys_clock_settime_args { 848 1.1 ryo syscallarg(clockid_t) which; 849 1.1 ryo syscallarg(linux32_timespecp_t) tp; 850 1.1 ryo }; 851 1.1 ryo check_syscall_args(linux32_sys_clock_settime) 852 1.1 ryo 853 1.1 ryo struct linux32_sys_clock_gettime_args { 854 1.1 ryo syscallarg(clockid_t) which; 855 1.1 ryo syscallarg(linux32_timespecp_t) tp; 856 1.1 ryo }; 857 1.1 ryo check_syscall_args(linux32_sys_clock_gettime) 858 1.1 ryo 859 1.1 ryo struct linux32_sys_clock_getres_args { 860 1.1 ryo syscallarg(clockid_t) which; 861 1.1 ryo syscallarg(linux32_timespecp_t) tp; 862 1.1 ryo }; 863 1.1 ryo check_syscall_args(linux32_sys_clock_getres) 864 1.1 ryo 865 1.1 ryo struct linux32_sys_clock_nanosleep_args { 866 1.1 ryo syscallarg(clockid_t) which; 867 1.1 ryo syscallarg(int) flags; 868 1.1 ryo syscallarg(linux32_timespecp_t) rqtp; 869 1.1 ryo syscallarg(linux32_timespecp_t) rmtp; 870 1.1 ryo }; 871 1.1 ryo check_syscall_args(linux32_sys_clock_nanosleep) 872 1.1 ryo 873 1.1 ryo struct linux32_sys_statfs64_args { 874 1.1 ryo syscallarg(netbsd32_charp) path; 875 1.1 ryo syscallarg(netbsd32_size_t) sz; 876 1.1 ryo syscallarg(linux32_statfs64p) sp; 877 1.1 ryo }; 878 1.1 ryo check_syscall_args(linux32_sys_statfs64) 879 1.1 ryo 880 1.1 ryo struct linux32_sys_fstatfs64_args { 881 1.1 ryo syscallarg(int) fd; 882 1.1 ryo syscallarg(netbsd32_size_t) sz; 883 1.1 ryo syscallarg(linux32_statfs64p) sp; 884 1.1 ryo }; 885 1.1 ryo check_syscall_args(linux32_sys_fstatfs64) 886 1.1 ryo 887 1.1 ryo struct linux32_sys_tgkill_args { 888 1.1 ryo syscallarg(int) tgid; 889 1.1 ryo syscallarg(int) tid; 890 1.1 ryo syscallarg(int) sig; 891 1.1 ryo }; 892 1.1 ryo check_syscall_args(linux32_sys_tgkill) 893 1.1 ryo 894 1.1 ryo struct compat_50_netbsd32_utimes_args; 895 1.1 ryo 896 1.1 ryo struct linux32_sys_fadvise64_64_args { 897 1.1 ryo syscallarg(int) fd; 898 1.1 ryo syscallarg(uint32_t) offlo; 899 1.1 ryo syscallarg(uint32_t) offhi; 900 1.1 ryo syscallarg(uint32_t) lenlo; 901 1.1 ryo syscallarg(uint32_t) lenhi; 902 1.1 ryo syscallarg(int) advice; 903 1.1 ryo }; 904 1.1 ryo check_syscall_args(linux32_sys_fadvise64_64) 905 1.1 ryo 906 1.1 ryo struct linux32_sys_socket_args; 907 1.1 ryo 908 1.1 ryo struct linux32_sys_bind_args; 909 1.1 ryo 910 1.1 ryo struct linux32_sys_connect_args; 911 1.1 ryo 912 1.1 ryo struct linux32_sys_accept_args; 913 1.1 ryo 914 1.1 ryo struct linux32_sys_getsockname_args; 915 1.1 ryo 916 1.1 ryo struct linux32_sys_getpeername_args; 917 1.1 ryo 918 1.1 ryo struct linux32_sys_socketpair_args; 919 1.1 ryo 920 1.1 ryo struct linux32_sys_send_args; 921 1.1 ryo 922 1.1 ryo struct linux32_sys_sendto_args; 923 1.1 ryo 924 1.1 ryo struct linux32_sys_recv_args; 925 1.1 ryo 926 1.1 ryo struct linux32_sys_recvfrom_args; 927 1.1 ryo 928 1.1 ryo struct linux32_sys_setsockopt_args; 929 1.1 ryo 930 1.1 ryo struct linux32_sys_getsockopt_args; 931 1.1 ryo 932 1.1 ryo struct linux32_sys_openat_args { 933 1.1 ryo syscallarg(int) fd; 934 1.1 ryo syscallarg(netbsd32_charp) path; 935 1.1 ryo syscallarg(int) flags; 936 1.1 ryo syscallarg(linux_umode_t) mode; 937 1.1 ryo }; 938 1.1 ryo check_syscall_args(linux32_sys_openat) 939 1.1 ryo 940 1.1 ryo struct netbsd32_mkdirat_args; 941 1.1 ryo 942 1.1 ryo struct linux32_sys_mknodat_args { 943 1.1 ryo syscallarg(int) fd; 944 1.1 ryo syscallarg(netbsd32_charp) path; 945 1.1 ryo syscallarg(linux_umode_t) mode; 946 1.1 ryo syscallarg(unsigned) dev; 947 1.1 ryo }; 948 1.1 ryo check_syscall_args(linux32_sys_mknodat) 949 1.1 ryo 950 1.1 ryo struct linux32_sys_fchownat_args { 951 1.1 ryo syscallarg(int) fd; 952 1.1 ryo syscallarg(netbsd32_charp) path; 953 1.1 ryo syscallarg(uid_t) owner; 954 1.1 ryo syscallarg(gid_t) group; 955 1.1 ryo syscallarg(int) flag; 956 1.1 ryo }; 957 1.1 ryo check_syscall_args(linux32_sys_fchownat) 958 1.1 ryo 959 1.1 ryo struct linux32_sys_fstatat64_args { 960 1.1 ryo syscallarg(int) fd; 961 1.1 ryo syscallarg(netbsd32_charp) path; 962 1.1 ryo syscallarg(linux32_stat64p) sp; 963 1.1 ryo syscallarg(int) flag; 964 1.1 ryo }; 965 1.1 ryo check_syscall_args(linux32_sys_fstatat64) 966 1.1 ryo 967 1.1 ryo struct linux32_sys_unlinkat_args { 968 1.1 ryo syscallarg(int) fd; 969 1.1 ryo syscallarg(netbsd32_charp) path; 970 1.1 ryo syscallarg(int) flag; 971 1.1 ryo }; 972 1.1 ryo check_syscall_args(linux32_sys_unlinkat) 973 1.1 ryo 974 1.1 ryo struct netbsd32_renameat_args; 975 1.1 ryo 976 1.1 ryo struct linux32_sys_linkat_args { 977 1.1 ryo syscallarg(int) fd1; 978 1.1 ryo syscallarg(netbsd32_charp) name1; 979 1.1 ryo syscallarg(int) fd2; 980 1.1 ryo syscallarg(netbsd32_charp) name2; 981 1.1 ryo syscallarg(int) flags; 982 1.1 ryo }; 983 1.1 ryo check_syscall_args(linux32_sys_linkat) 984 1.1 ryo 985 1.1 ryo struct netbsd32_symlinkat_args; 986 1.1 ryo 987 1.1 ryo struct netbsd32_readlinkat_args; 988 1.1 ryo 989 1.1 ryo struct linux32_sys_fchmodat_args { 990 1.1 ryo syscallarg(int) fd; 991 1.1 ryo syscallarg(netbsd32_charp) path; 992 1.1 ryo syscallarg(linux_umode_t) mode; 993 1.1 ryo }; 994 1.1 ryo check_syscall_args(linux32_sys_fchmodat) 995 1.1 ryo 996 1.1 ryo struct linux32_sys_faccessat_args { 997 1.1 ryo syscallarg(int) fd; 998 1.1 ryo syscallarg(netbsd32_charp) path; 999 1.1 ryo syscallarg(int) amode; 1000 1.1 ryo }; 1001 1.1 ryo check_syscall_args(linux32_sys_faccessat) 1002 1.1 ryo 1003 1.2 ryo struct linux32_sys_pselect6_args { 1004 1.2 ryo syscallarg(int) nfds; 1005 1.2 ryo syscallarg(netbsd32_fd_setp_t) readfds; 1006 1.2 ryo syscallarg(netbsd32_fd_setp_t) writefds; 1007 1.2 ryo syscallarg(netbsd32_fd_setp_t) exceptfds; 1008 1.2 ryo syscallarg(linux32_timespecp_t) timeout; 1009 1.2 ryo syscallarg(linux32_sized_sigsetp_t) ss; 1010 1.2 ryo }; 1011 1.2 ryo check_syscall_args(linux32_sys_pselect6) 1012 1.2 ryo 1013 1.1 ryo struct linux32_sys_ppoll_args { 1014 1.1 ryo syscallarg(netbsd32_pollfdp_t) fds; 1015 1.1 ryo syscallarg(u_int) nfds; 1016 1.1 ryo syscallarg(linux32_timespecp_t) timeout; 1017 1.1 ryo syscallarg(linux32_sigsetp_t) sigset; 1018 1.1 ryo }; 1019 1.1 ryo check_syscall_args(linux32_sys_ppoll) 1020 1.1 ryo 1021 1.1 ryo struct netbsd32___futex_set_robust_list_args; 1022 1.1 ryo 1023 1.1 ryo struct netbsd32___futex_get_robust_list_args; 1024 1.1 ryo 1025 1.1 ryo struct linux32_sys_utimensat_args { 1026 1.1 ryo syscallarg(int) fd; 1027 1.1 ryo syscallarg(netbsd32_charp) path; 1028 1.1 ryo syscallarg(linux32_timespecp_t) times; 1029 1.1 ryo syscallarg(int) flag; 1030 1.1 ryo }; 1031 1.1 ryo check_syscall_args(linux32_sys_utimensat) 1032 1.1 ryo 1033 1.1 ryo struct linux_sys_timerfd_create_args; 1034 1.1 ryo 1035 1.1 ryo struct linux32_sys_eventfd_args { 1036 1.1 ryo syscallarg(unsigned int) initval; 1037 1.1 ryo }; 1038 1.1 ryo check_syscall_args(linux32_sys_eventfd) 1039 1.1 ryo 1040 1.1 ryo struct linux32_sys_fallocate_args { 1041 1.1 ryo syscallarg(int) fd; 1042 1.1 ryo syscallarg(int) mode; 1043 1.1 ryo syscallarg(off_t) offset; 1044 1.1 ryo syscallarg(off_t) len; 1045 1.1 ryo }; 1046 1.1 ryo check_syscall_args(linux32_sys_fallocate) 1047 1.1 ryo 1048 1.1 ryo struct linux32_sys_timerfd_settime_args { 1049 1.1 ryo syscallarg(int) fd; 1050 1.1 ryo syscallarg(int) flags; 1051 1.1 ryo syscallarg(const struct linux32_itimerspec *) tim; 1052 1.1 ryo syscallarg(struct linux32_itimerspec *) otim; 1053 1.1 ryo }; 1054 1.1 ryo check_syscall_args(linux32_sys_timerfd_settime) 1055 1.1 ryo 1056 1.1 ryo struct linux32_sys_timerfd_gettime_args { 1057 1.1 ryo syscallarg(int) fd; 1058 1.1 ryo syscallarg(struct linux32_itimerspec *) tim; 1059 1.1 ryo }; 1060 1.1 ryo check_syscall_args(linux32_sys_timerfd_gettime) 1061 1.1 ryo 1062 1.1 ryo struct linux32_sys_eventfd2_args { 1063 1.1 ryo syscallarg(unsigned int) initval; 1064 1.1 ryo syscallarg(int) flags; 1065 1.1 ryo }; 1066 1.1 ryo check_syscall_args(linux32_sys_eventfd2) 1067 1.1 ryo 1068 1.1 ryo struct linux32_sys_dup3_args { 1069 1.1 ryo syscallarg(int) from; 1070 1.1 ryo syscallarg(int) to; 1071 1.1 ryo syscallarg(int) flags; 1072 1.1 ryo }; 1073 1.1 ryo check_syscall_args(linux32_sys_dup3) 1074 1.1 ryo 1075 1.1 ryo struct linux32_sys_pipe2_args { 1076 1.1 ryo syscallarg(netbsd32_intp) fd; 1077 1.1 ryo syscallarg(int) flags; 1078 1.1 ryo }; 1079 1.1 ryo check_syscall_args(linux32_sys_pipe2) 1080 1.1 ryo 1081 1.1 ryo struct linux32_sys_preadv_args { 1082 1.1 ryo syscallarg(int) fd; 1083 1.1 ryo syscallarg(const netbsd32_iovecp_t) iovp; 1084 1.1 ryo syscallarg(int) iovcnt; 1085 1.1 ryo syscallarg(netbsd32_u_long) off_lo; 1086 1.1 ryo syscallarg(netbsd32_u_long) off_hi; 1087 1.1 ryo }; 1088 1.1 ryo check_syscall_args(linux32_sys_preadv) 1089 1.1 ryo 1090 1.1 ryo struct linux32_sys_pwritev_args { 1091 1.1 ryo syscallarg(int) fd; 1092 1.1 ryo syscallarg(const netbsd32_iovecp_t) iovp; 1093 1.1 ryo syscallarg(int) iovcnt; 1094 1.1 ryo syscallarg(netbsd32_u_long) off_lo; 1095 1.1 ryo syscallarg(netbsd32_u_long) off_hi; 1096 1.1 ryo }; 1097 1.1 ryo check_syscall_args(linux32_sys_pwritev) 1098 1.1 ryo 1099 1.3 ryo struct linux32_sys_prlimit64_args { 1100 1.3 ryo syscallarg(pid_t) pid; 1101 1.3 ryo syscallarg(int) which; 1102 1.3 ryo syscallarg(netbsd32_rlimitp_t) new_rlp; 1103 1.3 ryo syscallarg(netbsd32_rlimitp_t) old_rlp; 1104 1.3 ryo }; 1105 1.3 ryo check_syscall_args(linux32_sys_prlimit64) 1106 1.3 ryo 1107 1.1 ryo struct netbsd32_getrandom_args; 1108 1.1 ryo 1109 1.1 ryo struct linux32_sys_statx_args { 1110 1.1 ryo syscallarg(int) fd; 1111 1.1 ryo syscallarg(netbsd32_charp) path; 1112 1.1 ryo syscallarg(int) flag; 1113 1.1 ryo syscallarg(unsigned int) mask; 1114 1.1 ryo syscallarg(linux32_statxp) sp; 1115 1.1 ryo }; 1116 1.1 ryo check_syscall_args(linux32_sys_statx) 1117 1.1 ryo 1118 1.1 ryo struct linux32_sys_set_tls_args { 1119 1.1 ryo syscallarg(netbsd32_voidp) tls; 1120 1.1 ryo }; 1121 1.1 ryo check_syscall_args(linux32_sys_set_tls) 1122 1.1 ryo 1123 1.1 ryo /* 1124 1.1 ryo * System call prototypes. 1125 1.1 ryo */ 1126 1.1 ryo 1127 1.1 ryo int linux_sys_nosys(struct lwp *, const void *, register_t *); 1128 1.1 ryo 1129 1.1 ryo int linux32_sys_exit(struct lwp *, const struct linux32_sys_exit_args *, register_t *); 1130 1.1 ryo 1131 1.1 ryo int sys_fork(struct lwp *, const void *, register_t *); 1132 1.1 ryo 1133 1.1 ryo int netbsd32_read(struct lwp *, const struct netbsd32_read_args *, register_t *); 1134 1.1 ryo 1135 1.1 ryo int netbsd32_write(struct lwp *, const struct netbsd32_write_args *, register_t *); 1136 1.1 ryo 1137 1.1 ryo int linux32_sys_open(struct lwp *, const struct linux32_sys_open_args *, register_t *); 1138 1.1 ryo 1139 1.1 ryo int netbsd32_close(struct lwp *, const struct netbsd32_close_args *, register_t *); 1140 1.1 ryo 1141 1.1 ryo int linux32_sys_waitpid(struct lwp *, const struct linux32_sys_waitpid_args *, register_t *); 1142 1.1 ryo 1143 1.1 ryo int linux32_sys_creat(struct lwp *, const struct linux32_sys_creat_args *, register_t *); 1144 1.1 ryo 1145 1.1 ryo int netbsd32_link(struct lwp *, const struct netbsd32_link_args *, register_t *); 1146 1.1 ryo 1147 1.1 ryo int linux32_sys_unlink(struct lwp *, const struct linux32_sys_unlink_args *, register_t *); 1148 1.1 ryo 1149 1.1 ryo int netbsd32_execve(struct lwp *, const struct netbsd32_execve_args *, register_t *); 1150 1.1 ryo 1151 1.1 ryo int netbsd32_chdir(struct lwp *, const struct netbsd32_chdir_args *, register_t *); 1152 1.1 ryo 1153 1.1 ryo int linux32_sys_time(struct lwp *, const struct linux32_sys_time_args *, register_t *); 1154 1.1 ryo 1155 1.1 ryo int linux32_sys_mknod(struct lwp *, const struct linux32_sys_mknod_args *, register_t *); 1156 1.1 ryo 1157 1.1 ryo int netbsd32_chmod(struct lwp *, const struct netbsd32_chmod_args *, register_t *); 1158 1.1 ryo 1159 1.1 ryo int linux32_sys_lchown16(struct lwp *, const struct linux32_sys_lchown16_args *, register_t *); 1160 1.1 ryo 1161 1.1 ryo int compat_43_netbsd32_olseek(struct lwp *, const struct compat_43_netbsd32_olseek_args *, register_t *); 1162 1.1 ryo 1163 1.1 ryo int sys_getpid(struct lwp *, const void *, register_t *); 1164 1.1 ryo 1165 1.1 ryo int netbsd32_setuid(struct lwp *, const struct netbsd32_setuid_args *, register_t *); 1166 1.1 ryo 1167 1.1 ryo int sys_getuid(struct lwp *, const void *, register_t *); 1168 1.1 ryo 1169 1.1 ryo int linux32_sys_stime(struct lwp *, const struct linux32_sys_stime_args *, register_t *); 1170 1.1 ryo 1171 1.1 ryo int linux32_sys_ptrace(struct lwp *, const struct linux32_sys_ptrace_args *, register_t *); 1172 1.1 ryo 1173 1.1 ryo int linux32_sys_alarm(struct lwp *, const struct linux32_sys_alarm_args *, register_t *); 1174 1.1 ryo 1175 1.1 ryo int linux_sys_pause(struct lwp *, const void *, register_t *); 1176 1.1 ryo 1177 1.1 ryo int linux32_sys_utime(struct lwp *, const struct linux32_sys_utime_args *, register_t *); 1178 1.1 ryo 1179 1.1 ryo int netbsd32_access(struct lwp *, const struct netbsd32_access_args *, register_t *); 1180 1.1 ryo 1181 1.1 ryo int linux32_sys_nice(struct lwp *, const struct linux32_sys_nice_args *, register_t *); 1182 1.1 ryo 1183 1.1 ryo int sys_sync(struct lwp *, const void *, register_t *); 1184 1.1 ryo 1185 1.1 ryo int linux32_sys_kill(struct lwp *, const struct linux32_sys_kill_args *, register_t *); 1186 1.1 ryo 1187 1.1 ryo int netbsd32___posix_rename(struct lwp *, const struct netbsd32___posix_rename_args *, register_t *); 1188 1.1 ryo 1189 1.1 ryo int netbsd32_mkdir(struct lwp *, const struct netbsd32_mkdir_args *, register_t *); 1190 1.1 ryo 1191 1.1 ryo int netbsd32_rmdir(struct lwp *, const struct netbsd32_rmdir_args *, register_t *); 1192 1.1 ryo 1193 1.1 ryo int netbsd32_dup(struct lwp *, const struct netbsd32_dup_args *, register_t *); 1194 1.1 ryo 1195 1.1 ryo int linux32_sys_pipe(struct lwp *, const struct linux32_sys_pipe_args *, register_t *); 1196 1.1 ryo 1197 1.1 ryo int linux32_sys_times(struct lwp *, const struct linux32_sys_times_args *, register_t *); 1198 1.1 ryo 1199 1.1 ryo int linux32_sys_brk(struct lwp *, const struct linux32_sys_brk_args *, register_t *); 1200 1.1 ryo 1201 1.1 ryo int netbsd32_setgid(struct lwp *, const struct netbsd32_setgid_args *, register_t *); 1202 1.1 ryo 1203 1.1 ryo int sys_getgid(struct lwp *, const void *, register_t *); 1204 1.1 ryo 1205 1.1 ryo int linux32_sys_signal(struct lwp *, const struct linux32_sys_signal_args *, register_t *); 1206 1.1 ryo 1207 1.1 ryo int sys_geteuid(struct lwp *, const void *, register_t *); 1208 1.1 ryo 1209 1.1 ryo int sys_getegid(struct lwp *, const void *, register_t *); 1210 1.1 ryo 1211 1.1 ryo int netbsd32_acct(struct lwp *, const struct netbsd32_acct_args *, register_t *); 1212 1.1 ryo 1213 1.1 ryo int linux32_sys_ioctl(struct lwp *, const struct linux32_sys_ioctl_args *, register_t *); 1214 1.1 ryo 1215 1.1 ryo int linux32_sys_fcntl(struct lwp *, const struct linux32_sys_fcntl_args *, register_t *); 1216 1.1 ryo 1217 1.1 ryo int netbsd32_setpgid(struct lwp *, const struct netbsd32_setpgid_args *, register_t *); 1218 1.1 ryo 1219 1.1 ryo int linux32_sys_oldolduname(struct lwp *, const struct linux32_sys_oldolduname_args *, register_t *); 1220 1.1 ryo 1221 1.1 ryo int netbsd32_umask(struct lwp *, const struct netbsd32_umask_args *, register_t *); 1222 1.1 ryo 1223 1.1 ryo int netbsd32_chroot(struct lwp *, const struct netbsd32_chroot_args *, register_t *); 1224 1.1 ryo 1225 1.1 ryo int netbsd32_dup2(struct lwp *, const struct netbsd32_dup2_args *, register_t *); 1226 1.1 ryo 1227 1.1 ryo int sys_getppid(struct lwp *, const void *, register_t *); 1228 1.1 ryo 1229 1.1 ryo int sys_getpgrp(struct lwp *, const void *, register_t *); 1230 1.1 ryo 1231 1.1 ryo int sys_setsid(struct lwp *, const void *, register_t *); 1232 1.1 ryo 1233 1.1 ryo int linux32_sys_siggetmask(struct lwp *, const void *, register_t *); 1234 1.1 ryo 1235 1.1 ryo int linux32_sys_sigsetmask(struct lwp *, const struct linux32_sys_sigsetmask_args *, register_t *); 1236 1.1 ryo 1237 1.1 ryo int linux32_sys_setreuid16(struct lwp *, const struct linux32_sys_setreuid16_args *, register_t *); 1238 1.1 ryo 1239 1.1 ryo int linux32_sys_setregid16(struct lwp *, const struct linux32_sys_setregid16_args *, register_t *); 1240 1.1 ryo 1241 1.1 ryo int compat_43_netbsd32_osethostname(struct lwp *, const struct compat_43_netbsd32_osethostname_args *, register_t *); 1242 1.1 ryo 1243 1.1 ryo int linux32_sys_setrlimit(struct lwp *, const struct linux32_sys_setrlimit_args *, register_t *); 1244 1.1 ryo 1245 1.1 ryo int linux32_sys_getrlimit(struct lwp *, const struct linux32_sys_getrlimit_args *, register_t *); 1246 1.1 ryo 1247 1.1 ryo int compat_50_netbsd32_getrusage(struct lwp *, const struct compat_50_netbsd32_getrusage_args *, register_t *); 1248 1.1 ryo 1249 1.1 ryo int linux32_sys_gettimeofday(struct lwp *, const struct linux32_sys_gettimeofday_args *, register_t *); 1250 1.1 ryo 1251 1.1 ryo int linux32_sys_settimeofday(struct lwp *, const struct linux32_sys_settimeofday_args *, register_t *); 1252 1.1 ryo 1253 1.1 ryo int linux32_sys_getgroups16(struct lwp *, const struct linux32_sys_getgroups16_args *, register_t *); 1254 1.1 ryo 1255 1.1 ryo int linux32_sys_setgroups16(struct lwp *, const struct linux32_sys_setgroups16_args *, register_t *); 1256 1.1 ryo 1257 1.1 ryo int linux32_sys_oldselect(struct lwp *, const struct linux32_sys_oldselect_args *, register_t *); 1258 1.1 ryo 1259 1.1 ryo int netbsd32_symlink(struct lwp *, const struct netbsd32_symlink_args *, register_t *); 1260 1.1 ryo 1261 1.1 ryo int compat_43_netbsd32_lstat43(struct lwp *, const struct compat_43_netbsd32_lstat43_args *, register_t *); 1262 1.1 ryo 1263 1.1 ryo int netbsd32_readlink(struct lwp *, const struct netbsd32_readlink_args *, register_t *); 1264 1.1 ryo 1265 1.1 ryo int linux32_sys_swapon(struct lwp *, const struct linux32_sys_swapon_args *, register_t *); 1266 1.1 ryo 1267 1.1 ryo int linux32_sys_reboot(struct lwp *, const struct linux32_sys_reboot_args *, register_t *); 1268 1.1 ryo 1269 1.1 ryo int linux32_sys_readdir(struct lwp *, const struct linux32_sys_readdir_args *, register_t *); 1270 1.1 ryo 1271 1.1 ryo int linux32_sys_old_mmap(struct lwp *, const struct linux32_sys_old_mmap_args *, register_t *); 1272 1.1 ryo 1273 1.1 ryo int netbsd32_munmap(struct lwp *, const struct netbsd32_munmap_args *, register_t *); 1274 1.1 ryo 1275 1.1 ryo int compat_43_netbsd32_otruncate(struct lwp *, const struct compat_43_netbsd32_otruncate_args *, register_t *); 1276 1.1 ryo 1277 1.1 ryo int compat_43_netbsd32_oftruncate(struct lwp *, const struct compat_43_netbsd32_oftruncate_args *, register_t *); 1278 1.1 ryo 1279 1.1 ryo int netbsd32_fchmod(struct lwp *, const struct netbsd32_fchmod_args *, register_t *); 1280 1.1 ryo 1281 1.1 ryo int linux32_sys_fchown16(struct lwp *, const struct linux32_sys_fchown16_args *, register_t *); 1282 1.1 ryo 1283 1.1 ryo int linux32_sys_getpriority(struct lwp *, const struct linux32_sys_getpriority_args *, register_t *); 1284 1.1 ryo 1285 1.1 ryo int netbsd32_setpriority(struct lwp *, const struct netbsd32_setpriority_args *, register_t *); 1286 1.1 ryo 1287 1.1 ryo int netbsd32_profil(struct lwp *, const struct netbsd32_profil_args *, register_t *); 1288 1.1 ryo 1289 1.1 ryo int linux32_sys_statfs(struct lwp *, const struct linux32_sys_statfs_args *, register_t *); 1290 1.1 ryo 1291 1.1 ryo int linux32_sys_fstatfs(struct lwp *, const struct linux32_sys_fstatfs_args *, register_t *); 1292 1.1 ryo 1293 1.1 ryo int linux32_sys_socketcall(struct lwp *, const struct linux32_sys_socketcall_args *, register_t *); 1294 1.1 ryo 1295 1.1 ryo int compat_50_netbsd32_setitimer(struct lwp *, const struct compat_50_netbsd32_setitimer_args *, register_t *); 1296 1.1 ryo 1297 1.1 ryo int compat_50_netbsd32_getitimer(struct lwp *, const struct compat_50_netbsd32_getitimer_args *, register_t *); 1298 1.1 ryo 1299 1.1 ryo int linux32_sys_stat(struct lwp *, const struct linux32_sys_stat_args *, register_t *); 1300 1.1 ryo 1301 1.1 ryo int linux32_sys_lstat(struct lwp *, const struct linux32_sys_lstat_args *, register_t *); 1302 1.1 ryo 1303 1.1 ryo int linux32_sys_fstat(struct lwp *, const struct linux32_sys_fstat_args *, register_t *); 1304 1.1 ryo 1305 1.1 ryo int linux32_sys_olduname(struct lwp *, const struct linux32_sys_olduname_args *, register_t *); 1306 1.1 ryo 1307 1.1 ryo int linux32_sys_wait4(struct lwp *, const struct linux32_sys_wait4_args *, register_t *); 1308 1.1 ryo 1309 1.1 ryo int linux32_sys_swapoff(struct lwp *, const struct linux32_sys_swapoff_args *, register_t *); 1310 1.1 ryo 1311 1.1 ryo int linux32_sys_sysinfo(struct lwp *, const struct linux32_sys_sysinfo_args *, register_t *); 1312 1.1 ryo 1313 1.1 ryo int linux32_sys_ipc(struct lwp *, const struct linux32_sys_ipc_args *, register_t *); 1314 1.1 ryo 1315 1.1 ryo int netbsd32_fsync(struct lwp *, const struct netbsd32_fsync_args *, register_t *); 1316 1.1 ryo 1317 1.1 ryo int linux32_sys_sigreturn(struct lwp *, const struct linux32_sys_sigreturn_args *, register_t *); 1318 1.1 ryo 1319 1.1 ryo int linux32_sys_clone(struct lwp *, const struct linux32_sys_clone_args *, register_t *); 1320 1.1 ryo 1321 1.1 ryo int linux32_sys_setdomainname(struct lwp *, const struct linux32_sys_setdomainname_args *, register_t *); 1322 1.1 ryo 1323 1.1 ryo int linux32_sys_uname(struct lwp *, const struct linux32_sys_uname_args *, register_t *); 1324 1.1 ryo 1325 1.1 ryo int linux32_sys_mprotect(struct lwp *, const struct linux32_sys_mprotect_args *, register_t *); 1326 1.1 ryo 1327 1.1 ryo int netbsd32_getpgid(struct lwp *, const struct netbsd32_getpgid_args *, register_t *); 1328 1.1 ryo 1329 1.1 ryo int netbsd32_fchdir(struct lwp *, const struct netbsd32_fchdir_args *, register_t *); 1330 1.1 ryo 1331 1.1 ryo int linux32_sys_personality(struct lwp *, const struct linux32_sys_personality_args *, register_t *); 1332 1.1 ryo 1333 1.1 ryo int linux32_sys_setfsuid(struct lwp *, const struct linux32_sys_setfsuid_args *, register_t *); 1334 1.1 ryo 1335 1.1 ryo int linux32_sys_setfsgid(struct lwp *, const struct linux32_sys_setfsgid_args *, register_t *); 1336 1.1 ryo 1337 1.1 ryo int linux32_sys_llseek(struct lwp *, const struct linux32_sys_llseek_args *, register_t *); 1338 1.1 ryo 1339 1.1 ryo int linux32_sys_getdents(struct lwp *, const struct linux32_sys_getdents_args *, register_t *); 1340 1.1 ryo 1341 1.1 ryo int linux32_sys_select(struct lwp *, const struct linux32_sys_select_args *, register_t *); 1342 1.1 ryo 1343 1.1 ryo int netbsd32_flock(struct lwp *, const struct netbsd32_flock_args *, register_t *); 1344 1.1 ryo 1345 1.1 ryo int netbsd32___msync13(struct lwp *, const struct netbsd32___msync13_args *, register_t *); 1346 1.1 ryo 1347 1.1 ryo int netbsd32_readv(struct lwp *, const struct netbsd32_readv_args *, register_t *); 1348 1.1 ryo 1349 1.1 ryo int netbsd32_writev(struct lwp *, const struct netbsd32_writev_args *, register_t *); 1350 1.1 ryo 1351 1.1 ryo int netbsd32_getsid(struct lwp *, const struct netbsd32_getsid_args *, register_t *); 1352 1.1 ryo 1353 1.1 ryo int linux32_sys_fdatasync(struct lwp *, const struct linux32_sys_fdatasync_args *, register_t *); 1354 1.1 ryo 1355 1.1 ryo int linux32_sys___sysctl(struct lwp *, const struct linux32_sys___sysctl_args *, register_t *); 1356 1.1 ryo 1357 1.1 ryo int netbsd32_mlock(struct lwp *, const struct netbsd32_mlock_args *, register_t *); 1358 1.1 ryo 1359 1.1 ryo int netbsd32_munlock(struct lwp *, const struct netbsd32_munlock_args *, register_t *); 1360 1.1 ryo 1361 1.1 ryo int netbsd32_mlockall(struct lwp *, const struct netbsd32_mlockall_args *, register_t *); 1362 1.1 ryo 1363 1.1 ryo int sys_munlockall(struct lwp *, const void *, register_t *); 1364 1.1 ryo 1365 1.1 ryo int linux32_sys_sched_setparam(struct lwp *, const struct linux32_sys_sched_setparam_args *, register_t *); 1366 1.1 ryo 1367 1.1 ryo int linux32_sys_sched_getparam(struct lwp *, const struct linux32_sys_sched_getparam_args *, register_t *); 1368 1.1 ryo 1369 1.1 ryo int linux32_sys_sched_setscheduler(struct lwp *, const struct linux32_sys_sched_setscheduler_args *, register_t *); 1370 1.1 ryo 1371 1.1 ryo int linux32_sys_sched_getscheduler(struct lwp *, const struct linux32_sys_sched_getscheduler_args *, register_t *); 1372 1.1 ryo 1373 1.1 ryo int linux_sys_sched_yield(struct lwp *, const void *, register_t *); 1374 1.1 ryo 1375 1.1 ryo int linux32_sys_sched_get_priority_max(struct lwp *, const struct linux32_sys_sched_get_priority_max_args *, register_t *); 1376 1.1 ryo 1377 1.1 ryo int linux32_sys_sched_get_priority_min(struct lwp *, const struct linux32_sys_sched_get_priority_min_args *, register_t *); 1378 1.1 ryo 1379 1.1 ryo int linux32_sys_nanosleep(struct lwp *, const struct linux32_sys_nanosleep_args *, register_t *); 1380 1.1 ryo 1381 1.1 ryo int linux32_sys_mremap(struct lwp *, const struct linux32_sys_mremap_args *, register_t *); 1382 1.1 ryo 1383 1.1 ryo int linux32_sys_setresuid16(struct lwp *, const struct linux32_sys_setresuid16_args *, register_t *); 1384 1.1 ryo 1385 1.1 ryo int linux32_sys_getresuid16(struct lwp *, const struct linux32_sys_getresuid16_args *, register_t *); 1386 1.1 ryo 1387 1.1 ryo int netbsd32_poll(struct lwp *, const struct netbsd32_poll_args *, register_t *); 1388 1.1 ryo 1389 1.1 ryo int linux32_sys_setresgid16(struct lwp *, const struct linux32_sys_setresgid16_args *, register_t *); 1390 1.1 ryo 1391 1.1 ryo int linux32_sys_getresgid16(struct lwp *, const struct linux32_sys_getresgid16_args *, register_t *); 1392 1.1 ryo 1393 1.1 ryo int linux32_sys_rt_sigreturn(struct lwp *, const struct linux32_sys_rt_sigreturn_args *, register_t *); 1394 1.1 ryo 1395 1.1 ryo int linux32_sys_rt_sigaction(struct lwp *, const struct linux32_sys_rt_sigaction_args *, register_t *); 1396 1.1 ryo 1397 1.1 ryo int linux32_sys_rt_sigprocmask(struct lwp *, const struct linux32_sys_rt_sigprocmask_args *, register_t *); 1398 1.1 ryo 1399 1.1 ryo int linux32_sys_rt_sigpending(struct lwp *, const struct linux32_sys_rt_sigpending_args *, register_t *); 1400 1.1 ryo 1401 1.1 ryo int linux32_sys_rt_sigtimedwait(struct lwp *, const struct linux32_sys_rt_sigtimedwait_args *, register_t *); 1402 1.1 ryo 1403 1.1 ryo int linux32_sys_rt_queueinfo(struct lwp *, const struct linux32_sys_rt_queueinfo_args *, register_t *); 1404 1.1 ryo 1405 1.1 ryo int linux32_sys_rt_sigsuspend(struct lwp *, const struct linux32_sys_rt_sigsuspend_args *, register_t *); 1406 1.1 ryo 1407 1.1 ryo int linux32_sys_pread(struct lwp *, const struct linux32_sys_pread_args *, register_t *); 1408 1.1 ryo 1409 1.1 ryo int linux32_sys_pwrite(struct lwp *, const struct linux32_sys_pwrite_args *, register_t *); 1410 1.1 ryo 1411 1.1 ryo int linux32_sys_chown16(struct lwp *, const struct linux32_sys_chown16_args *, register_t *); 1412 1.1 ryo 1413 1.1 ryo int netbsd32___getcwd(struct lwp *, const struct netbsd32___getcwd_args *, register_t *); 1414 1.1 ryo 1415 1.1 ryo int sys___vfork14(struct lwp *, const void *, register_t *); 1416 1.1 ryo 1417 1.1 ryo int linux32_sys_ugetrlimit(struct lwp *, const struct linux32_sys_ugetrlimit_args *, register_t *); 1418 1.1 ryo 1419 1.1 ryo int linux32_sys_mmap2(struct lwp *, const struct linux32_sys_mmap2_args *, register_t *); 1420 1.1 ryo 1421 1.1 ryo int linux32_sys_truncate64(struct lwp *, const struct linux32_sys_truncate64_args *, register_t *); 1422 1.1 ryo 1423 1.1 ryo int linux32_sys_ftruncate64(struct lwp *, const struct linux32_sys_ftruncate64_args *, register_t *); 1424 1.1 ryo 1425 1.1 ryo int linux32_sys_stat64(struct lwp *, const struct linux32_sys_stat64_args *, register_t *); 1426 1.1 ryo 1427 1.1 ryo int linux32_sys_lstat64(struct lwp *, const struct linux32_sys_lstat64_args *, register_t *); 1428 1.1 ryo 1429 1.1 ryo int linux32_sys_fstat64(struct lwp *, const struct linux32_sys_fstat64_args *, register_t *); 1430 1.1 ryo 1431 1.1 ryo int netbsd32___posix_lchown(struct lwp *, const struct netbsd32___posix_lchown_args *, register_t *); 1432 1.1 ryo 1433 1.1 ryo int netbsd32_setreuid(struct lwp *, const struct netbsd32_setreuid_args *, register_t *); 1434 1.1 ryo 1435 1.1 ryo int netbsd32_setregid(struct lwp *, const struct netbsd32_setregid_args *, register_t *); 1436 1.1 ryo 1437 1.1 ryo int netbsd32_getgroups(struct lwp *, const struct netbsd32_getgroups_args *, register_t *); 1438 1.1 ryo 1439 1.1 ryo int netbsd32_setgroups(struct lwp *, const struct netbsd32_setgroups_args *, register_t *); 1440 1.1 ryo 1441 1.1 ryo int netbsd32___posix_fchown(struct lwp *, const struct netbsd32___posix_fchown_args *, register_t *); 1442 1.1 ryo 1443 1.1 ryo int linux32_sys_setresuid(struct lwp *, const struct linux32_sys_setresuid_args *, register_t *); 1444 1.1 ryo 1445 1.1 ryo int linux32_sys_getresuid(struct lwp *, const struct linux32_sys_getresuid_args *, register_t *); 1446 1.1 ryo 1447 1.1 ryo int linux32_sys_setresgid(struct lwp *, const struct linux32_sys_setresgid_args *, register_t *); 1448 1.1 ryo 1449 1.1 ryo int linux32_sys_getresgid(struct lwp *, const struct linux32_sys_getresgid_args *, register_t *); 1450 1.1 ryo 1451 1.1 ryo int netbsd32___posix_chown(struct lwp *, const struct netbsd32___posix_chown_args *, register_t *); 1452 1.1 ryo 1453 1.1 ryo int linux32_sys_getdents64(struct lwp *, const struct linux32_sys_getdents64_args *, register_t *); 1454 1.1 ryo 1455 1.1 ryo int netbsd32_mincore(struct lwp *, const struct netbsd32_mincore_args *, register_t *); 1456 1.1 ryo 1457 1.1 ryo int netbsd32_madvise(struct lwp *, const struct netbsd32_madvise_args *, register_t *); 1458 1.1 ryo 1459 1.1 ryo #define linux32_sys_fcntl64 linux32_sys_fcntl 1460 1.1 ryo #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 1461 1.1 ryo int linux32_sys_fcntl64(struct lwp *, const struct linux32_sys_fcntl64_args *, register_t *); 1462 1.1 ryo 1463 1.1 ryo int linux_sys_gettid(struct lwp *, const void *, register_t *); 1464 1.1 ryo 1465 1.1 ryo int netbsd32_setxattr(struct lwp *, const struct netbsd32_setxattr_args *, register_t *); 1466 1.1 ryo 1467 1.1 ryo int netbsd32_lsetxattr(struct lwp *, const struct netbsd32_lsetxattr_args *, register_t *); 1468 1.1 ryo 1469 1.1 ryo int netbsd32_fsetxattr(struct lwp *, const struct netbsd32_fsetxattr_args *, register_t *); 1470 1.1 ryo 1471 1.1 ryo int netbsd32_getxattr(struct lwp *, const struct netbsd32_getxattr_args *, register_t *); 1472 1.1 ryo 1473 1.1 ryo int netbsd32_lgetxattr(struct lwp *, const struct netbsd32_lgetxattr_args *, register_t *); 1474 1.1 ryo 1475 1.1 ryo int netbsd32_fgetxattr(struct lwp *, const struct netbsd32_fgetxattr_args *, register_t *); 1476 1.1 ryo 1477 1.1 ryo int netbsd32_listxattr(struct lwp *, const struct netbsd32_listxattr_args *, register_t *); 1478 1.1 ryo 1479 1.1 ryo int netbsd32_llistxattr(struct lwp *, const struct netbsd32_llistxattr_args *, register_t *); 1480 1.1 ryo 1481 1.1 ryo int netbsd32_flistxattr(struct lwp *, const struct netbsd32_flistxattr_args *, register_t *); 1482 1.1 ryo 1483 1.1 ryo int netbsd32_removexattr(struct lwp *, const struct netbsd32_removexattr_args *, register_t *); 1484 1.1 ryo 1485 1.1 ryo int netbsd32_lremovexattr(struct lwp *, const struct netbsd32_lremovexattr_args *, register_t *); 1486 1.1 ryo 1487 1.1 ryo int netbsd32_fremovexattr(struct lwp *, const struct netbsd32_fremovexattr_args *, register_t *); 1488 1.1 ryo 1489 1.1 ryo int linux32_sys_tkill(struct lwp *, const struct linux32_sys_tkill_args *, register_t *); 1490 1.1 ryo 1491 1.1 ryo int linux32_sys_futex(struct lwp *, const struct linux32_sys_futex_args *, register_t *); 1492 1.1 ryo 1493 1.1 ryo int linux32_sys_sched_setaffinity(struct lwp *, const struct linux32_sys_sched_setaffinity_args *, register_t *); 1494 1.1 ryo 1495 1.1 ryo int linux32_sys_sched_getaffinity(struct lwp *, const struct linux32_sys_sched_getaffinity_args *, register_t *); 1496 1.1 ryo 1497 1.1 ryo int linux32_sys_exit_group(struct lwp *, const struct linux32_sys_exit_group_args *, register_t *); 1498 1.1 ryo 1499 1.1 ryo int linux32_sys_set_tid_address(struct lwp *, const struct linux32_sys_set_tid_address_args *, register_t *); 1500 1.1 ryo 1501 1.1 ryo int linux32_sys_timer_create(struct lwp *, const struct linux32_sys_timer_create_args *, register_t *); 1502 1.1 ryo 1503 1.1 ryo int linux32_sys_timer_settime(struct lwp *, const struct linux32_sys_timer_settime_args *, register_t *); 1504 1.1 ryo 1505 1.1 ryo int linux32_sys_timer_gettime(struct lwp *, const struct linux32_sys_timer_gettime_args *, register_t *); 1506 1.1 ryo 1507 1.1 ryo int sys_timer_getoverrun(struct lwp *, const struct sys_timer_getoverrun_args *, register_t *); 1508 1.1 ryo 1509 1.1 ryo int sys_timer_delete(struct lwp *, const struct sys_timer_delete_args *, register_t *); 1510 1.1 ryo 1511 1.1 ryo int linux32_sys_clock_settime(struct lwp *, const struct linux32_sys_clock_settime_args *, register_t *); 1512 1.1 ryo 1513 1.1 ryo int linux32_sys_clock_gettime(struct lwp *, const struct linux32_sys_clock_gettime_args *, register_t *); 1514 1.1 ryo 1515 1.1 ryo int linux32_sys_clock_getres(struct lwp *, const struct linux32_sys_clock_getres_args *, register_t *); 1516 1.1 ryo 1517 1.1 ryo int linux32_sys_clock_nanosleep(struct lwp *, const struct linux32_sys_clock_nanosleep_args *, register_t *); 1518 1.1 ryo 1519 1.1 ryo int linux32_sys_statfs64(struct lwp *, const struct linux32_sys_statfs64_args *, register_t *); 1520 1.1 ryo 1521 1.1 ryo int linux32_sys_fstatfs64(struct lwp *, const struct linux32_sys_fstatfs64_args *, register_t *); 1522 1.1 ryo 1523 1.1 ryo int linux32_sys_tgkill(struct lwp *, const struct linux32_sys_tgkill_args *, register_t *); 1524 1.1 ryo 1525 1.1 ryo int compat_50_netbsd32_utimes(struct lwp *, const struct compat_50_netbsd32_utimes_args *, register_t *); 1526 1.1 ryo 1527 1.1 ryo int linux32_sys_fadvise64_64(struct lwp *, const struct linux32_sys_fadvise64_64_args *, register_t *); 1528 1.1 ryo 1529 1.1 ryo int linux32_sys_socket(struct lwp *, const struct linux32_sys_socket_args *, register_t *); 1530 1.1 ryo 1531 1.1 ryo int linux32_sys_bind(struct lwp *, const struct linux32_sys_bind_args *, register_t *); 1532 1.1 ryo 1533 1.1 ryo int linux32_sys_connect(struct lwp *, const struct linux32_sys_connect_args *, register_t *); 1534 1.1 ryo 1535 1.1 ryo int linux32_sys_accept(struct lwp *, const struct linux32_sys_accept_args *, register_t *); 1536 1.1 ryo 1537 1.1 ryo int linux32_sys_getsockname(struct lwp *, const struct linux32_sys_getsockname_args *, register_t *); 1538 1.1 ryo 1539 1.1 ryo int linux32_sys_getpeername(struct lwp *, const struct linux32_sys_getpeername_args *, register_t *); 1540 1.1 ryo 1541 1.1 ryo int linux32_sys_socketpair(struct lwp *, const struct linux32_sys_socketpair_args *, register_t *); 1542 1.1 ryo 1543 1.1 ryo int linux32_sys_send(struct lwp *, const struct linux32_sys_send_args *, register_t *); 1544 1.1 ryo 1545 1.1 ryo int linux32_sys_sendto(struct lwp *, const struct linux32_sys_sendto_args *, register_t *); 1546 1.1 ryo 1547 1.1 ryo int linux32_sys_recv(struct lwp *, const struct linux32_sys_recv_args *, register_t *); 1548 1.1 ryo 1549 1.1 ryo int linux32_sys_recvfrom(struct lwp *, const struct linux32_sys_recvfrom_args *, register_t *); 1550 1.1 ryo 1551 1.1 ryo int linux32_sys_setsockopt(struct lwp *, const struct linux32_sys_setsockopt_args *, register_t *); 1552 1.1 ryo 1553 1.1 ryo int linux32_sys_getsockopt(struct lwp *, const struct linux32_sys_getsockopt_args *, register_t *); 1554 1.1 ryo 1555 1.1 ryo int linux32_sys_openat(struct lwp *, const struct linux32_sys_openat_args *, register_t *); 1556 1.1 ryo 1557 1.1 ryo int netbsd32_mkdirat(struct lwp *, const struct netbsd32_mkdirat_args *, register_t *); 1558 1.1 ryo 1559 1.1 ryo int linux32_sys_mknodat(struct lwp *, const struct linux32_sys_mknodat_args *, register_t *); 1560 1.1 ryo 1561 1.1 ryo int linux32_sys_fchownat(struct lwp *, const struct linux32_sys_fchownat_args *, register_t *); 1562 1.1 ryo 1563 1.1 ryo int linux32_sys_fstatat64(struct lwp *, const struct linux32_sys_fstatat64_args *, register_t *); 1564 1.1 ryo 1565 1.1 ryo int linux32_sys_unlinkat(struct lwp *, const struct linux32_sys_unlinkat_args *, register_t *); 1566 1.1 ryo 1567 1.1 ryo int netbsd32_renameat(struct lwp *, const struct netbsd32_renameat_args *, register_t *); 1568 1.1 ryo 1569 1.1 ryo int linux32_sys_linkat(struct lwp *, const struct linux32_sys_linkat_args *, register_t *); 1570 1.1 ryo 1571 1.1 ryo int netbsd32_symlinkat(struct lwp *, const struct netbsd32_symlinkat_args *, register_t *); 1572 1.1 ryo 1573 1.1 ryo int netbsd32_readlinkat(struct lwp *, const struct netbsd32_readlinkat_args *, register_t *); 1574 1.1 ryo 1575 1.1 ryo int linux32_sys_fchmodat(struct lwp *, const struct linux32_sys_fchmodat_args *, register_t *); 1576 1.1 ryo 1577 1.1 ryo int linux32_sys_faccessat(struct lwp *, const struct linux32_sys_faccessat_args *, register_t *); 1578 1.1 ryo 1579 1.2 ryo int linux32_sys_pselect6(struct lwp *, const struct linux32_sys_pselect6_args *, register_t *); 1580 1.2 ryo 1581 1.1 ryo int linux32_sys_ppoll(struct lwp *, const struct linux32_sys_ppoll_args *, register_t *); 1582 1.1 ryo 1583 1.1 ryo int netbsd32___futex_set_robust_list(struct lwp *, const struct netbsd32___futex_set_robust_list_args *, register_t *); 1584 1.1 ryo 1585 1.1 ryo int netbsd32___futex_get_robust_list(struct lwp *, const struct netbsd32___futex_get_robust_list_args *, register_t *); 1586 1.1 ryo 1587 1.1 ryo int linux32_sys_utimensat(struct lwp *, const struct linux32_sys_utimensat_args *, register_t *); 1588 1.1 ryo 1589 1.1 ryo int linux_sys_timerfd_create(struct lwp *, const struct linux_sys_timerfd_create_args *, register_t *); 1590 1.1 ryo 1591 1.1 ryo int linux32_sys_eventfd(struct lwp *, const struct linux32_sys_eventfd_args *, register_t *); 1592 1.1 ryo 1593 1.1 ryo int linux32_sys_fallocate(struct lwp *, const struct linux32_sys_fallocate_args *, register_t *); 1594 1.1 ryo 1595 1.1 ryo int linux32_sys_timerfd_settime(struct lwp *, const struct linux32_sys_timerfd_settime_args *, register_t *); 1596 1.1 ryo 1597 1.1 ryo int linux32_sys_timerfd_gettime(struct lwp *, const struct linux32_sys_timerfd_gettime_args *, register_t *); 1598 1.1 ryo 1599 1.1 ryo int linux32_sys_eventfd2(struct lwp *, const struct linux32_sys_eventfd2_args *, register_t *); 1600 1.1 ryo 1601 1.1 ryo int linux32_sys_dup3(struct lwp *, const struct linux32_sys_dup3_args *, register_t *); 1602 1.1 ryo 1603 1.1 ryo int linux32_sys_pipe2(struct lwp *, const struct linux32_sys_pipe2_args *, register_t *); 1604 1.1 ryo 1605 1.1 ryo int linux32_sys_preadv(struct lwp *, const struct linux32_sys_preadv_args *, register_t *); 1606 1.1 ryo 1607 1.1 ryo int linux32_sys_pwritev(struct lwp *, const struct linux32_sys_pwritev_args *, register_t *); 1608 1.1 ryo 1609 1.3 ryo int linux32_sys_prlimit64(struct lwp *, const struct linux32_sys_prlimit64_args *, register_t *); 1610 1.3 ryo 1611 1.1 ryo int netbsd32_getrandom(struct lwp *, const struct netbsd32_getrandom_args *, register_t *); 1612 1.1 ryo 1613 1.1 ryo int linux32_sys_statx(struct lwp *, const struct linux32_sys_statx_args *, register_t *); 1614 1.1 ryo 1615 1.1 ryo int linux32_sys_set_tls(struct lwp *, const struct linux32_sys_set_tls_args *, register_t *); 1616 1.1 ryo 1617 1.1 ryo int linux32_sys_get_tls(struct lwp *, const void *, register_t *); 1618 1.1 ryo 1619 1.1 ryo #endif /* _LINUX32_SYS_SYSCALLARGS_H_ */ 1620