1 1.1 christos /* $NetBSD: linux32_systrace_args.c,v 1.14 2021/12/02 04:39:45 ryo Exp $ */ 2 1.1 christos 3 1.1 christos /* 4 1.9 thorpej * System call argument to DTrace register array conversion. 5 1.1 christos * 6 1.1 christos * DO NOT EDIT-- this file is automatically generated. 7 1.1 christos * This file is part of the DTrace syscall provider. 8 1.1 christos */ 9 1.1 christos 10 1.1 christos static void 11 1.1 christos systrace_args(register_t sysnum, const void *params, uintptr_t *uarg, size_t *n_args) 12 1.1 christos { 13 1.1 christos intptr_t *iarg = (intptr_t *)uarg; 14 1.1 christos switch (sysnum) { 15 1.1 christos /* linux_sys_nosys */ 16 1.1 christos case 0: { 17 1.1 christos *n_args = 0; 18 1.1 christos break; 19 1.1 christos } 20 1.1 christos /* linux32_sys_exit */ 21 1.1 christos case 1: { 22 1.3 christos const struct linux32_sys_exit_args *p = params; 23 1.1 christos iarg[0] = SCARG(p, rval); /* int */ 24 1.1 christos *n_args = 1; 25 1.1 christos break; 26 1.1 christos } 27 1.1 christos /* sys_fork */ 28 1.1 christos case 2: { 29 1.1 christos *n_args = 0; 30 1.1 christos break; 31 1.1 christos } 32 1.1 christos /* netbsd32_read */ 33 1.1 christos case 3: { 34 1.3 christos const struct netbsd32_read_args *p = params; 35 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 36 1.1 christos uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ 37 1.1 christos iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ 38 1.1 christos *n_args = 3; 39 1.1 christos break; 40 1.1 christos } 41 1.1 christos /* netbsd32_write */ 42 1.1 christos case 4: { 43 1.3 christos const struct netbsd32_write_args *p = params; 44 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 45 1.1 christos uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ 46 1.1 christos iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ 47 1.1 christos *n_args = 3; 48 1.1 christos break; 49 1.1 christos } 50 1.1 christos /* linux32_sys_open */ 51 1.1 christos case 5: { 52 1.3 christos const struct linux32_sys_open_args *p = params; 53 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 54 1.1 christos iarg[1] = SCARG(p, flags); /* int */ 55 1.1 christos iarg[2] = SCARG(p, mode); /* linux_umode_t */ 56 1.1 christos *n_args = 3; 57 1.1 christos break; 58 1.1 christos } 59 1.1 christos /* netbsd32_close */ 60 1.1 christos case 6: { 61 1.3 christos const struct netbsd32_close_args *p = params; 62 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 63 1.1 christos *n_args = 1; 64 1.1 christos break; 65 1.1 christos } 66 1.1 christos /* linux32_sys_waitpid */ 67 1.1 christos case 7: { 68 1.3 christos const struct linux32_sys_waitpid_args *p = params; 69 1.1 christos iarg[0] = SCARG(p, pid); /* int */ 70 1.1 christos uarg[1] = (intptr_t) SCARG(p, status).i32; /* netbsd32_intp */ 71 1.1 christos iarg[2] = SCARG(p, options); /* int */ 72 1.1 christos *n_args = 3; 73 1.1 christos break; 74 1.1 christos } 75 1.1 christos /* linux32_sys_creat */ 76 1.1 christos case 8: { 77 1.3 christos const struct linux32_sys_creat_args *p = params; 78 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 79 1.1 christos iarg[1] = SCARG(p, mode); /* linux_umode_t */ 80 1.1 christos *n_args = 2; 81 1.1 christos break; 82 1.1 christos } 83 1.1 christos /* netbsd32_link */ 84 1.1 christos case 9: { 85 1.3 christos const struct netbsd32_link_args *p = params; 86 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 87 1.1 christos uarg[1] = (intptr_t) SCARG(p, link).i32; /* netbsd32_charp */ 88 1.1 christos *n_args = 2; 89 1.1 christos break; 90 1.1 christos } 91 1.1 christos /* linux32_sys_unlink */ 92 1.1 christos case 10: { 93 1.3 christos const struct linux32_sys_unlink_args *p = params; 94 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 95 1.1 christos *n_args = 1; 96 1.1 christos break; 97 1.1 christos } 98 1.1 christos /* netbsd32_execve */ 99 1.1 christos case 11: { 100 1.3 christos const struct netbsd32_execve_args *p = params; 101 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 102 1.1 christos uarg[1] = (intptr_t) SCARG(p, argp).i32; /* netbsd32_charpp */ 103 1.1 christos uarg[2] = (intptr_t) SCARG(p, envp).i32; /* netbsd32_charpp */ 104 1.1 christos *n_args = 3; 105 1.1 christos break; 106 1.1 christos } 107 1.1 christos /* netbsd32_chdir */ 108 1.1 christos case 12: { 109 1.3 christos const struct netbsd32_chdir_args *p = params; 110 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 111 1.1 christos *n_args = 1; 112 1.1 christos break; 113 1.1 christos } 114 1.1 christos /* linux32_sys_time */ 115 1.1 christos case 13: { 116 1.3 christos const struct linux32_sys_time_args *p = params; 117 1.1 christos uarg[0] = (intptr_t) SCARG(p, t).i32; /* linux32_timep_t */ 118 1.1 christos *n_args = 1; 119 1.1 christos break; 120 1.1 christos } 121 1.1 christos /* linux32_sys_mknod */ 122 1.1 christos case 14: { 123 1.3 christos const struct linux32_sys_mknod_args *p = params; 124 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 125 1.1 christos iarg[1] = SCARG(p, mode); /* linux_umode_t */ 126 1.1 christos uarg[2] = SCARG(p, dev); /* unsigned */ 127 1.1 christos *n_args = 3; 128 1.1 christos break; 129 1.1 christos } 130 1.1 christos /* netbsd32_chmod */ 131 1.1 christos case 15: { 132 1.3 christos const struct netbsd32_chmod_args *p = params; 133 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 134 1.1 christos iarg[1] = SCARG(p, mode); /* linux_umode_t */ 135 1.1 christos *n_args = 2; 136 1.1 christos break; 137 1.1 christos } 138 1.1 christos /* linux32_sys_lchown16 */ 139 1.1 christos case 16: { 140 1.3 christos const struct linux32_sys_lchown16_args *p = params; 141 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 142 1.1 christos iarg[1] = SCARG(p, uid); /* linux32_uid16_t */ 143 1.1 christos iarg[2] = SCARG(p, gid); /* linux32_gid16_t */ 144 1.1 christos *n_args = 3; 145 1.1 christos break; 146 1.1 christos } 147 1.1 christos /* linux32_sys_break */ 148 1.1 christos case 17: { 149 1.3 christos const struct linux32_sys_break_args *p = params; 150 1.1 christos uarg[0] = (intptr_t) SCARG(p, nsize).i32; /* netbsd32_charp */ 151 1.1 christos *n_args = 1; 152 1.1 christos break; 153 1.1 christos } 154 1.1 christos /* compat_43_netbsd32_olseek */ 155 1.1 christos case 19: { 156 1.3 christos const struct compat_43_netbsd32_olseek_args *p = params; 157 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 158 1.1 christos iarg[1] = SCARG(p, offset); /* netbsd32_long */ 159 1.2 christos iarg[2] = SCARG(p, whence); /* int */ 160 1.1 christos *n_args = 3; 161 1.1 christos break; 162 1.1 christos } 163 1.1 christos /* sys_getpid */ 164 1.1 christos case 20: { 165 1.1 christos *n_args = 0; 166 1.1 christos break; 167 1.1 christos } 168 1.1 christos /* netbsd32_setuid */ 169 1.1 christos case 23: { 170 1.3 christos const struct netbsd32_setuid_args *p = params; 171 1.1 christos uarg[0] = SCARG(p, uid); /* uid_t */ 172 1.1 christos *n_args = 1; 173 1.1 christos break; 174 1.1 christos } 175 1.1 christos /* sys_getuid */ 176 1.1 christos case 24: { 177 1.1 christos *n_args = 0; 178 1.1 christos break; 179 1.1 christos } 180 1.1 christos /* linux32_sys_stime */ 181 1.1 christos case 25: { 182 1.3 christos const struct linux32_sys_stime_args *p = params; 183 1.1 christos uarg[0] = (intptr_t) SCARG(p, t).i32; /* linux32_timep_t */ 184 1.1 christos *n_args = 1; 185 1.1 christos break; 186 1.1 christos } 187 1.1 christos /* linux32_sys_ptrace */ 188 1.1 christos case 26: { 189 1.3 christos const struct linux32_sys_ptrace_args *p = params; 190 1.1 christos iarg[0] = SCARG(p, request); /* int */ 191 1.1 christos iarg[1] = SCARG(p, pid); /* int */ 192 1.1 christos iarg[2] = SCARG(p, addr); /* int */ 193 1.1 christos iarg[3] = SCARG(p, data); /* int */ 194 1.1 christos *n_args = 4; 195 1.1 christos break; 196 1.1 christos } 197 1.1 christos /* linux32_sys_alarm */ 198 1.1 christos case 27: { 199 1.3 christos const struct linux32_sys_alarm_args *p = params; 200 1.1 christos uarg[0] = SCARG(p, secs); /* unsigned int */ 201 1.1 christos *n_args = 1; 202 1.1 christos break; 203 1.1 christos } 204 1.1 christos /* linux_sys_pause */ 205 1.1 christos case 29: { 206 1.1 christos *n_args = 0; 207 1.1 christos break; 208 1.1 christos } 209 1.1 christos /* linux32_sys_utime */ 210 1.1 christos case 30: { 211 1.3 christos const struct linux32_sys_utime_args *p = params; 212 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 213 1.1 christos uarg[1] = (intptr_t) SCARG(p, times).i32; /* linux32_utimbufp_t */ 214 1.1 christos *n_args = 2; 215 1.1 christos break; 216 1.1 christos } 217 1.1 christos /* netbsd32_access */ 218 1.1 christos case 33: { 219 1.3 christos const struct netbsd32_access_args *p = params; 220 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 221 1.1 christos iarg[1] = SCARG(p, flags); /* int */ 222 1.1 christos *n_args = 2; 223 1.1 christos break; 224 1.1 christos } 225 1.1 christos /* linux32_sys_nice */ 226 1.1 christos case 34: { 227 1.3 christos const struct linux32_sys_nice_args *p = params; 228 1.1 christos iarg[0] = SCARG(p, incr); /* int */ 229 1.1 christos *n_args = 1; 230 1.1 christos break; 231 1.1 christos } 232 1.1 christos /* sys_sync */ 233 1.1 christos case 36: { 234 1.1 christos *n_args = 0; 235 1.1 christos break; 236 1.1 christos } 237 1.1 christos /* linux32_sys_kill */ 238 1.1 christos case 37: { 239 1.3 christos const struct linux32_sys_kill_args *p = params; 240 1.1 christos iarg[0] = SCARG(p, pid); /* int */ 241 1.1 christos iarg[1] = SCARG(p, signum); /* int */ 242 1.1 christos *n_args = 2; 243 1.1 christos break; 244 1.1 christos } 245 1.1 christos /* netbsd32___posix_rename */ 246 1.1 christos case 38: { 247 1.3 christos const struct netbsd32___posix_rename_args *p = params; 248 1.1 christos uarg[0] = (intptr_t) SCARG(p, from).i32; /* netbsd32_charp */ 249 1.1 christos uarg[1] = (intptr_t) SCARG(p, to).i32; /* netbsd32_charp */ 250 1.1 christos *n_args = 2; 251 1.1 christos break; 252 1.1 christos } 253 1.1 christos /* netbsd32_mkdir */ 254 1.1 christos case 39: { 255 1.3 christos const struct netbsd32_mkdir_args *p = params; 256 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 257 1.1 christos iarg[1] = SCARG(p, mode); /* linux_umode_t */ 258 1.1 christos *n_args = 2; 259 1.1 christos break; 260 1.1 christos } 261 1.1 christos /* netbsd32_rmdir */ 262 1.1 christos case 40: { 263 1.3 christos const struct netbsd32_rmdir_args *p = params; 264 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 265 1.1 christos *n_args = 1; 266 1.1 christos break; 267 1.1 christos } 268 1.1 christos /* netbsd32_dup */ 269 1.1 christos case 41: { 270 1.3 christos const struct netbsd32_dup_args *p = params; 271 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 272 1.1 christos *n_args = 1; 273 1.1 christos break; 274 1.1 christos } 275 1.1 christos /* linux32_sys_pipe */ 276 1.1 christos case 42: { 277 1.3 christos const struct linux32_sys_pipe_args *p = params; 278 1.1 christos uarg[0] = (intptr_t) SCARG(p, fd).i32; /* netbsd32_intp */ 279 1.1 christos *n_args = 1; 280 1.1 christos break; 281 1.1 christos } 282 1.1 christos /* linux32_sys_times */ 283 1.1 christos case 43: { 284 1.3 christos const struct linux32_sys_times_args *p = params; 285 1.1 christos uarg[0] = (intptr_t) SCARG(p, tms).i32; /* linux32_tmsp_t */ 286 1.1 christos *n_args = 1; 287 1.1 christos break; 288 1.1 christos } 289 1.1 christos /* linux32_sys_brk */ 290 1.1 christos case 45: { 291 1.3 christos const struct linux32_sys_brk_args *p = params; 292 1.1 christos uarg[0] = (intptr_t) SCARG(p, nsize).i32; /* netbsd32_charp */ 293 1.1 christos *n_args = 1; 294 1.1 christos break; 295 1.1 christos } 296 1.1 christos /* netbsd32_setgid */ 297 1.1 christos case 46: { 298 1.3 christos const struct netbsd32_setgid_args *p = params; 299 1.1 christos iarg[0] = SCARG(p, gid); /* gid_t */ 300 1.1 christos *n_args = 1; 301 1.1 christos break; 302 1.1 christos } 303 1.1 christos /* sys_getgid */ 304 1.1 christos case 47: { 305 1.1 christos *n_args = 0; 306 1.1 christos break; 307 1.1 christos } 308 1.1 christos /* linux32_sys_signal */ 309 1.1 christos case 48: { 310 1.3 christos const struct linux32_sys_signal_args *p = params; 311 1.1 christos iarg[0] = SCARG(p, signum); /* int */ 312 1.2 christos uarg[1] = (intptr_t) SCARG(p, handler).i32; /* linux32_handlerp_t */ 313 1.1 christos *n_args = 2; 314 1.1 christos break; 315 1.1 christos } 316 1.1 christos /* sys_geteuid */ 317 1.1 christos case 49: { 318 1.1 christos *n_args = 0; 319 1.1 christos break; 320 1.1 christos } 321 1.1 christos /* sys_getegid */ 322 1.1 christos case 50: { 323 1.1 christos *n_args = 0; 324 1.1 christos break; 325 1.1 christos } 326 1.1 christos /* netbsd32_acct */ 327 1.1 christos case 51: { 328 1.3 christos const struct netbsd32_acct_args *p = params; 329 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 330 1.1 christos *n_args = 1; 331 1.1 christos break; 332 1.1 christos } 333 1.1 christos /* linux32_sys_ioctl */ 334 1.1 christos case 54: { 335 1.3 christos const struct linux32_sys_ioctl_args *p = params; 336 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 337 1.1 christos iarg[1] = SCARG(p, com); /* netbsd32_u_long */ 338 1.1 christos uarg[2] = (intptr_t) SCARG(p, data).i32; /* netbsd32_charp */ 339 1.1 christos *n_args = 3; 340 1.1 christos break; 341 1.1 christos } 342 1.1 christos /* linux32_sys_fcntl */ 343 1.1 christos case 55: { 344 1.3 christos const struct linux32_sys_fcntl_args *p = params; 345 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 346 1.1 christos iarg[1] = SCARG(p, cmd); /* int */ 347 1.1 christos uarg[2] = (intptr_t) SCARG(p, arg).i32; /* netbsd32_voidp */ 348 1.1 christos *n_args = 3; 349 1.1 christos break; 350 1.1 christos } 351 1.1 christos /* netbsd32_setpgid */ 352 1.1 christos case 57: { 353 1.3 christos const struct netbsd32_setpgid_args *p = params; 354 1.1 christos iarg[0] = SCARG(p, pid); /* int */ 355 1.1 christos iarg[1] = SCARG(p, pgid); /* int */ 356 1.1 christos *n_args = 2; 357 1.1 christos break; 358 1.1 christos } 359 1.1 christos /* linux32_sys_oldolduname */ 360 1.1 christos case 59: { 361 1.3 christos const struct linux32_sys_oldolduname_args *p = params; 362 1.1 christos uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldold_utsnamep_t */ 363 1.1 christos *n_args = 1; 364 1.1 christos break; 365 1.1 christos } 366 1.1 christos /* netbsd32_umask */ 367 1.1 christos case 60: { 368 1.3 christos const struct netbsd32_umask_args *p = params; 369 1.1 christos iarg[0] = SCARG(p, newmask); /* int */ 370 1.1 christos *n_args = 1; 371 1.1 christos break; 372 1.1 christos } 373 1.1 christos /* netbsd32_chroot */ 374 1.1 christos case 61: { 375 1.3 christos const struct netbsd32_chroot_args *p = params; 376 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 377 1.1 christos *n_args = 1; 378 1.1 christos break; 379 1.1 christos } 380 1.1 christos /* netbsd32_dup2 */ 381 1.1 christos case 63: { 382 1.3 christos const struct netbsd32_dup2_args *p = params; 383 1.1 christos iarg[0] = SCARG(p, from); /* int */ 384 1.1 christos iarg[1] = SCARG(p, to); /* int */ 385 1.1 christos *n_args = 2; 386 1.1 christos break; 387 1.1 christos } 388 1.1 christos /* sys_getppid */ 389 1.1 christos case 64: { 390 1.1 christos *n_args = 0; 391 1.1 christos break; 392 1.1 christos } 393 1.1 christos /* sys_getpgrp */ 394 1.1 christos case 65: { 395 1.1 christos *n_args = 0; 396 1.1 christos break; 397 1.1 christos } 398 1.1 christos /* sys_setsid */ 399 1.1 christos case 66: { 400 1.1 christos *n_args = 0; 401 1.1 christos break; 402 1.1 christos } 403 1.1 christos /* linux32_sys_siggetmask */ 404 1.1 christos case 68: { 405 1.1 christos *n_args = 0; 406 1.1 christos break; 407 1.1 christos } 408 1.1 christos /* linux32_sys_sigsetmask */ 409 1.1 christos case 69: { 410 1.3 christos const struct linux32_sys_sigsetmask_args *p = params; 411 1.1 christos iarg[0] = SCARG(p, mask); /* linux32_old_sigset_t */ 412 1.1 christos *n_args = 1; 413 1.1 christos break; 414 1.1 christos } 415 1.1 christos /* linux32_sys_setreuid16 */ 416 1.1 christos case 70: { 417 1.3 christos const struct linux32_sys_setreuid16_args *p = params; 418 1.1 christos iarg[0] = SCARG(p, ruid); /* linux32_uid16_t */ 419 1.1 christos iarg[1] = SCARG(p, euid); /* linux32_uid16_t */ 420 1.1 christos *n_args = 2; 421 1.1 christos break; 422 1.1 christos } 423 1.1 christos /* linux32_sys_setregid16 */ 424 1.1 christos case 71: { 425 1.3 christos const struct linux32_sys_setregid16_args *p = params; 426 1.1 christos iarg[0] = SCARG(p, rgid); /* linux32_gid16_t */ 427 1.1 christos iarg[1] = SCARG(p, egid); /* linux32_gid16_t */ 428 1.1 christos *n_args = 2; 429 1.1 christos break; 430 1.1 christos } 431 1.1 christos /* compat_43_netbsd32_osethostname */ 432 1.1 christos case 74: { 433 1.3 christos const struct compat_43_netbsd32_osethostname_args *p = params; 434 1.1 christos uarg[0] = (intptr_t) SCARG(p, hostname).i32; /* netbsd32_charp */ 435 1.1 christos uarg[1] = SCARG(p, len); /* u_int */ 436 1.1 christos *n_args = 2; 437 1.1 christos break; 438 1.1 christos } 439 1.1 christos /* linux32_sys_setrlimit */ 440 1.1 christos case 75: { 441 1.3 christos const struct linux32_sys_setrlimit_args *p = params; 442 1.1 christos uarg[0] = SCARG(p, which); /* u_int */ 443 1.1 christos uarg[1] = (intptr_t) SCARG(p, rlp).i32; /* netbsd32_orlimitp_t */ 444 1.1 christos *n_args = 2; 445 1.1 christos break; 446 1.1 christos } 447 1.1 christos /* linux32_sys_getrlimit */ 448 1.1 christos case 76: { 449 1.3 christos const struct linux32_sys_getrlimit_args *p = params; 450 1.1 christos uarg[0] = SCARG(p, which); /* u_int */ 451 1.1 christos uarg[1] = (intptr_t) SCARG(p, rlp).i32; /* netbsd32_orlimitp_t */ 452 1.1 christos *n_args = 2; 453 1.1 christos break; 454 1.1 christos } 455 1.1 christos /* compat_50_netbsd32_getrusage */ 456 1.1 christos case 77: { 457 1.3 christos const struct compat_50_netbsd32_getrusage_args *p = params; 458 1.1 christos iarg[0] = SCARG(p, who); /* int */ 459 1.1 christos uarg[1] = (intptr_t) SCARG(p, rusage).i32; /* netbsd32_rusage50p_t */ 460 1.1 christos *n_args = 2; 461 1.1 christos break; 462 1.1 christos } 463 1.1 christos /* linux32_sys_gettimeofday */ 464 1.1 christos case 78: { 465 1.3 christos const struct linux32_sys_gettimeofday_args *p = params; 466 1.1 christos uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */ 467 1.1 christos uarg[1] = (intptr_t) SCARG(p, tzp).i32; /* netbsd32_timezonep_t */ 468 1.1 christos *n_args = 2; 469 1.1 christos break; 470 1.1 christos } 471 1.1 christos /* linux32_sys_settimeofday */ 472 1.1 christos case 79: { 473 1.3 christos const struct linux32_sys_settimeofday_args *p = params; 474 1.1 christos uarg[0] = (intptr_t) SCARG(p, tp).i32; /* netbsd32_timeval50p_t */ 475 1.1 christos uarg[1] = (intptr_t) SCARG(p, tzp).i32; /* netbsd32_timezonep_t */ 476 1.1 christos *n_args = 2; 477 1.1 christos break; 478 1.1 christos } 479 1.1 christos /* linux32_sys_getgroups16 */ 480 1.1 christos case 80: { 481 1.3 christos const struct linux32_sys_getgroups16_args *p = params; 482 1.1 christos iarg[0] = SCARG(p, gidsetsize); /* int */ 483 1.1 christos uarg[1] = (intptr_t) SCARG(p, gidset).i32; /* linux32_gid16p_t */ 484 1.1 christos *n_args = 2; 485 1.1 christos break; 486 1.1 christos } 487 1.1 christos /* linux32_sys_setgroups16 */ 488 1.1 christos case 81: { 489 1.3 christos const struct linux32_sys_setgroups16_args *p = params; 490 1.1 christos iarg[0] = SCARG(p, gidsetsize); /* int */ 491 1.1 christos uarg[1] = (intptr_t) SCARG(p, gidset).i32; /* linux32_gid16p_t */ 492 1.1 christos *n_args = 2; 493 1.1 christos break; 494 1.1 christos } 495 1.1 christos /* linux32_sys_oldselect */ 496 1.1 christos case 82: { 497 1.3 christos const struct linux32_sys_oldselect_args *p = params; 498 1.1 christos uarg[0] = (intptr_t) SCARG(p, lsp).i32; /* linux32_oldselectp_t */ 499 1.1 christos *n_args = 1; 500 1.1 christos break; 501 1.1 christos } 502 1.1 christos /* netbsd32_symlink */ 503 1.1 christos case 83: { 504 1.3 christos const struct netbsd32_symlink_args *p = params; 505 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 506 1.1 christos uarg[1] = (intptr_t) SCARG(p, link).i32; /* netbsd32_charp */ 507 1.1 christos *n_args = 2; 508 1.1 christos break; 509 1.1 christos } 510 1.1 christos /* compat_43_netbsd32_lstat43 */ 511 1.1 christos case 84: { 512 1.3 christos const struct compat_43_netbsd32_lstat43_args *p = params; 513 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 514 1.1 christos uarg[1] = (intptr_t) SCARG(p, ub).i32; /* netbsd32_stat43p_t */ 515 1.1 christos *n_args = 2; 516 1.1 christos break; 517 1.1 christos } 518 1.1 christos /* netbsd32_readlink */ 519 1.1 christos case 85: { 520 1.3 christos const struct netbsd32_readlink_args *p = params; 521 1.2 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 522 1.1 christos uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_charp */ 523 1.1 christos iarg[2] = SCARG(p, count); /* netbsd32_size_t */ 524 1.1 christos *n_args = 3; 525 1.1 christos break; 526 1.1 christos } 527 1.1 christos /* linux32_sys_swapon */ 528 1.1 christos case 87: { 529 1.3 christos const struct linux32_sys_swapon_args *p = params; 530 1.1 christos uarg[0] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 531 1.1 christos *n_args = 1; 532 1.1 christos break; 533 1.1 christos } 534 1.1 christos /* linux32_sys_reboot */ 535 1.1 christos case 88: { 536 1.3 christos const struct linux32_sys_reboot_args *p = params; 537 1.1 christos iarg[0] = SCARG(p, magic1); /* int */ 538 1.1 christos iarg[1] = SCARG(p, magic2); /* int */ 539 1.1 christos iarg[2] = SCARG(p, cmd); /* int */ 540 1.1 christos uarg[3] = (intptr_t) SCARG(p, arg).i32; /* netbsd32_voidp */ 541 1.1 christos *n_args = 4; 542 1.1 christos break; 543 1.1 christos } 544 1.1 christos /* linux32_sys_readdir */ 545 1.1 christos case 89: { 546 1.3 christos const struct linux32_sys_readdir_args *p = params; 547 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 548 1.1 christos uarg[1] = (intptr_t) SCARG(p, dent).i32; /* netbsd32_voidp */ 549 1.1 christos uarg[2] = SCARG(p, count); /* unsigned int */ 550 1.1 christos *n_args = 3; 551 1.1 christos break; 552 1.1 christos } 553 1.1 christos /* linux32_sys_old_mmap */ 554 1.1 christos case 90: { 555 1.3 christos const struct linux32_sys_old_mmap_args *p = params; 556 1.1 christos uarg[0] = (intptr_t) SCARG(p, lmp).i32; /* linux32_oldmmapp */ 557 1.1 christos *n_args = 1; 558 1.1 christos break; 559 1.1 christos } 560 1.1 christos /* netbsd32_munmap */ 561 1.1 christos case 91: { 562 1.3 christos const struct netbsd32_munmap_args *p = params; 563 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 564 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 565 1.1 christos *n_args = 2; 566 1.1 christos break; 567 1.1 christos } 568 1.1 christos /* compat_43_netbsd32_otruncate */ 569 1.1 christos case 92: { 570 1.3 christos const struct compat_43_netbsd32_otruncate_args *p = params; 571 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 572 1.1 christos iarg[1] = SCARG(p, length); /* netbsd32_long */ 573 1.1 christos *n_args = 2; 574 1.1 christos break; 575 1.1 christos } 576 1.1 christos /* compat_43_netbsd32_oftruncate */ 577 1.1 christos case 93: { 578 1.3 christos const struct compat_43_netbsd32_oftruncate_args *p = params; 579 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 580 1.1 christos iarg[1] = SCARG(p, length); /* netbsd32_long */ 581 1.1 christos *n_args = 2; 582 1.1 christos break; 583 1.1 christos } 584 1.1 christos /* netbsd32_fchmod */ 585 1.1 christos case 94: { 586 1.3 christos const struct netbsd32_fchmod_args *p = params; 587 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 588 1.1 christos iarg[1] = SCARG(p, mode); /* linux_umode_t */ 589 1.1 christos *n_args = 2; 590 1.1 christos break; 591 1.1 christos } 592 1.1 christos /* linux32_sys_fchown16 */ 593 1.1 christos case 95: { 594 1.3 christos const struct linux32_sys_fchown16_args *p = params; 595 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 596 1.1 christos iarg[1] = SCARG(p, uid); /* linux32_uid16_t */ 597 1.1 christos iarg[2] = SCARG(p, gid); /* linux32_gid16_t */ 598 1.1 christos *n_args = 3; 599 1.1 christos break; 600 1.1 christos } 601 1.1 christos /* linux32_sys_getpriority */ 602 1.1 christos case 96: { 603 1.3 christos const struct linux32_sys_getpriority_args *p = params; 604 1.1 christos iarg[0] = SCARG(p, which); /* int */ 605 1.1 christos iarg[1] = SCARG(p, who); /* int */ 606 1.1 christos *n_args = 2; 607 1.1 christos break; 608 1.1 christos } 609 1.1 christos /* netbsd32_setpriority */ 610 1.1 christos case 97: { 611 1.3 christos const struct netbsd32_setpriority_args *p = params; 612 1.1 christos iarg[0] = SCARG(p, which); /* int */ 613 1.1 christos iarg[1] = SCARG(p, who); /* int */ 614 1.1 christos iarg[2] = SCARG(p, prio); /* int */ 615 1.1 christos *n_args = 3; 616 1.1 christos break; 617 1.1 christos } 618 1.1 christos /* netbsd32_profil */ 619 1.1 christos case 98: { 620 1.3 christos const struct netbsd32_profil_args *p = params; 621 1.1 christos uarg[0] = (intptr_t) SCARG(p, samples).i32; /* netbsd32_voidp */ 622 1.1 christos iarg[1] = SCARG(p, size); /* netbsd32_size_t */ 623 1.1 christos iarg[2] = SCARG(p, offset); /* netbsd32_u_long */ 624 1.1 christos uarg[3] = SCARG(p, scale); /* u_int */ 625 1.1 christos *n_args = 4; 626 1.1 christos break; 627 1.1 christos } 628 1.1 christos /* linux32_sys_statfs */ 629 1.1 christos case 99: { 630 1.3 christos const struct linux32_sys_statfs_args *p = params; 631 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 632 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_statfsp */ 633 1.1 christos *n_args = 2; 634 1.1 christos break; 635 1.1 christos } 636 1.1 christos /* linux32_sys_fstatfs */ 637 1.1 christos case 100: { 638 1.3 christos const struct linux32_sys_fstatfs_args *p = params; 639 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 640 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_statfsp */ 641 1.1 christos *n_args = 2; 642 1.1 christos break; 643 1.1 christos } 644 1.1 christos /* linux_sys_ioperm */ 645 1.1 christos case 101: { 646 1.3 christos const struct linux_sys_ioperm_args *p = params; 647 1.1 christos uarg[0] = SCARG(p, lo); /* unsigned int */ 648 1.1 christos uarg[1] = SCARG(p, hi); /* unsigned int */ 649 1.1 christos iarg[2] = SCARG(p, val); /* int */ 650 1.1 christos *n_args = 3; 651 1.1 christos break; 652 1.1 christos } 653 1.1 christos /* linux32_sys_socketcall */ 654 1.1 christos case 102: { 655 1.3 christos const struct linux32_sys_socketcall_args *p = params; 656 1.1 christos iarg[0] = SCARG(p, what); /* int */ 657 1.1 christos uarg[1] = (intptr_t) SCARG(p, args).i32; /* netbsd32_voidp */ 658 1.1 christos *n_args = 2; 659 1.1 christos break; 660 1.1 christos } 661 1.1 christos /* compat_50_netbsd32_setitimer */ 662 1.1 christos case 104: { 663 1.3 christos const struct compat_50_netbsd32_setitimer_args *p = params; 664 1.1 christos iarg[0] = SCARG(p, which); /* int */ 665 1.1 christos uarg[1] = (intptr_t) SCARG(p, itv).i32; /* netbsd32_itimerval50p_t */ 666 1.1 christos uarg[2] = (intptr_t) SCARG(p, oitv).i32; /* netbsd32_itimerval50p_t */ 667 1.1 christos *n_args = 3; 668 1.1 christos break; 669 1.1 christos } 670 1.1 christos /* compat_50_netbsd32_getitimer */ 671 1.1 christos case 105: { 672 1.3 christos const struct compat_50_netbsd32_getitimer_args *p = params; 673 1.1 christos iarg[0] = SCARG(p, which); /* int */ 674 1.1 christos uarg[1] = (intptr_t) SCARG(p, itv).i32; /* netbsd32_itimerval50p_t */ 675 1.1 christos *n_args = 2; 676 1.1 christos break; 677 1.1 christos } 678 1.1 christos /* linux32_sys_stat */ 679 1.1 christos case 106: { 680 1.3 christos const struct linux32_sys_stat_args *p = params; 681 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 682 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_statp */ 683 1.1 christos *n_args = 2; 684 1.1 christos break; 685 1.1 christos } 686 1.1 christos /* linux32_sys_lstat */ 687 1.1 christos case 107: { 688 1.3 christos const struct linux32_sys_lstat_args *p = params; 689 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 690 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_statp */ 691 1.1 christos *n_args = 2; 692 1.1 christos break; 693 1.1 christos } 694 1.1 christos /* linux32_sys_fstat */ 695 1.1 christos case 108: { 696 1.3 christos const struct linux32_sys_fstat_args *p = params; 697 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 698 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_statp */ 699 1.1 christos *n_args = 2; 700 1.1 christos break; 701 1.1 christos } 702 1.1 christos /* linux32_sys_olduname */ 703 1.1 christos case 109: { 704 1.3 christos const struct linux32_sys_olduname_args *p = params; 705 1.1 christos uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_oldutsnamep_t */ 706 1.1 christos *n_args = 1; 707 1.1 christos break; 708 1.1 christos } 709 1.1 christos /* linux_sys_iopl */ 710 1.1 christos case 110: { 711 1.3 christos const struct linux_sys_iopl_args *p = params; 712 1.1 christos iarg[0] = SCARG(p, level); /* int */ 713 1.1 christos *n_args = 1; 714 1.1 christos break; 715 1.1 christos } 716 1.1 christos /* linux32_sys_wait4 */ 717 1.1 christos case 114: { 718 1.3 christos const struct linux32_sys_wait4_args *p = params; 719 1.1 christos iarg[0] = SCARG(p, pid); /* int */ 720 1.1 christos uarg[1] = (intptr_t) SCARG(p, status).i32; /* netbsd32_intp */ 721 1.1 christos iarg[2] = SCARG(p, options); /* int */ 722 1.1 christos uarg[3] = (intptr_t) SCARG(p, rusage).i32; /* netbsd32_rusage50p_t */ 723 1.1 christos *n_args = 4; 724 1.1 christos break; 725 1.1 christos } 726 1.1 christos /* linux32_sys_swapoff */ 727 1.1 christos case 115: { 728 1.3 christos const struct linux32_sys_swapoff_args *p = params; 729 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 730 1.1 christos *n_args = 1; 731 1.1 christos break; 732 1.1 christos } 733 1.1 christos /* linux32_sys_sysinfo */ 734 1.1 christos case 116: { 735 1.3 christos const struct linux32_sys_sysinfo_args *p = params; 736 1.1 christos uarg[0] = (intptr_t) SCARG(p, arg).i32; /* linux32_sysinfop_t */ 737 1.1 christos *n_args = 1; 738 1.1 christos break; 739 1.1 christos } 740 1.1 christos /* linux32_sys_ipc */ 741 1.1 christos case 117: { 742 1.3 christos const struct linux32_sys_ipc_args *p = params; 743 1.1 christos iarg[0] = SCARG(p, what); /* int */ 744 1.1 christos iarg[1] = SCARG(p, a1); /* int */ 745 1.1 christos iarg[2] = SCARG(p, a2); /* int */ 746 1.1 christos iarg[3] = SCARG(p, a3); /* int */ 747 1.1 christos uarg[4] = (intptr_t) SCARG(p, ptr).i32; /* netbsd32_voidp */ 748 1.1 christos *n_args = 5; 749 1.1 christos break; 750 1.1 christos } 751 1.1 christos /* netbsd32_fsync */ 752 1.1 christos case 118: { 753 1.3 christos const struct netbsd32_fsync_args *p = params; 754 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 755 1.1 christos *n_args = 1; 756 1.1 christos break; 757 1.1 christos } 758 1.1 christos /* linux32_sys_sigreturn */ 759 1.1 christos case 119: { 760 1.3 christos const struct linux32_sys_sigreturn_args *p = params; 761 1.1 christos uarg[0] = (intptr_t) SCARG(p, scp).i32; /* linux32_sigcontextp_t */ 762 1.1 christos *n_args = 1; 763 1.1 christos break; 764 1.1 christos } 765 1.1 christos /* linux32_sys_clone */ 766 1.1 christos case 120: { 767 1.3 christos const struct linux32_sys_clone_args *p = params; 768 1.1 christos iarg[0] = SCARG(p, flags); /* int */ 769 1.1 christos uarg[1] = (intptr_t) SCARG(p, stack).i32; /* netbsd32_voidp */ 770 1.1 christos uarg[2] = (intptr_t) SCARG(p, parent_tidptr).i32; /* netbsd32_voidp */ 771 1.1 christos uarg[3] = (intptr_t) SCARG(p, tls).i32; /* netbsd32_voidp */ 772 1.1 christos uarg[4] = (intptr_t) SCARG(p, child_tidptr).i32; /* netbsd32_voidp */ 773 1.1 christos *n_args = 5; 774 1.1 christos break; 775 1.1 christos } 776 1.1 christos /* linux32_sys_setdomainname */ 777 1.1 christos case 121: { 778 1.3 christos const struct linux32_sys_setdomainname_args *p = params; 779 1.1 christos uarg[0] = (intptr_t) SCARG(p, domainname).i32; /* netbsd32_charp */ 780 1.1 christos iarg[1] = SCARG(p, len); /* int */ 781 1.1 christos *n_args = 2; 782 1.1 christos break; 783 1.1 christos } 784 1.1 christos /* linux32_sys_uname */ 785 1.1 christos case 122: { 786 1.3 christos const struct linux32_sys_uname_args *p = params; 787 1.1 christos uarg[0] = (intptr_t) SCARG(p, up).i32; /* linux32_utsnamep */ 788 1.1 christos *n_args = 1; 789 1.1 christos break; 790 1.1 christos } 791 1.1 christos /* linux32_sys_modify_ldt */ 792 1.1 christos case 123: { 793 1.3 christos const struct linux32_sys_modify_ldt_args *p = params; 794 1.1 christos iarg[0] = SCARG(p, func); /* int */ 795 1.1 christos uarg[1] = (intptr_t) SCARG(p, ptr).i32; /* netbsd32_charp */ 796 1.1 christos iarg[2] = SCARG(p, bytecount); /* netbsd32_size_t */ 797 1.1 christos *n_args = 3; 798 1.1 christos break; 799 1.1 christos } 800 1.1 christos /* linux32_sys_mprotect */ 801 1.1 christos case 125: { 802 1.3 christos const struct linux32_sys_mprotect_args *p = params; 803 1.1 christos uarg[0] = (intptr_t) SCARG(p, start).i32; /* netbsd32_voidp */ 804 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 805 1.1 christos iarg[2] = SCARG(p, prot); /* int */ 806 1.1 christos *n_args = 3; 807 1.1 christos break; 808 1.1 christos } 809 1.1 christos /* netbsd32_getpgid */ 810 1.1 christos case 132: { 811 1.3 christos const struct netbsd32_getpgid_args *p = params; 812 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 813 1.1 christos *n_args = 1; 814 1.1 christos break; 815 1.1 christos } 816 1.1 christos /* netbsd32_fchdir */ 817 1.1 christos case 133: { 818 1.3 christos const struct netbsd32_fchdir_args *p = params; 819 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 820 1.1 christos *n_args = 1; 821 1.1 christos break; 822 1.1 christos } 823 1.1 christos /* linux32_sys_personality */ 824 1.1 christos case 136: { 825 1.3 christos const struct linux32_sys_personality_args *p = params; 826 1.1 christos iarg[0] = SCARG(p, per); /* netbsd32_u_long */ 827 1.1 christos *n_args = 1; 828 1.1 christos break; 829 1.1 christos } 830 1.1 christos /* linux32_sys_setfsuid */ 831 1.1 christos case 138: { 832 1.3 christos const struct linux32_sys_setfsuid_args *p = params; 833 1.1 christos uarg[0] = SCARG(p, uid); /* uid_t */ 834 1.1 christos *n_args = 1; 835 1.1 christos break; 836 1.1 christos } 837 1.1 christos /* linux32_sys_setfsgid */ 838 1.1 christos case 139: { 839 1.3 christos const struct linux32_sys_setfsgid_args *p = params; 840 1.1 christos iarg[0] = SCARG(p, gid); /* gid_t */ 841 1.1 christos *n_args = 1; 842 1.1 christos break; 843 1.1 christos } 844 1.1 christos /* linux32_sys_llseek */ 845 1.1 christos case 140: { 846 1.3 christos const struct linux32_sys_llseek_args *p = params; 847 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 848 1.1 christos uarg[1] = SCARG(p, ohigh); /* u_int32_t */ 849 1.1 christos uarg[2] = SCARG(p, olow); /* u_int32_t */ 850 1.1 christos uarg[3] = (intptr_t) SCARG(p, res).i32; /* netbsd32_voidp */ 851 1.1 christos iarg[4] = SCARG(p, whence); /* int */ 852 1.1 christos *n_args = 5; 853 1.1 christos break; 854 1.1 christos } 855 1.1 christos /* linux32_sys_getdents */ 856 1.1 christos case 141: { 857 1.3 christos const struct linux32_sys_getdents_args *p = params; 858 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 859 1.1 christos uarg[1] = (intptr_t) SCARG(p, dent).i32; /* linux32_direntp_t */ 860 1.1 christos uarg[2] = SCARG(p, count); /* unsigned int */ 861 1.1 christos *n_args = 3; 862 1.1 christos break; 863 1.1 christos } 864 1.1 christos /* linux32_sys_select */ 865 1.1 christos case 142: { 866 1.3 christos const struct linux32_sys_select_args *p = params; 867 1.1 christos iarg[0] = SCARG(p, nfds); /* int */ 868 1.1 christos uarg[1] = (intptr_t) SCARG(p, readfds).i32; /* netbsd32_fd_setp_t */ 869 1.1 christos uarg[2] = (intptr_t) SCARG(p, writefds).i32; /* netbsd32_fd_setp_t */ 870 1.1 christos uarg[3] = (intptr_t) SCARG(p, exceptfds).i32; /* netbsd32_fd_setp_t */ 871 1.1 christos uarg[4] = (intptr_t) SCARG(p, timeout).i32; /* netbsd32_timeval50p_t */ 872 1.1 christos *n_args = 5; 873 1.1 christos break; 874 1.1 christos } 875 1.1 christos /* netbsd32_flock */ 876 1.1 christos case 143: { 877 1.3 christos const struct netbsd32_flock_args *p = params; 878 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 879 1.1 christos iarg[1] = SCARG(p, how); /* int */ 880 1.1 christos *n_args = 2; 881 1.1 christos break; 882 1.1 christos } 883 1.1 christos /* netbsd32___msync13 */ 884 1.1 christos case 144: { 885 1.3 christos const struct netbsd32___msync13_args *p = params; 886 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 887 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 888 1.1 christos iarg[2] = SCARG(p, flags); /* int */ 889 1.1 christos *n_args = 3; 890 1.1 christos break; 891 1.1 christos } 892 1.1 christos /* netbsd32_readv */ 893 1.1 christos case 145: { 894 1.3 christos const struct netbsd32_readv_args *p = params; 895 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 896 1.1 christos uarg[1] = (intptr_t) SCARG(p, iovp).i32; /* netbsd32_iovecp_t */ 897 1.1 christos iarg[2] = SCARG(p, iovcnt); /* int */ 898 1.1 christos *n_args = 3; 899 1.1 christos break; 900 1.1 christos } 901 1.1 christos /* netbsd32_writev */ 902 1.1 christos case 146: { 903 1.3 christos const struct netbsd32_writev_args *p = params; 904 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 905 1.1 christos uarg[1] = (intptr_t) SCARG(p, iovp).i32; /* netbsd32_iovecp_t */ 906 1.1 christos iarg[2] = SCARG(p, iovcnt); /* int */ 907 1.1 christos *n_args = 3; 908 1.1 christos break; 909 1.1 christos } 910 1.1 christos /* netbsd32_getsid */ 911 1.1 christos case 147: { 912 1.3 christos const struct netbsd32_getsid_args *p = params; 913 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 914 1.1 christos *n_args = 1; 915 1.1 christos break; 916 1.1 christos } 917 1.1 christos /* linux32_sys_fdatasync */ 918 1.1 christos case 148: { 919 1.3 christos const struct linux32_sys_fdatasync_args *p = params; 920 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 921 1.1 christos *n_args = 1; 922 1.1 christos break; 923 1.1 christos } 924 1.1 christos /* linux32_sys___sysctl */ 925 1.1 christos case 149: { 926 1.3 christos const struct linux32_sys___sysctl_args *p = params; 927 1.1 christos uarg[0] = (intptr_t) SCARG(p, lsp).i32; /* linux32___sysctlp_t */ 928 1.1 christos *n_args = 1; 929 1.1 christos break; 930 1.1 christos } 931 1.1 christos /* netbsd32_mlock */ 932 1.1 christos case 150: { 933 1.3 christos const struct netbsd32_mlock_args *p = params; 934 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 935 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 936 1.1 christos *n_args = 2; 937 1.1 christos break; 938 1.1 christos } 939 1.1 christos /* netbsd32_munlock */ 940 1.1 christos case 151: { 941 1.3 christos const struct netbsd32_munlock_args *p = params; 942 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 943 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 944 1.1 christos *n_args = 2; 945 1.1 christos break; 946 1.1 christos } 947 1.1 christos /* netbsd32_mlockall */ 948 1.1 christos case 152: { 949 1.3 christos const struct netbsd32_mlockall_args *p = params; 950 1.1 christos iarg[0] = SCARG(p, flags); /* int */ 951 1.1 christos *n_args = 1; 952 1.1 christos break; 953 1.1 christos } 954 1.1 christos /* sys_munlockall */ 955 1.1 christos case 153: { 956 1.1 christos *n_args = 0; 957 1.1 christos break; 958 1.1 christos } 959 1.1 christos /* linux32_sys_sched_setparam */ 960 1.1 christos case 154: { 961 1.3 christos const struct linux32_sys_sched_setparam_args *p = params; 962 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 963 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* const linux32_sched_paramp_t */ 964 1.1 christos *n_args = 2; 965 1.1 christos break; 966 1.1 christos } 967 1.1 christos /* linux32_sys_sched_getparam */ 968 1.1 christos case 155: { 969 1.3 christos const struct linux32_sys_sched_getparam_args *p = params; 970 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 971 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_sched_paramp_t */ 972 1.1 christos *n_args = 2; 973 1.1 christos break; 974 1.1 christos } 975 1.1 christos /* linux32_sys_sched_setscheduler */ 976 1.1 christos case 156: { 977 1.3 christos const struct linux32_sys_sched_setscheduler_args *p = params; 978 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 979 1.1 christos iarg[1] = SCARG(p, policy); /* int */ 980 1.1 christos uarg[2] = (intptr_t) SCARG(p, sp).i32; /* linux32_sched_paramp_t */ 981 1.1 christos *n_args = 3; 982 1.1 christos break; 983 1.1 christos } 984 1.1 christos /* linux32_sys_sched_getscheduler */ 985 1.1 christos case 157: { 986 1.3 christos const struct linux32_sys_sched_getscheduler_args *p = params; 987 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 988 1.1 christos *n_args = 1; 989 1.1 christos break; 990 1.1 christos } 991 1.1 christos /* linux_sys_sched_yield */ 992 1.1 christos case 158: { 993 1.1 christos *n_args = 0; 994 1.1 christos break; 995 1.1 christos } 996 1.1 christos /* linux32_sys_sched_get_priority_max */ 997 1.1 christos case 159: { 998 1.3 christos const struct linux32_sys_sched_get_priority_max_args *p = params; 999 1.1 christos iarg[0] = SCARG(p, policy); /* int */ 1000 1.1 christos *n_args = 1; 1001 1.1 christos break; 1002 1.1 christos } 1003 1.1 christos /* linux32_sys_sched_get_priority_min */ 1004 1.1 christos case 160: { 1005 1.3 christos const struct linux32_sys_sched_get_priority_min_args *p = params; 1006 1.1 christos iarg[0] = SCARG(p, policy); /* int */ 1007 1.1 christos *n_args = 1; 1008 1.1 christos break; 1009 1.1 christos } 1010 1.1 christos /* linux32_sys_nanosleep */ 1011 1.1 christos case 162: { 1012 1.3 christos const struct linux32_sys_nanosleep_args *p = params; 1013 1.1 christos uarg[0] = (intptr_t) SCARG(p, rqtp).i32; /* linux32_timespecp_t */ 1014 1.1 christos uarg[1] = (intptr_t) SCARG(p, rmtp).i32; /* linux32_timespecp_t */ 1015 1.1 christos *n_args = 2; 1016 1.1 christos break; 1017 1.1 christos } 1018 1.1 christos /* linux32_sys_mremap */ 1019 1.1 christos case 163: { 1020 1.3 christos const struct linux32_sys_mremap_args *p = params; 1021 1.1 christos uarg[0] = (intptr_t) SCARG(p, old_address).i32; /* netbsd32_voidp */ 1022 1.1 christos iarg[1] = SCARG(p, old_size); /* netbsd32_size_t */ 1023 1.1 christos iarg[2] = SCARG(p, new_size); /* netbsd32_size_t */ 1024 1.1 christos iarg[3] = SCARG(p, flags); /* netbsd32_u_long */ 1025 1.1 christos *n_args = 4; 1026 1.1 christos break; 1027 1.1 christos } 1028 1.1 christos /* linux32_sys_setresuid16 */ 1029 1.1 christos case 164: { 1030 1.3 christos const struct linux32_sys_setresuid16_args *p = params; 1031 1.1 christos iarg[0] = SCARG(p, ruid); /* linux32_uid16_t */ 1032 1.1 christos iarg[1] = SCARG(p, euid); /* linux32_uid16_t */ 1033 1.1 christos iarg[2] = SCARG(p, suid); /* linux32_uid16_t */ 1034 1.1 christos *n_args = 3; 1035 1.1 christos break; 1036 1.1 christos } 1037 1.1 christos /* linux32_sys_getresuid16 */ 1038 1.1 christos case 165: { 1039 1.3 christos const struct linux32_sys_getresuid16_args *p = params; 1040 1.1 christos uarg[0] = (intptr_t) SCARG(p, ruid).i32; /* linux32_uid16p_t */ 1041 1.1 christos uarg[1] = (intptr_t) SCARG(p, euid).i32; /* linux32_uid16p_t */ 1042 1.1 christos uarg[2] = (intptr_t) SCARG(p, suid).i32; /* linux32_uid16p_t */ 1043 1.1 christos *n_args = 3; 1044 1.1 christos break; 1045 1.1 christos } 1046 1.1 christos /* netbsd32_poll */ 1047 1.1 christos case 168: { 1048 1.3 christos const struct netbsd32_poll_args *p = params; 1049 1.1 christos uarg[0] = (intptr_t) SCARG(p, fds).i32; /* netbsd32_pollfdp_t */ 1050 1.1 christos uarg[1] = SCARG(p, nfds); /* u_int */ 1051 1.1 christos iarg[2] = SCARG(p, timeout); /* int */ 1052 1.1 christos *n_args = 3; 1053 1.1 christos break; 1054 1.1 christos } 1055 1.1 christos /* linux32_sys_setresgid16 */ 1056 1.1 christos case 170: { 1057 1.3 christos const struct linux32_sys_setresgid16_args *p = params; 1058 1.1 christos iarg[0] = SCARG(p, rgid); /* linux32_gid16_t */ 1059 1.1 christos iarg[1] = SCARG(p, egid); /* linux32_gid16_t */ 1060 1.1 christos iarg[2] = SCARG(p, sgid); /* linux32_gid16_t */ 1061 1.1 christos *n_args = 3; 1062 1.1 christos break; 1063 1.1 christos } 1064 1.1 christos /* linux32_sys_getresgid16 */ 1065 1.1 christos case 171: { 1066 1.3 christos const struct linux32_sys_getresgid16_args *p = params; 1067 1.1 christos uarg[0] = (intptr_t) SCARG(p, rgid).i32; /* linux32_gid16p_t */ 1068 1.1 christos uarg[1] = (intptr_t) SCARG(p, egid).i32; /* linux32_gid16p_t */ 1069 1.1 christos uarg[2] = (intptr_t) SCARG(p, sgid).i32; /* linux32_gid16p_t */ 1070 1.1 christos *n_args = 3; 1071 1.1 christos break; 1072 1.1 christos } 1073 1.1 christos /* linux32_sys_rt_sigreturn */ 1074 1.1 christos case 173: { 1075 1.3 christos const struct linux32_sys_rt_sigreturn_args *p = params; 1076 1.1 christos uarg[0] = (intptr_t) SCARG(p, ucp).i32; /* linux32_ucontextp_t */ 1077 1.1 christos *n_args = 1; 1078 1.1 christos break; 1079 1.1 christos } 1080 1.1 christos /* linux32_sys_rt_sigaction */ 1081 1.1 christos case 174: { 1082 1.3 christos const struct linux32_sys_rt_sigaction_args *p = params; 1083 1.1 christos iarg[0] = SCARG(p, signum); /* int */ 1084 1.1 christos uarg[1] = (intptr_t) SCARG(p, nsa).i32; /* linux32_sigactionp_t */ 1085 1.1 christos uarg[2] = (intptr_t) SCARG(p, osa).i32; /* linux32_sigactionp_t */ 1086 1.1 christos iarg[3] = SCARG(p, sigsetsize); /* netbsd32_size_t */ 1087 1.1 christos *n_args = 4; 1088 1.1 christos break; 1089 1.1 christos } 1090 1.1 christos /* linux32_sys_rt_sigprocmask */ 1091 1.1 christos case 175: { 1092 1.3 christos const struct linux32_sys_rt_sigprocmask_args *p = params; 1093 1.1 christos iarg[0] = SCARG(p, how); /* int */ 1094 1.1 christos uarg[1] = (intptr_t) SCARG(p, set).i32; /* linux32_sigsetp_t */ 1095 1.1 christos uarg[2] = (intptr_t) SCARG(p, oset).i32; /* linux32_sigsetp_t */ 1096 1.1 christos iarg[3] = SCARG(p, sigsetsize); /* netbsd32_size_t */ 1097 1.1 christos *n_args = 4; 1098 1.1 christos break; 1099 1.1 christos } 1100 1.1 christos /* linux32_sys_rt_sigpending */ 1101 1.1 christos case 176: { 1102 1.3 christos const struct linux32_sys_rt_sigpending_args *p = params; 1103 1.1 christos uarg[0] = (intptr_t) SCARG(p, set).i32; /* linux32_sigsetp_t */ 1104 1.1 christos iarg[1] = SCARG(p, sigsetsize); /* netbsd32_size_t */ 1105 1.1 christos *n_args = 2; 1106 1.1 christos break; 1107 1.1 christos } 1108 1.1 christos /* linux32_sys_rt_sigtimedwait */ 1109 1.1 christos case 177: { 1110 1.3 christos const struct linux32_sys_rt_sigtimedwait_args *p = params; 1111 1.1 christos uarg[0] = (intptr_t) SCARG(p, set).i32; /* const linux32_sigsetp_t */ 1112 1.1 christos uarg[1] = (intptr_t) SCARG(p, info).i32; /* linux32_siginfop_t */ 1113 1.1 christos uarg[2] = (intptr_t) SCARG(p, timeout).i32; /* const linux32_timespecp_t */ 1114 1.1 christos *n_args = 3; 1115 1.1 christos break; 1116 1.1 christos } 1117 1.1 christos /* linux32_sys_rt_queueinfo */ 1118 1.1 christos case 178: { 1119 1.3 christos const struct linux32_sys_rt_queueinfo_args *p = params; 1120 1.1 christos iarg[0] = SCARG(p, pid); /* int */ 1121 1.1 christos iarg[1] = SCARG(p, sig); /* int */ 1122 1.1 christos uarg[2] = (intptr_t) SCARG(p, uinfo).i32; /* linux32_siginfop_t */ 1123 1.1 christos *n_args = 3; 1124 1.1 christos break; 1125 1.1 christos } 1126 1.1 christos /* linux32_sys_rt_sigsuspend */ 1127 1.1 christos case 179: { 1128 1.3 christos const struct linux32_sys_rt_sigsuspend_args *p = params; 1129 1.1 christos uarg[0] = (intptr_t) SCARG(p, unewset).i32; /* linux32_sigsetp_t */ 1130 1.1 christos iarg[1] = SCARG(p, sigsetsize); /* netbsd32_size_t */ 1131 1.1 christos *n_args = 2; 1132 1.1 christos break; 1133 1.1 christos } 1134 1.1 christos /* linux32_sys_pread */ 1135 1.1 christos case 180: { 1136 1.3 christos const struct linux32_sys_pread_args *p = params; 1137 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1138 1.1 christos uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ 1139 1.1 christos iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ 1140 1.1 christos iarg[3] = SCARG(p, offset); /* netbsd32_off_t */ 1141 1.1 christos *n_args = 4; 1142 1.1 christos break; 1143 1.1 christos } 1144 1.1 christos /* linux32_sys_pwrite */ 1145 1.1 christos case 181: { 1146 1.3 christos const struct linux32_sys_pwrite_args *p = params; 1147 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1148 1.1 christos uarg[1] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_voidp */ 1149 1.1 christos iarg[2] = SCARG(p, nbyte); /* netbsd32_size_t */ 1150 1.1 christos iarg[3] = SCARG(p, offset); /* netbsd32_off_t */ 1151 1.1 christos *n_args = 4; 1152 1.1 christos break; 1153 1.1 christos } 1154 1.1 christos /* linux32_sys_chown16 */ 1155 1.1 christos case 182: { 1156 1.3 christos const struct linux32_sys_chown16_args *p = params; 1157 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1158 1.1 christos iarg[1] = SCARG(p, uid); /* linux32_uid16_t */ 1159 1.1 christos iarg[2] = SCARG(p, gid); /* linux32_gid16_t */ 1160 1.1 christos *n_args = 3; 1161 1.1 christos break; 1162 1.1 christos } 1163 1.1 christos /* netbsd32___getcwd */ 1164 1.1 christos case 183: { 1165 1.3 christos const struct netbsd32___getcwd_args *p = params; 1166 1.1 christos uarg[0] = (intptr_t) SCARG(p, bufp).i32; /* netbsd32_charp */ 1167 1.1 christos iarg[1] = SCARG(p, length); /* netbsd32_size_t */ 1168 1.1 christos *n_args = 2; 1169 1.1 christos break; 1170 1.1 christos } 1171 1.1 christos /* sys___vfork14 */ 1172 1.1 christos case 190: { 1173 1.1 christos *n_args = 0; 1174 1.1 christos break; 1175 1.1 christos } 1176 1.1 christos /* linux32_sys_ugetrlimit */ 1177 1.1 christos case 191: { 1178 1.3 christos const struct linux32_sys_ugetrlimit_args *p = params; 1179 1.1 christos iarg[0] = SCARG(p, which); /* int */ 1180 1.1 christos uarg[1] = (intptr_t) SCARG(p, rlp).i32; /* netbsd32_orlimitp_t */ 1181 1.1 christos *n_args = 2; 1182 1.1 christos break; 1183 1.1 christos } 1184 1.1 christos /* linux32_sys_mmap2 */ 1185 1.1 christos case 192: { 1186 1.3 christos const struct linux32_sys_mmap2_args *p = params; 1187 1.1 christos iarg[0] = SCARG(p, addr); /* netbsd32_u_long */ 1188 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 1189 1.1 christos iarg[2] = SCARG(p, prot); /* int */ 1190 1.1 christos iarg[3] = SCARG(p, flags); /* int */ 1191 1.1 christos iarg[4] = SCARG(p, fd); /* int */ 1192 1.1 christos iarg[5] = SCARG(p, offset); /* linux32_off_t */ 1193 1.1 christos *n_args = 6; 1194 1.1 christos break; 1195 1.1 christos } 1196 1.1 christos /* linux32_sys_truncate64 */ 1197 1.1 christos case 193: { 1198 1.3 christos const struct linux32_sys_truncate64_args *p = params; 1199 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1200 1.1 christos uarg[1] = SCARG(p, lenlo); /* uint32_t */ 1201 1.1 christos uarg[2] = SCARG(p, lenhi); /* uint32_t */ 1202 1.1 christos *n_args = 3; 1203 1.1 christos break; 1204 1.1 christos } 1205 1.1 christos /* linux32_sys_ftruncate64 */ 1206 1.1 christos case 194: { 1207 1.3 christos const struct linux32_sys_ftruncate64_args *p = params; 1208 1.1 christos uarg[0] = SCARG(p, fd); /* unsigned int */ 1209 1.1 christos uarg[1] = SCARG(p, lenlo); /* uint32_t */ 1210 1.1 christos uarg[2] = SCARG(p, lenhi); /* uint32_t */ 1211 1.1 christos *n_args = 3; 1212 1.1 christos break; 1213 1.1 christos } 1214 1.1 christos /* linux32_sys_stat64 */ 1215 1.1 christos case 195: { 1216 1.3 christos const struct linux32_sys_stat64_args *p = params; 1217 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1218 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_stat64p */ 1219 1.1 christos *n_args = 2; 1220 1.1 christos break; 1221 1.1 christos } 1222 1.1 christos /* linux32_sys_lstat64 */ 1223 1.1 christos case 196: { 1224 1.3 christos const struct linux32_sys_lstat64_args *p = params; 1225 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1226 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_stat64p */ 1227 1.1 christos *n_args = 2; 1228 1.1 christos break; 1229 1.1 christos } 1230 1.1 christos /* linux32_sys_fstat64 */ 1231 1.1 christos case 197: { 1232 1.3 christos const struct linux32_sys_fstat64_args *p = params; 1233 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1234 1.1 christos uarg[1] = (intptr_t) SCARG(p, sp).i32; /* linux32_stat64p */ 1235 1.1 christos *n_args = 2; 1236 1.1 christos break; 1237 1.1 christos } 1238 1.1 christos /* netbsd32___posix_lchown */ 1239 1.1 christos case 198: { 1240 1.3 christos const struct netbsd32___posix_lchown_args *p = params; 1241 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1242 1.1 christos uarg[1] = SCARG(p, uid); /* uid_t */ 1243 1.1 christos iarg[2] = SCARG(p, gid); /* gid_t */ 1244 1.1 christos *n_args = 3; 1245 1.1 christos break; 1246 1.1 christos } 1247 1.1 christos /* sys_getuid */ 1248 1.1 christos case 199: { 1249 1.1 christos *n_args = 0; 1250 1.1 christos break; 1251 1.1 christos } 1252 1.1 christos /* sys_getgid */ 1253 1.1 christos case 200: { 1254 1.1 christos *n_args = 0; 1255 1.1 christos break; 1256 1.1 christos } 1257 1.1 christos /* sys_geteuid */ 1258 1.1 christos case 201: { 1259 1.1 christos *n_args = 0; 1260 1.1 christos break; 1261 1.1 christos } 1262 1.1 christos /* sys_getegid */ 1263 1.1 christos case 202: { 1264 1.1 christos *n_args = 0; 1265 1.1 christos break; 1266 1.1 christos } 1267 1.1 christos /* netbsd32_setreuid */ 1268 1.1 christos case 203: { 1269 1.3 christos const struct netbsd32_setreuid_args *p = params; 1270 1.1 christos uarg[0] = SCARG(p, ruid); /* uid_t */ 1271 1.1 christos uarg[1] = SCARG(p, euid); /* uid_t */ 1272 1.1 christos *n_args = 2; 1273 1.1 christos break; 1274 1.1 christos } 1275 1.1 christos /* netbsd32_setregid */ 1276 1.1 christos case 204: { 1277 1.3 christos const struct netbsd32_setregid_args *p = params; 1278 1.1 christos iarg[0] = SCARG(p, rgid); /* gid_t */ 1279 1.1 christos iarg[1] = SCARG(p, egid); /* gid_t */ 1280 1.1 christos *n_args = 2; 1281 1.1 christos break; 1282 1.1 christos } 1283 1.1 christos /* netbsd32_getgroups */ 1284 1.1 christos case 205: { 1285 1.3 christos const struct netbsd32_getgroups_args *p = params; 1286 1.1 christos iarg[0] = SCARG(p, gidsetsize); /* int */ 1287 1.1 christos uarg[1] = (intptr_t) SCARG(p, gidset).i32; /* netbsd32_gid_tp */ 1288 1.1 christos *n_args = 2; 1289 1.1 christos break; 1290 1.1 christos } 1291 1.1 christos /* netbsd32_setgroups */ 1292 1.1 christos case 206: { 1293 1.3 christos const struct netbsd32_setgroups_args *p = params; 1294 1.1 christos iarg[0] = SCARG(p, gidsetsize); /* int */ 1295 1.1 christos uarg[1] = (intptr_t) SCARG(p, gidset).i32; /* netbsd32_gid_tp */ 1296 1.1 christos *n_args = 2; 1297 1.1 christos break; 1298 1.1 christos } 1299 1.1 christos /* netbsd32___posix_fchown */ 1300 1.1 christos case 207: { 1301 1.3 christos const struct netbsd32___posix_fchown_args *p = params; 1302 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1303 1.1 christos uarg[1] = SCARG(p, uid); /* uid_t */ 1304 1.1 christos iarg[2] = SCARG(p, gid); /* gid_t */ 1305 1.1 christos *n_args = 3; 1306 1.1 christos break; 1307 1.1 christos } 1308 1.1 christos /* linux32_sys_setresuid */ 1309 1.1 christos case 208: { 1310 1.3 christos const struct linux32_sys_setresuid_args *p = params; 1311 1.1 christos uarg[0] = SCARG(p, ruid); /* uid_t */ 1312 1.1 christos uarg[1] = SCARG(p, euid); /* uid_t */ 1313 1.1 christos uarg[2] = SCARG(p, suid); /* uid_t */ 1314 1.1 christos *n_args = 3; 1315 1.1 christos break; 1316 1.1 christos } 1317 1.1 christos /* linux32_sys_getresuid */ 1318 1.1 christos case 209: { 1319 1.3 christos const struct linux32_sys_getresuid_args *p = params; 1320 1.1 christos uarg[0] = (intptr_t) SCARG(p, ruid).i32; /* linux32_uidp_t */ 1321 1.1 christos uarg[1] = (intptr_t) SCARG(p, euid).i32; /* linux32_uidp_t */ 1322 1.1 christos uarg[2] = (intptr_t) SCARG(p, suid).i32; /* linux32_uidp_t */ 1323 1.1 christos *n_args = 3; 1324 1.1 christos break; 1325 1.1 christos } 1326 1.1 christos /* linux32_sys_setresgid */ 1327 1.1 christos case 210: { 1328 1.3 christos const struct linux32_sys_setresgid_args *p = params; 1329 1.1 christos iarg[0] = SCARG(p, rgid); /* gid_t */ 1330 1.1 christos iarg[1] = SCARG(p, egid); /* gid_t */ 1331 1.1 christos iarg[2] = SCARG(p, sgid); /* gid_t */ 1332 1.1 christos *n_args = 3; 1333 1.1 christos break; 1334 1.1 christos } 1335 1.1 christos /* linux32_sys_getresgid */ 1336 1.1 christos case 211: { 1337 1.3 christos const struct linux32_sys_getresgid_args *p = params; 1338 1.1 christos uarg[0] = (intptr_t) SCARG(p, rgid).i32; /* linux32_gidp_t */ 1339 1.1 christos uarg[1] = (intptr_t) SCARG(p, egid).i32; /* linux32_gidp_t */ 1340 1.1 christos uarg[2] = (intptr_t) SCARG(p, sgid).i32; /* linux32_gidp_t */ 1341 1.1 christos *n_args = 3; 1342 1.1 christos break; 1343 1.1 christos } 1344 1.1 christos /* netbsd32___posix_chown */ 1345 1.1 christos case 212: { 1346 1.3 christos const struct netbsd32___posix_chown_args *p = params; 1347 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1348 1.1 christos uarg[1] = SCARG(p, uid); /* uid_t */ 1349 1.1 christos iarg[2] = SCARG(p, gid); /* gid_t */ 1350 1.1 christos *n_args = 3; 1351 1.1 christos break; 1352 1.1 christos } 1353 1.1 christos /* netbsd32_setuid */ 1354 1.1 christos case 213: { 1355 1.3 christos const struct netbsd32_setuid_args *p = params; 1356 1.1 christos uarg[0] = SCARG(p, uid); /* uid_t */ 1357 1.1 christos *n_args = 1; 1358 1.1 christos break; 1359 1.1 christos } 1360 1.1 christos /* netbsd32_setgid */ 1361 1.1 christos case 214: { 1362 1.3 christos const struct netbsd32_setgid_args *p = params; 1363 1.1 christos iarg[0] = SCARG(p, gid); /* gid_t */ 1364 1.1 christos *n_args = 1; 1365 1.1 christos break; 1366 1.1 christos } 1367 1.1 christos /* linux32_sys_setfsuid */ 1368 1.1 christos case 215: { 1369 1.3 christos const struct linux32_sys_setfsuid_args *p = params; 1370 1.1 christos uarg[0] = SCARG(p, uid); /* uid_t */ 1371 1.1 christos *n_args = 1; 1372 1.1 christos break; 1373 1.1 christos } 1374 1.1 christos /* linux32_sys_setfsgid */ 1375 1.1 christos case 216: { 1376 1.3 christos const struct linux32_sys_setfsgid_args *p = params; 1377 1.1 christos iarg[0] = SCARG(p, gid); /* gid_t */ 1378 1.1 christos *n_args = 1; 1379 1.1 christos break; 1380 1.1 christos } 1381 1.1 christos /* netbsd32_mincore */ 1382 1.1 christos case 218: { 1383 1.3 christos const struct netbsd32_mincore_args *p = params; 1384 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 1385 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 1386 1.1 christos uarg[2] = (intptr_t) SCARG(p, vec).i32; /* netbsd32_charp */ 1387 1.1 christos *n_args = 3; 1388 1.1 christos break; 1389 1.1 christos } 1390 1.1 christos /* netbsd32_madvise */ 1391 1.1 christos case 219: { 1392 1.3 christos const struct netbsd32_madvise_args *p = params; 1393 1.1 christos uarg[0] = (intptr_t) SCARG(p, addr).i32; /* netbsd32_voidp */ 1394 1.1 christos iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 1395 1.1 christos iarg[2] = SCARG(p, behav); /* int */ 1396 1.1 christos *n_args = 3; 1397 1.1 christos break; 1398 1.1 christos } 1399 1.1 christos /* linux32_sys_getdents64 */ 1400 1.1 christos case 220: { 1401 1.3 christos const struct linux32_sys_getdents64_args *p = params; 1402 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1403 1.1 christos uarg[1] = (intptr_t) SCARG(p, dent).i32; /* linux32_dirent64p_t */ 1404 1.1 christos uarg[2] = SCARG(p, count); /* unsigned int */ 1405 1.1 christos *n_args = 3; 1406 1.1 christos break; 1407 1.1 christos } 1408 1.1 christos #define linux32_sys_fcntl64 linux32_sys_fcntl 1409 1.1 christos #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 1410 1.1 christos /* linux32_sys_fcntl64 */ 1411 1.1 christos case 221: { 1412 1.3 christos const struct linux32_sys_fcntl64_args *p = params; 1413 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1414 1.1 christos iarg[1] = SCARG(p, cmd); /* int */ 1415 1.1 christos uarg[2] = (intptr_t) SCARG(p, arg).i32; /* netbsd32_voidp */ 1416 1.1 christos *n_args = 3; 1417 1.1 christos break; 1418 1.1 christos } 1419 1.1 christos /* linux_sys_gettid */ 1420 1.1 christos case 224: { 1421 1.1 christos *n_args = 0; 1422 1.1 christos break; 1423 1.1 christos } 1424 1.1 christos /* netbsd32_setxattr */ 1425 1.1 christos case 226: { 1426 1.3 christos const struct netbsd32_setxattr_args *p = params; 1427 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1428 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1429 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1430 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1431 1.1 christos iarg[4] = SCARG(p, flags); /* int */ 1432 1.1 christos *n_args = 5; 1433 1.1 christos break; 1434 1.1 christos } 1435 1.1 christos /* netbsd32_lsetxattr */ 1436 1.1 christos case 227: { 1437 1.3 christos const struct netbsd32_lsetxattr_args *p = params; 1438 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1439 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1440 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1441 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1442 1.1 christos iarg[4] = SCARG(p, flags); /* int */ 1443 1.1 christos *n_args = 5; 1444 1.1 christos break; 1445 1.1 christos } 1446 1.1 christos /* netbsd32_fsetxattr */ 1447 1.1 christos case 228: { 1448 1.3 christos const struct netbsd32_fsetxattr_args *p = params; 1449 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1450 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1451 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1452 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1453 1.1 christos iarg[4] = SCARG(p, flags); /* int */ 1454 1.1 christos *n_args = 5; 1455 1.1 christos break; 1456 1.1 christos } 1457 1.1 christos /* netbsd32_getxattr */ 1458 1.1 christos case 229: { 1459 1.3 christos const struct netbsd32_getxattr_args *p = params; 1460 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1461 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1462 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1463 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1464 1.1 christos *n_args = 4; 1465 1.1 christos break; 1466 1.1 christos } 1467 1.1 christos /* netbsd32_lgetxattr */ 1468 1.1 christos case 230: { 1469 1.3 christos const struct netbsd32_lgetxattr_args *p = params; 1470 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1471 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1472 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1473 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1474 1.1 christos *n_args = 4; 1475 1.1 christos break; 1476 1.1 christos } 1477 1.1 christos /* netbsd32_fgetxattr */ 1478 1.1 christos case 231: { 1479 1.3 christos const struct netbsd32_fgetxattr_args *p = params; 1480 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1481 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1482 1.1 christos uarg[2] = (intptr_t) SCARG(p, value).i32; /* netbsd32_voidp */ 1483 1.1 christos iarg[3] = SCARG(p, size); /* netbsd32_size_t */ 1484 1.1 christos *n_args = 4; 1485 1.1 christos break; 1486 1.1 christos } 1487 1.1 christos /* netbsd32_listxattr */ 1488 1.1 christos case 232: { 1489 1.3 christos const struct netbsd32_listxattr_args *p = params; 1490 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1491 1.1 christos uarg[1] = (intptr_t) SCARG(p, list).i32; /* netbsd32_charp */ 1492 1.1 christos iarg[2] = SCARG(p, size); /* netbsd32_size_t */ 1493 1.1 christos *n_args = 3; 1494 1.1 christos break; 1495 1.1 christos } 1496 1.1 christos /* netbsd32_llistxattr */ 1497 1.1 christos case 233: { 1498 1.3 christos const struct netbsd32_llistxattr_args *p = params; 1499 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1500 1.1 christos uarg[1] = (intptr_t) SCARG(p, list).i32; /* netbsd32_charp */ 1501 1.1 christos iarg[2] = SCARG(p, size); /* netbsd32_size_t */ 1502 1.1 christos *n_args = 3; 1503 1.1 christos break; 1504 1.1 christos } 1505 1.1 christos /* netbsd32_flistxattr */ 1506 1.1 christos case 234: { 1507 1.3 christos const struct netbsd32_flistxattr_args *p = params; 1508 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1509 1.1 christos uarg[1] = (intptr_t) SCARG(p, list).i32; /* netbsd32_charp */ 1510 1.1 christos iarg[2] = SCARG(p, size); /* netbsd32_size_t */ 1511 1.1 christos *n_args = 3; 1512 1.1 christos break; 1513 1.1 christos } 1514 1.1 christos /* netbsd32_removexattr */ 1515 1.1 christos case 235: { 1516 1.3 christos const struct netbsd32_removexattr_args *p = params; 1517 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1518 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1519 1.1 christos *n_args = 2; 1520 1.1 christos break; 1521 1.1 christos } 1522 1.1 christos /* netbsd32_lremovexattr */ 1523 1.1 christos case 236: { 1524 1.3 christos const struct netbsd32_lremovexattr_args *p = params; 1525 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1526 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1527 1.1 christos *n_args = 2; 1528 1.1 christos break; 1529 1.1 christos } 1530 1.1 christos /* netbsd32_fremovexattr */ 1531 1.1 christos case 237: { 1532 1.3 christos const struct netbsd32_fremovexattr_args *p = params; 1533 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1534 1.1 christos uarg[1] = (intptr_t) SCARG(p, name).i32; /* netbsd32_charp */ 1535 1.1 christos *n_args = 2; 1536 1.1 christos break; 1537 1.1 christos } 1538 1.1 christos /* linux32_sys_tkill */ 1539 1.1 christos case 238: { 1540 1.3 christos const struct linux32_sys_tkill_args *p = params; 1541 1.1 christos iarg[0] = SCARG(p, tid); /* int */ 1542 1.1 christos iarg[1] = SCARG(p, sig); /* int */ 1543 1.1 christos *n_args = 2; 1544 1.1 christos break; 1545 1.1 christos } 1546 1.1 christos /* linux32_sys_futex */ 1547 1.1 christos case 240: { 1548 1.3 christos const struct linux32_sys_futex_args *p = params; 1549 1.1 christos uarg[0] = (intptr_t) SCARG(p, uaddr).i32; /* linux32_intp_t */ 1550 1.1 christos iarg[1] = SCARG(p, op); /* int */ 1551 1.1 christos iarg[2] = SCARG(p, val); /* int */ 1552 1.1 christos uarg[3] = (intptr_t) SCARG(p, timeout).i32; /* linux32_timespecp_t */ 1553 1.1 christos uarg[4] = (intptr_t) SCARG(p, uaddr2).i32; /* linux32_intp_t */ 1554 1.1 christos iarg[5] = SCARG(p, val3); /* int */ 1555 1.1 christos *n_args = 6; 1556 1.1 christos break; 1557 1.1 christos } 1558 1.1 christos /* linux32_sys_sched_setaffinity */ 1559 1.1 christos case 241: { 1560 1.3 christos const struct linux32_sys_sched_setaffinity_args *p = params; 1561 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 1562 1.1 christos uarg[1] = SCARG(p, len); /* unsigned int */ 1563 1.1 christos uarg[2] = (intptr_t) SCARG(p, mask).i32; /* linux32_ulongp_t */ 1564 1.1 christos *n_args = 3; 1565 1.1 christos break; 1566 1.1 christos } 1567 1.1 christos /* linux32_sys_sched_getaffinity */ 1568 1.1 christos case 242: { 1569 1.3 christos const struct linux32_sys_sched_getaffinity_args *p = params; 1570 1.1 christos iarg[0] = SCARG(p, pid); /* pid_t */ 1571 1.1 christos uarg[1] = SCARG(p, len); /* unsigned int */ 1572 1.1 christos uarg[2] = (intptr_t) SCARG(p, mask).i32; /* linux32_ulongp_t */ 1573 1.1 christos *n_args = 3; 1574 1.1 christos break; 1575 1.1 christos } 1576 1.1 christos /* linux32_sys_set_thread_area */ 1577 1.1 christos case 243: { 1578 1.3 christos const struct linux32_sys_set_thread_area_args *p = params; 1579 1.1 christos uarg[0] = (intptr_t) SCARG(p, desc).i32; /* linux32_user_descp_t */ 1580 1.1 christos *n_args = 1; 1581 1.1 christos break; 1582 1.1 christos } 1583 1.1 christos /* linux32_sys_get_thread_area */ 1584 1.1 christos case 244: { 1585 1.3 christos const struct linux32_sys_get_thread_area_args *p = params; 1586 1.1 christos uarg[0] = (intptr_t) SCARG(p, desc).i32; /* linux32_user_descp_t */ 1587 1.1 christos *n_args = 1; 1588 1.1 christos break; 1589 1.1 christos } 1590 1.1 christos /* linux32_sys_fadvise64 */ 1591 1.1 christos case 250: { 1592 1.3 christos const struct linux32_sys_fadvise64_args *p = params; 1593 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1594 1.1 christos uarg[1] = SCARG(p, offlo); /* uint32_t */ 1595 1.1 christos uarg[2] = SCARG(p, offhi); /* uint32_t */ 1596 1.1 christos iarg[3] = SCARG(p, len); /* linux32_size_t */ 1597 1.1 christos iarg[4] = SCARG(p, advice); /* int */ 1598 1.1 christos *n_args = 5; 1599 1.1 christos break; 1600 1.1 christos } 1601 1.1 christos /* linux32_sys_exit_group */ 1602 1.1 christos case 252: { 1603 1.3 christos const struct linux32_sys_exit_group_args *p = params; 1604 1.1 christos iarg[0] = SCARG(p, error_code); /* int */ 1605 1.1 christos *n_args = 1; 1606 1.1 christos break; 1607 1.1 christos } 1608 1.1 christos /* linux32_sys_set_tid_address */ 1609 1.1 christos case 258: { 1610 1.3 christos const struct linux32_sys_set_tid_address_args *p = params; 1611 1.1 christos uarg[0] = (intptr_t) SCARG(p, tid).i32; /* linux32_intp_t */ 1612 1.1 christos *n_args = 1; 1613 1.1 christos break; 1614 1.1 christos } 1615 1.9 thorpej /* linux32_sys_timer_create */ 1616 1.9 thorpej case 259: { 1617 1.9 thorpej const struct linux32_sys_timer_create_args *p = params; 1618 1.9 thorpej iarg[0] = SCARG(p, clockid); /* clockid_t */ 1619 1.9 thorpej uarg[1] = (intptr_t) SCARG(p, evp); /* struct linux32_sigevent * */ 1620 1.9 thorpej uarg[2] = (intptr_t) SCARG(p, timerid); /* timer_t * */ 1621 1.9 thorpej *n_args = 3; 1622 1.9 thorpej break; 1623 1.9 thorpej } 1624 1.9 thorpej /* linux32_sys_timer_settime */ 1625 1.9 thorpej case 260: { 1626 1.9 thorpej const struct linux32_sys_timer_settime_args *p = params; 1627 1.9 thorpej iarg[0] = SCARG(p, timerid); /* timer_t */ 1628 1.9 thorpej iarg[1] = SCARG(p, flags); /* int */ 1629 1.9 thorpej uarg[2] = (intptr_t) SCARG(p, tim); /* const struct linux32_itimerspec * */ 1630 1.9 thorpej uarg[3] = (intptr_t) SCARG(p, otim); /* struct linux32_itimerspec * */ 1631 1.9 thorpej *n_args = 4; 1632 1.9 thorpej break; 1633 1.9 thorpej } 1634 1.9 thorpej /* linux32_sys_timer_gettime */ 1635 1.9 thorpej case 261: { 1636 1.9 thorpej const struct linux32_sys_timer_gettime_args *p = params; 1637 1.9 thorpej iarg[0] = SCARG(p, timerid); /* timer_t */ 1638 1.9 thorpej uarg[1] = (intptr_t) SCARG(p, tim); /* struct linux32_itimerspec * */ 1639 1.9 thorpej *n_args = 2; 1640 1.9 thorpej break; 1641 1.9 thorpej } 1642 1.9 thorpej /* sys_timer_getoverrun */ 1643 1.9 thorpej case 262: { 1644 1.9 thorpej const struct sys_timer_getoverrun_args *p = params; 1645 1.9 thorpej iarg[0] = SCARG(p, timerid); /* timer_t */ 1646 1.9 thorpej *n_args = 1; 1647 1.9 thorpej break; 1648 1.9 thorpej } 1649 1.9 thorpej /* sys_timer_delete */ 1650 1.9 thorpej case 263: { 1651 1.9 thorpej const struct sys_timer_delete_args *p = params; 1652 1.9 thorpej iarg[0] = SCARG(p, timerid); /* timer_t */ 1653 1.9 thorpej *n_args = 1; 1654 1.9 thorpej break; 1655 1.9 thorpej } 1656 1.1 christos /* linux32_sys_clock_settime */ 1657 1.1 christos case 264: { 1658 1.3 christos const struct linux32_sys_clock_settime_args *p = params; 1659 1.1 christos iarg[0] = SCARG(p, which); /* clockid_t */ 1660 1.1 christos uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */ 1661 1.1 christos *n_args = 2; 1662 1.1 christos break; 1663 1.1 christos } 1664 1.1 christos /* linux32_sys_clock_gettime */ 1665 1.1 christos case 265: { 1666 1.3 christos const struct linux32_sys_clock_gettime_args *p = params; 1667 1.1 christos iarg[0] = SCARG(p, which); /* clockid_t */ 1668 1.1 christos uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */ 1669 1.1 christos *n_args = 2; 1670 1.1 christos break; 1671 1.1 christos } 1672 1.1 christos /* linux32_sys_clock_getres */ 1673 1.1 christos case 266: { 1674 1.3 christos const struct linux32_sys_clock_getres_args *p = params; 1675 1.1 christos iarg[0] = SCARG(p, which); /* clockid_t */ 1676 1.1 christos uarg[1] = (intptr_t) SCARG(p, tp).i32; /* linux32_timespecp_t */ 1677 1.1 christos *n_args = 2; 1678 1.1 christos break; 1679 1.1 christos } 1680 1.1 christos /* linux32_sys_clock_nanosleep */ 1681 1.1 christos case 267: { 1682 1.3 christos const struct linux32_sys_clock_nanosleep_args *p = params; 1683 1.1 christos iarg[0] = SCARG(p, which); /* clockid_t */ 1684 1.1 christos iarg[1] = SCARG(p, flags); /* int */ 1685 1.1 christos uarg[2] = (intptr_t) SCARG(p, rqtp).i32; /* linux32_timespecp_t */ 1686 1.1 christos uarg[3] = (intptr_t) SCARG(p, rmtp).i32; /* linux32_timespecp_t */ 1687 1.1 christos *n_args = 4; 1688 1.1 christos break; 1689 1.1 christos } 1690 1.1 christos /* linux32_sys_statfs64 */ 1691 1.1 christos case 268: { 1692 1.3 christos const struct linux32_sys_statfs64_args *p = params; 1693 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1694 1.1 christos iarg[1] = SCARG(p, sz); /* netbsd32_size_t */ 1695 1.1 christos uarg[2] = (intptr_t) SCARG(p, sp).i32; /* linux32_statfs64p */ 1696 1.1 christos *n_args = 3; 1697 1.1 christos break; 1698 1.1 christos } 1699 1.1 christos /* linux32_sys_fstatfs64 */ 1700 1.1 christos case 269: { 1701 1.3 christos const struct linux32_sys_fstatfs64_args *p = params; 1702 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1703 1.1 christos iarg[1] = SCARG(p, sz); /* netbsd32_size_t */ 1704 1.1 christos uarg[2] = (intptr_t) SCARG(p, sp).i32; /* linux32_statfs64p */ 1705 1.1 christos *n_args = 3; 1706 1.1 christos break; 1707 1.1 christos } 1708 1.1 christos /* linux32_sys_tgkill */ 1709 1.1 christos case 270: { 1710 1.3 christos const struct linux32_sys_tgkill_args *p = params; 1711 1.1 christos iarg[0] = SCARG(p, tgid); /* int */ 1712 1.1 christos iarg[1] = SCARG(p, tid); /* int */ 1713 1.1 christos iarg[2] = SCARG(p, sig); /* int */ 1714 1.1 christos *n_args = 3; 1715 1.1 christos break; 1716 1.1 christos } 1717 1.1 christos /* compat_50_netbsd32_utimes */ 1718 1.1 christos case 271: { 1719 1.3 christos const struct compat_50_netbsd32_utimes_args *p = params; 1720 1.1 christos uarg[0] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1721 1.1 christos uarg[1] = (intptr_t) SCARG(p, tptr).i32; /* netbsd32_timeval50p_t */ 1722 1.1 christos *n_args = 2; 1723 1.1 christos break; 1724 1.1 christos } 1725 1.1 christos /* linux32_sys_fadvise64_64 */ 1726 1.1 christos case 272: { 1727 1.3 christos const struct linux32_sys_fadvise64_64_args *p = params; 1728 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1729 1.1 christos uarg[1] = SCARG(p, offlo); /* uint32_t */ 1730 1.1 christos uarg[2] = SCARG(p, offhi); /* uint32_t */ 1731 1.1 christos uarg[3] = SCARG(p, lenlo); /* uint32_t */ 1732 1.1 christos uarg[4] = SCARG(p, lenhi); /* uint32_t */ 1733 1.1 christos iarg[5] = SCARG(p, advice); /* int */ 1734 1.1 christos *n_args = 6; 1735 1.1 christos break; 1736 1.1 christos } 1737 1.1 christos /* linux32_sys_openat */ 1738 1.1 christos case 295: { 1739 1.3 christos const struct linux32_sys_openat_args *p = params; 1740 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1741 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1742 1.1 christos iarg[2] = SCARG(p, flags); /* int */ 1743 1.1 christos iarg[3] = SCARG(p, mode); /* linux_umode_t */ 1744 1.1 christos *n_args = 4; 1745 1.1 christos break; 1746 1.1 christos } 1747 1.1 christos /* netbsd32_mkdirat */ 1748 1.1 christos case 296: { 1749 1.3 christos const struct netbsd32_mkdirat_args *p = params; 1750 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1751 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1752 1.1 christos iarg[2] = SCARG(p, mode); /* linux_umode_t */ 1753 1.1 christos *n_args = 3; 1754 1.1 christos break; 1755 1.1 christos } 1756 1.1 christos /* linux32_sys_mknodat */ 1757 1.1 christos case 297: { 1758 1.3 christos const struct linux32_sys_mknodat_args *p = params; 1759 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1760 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1761 1.1 christos iarg[2] = SCARG(p, mode); /* linux_umode_t */ 1762 1.1 christos uarg[3] = SCARG(p, dev); /* unsigned */ 1763 1.1 christos *n_args = 4; 1764 1.1 christos break; 1765 1.1 christos } 1766 1.1 christos /* linux32_sys_fchownat */ 1767 1.1 christos case 298: { 1768 1.3 christos const struct linux32_sys_fchownat_args *p = params; 1769 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1770 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1771 1.1 christos uarg[2] = SCARG(p, owner); /* uid_t */ 1772 1.1 christos iarg[3] = SCARG(p, group); /* gid_t */ 1773 1.1 christos iarg[4] = SCARG(p, flag); /* int */ 1774 1.1 christos *n_args = 5; 1775 1.1 christos break; 1776 1.1 christos } 1777 1.1 christos /* linux32_sys_fstatat64 */ 1778 1.1 christos case 300: { 1779 1.3 christos const struct linux32_sys_fstatat64_args *p = params; 1780 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1781 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1782 1.1 christos uarg[2] = (intptr_t) SCARG(p, sp).i32; /* linux32_stat64p */ 1783 1.1 christos iarg[3] = SCARG(p, flag); /* int */ 1784 1.1 christos *n_args = 4; 1785 1.1 christos break; 1786 1.1 christos } 1787 1.1 christos /* linux32_sys_unlinkat */ 1788 1.1 christos case 301: { 1789 1.3 christos const struct linux32_sys_unlinkat_args *p = params; 1790 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1791 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1792 1.1 christos iarg[2] = SCARG(p, flag); /* int */ 1793 1.1 christos *n_args = 3; 1794 1.1 christos break; 1795 1.1 christos } 1796 1.1 christos /* netbsd32_renameat */ 1797 1.1 christos case 302: { 1798 1.3 christos const struct netbsd32_renameat_args *p = params; 1799 1.1 christos iarg[0] = SCARG(p, fromfd); /* int */ 1800 1.1 christos uarg[1] = (intptr_t) SCARG(p, from).i32; /* netbsd32_charp */ 1801 1.1 christos iarg[2] = SCARG(p, tofd); /* int */ 1802 1.1 christos uarg[3] = (intptr_t) SCARG(p, to).i32; /* netbsd32_charp */ 1803 1.1 christos *n_args = 4; 1804 1.1 christos break; 1805 1.1 christos } 1806 1.1 christos /* linux32_sys_linkat */ 1807 1.1 christos case 303: { 1808 1.3 christos const struct linux32_sys_linkat_args *p = params; 1809 1.1 christos iarg[0] = SCARG(p, fd1); /* int */ 1810 1.1 christos uarg[1] = (intptr_t) SCARG(p, name1).i32; /* netbsd32_charp */ 1811 1.1 christos iarg[2] = SCARG(p, fd2); /* int */ 1812 1.1 christos uarg[3] = (intptr_t) SCARG(p, name2).i32; /* netbsd32_charp */ 1813 1.1 christos iarg[4] = SCARG(p, flags); /* int */ 1814 1.1 christos *n_args = 5; 1815 1.1 christos break; 1816 1.1 christos } 1817 1.1 christos /* netbsd32_symlinkat */ 1818 1.1 christos case 304: { 1819 1.3 christos const struct netbsd32_symlinkat_args *p = params; 1820 1.1 christos uarg[0] = (intptr_t) SCARG(p, path1).i32; /* netbsd32_charp */ 1821 1.1 christos iarg[1] = SCARG(p, fd); /* int */ 1822 1.1 christos uarg[2] = (intptr_t) SCARG(p, path2).i32; /* netbsd32_charp */ 1823 1.1 christos *n_args = 3; 1824 1.1 christos break; 1825 1.1 christos } 1826 1.1 christos /* netbsd32_readlinkat */ 1827 1.1 christos case 305: { 1828 1.3 christos const struct netbsd32_readlinkat_args *p = params; 1829 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1830 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1831 1.1 christos uarg[2] = (intptr_t) SCARG(p, buf).i32; /* netbsd32_charp */ 1832 1.1 christos iarg[3] = SCARG(p, bufsize); /* linux32_size_t */ 1833 1.1 christos *n_args = 4; 1834 1.1 christos break; 1835 1.1 christos } 1836 1.1 christos /* linux32_sys_fchmodat */ 1837 1.1 christos case 306: { 1838 1.3 christos const struct linux32_sys_fchmodat_args *p = params; 1839 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1840 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1841 1.1 christos iarg[2] = SCARG(p, mode); /* linux_umode_t */ 1842 1.1 christos *n_args = 3; 1843 1.1 christos break; 1844 1.1 christos } 1845 1.1 christos /* linux32_sys_faccessat */ 1846 1.1 christos case 307: { 1847 1.3 christos const struct linux32_sys_faccessat_args *p = params; 1848 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1849 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1850 1.1 christos iarg[2] = SCARG(p, amode); /* int */ 1851 1.1 christos *n_args = 3; 1852 1.1 christos break; 1853 1.1 christos } 1854 1.13 ryo /* linux32_sys_pselect6 */ 1855 1.13 ryo case 308: { 1856 1.13 ryo const struct linux32_sys_pselect6_args *p = params; 1857 1.13 ryo iarg[0] = SCARG(p, nfds); /* int */ 1858 1.13 ryo uarg[1] = (intptr_t) SCARG(p, readfds).i32; /* netbsd32_fd_setp_t */ 1859 1.13 ryo uarg[2] = (intptr_t) SCARG(p, writefds).i32; /* netbsd32_fd_setp_t */ 1860 1.13 ryo uarg[3] = (intptr_t) SCARG(p, exceptfds).i32; /* netbsd32_fd_setp_t */ 1861 1.13 ryo uarg[4] = (intptr_t) SCARG(p, timeout).i32; /* linux32_timespecp_t */ 1862 1.13 ryo uarg[5] = (intptr_t) SCARG(p, ss).i32; /* linux32_sized_sigsetp_t */ 1863 1.13 ryo *n_args = 6; 1864 1.13 ryo break; 1865 1.13 ryo } 1866 1.1 christos /* linux32_sys_ppoll */ 1867 1.1 christos case 309: { 1868 1.3 christos const struct linux32_sys_ppoll_args *p = params; 1869 1.1 christos uarg[0] = (intptr_t) SCARG(p, fds).i32; /* netbsd32_pollfdp_t */ 1870 1.1 christos uarg[1] = SCARG(p, nfds); /* u_int */ 1871 1.1 christos uarg[2] = (intptr_t) SCARG(p, timeout).i32; /* linux32_timespecp_t */ 1872 1.1 christos uarg[3] = (intptr_t) SCARG(p, sigset).i32; /* linux32_sigsetp_t */ 1873 1.1 christos *n_args = 4; 1874 1.1 christos break; 1875 1.1 christos } 1876 1.8 thorpej /* netbsd32___futex_set_robust_list */ 1877 1.1 christos case 311: { 1878 1.8 thorpej const struct netbsd32___futex_set_robust_list_args *p = params; 1879 1.8 thorpej uarg[0] = (intptr_t) SCARG(p, head).i32; /* netbsd32_voidp */ 1880 1.8 thorpej iarg[1] = SCARG(p, len); /* netbsd32_size_t */ 1881 1.1 christos *n_args = 2; 1882 1.1 christos break; 1883 1.1 christos } 1884 1.8 thorpej /* netbsd32___futex_get_robust_list */ 1885 1.1 christos case 312: { 1886 1.8 thorpej const struct netbsd32___futex_get_robust_list_args *p = params; 1887 1.8 thorpej iarg[0] = SCARG(p, lwpid); /* lwpid_t */ 1888 1.8 thorpej uarg[1] = (intptr_t) SCARG(p, headp).i32; /* netbsd32_voidp */ 1889 1.8 thorpej uarg[2] = (intptr_t) SCARG(p, lenp).i32; /* netbsd32_size_tp */ 1890 1.1 christos *n_args = 3; 1891 1.1 christos break; 1892 1.1 christos } 1893 1.1 christos /* linux32_sys_utimensat */ 1894 1.1 christos case 320: { 1895 1.3 christos const struct linux32_sys_utimensat_args *p = params; 1896 1.1 christos iarg[0] = SCARG(p, fd); /* int */ 1897 1.1 christos uarg[1] = (intptr_t) SCARG(p, path).i32; /* netbsd32_charp */ 1898 1.1 christos uarg[2] = (intptr_t) SCARG(p, times).i32; /* linux32_timespecp_t */ 1899 1.1 christos iarg[3] = SCARG(p, flag); /* int */ 1900 1.1 christos *n_args = 4; 1901 1.1 christos break; 1902 1.1 christos } 1903 1.10 thorpej /* linux_sys_timerfd_create */ 1904 1.10 thorpej case 322: { 1905 1.10 thorpej const struct linux_sys_timerfd_create_args *p = params; 1906 1.10 thorpej iarg[0] = SCARG(p, clock_id); /* clockid_t */ 1907 1.10 thorpej iarg[1] = SCARG(p, flags); /* int */ 1908 1.10 thorpej *n_args = 2; 1909 1.10 thorpej break; 1910 1.10 thorpej } 1911 1.11 thorpej /* linux32_sys_eventfd */ 1912 1.11 thorpej case 323: { 1913 1.11 thorpej const struct linux32_sys_eventfd_args *p = params; 1914 1.11 thorpej uarg[0] = SCARG(p, initval); /* unsigned int */ 1915 1.11 thorpej *n_args = 1; 1916 1.11 thorpej break; 1917 1.11 thorpej } 1918 1.7 jdolecek /* linux32_sys_fallocate */ 1919 1.7 jdolecek case 324: { 1920 1.7 jdolecek const struct linux32_sys_fallocate_args *p = params; 1921 1.7 jdolecek iarg[0] = SCARG(p, fd); /* int */ 1922 1.7 jdolecek iarg[1] = SCARG(p, mode); /* int */ 1923 1.7 jdolecek iarg[2] = SCARG(p, offset); /* off_t */ 1924 1.7 jdolecek iarg[3] = SCARG(p, len); /* off_t */ 1925 1.7 jdolecek *n_args = 4; 1926 1.7 jdolecek break; 1927 1.7 jdolecek } 1928 1.10 thorpej /* linux32_sys_timerfd_settime */ 1929 1.10 thorpej case 325: { 1930 1.10 thorpej const struct linux32_sys_timerfd_settime_args *p = params; 1931 1.10 thorpej iarg[0] = SCARG(p, fd); /* int */ 1932 1.10 thorpej iarg[1] = SCARG(p, flags); /* int */ 1933 1.10 thorpej uarg[2] = (intptr_t) SCARG(p, tim); /* const struct linux32_itimerspec * */ 1934 1.10 thorpej uarg[3] = (intptr_t) SCARG(p, otim); /* struct linux32_itimerspec * */ 1935 1.10 thorpej *n_args = 4; 1936 1.10 thorpej break; 1937 1.10 thorpej } 1938 1.10 thorpej /* linux32_sys_timerfd_gettime */ 1939 1.10 thorpej case 326: { 1940 1.10 thorpej const struct linux32_sys_timerfd_gettime_args *p = params; 1941 1.10 thorpej iarg[0] = SCARG(p, fd); /* int */ 1942 1.10 thorpej uarg[1] = (intptr_t) SCARG(p, tim); /* struct linux32_itimerspec * */ 1943 1.10 thorpej *n_args = 2; 1944 1.10 thorpej break; 1945 1.10 thorpej } 1946 1.11 thorpej /* linux32_sys_eventfd2 */ 1947 1.11 thorpej case 328: { 1948 1.11 thorpej const struct linux32_sys_eventfd2_args *p = params; 1949 1.11 thorpej uarg[0] = SCARG(p, initval); /* unsigned int */ 1950 1.11 thorpej iarg[1] = SCARG(p, flags); /* int */ 1951 1.11 thorpej *n_args = 2; 1952 1.11 thorpej break; 1953 1.11 thorpej } 1954 1.1 christos /* linux32_sys_dup3 */ 1955 1.1 christos case 330: { 1956 1.3 christos const struct linux32_sys_dup3_args *p = params; 1957 1.1 christos iarg[0] = SCARG(p, from); /* int */ 1958 1.1 christos iarg[1] = SCARG(p, to); /* int */ 1959 1.1 christos iarg[2] = SCARG(p, flags); /* int */ 1960 1.1 christos *n_args = 3; 1961 1.1 christos break; 1962 1.1 christos } 1963 1.1 christos /* linux32_sys_pipe2 */ 1964 1.1 christos case 331: { 1965 1.3 christos const struct linux32_sys_pipe2_args *p = params; 1966 1.1 christos uarg[0] = (intptr_t) SCARG(p, fd).i32; /* netbsd32_intp */ 1967 1.1 christos iarg[1] = SCARG(p, flags); /* int */ 1968 1.1 christos *n_args = 2; 1969 1.1 christos break; 1970 1.1 christos } 1971 1.12 thorpej /* linux32_sys_preadv */ 1972 1.12 thorpej case 333: { 1973 1.12 thorpej const struct linux32_sys_preadv_args *p = params; 1974 1.12 thorpej iarg[0] = SCARG(p, fd); /* int */ 1975 1.12 thorpej uarg[1] = (intptr_t) SCARG(p, iovp).i32; /* const netbsd32_iovecp_t */ 1976 1.12 thorpej iarg[2] = SCARG(p, iovcnt); /* int */ 1977 1.12 thorpej iarg[3] = SCARG(p, off_lo); /* netbsd32_u_long */ 1978 1.12 thorpej iarg[4] = SCARG(p, off_hi); /* netbsd32_u_long */ 1979 1.12 thorpej *n_args = 5; 1980 1.12 thorpej break; 1981 1.12 thorpej } 1982 1.12 thorpej /* linux32_sys_pwritev */ 1983 1.12 thorpej case 334: { 1984 1.12 thorpej const struct linux32_sys_pwritev_args *p = params; 1985 1.12 thorpej iarg[0] = SCARG(p, fd); /* int */ 1986 1.12 thorpej uarg[1] = (intptr_t) SCARG(p, iovp).i32; /* const netbsd32_iovecp_t */ 1987 1.12 thorpej iarg[2] = SCARG(p, iovcnt); /* int */ 1988 1.12 thorpej iarg[3] = SCARG(p, off_lo); /* netbsd32_u_long */ 1989 1.12 thorpej iarg[4] = SCARG(p, off_hi); /* netbsd32_u_long */ 1990 1.12 thorpej *n_args = 5; 1991 1.12 thorpej break; 1992 1.12 thorpej } 1993 1.14 ryo /* linux32_sys_prlimit64 */ 1994 1.14 ryo case 340: { 1995 1.14 ryo const struct linux32_sys_prlimit64_args *p = params; 1996 1.14 ryo iarg[0] = SCARG(p, pid); /* pid_t */ 1997 1.14 ryo iarg[1] = SCARG(p, which); /* int */ 1998 1.14 ryo uarg[2] = (intptr_t) SCARG(p, new_rlp).i32; /* netbsd32_rlimitp_t */ 1999 1.14 ryo uarg[3] = (intptr_t) SCARG(p, old_rlp).i32; /* netbsd32_rlimitp_t */ 2000 1.14 ryo *n_args = 4; 2001 1.14 ryo break; 2002 1.14 ryo } 2003 1.1 christos default: 2004 1.1 christos *n_args = 0; 2005 1.1 christos break; 2006 1.1 christos }; 2007 1.1 christos } 2008 1.1 christos static void 2009 1.1 christos systrace_entry_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) 2010 1.1 christos { 2011 1.1 christos const char *p = NULL; 2012 1.1 christos switch (sysnum) { 2013 1.1 christos /* linux_sys_nosys */ 2014 1.1 christos case 0: 2015 1.1 christos break; 2016 1.1 christos /* linux32_sys_exit */ 2017 1.1 christos case 1: 2018 1.1 christos switch(ndx) { 2019 1.1 christos case 0: 2020 1.1 christos p = "int"; 2021 1.1 christos break; 2022 1.1 christos default: 2023 1.1 christos break; 2024 1.1 christos }; 2025 1.1 christos break; 2026 1.1 christos /* sys_fork */ 2027 1.1 christos case 2: 2028 1.1 christos break; 2029 1.1 christos /* netbsd32_read */ 2030 1.1 christos case 3: 2031 1.1 christos switch(ndx) { 2032 1.1 christos case 0: 2033 1.1 christos p = "int"; 2034 1.1 christos break; 2035 1.1 christos case 1: 2036 1.1 christos p = "netbsd32_voidp"; 2037 1.1 christos break; 2038 1.1 christos case 2: 2039 1.1 christos p = "netbsd32_size_t"; 2040 1.1 christos break; 2041 1.1 christos default: 2042 1.1 christos break; 2043 1.1 christos }; 2044 1.1 christos break; 2045 1.1 christos /* netbsd32_write */ 2046 1.1 christos case 4: 2047 1.1 christos switch(ndx) { 2048 1.1 christos case 0: 2049 1.1 christos p = "int"; 2050 1.1 christos break; 2051 1.1 christos case 1: 2052 1.1 christos p = "netbsd32_voidp"; 2053 1.1 christos break; 2054 1.1 christos case 2: 2055 1.1 christos p = "netbsd32_size_t"; 2056 1.1 christos break; 2057 1.1 christos default: 2058 1.1 christos break; 2059 1.1 christos }; 2060 1.1 christos break; 2061 1.1 christos /* linux32_sys_open */ 2062 1.1 christos case 5: 2063 1.1 christos switch(ndx) { 2064 1.1 christos case 0: 2065 1.1 christos p = "netbsd32_charp"; 2066 1.1 christos break; 2067 1.1 christos case 1: 2068 1.1 christos p = "int"; 2069 1.1 christos break; 2070 1.1 christos case 2: 2071 1.1 christos p = "linux_umode_t"; 2072 1.1 christos break; 2073 1.1 christos default: 2074 1.1 christos break; 2075 1.1 christos }; 2076 1.1 christos break; 2077 1.1 christos /* netbsd32_close */ 2078 1.1 christos case 6: 2079 1.1 christos switch(ndx) { 2080 1.1 christos case 0: 2081 1.1 christos p = "int"; 2082 1.1 christos break; 2083 1.1 christos default: 2084 1.1 christos break; 2085 1.1 christos }; 2086 1.1 christos break; 2087 1.1 christos /* linux32_sys_waitpid */ 2088 1.1 christos case 7: 2089 1.1 christos switch(ndx) { 2090 1.1 christos case 0: 2091 1.1 christos p = "int"; 2092 1.1 christos break; 2093 1.1 christos case 1: 2094 1.1 christos p = "netbsd32_intp"; 2095 1.1 christos break; 2096 1.1 christos case 2: 2097 1.1 christos p = "int"; 2098 1.1 christos break; 2099 1.1 christos default: 2100 1.1 christos break; 2101 1.1 christos }; 2102 1.1 christos break; 2103 1.1 christos /* linux32_sys_creat */ 2104 1.1 christos case 8: 2105 1.1 christos switch(ndx) { 2106 1.1 christos case 0: 2107 1.1 christos p = "netbsd32_charp"; 2108 1.1 christos break; 2109 1.1 christos case 1: 2110 1.1 christos p = "linux_umode_t"; 2111 1.1 christos break; 2112 1.1 christos default: 2113 1.1 christos break; 2114 1.1 christos }; 2115 1.1 christos break; 2116 1.1 christos /* netbsd32_link */ 2117 1.1 christos case 9: 2118 1.1 christos switch(ndx) { 2119 1.1 christos case 0: 2120 1.1 christos p = "netbsd32_charp"; 2121 1.1 christos break; 2122 1.1 christos case 1: 2123 1.1 christos p = "netbsd32_charp"; 2124 1.1 christos break; 2125 1.1 christos default: 2126 1.1 christos break; 2127 1.1 christos }; 2128 1.1 christos break; 2129 1.1 christos /* linux32_sys_unlink */ 2130 1.1 christos case 10: 2131 1.1 christos switch(ndx) { 2132 1.1 christos case 0: 2133 1.1 christos p = "netbsd32_charp"; 2134 1.1 christos break; 2135 1.1 christos default: 2136 1.1 christos break; 2137 1.1 christos }; 2138 1.1 christos break; 2139 1.1 christos /* netbsd32_execve */ 2140 1.1 christos case 11: 2141 1.1 christos switch(ndx) { 2142 1.1 christos case 0: 2143 1.1 christos p = "netbsd32_charp"; 2144 1.1 christos break; 2145 1.1 christos case 1: 2146 1.1 christos p = "netbsd32_charpp"; 2147 1.1 christos break; 2148 1.1 christos case 2: 2149 1.1 christos p = "netbsd32_charpp"; 2150 1.1 christos break; 2151 1.1 christos default: 2152 1.1 christos break; 2153 1.1 christos }; 2154 1.1 christos break; 2155 1.1 christos /* netbsd32_chdir */ 2156 1.1 christos case 12: 2157 1.1 christos switch(ndx) { 2158 1.1 christos case 0: 2159 1.1 christos p = "netbsd32_charp"; 2160 1.1 christos break; 2161 1.1 christos default: 2162 1.1 christos break; 2163 1.1 christos }; 2164 1.1 christos break; 2165 1.1 christos /* linux32_sys_time */ 2166 1.1 christos case 13: 2167 1.1 christos switch(ndx) { 2168 1.1 christos case 0: 2169 1.1 christos p = "linux32_timep_t"; 2170 1.1 christos break; 2171 1.1 christos default: 2172 1.1 christos break; 2173 1.1 christos }; 2174 1.1 christos break; 2175 1.1 christos /* linux32_sys_mknod */ 2176 1.1 christos case 14: 2177 1.1 christos switch(ndx) { 2178 1.1 christos case 0: 2179 1.1 christos p = "netbsd32_charp"; 2180 1.1 christos break; 2181 1.1 christos case 1: 2182 1.1 christos p = "linux_umode_t"; 2183 1.1 christos break; 2184 1.1 christos case 2: 2185 1.1 christos p = "unsigned"; 2186 1.1 christos break; 2187 1.1 christos default: 2188 1.1 christos break; 2189 1.1 christos }; 2190 1.1 christos break; 2191 1.1 christos /* netbsd32_chmod */ 2192 1.1 christos case 15: 2193 1.1 christos switch(ndx) { 2194 1.1 christos case 0: 2195 1.1 christos p = "netbsd32_charp"; 2196 1.1 christos break; 2197 1.1 christos case 1: 2198 1.1 christos p = "linux_umode_t"; 2199 1.1 christos break; 2200 1.1 christos default: 2201 1.1 christos break; 2202 1.1 christos }; 2203 1.1 christos break; 2204 1.1 christos /* linux32_sys_lchown16 */ 2205 1.1 christos case 16: 2206 1.1 christos switch(ndx) { 2207 1.1 christos case 0: 2208 1.1 christos p = "netbsd32_charp"; 2209 1.1 christos break; 2210 1.1 christos case 1: 2211 1.1 christos p = "linux32_uid16_t"; 2212 1.1 christos break; 2213 1.1 christos case 2: 2214 1.1 christos p = "linux32_gid16_t"; 2215 1.1 christos break; 2216 1.1 christos default: 2217 1.1 christos break; 2218 1.1 christos }; 2219 1.1 christos break; 2220 1.1 christos /* linux32_sys_break */ 2221 1.1 christos case 17: 2222 1.1 christos switch(ndx) { 2223 1.1 christos case 0: 2224 1.1 christos p = "netbsd32_charp"; 2225 1.1 christos break; 2226 1.1 christos default: 2227 1.1 christos break; 2228 1.1 christos }; 2229 1.1 christos break; 2230 1.1 christos /* compat_43_netbsd32_olseek */ 2231 1.1 christos case 19: 2232 1.1 christos switch(ndx) { 2233 1.1 christos case 0: 2234 1.1 christos p = "int"; 2235 1.1 christos break; 2236 1.1 christos case 1: 2237 1.1 christos p = "netbsd32_long"; 2238 1.1 christos break; 2239 1.1 christos case 2: 2240 1.1 christos p = "int"; 2241 1.1 christos break; 2242 1.1 christos default: 2243 1.1 christos break; 2244 1.1 christos }; 2245 1.1 christos break; 2246 1.1 christos /* sys_getpid */ 2247 1.1 christos case 20: 2248 1.1 christos break; 2249 1.1 christos /* netbsd32_setuid */ 2250 1.1 christos case 23: 2251 1.1 christos switch(ndx) { 2252 1.1 christos case 0: 2253 1.1 christos p = "uid_t"; 2254 1.1 christos break; 2255 1.1 christos default: 2256 1.1 christos break; 2257 1.1 christos }; 2258 1.1 christos break; 2259 1.1 christos /* sys_getuid */ 2260 1.1 christos case 24: 2261 1.1 christos break; 2262 1.1 christos /* linux32_sys_stime */ 2263 1.1 christos case 25: 2264 1.1 christos switch(ndx) { 2265 1.1 christos case 0: 2266 1.1 christos p = "linux32_timep_t"; 2267 1.1 christos break; 2268 1.1 christos default: 2269 1.1 christos break; 2270 1.1 christos }; 2271 1.1 christos break; 2272 1.1 christos /* linux32_sys_ptrace */ 2273 1.1 christos case 26: 2274 1.1 christos switch(ndx) { 2275 1.1 christos case 0: 2276 1.1 christos p = "int"; 2277 1.1 christos break; 2278 1.1 christos case 1: 2279 1.1 christos p = "int"; 2280 1.1 christos break; 2281 1.1 christos case 2: 2282 1.1 christos p = "int"; 2283 1.1 christos break; 2284 1.1 christos case 3: 2285 1.1 christos p = "int"; 2286 1.1 christos break; 2287 1.1 christos default: 2288 1.1 christos break; 2289 1.1 christos }; 2290 1.1 christos break; 2291 1.1 christos /* linux32_sys_alarm */ 2292 1.1 christos case 27: 2293 1.1 christos switch(ndx) { 2294 1.1 christos case 0: 2295 1.1 christos p = "unsigned int"; 2296 1.1 christos break; 2297 1.1 christos default: 2298 1.1 christos break; 2299 1.1 christos }; 2300 1.1 christos break; 2301 1.1 christos /* linux_sys_pause */ 2302 1.1 christos case 29: 2303 1.1 christos break; 2304 1.1 christos /* linux32_sys_utime */ 2305 1.1 christos case 30: 2306 1.1 christos switch(ndx) { 2307 1.1 christos case 0: 2308 1.1 christos p = "netbsd32_charp"; 2309 1.1 christos break; 2310 1.1 christos case 1: 2311 1.1 christos p = "linux32_utimbufp_t"; 2312 1.1 christos break; 2313 1.1 christos default: 2314 1.1 christos break; 2315 1.1 christos }; 2316 1.1 christos break; 2317 1.1 christos /* netbsd32_access */ 2318 1.1 christos case 33: 2319 1.1 christos switch(ndx) { 2320 1.1 christos case 0: 2321 1.1 christos p = "netbsd32_charp"; 2322 1.1 christos break; 2323 1.1 christos case 1: 2324 1.1 christos p = "int"; 2325 1.1 christos break; 2326 1.1 christos default: 2327 1.1 christos break; 2328 1.1 christos }; 2329 1.1 christos break; 2330 1.1 christos /* linux32_sys_nice */ 2331 1.1 christos case 34: 2332 1.1 christos switch(ndx) { 2333 1.1 christos case 0: 2334 1.1 christos p = "int"; 2335 1.1 christos break; 2336 1.1 christos default: 2337 1.1 christos break; 2338 1.1 christos }; 2339 1.1 christos break; 2340 1.1 christos /* sys_sync */ 2341 1.1 christos case 36: 2342 1.1 christos break; 2343 1.1 christos /* linux32_sys_kill */ 2344 1.1 christos case 37: 2345 1.1 christos switch(ndx) { 2346 1.1 christos case 0: 2347 1.1 christos p = "int"; 2348 1.1 christos break; 2349 1.1 christos case 1: 2350 1.1 christos p = "int"; 2351 1.1 christos break; 2352 1.1 christos default: 2353 1.1 christos break; 2354 1.1 christos }; 2355 1.1 christos break; 2356 1.1 christos /* netbsd32___posix_rename */ 2357 1.1 christos case 38: 2358 1.1 christos switch(ndx) { 2359 1.1 christos case 0: 2360 1.1 christos p = "netbsd32_charp"; 2361 1.1 christos break; 2362 1.1 christos case 1: 2363 1.1 christos p = "netbsd32_charp"; 2364 1.1 christos break; 2365 1.1 christos default: 2366 1.1 christos break; 2367 1.1 christos }; 2368 1.1 christos break; 2369 1.1 christos /* netbsd32_mkdir */ 2370 1.1 christos case 39: 2371 1.1 christos switch(ndx) { 2372 1.1 christos case 0: 2373 1.1 christos p = "netbsd32_charp"; 2374 1.1 christos break; 2375 1.1 christos case 1: 2376 1.1 christos p = "linux_umode_t"; 2377 1.1 christos break; 2378 1.1 christos default: 2379 1.1 christos break; 2380 1.1 christos }; 2381 1.1 christos break; 2382 1.1 christos /* netbsd32_rmdir */ 2383 1.1 christos case 40: 2384 1.1 christos switch(ndx) { 2385 1.1 christos case 0: 2386 1.1 christos p = "netbsd32_charp"; 2387 1.1 christos break; 2388 1.1 christos default: 2389 1.1 christos break; 2390 1.1 christos }; 2391 1.1 christos break; 2392 1.1 christos /* netbsd32_dup */ 2393 1.1 christos case 41: 2394 1.1 christos switch(ndx) { 2395 1.1 christos case 0: 2396 1.1 christos p = "int"; 2397 1.1 christos break; 2398 1.1 christos default: 2399 1.1 christos break; 2400 1.1 christos }; 2401 1.1 christos break; 2402 1.1 christos /* linux32_sys_pipe */ 2403 1.1 christos case 42: 2404 1.1 christos switch(ndx) { 2405 1.1 christos case 0: 2406 1.1 christos p = "netbsd32_intp"; 2407 1.1 christos break; 2408 1.1 christos default: 2409 1.1 christos break; 2410 1.1 christos }; 2411 1.1 christos break; 2412 1.1 christos /* linux32_sys_times */ 2413 1.1 christos case 43: 2414 1.1 christos switch(ndx) { 2415 1.1 christos case 0: 2416 1.1 christos p = "linux32_tmsp_t"; 2417 1.1 christos break; 2418 1.1 christos default: 2419 1.1 christos break; 2420 1.1 christos }; 2421 1.1 christos break; 2422 1.1 christos /* linux32_sys_brk */ 2423 1.1 christos case 45: 2424 1.1 christos switch(ndx) { 2425 1.1 christos case 0: 2426 1.1 christos p = "netbsd32_charp"; 2427 1.1 christos break; 2428 1.1 christos default: 2429 1.1 christos break; 2430 1.1 christos }; 2431 1.1 christos break; 2432 1.1 christos /* netbsd32_setgid */ 2433 1.1 christos case 46: 2434 1.1 christos switch(ndx) { 2435 1.1 christos case 0: 2436 1.1 christos p = "gid_t"; 2437 1.1 christos break; 2438 1.1 christos default: 2439 1.1 christos break; 2440 1.1 christos }; 2441 1.1 christos break; 2442 1.1 christos /* sys_getgid */ 2443 1.1 christos case 47: 2444 1.1 christos break; 2445 1.1 christos /* linux32_sys_signal */ 2446 1.1 christos case 48: 2447 1.1 christos switch(ndx) { 2448 1.1 christos case 0: 2449 1.1 christos p = "int"; 2450 1.1 christos break; 2451 1.1 christos case 1: 2452 1.2 christos p = "linux32_handlerp_t"; 2453 1.1 christos break; 2454 1.1 christos default: 2455 1.1 christos break; 2456 1.1 christos }; 2457 1.1 christos break; 2458 1.1 christos /* sys_geteuid */ 2459 1.1 christos case 49: 2460 1.1 christos break; 2461 1.1 christos /* sys_getegid */ 2462 1.1 christos case 50: 2463 1.1 christos break; 2464 1.1 christos /* netbsd32_acct */ 2465 1.1 christos case 51: 2466 1.1 christos switch(ndx) { 2467 1.1 christos case 0: 2468 1.1 christos p = "netbsd32_charp"; 2469 1.1 christos break; 2470 1.1 christos default: 2471 1.1 christos break; 2472 1.1 christos }; 2473 1.1 christos break; 2474 1.1 christos /* linux32_sys_ioctl */ 2475 1.1 christos case 54: 2476 1.1 christos switch(ndx) { 2477 1.1 christos case 0: 2478 1.1 christos p = "int"; 2479 1.1 christos break; 2480 1.1 christos case 1: 2481 1.1 christos p = "netbsd32_u_long"; 2482 1.1 christos break; 2483 1.1 christos case 2: 2484 1.1 christos p = "netbsd32_charp"; 2485 1.1 christos break; 2486 1.1 christos default: 2487 1.1 christos break; 2488 1.1 christos }; 2489 1.1 christos break; 2490 1.1 christos /* linux32_sys_fcntl */ 2491 1.1 christos case 55: 2492 1.1 christos switch(ndx) { 2493 1.1 christos case 0: 2494 1.1 christos p = "int"; 2495 1.1 christos break; 2496 1.1 christos case 1: 2497 1.1 christos p = "int"; 2498 1.1 christos break; 2499 1.1 christos case 2: 2500 1.1 christos p = "netbsd32_voidp"; 2501 1.1 christos break; 2502 1.1 christos default: 2503 1.1 christos break; 2504 1.1 christos }; 2505 1.1 christos break; 2506 1.1 christos /* netbsd32_setpgid */ 2507 1.1 christos case 57: 2508 1.1 christos switch(ndx) { 2509 1.1 christos case 0: 2510 1.1 christos p = "int"; 2511 1.1 christos break; 2512 1.1 christos case 1: 2513 1.1 christos p = "int"; 2514 1.1 christos break; 2515 1.1 christos default: 2516 1.1 christos break; 2517 1.1 christos }; 2518 1.1 christos break; 2519 1.1 christos /* linux32_sys_oldolduname */ 2520 1.1 christos case 59: 2521 1.1 christos switch(ndx) { 2522 1.1 christos case 0: 2523 1.1 christos p = "linux32_oldold_utsnamep_t"; 2524 1.1 christos break; 2525 1.1 christos default: 2526 1.1 christos break; 2527 1.1 christos }; 2528 1.1 christos break; 2529 1.1 christos /* netbsd32_umask */ 2530 1.1 christos case 60: 2531 1.1 christos switch(ndx) { 2532 1.1 christos case 0: 2533 1.1 christos p = "int"; 2534 1.1 christos break; 2535 1.1 christos default: 2536 1.1 christos break; 2537 1.1 christos }; 2538 1.1 christos break; 2539 1.1 christos /* netbsd32_chroot */ 2540 1.1 christos case 61: 2541 1.1 christos switch(ndx) { 2542 1.1 christos case 0: 2543 1.1 christos p = "netbsd32_charp"; 2544 1.1 christos break; 2545 1.1 christos default: 2546 1.1 christos break; 2547 1.1 christos }; 2548 1.1 christos break; 2549 1.1 christos /* netbsd32_dup2 */ 2550 1.1 christos case 63: 2551 1.1 christos switch(ndx) { 2552 1.1 christos case 0: 2553 1.1 christos p = "int"; 2554 1.1 christos break; 2555 1.1 christos case 1: 2556 1.1 christos p = "int"; 2557 1.1 christos break; 2558 1.1 christos default: 2559 1.1 christos break; 2560 1.1 christos }; 2561 1.1 christos break; 2562 1.1 christos /* sys_getppid */ 2563 1.1 christos case 64: 2564 1.1 christos break; 2565 1.1 christos /* sys_getpgrp */ 2566 1.1 christos case 65: 2567 1.1 christos break; 2568 1.1 christos /* sys_setsid */ 2569 1.1 christos case 66: 2570 1.1 christos break; 2571 1.1 christos /* linux32_sys_siggetmask */ 2572 1.1 christos case 68: 2573 1.1 christos break; 2574 1.1 christos /* linux32_sys_sigsetmask */ 2575 1.1 christos case 69: 2576 1.1 christos switch(ndx) { 2577 1.1 christos case 0: 2578 1.1 christos p = "linux32_old_sigset_t"; 2579 1.1 christos break; 2580 1.1 christos default: 2581 1.1 christos break; 2582 1.1 christos }; 2583 1.1 christos break; 2584 1.1 christos /* linux32_sys_setreuid16 */ 2585 1.1 christos case 70: 2586 1.1 christos switch(ndx) { 2587 1.1 christos case 0: 2588 1.1 christos p = "linux32_uid16_t"; 2589 1.1 christos break; 2590 1.1 christos case 1: 2591 1.1 christos p = "linux32_uid16_t"; 2592 1.1 christos break; 2593 1.1 christos default: 2594 1.1 christos break; 2595 1.1 christos }; 2596 1.1 christos break; 2597 1.1 christos /* linux32_sys_setregid16 */ 2598 1.1 christos case 71: 2599 1.1 christos switch(ndx) { 2600 1.1 christos case 0: 2601 1.1 christos p = "linux32_gid16_t"; 2602 1.1 christos break; 2603 1.1 christos case 1: 2604 1.1 christos p = "linux32_gid16_t"; 2605 1.1 christos break; 2606 1.1 christos default: 2607 1.1 christos break; 2608 1.1 christos }; 2609 1.1 christos break; 2610 1.1 christos /* compat_43_netbsd32_osethostname */ 2611 1.1 christos case 74: 2612 1.1 christos switch(ndx) { 2613 1.1 christos case 0: 2614 1.1 christos p = "netbsd32_charp"; 2615 1.1 christos break; 2616 1.1 christos case 1: 2617 1.1 christos p = "u_int"; 2618 1.1 christos break; 2619 1.1 christos default: 2620 1.1 christos break; 2621 1.1 christos }; 2622 1.1 christos break; 2623 1.1 christos /* linux32_sys_setrlimit */ 2624 1.1 christos case 75: 2625 1.1 christos switch(ndx) { 2626 1.1 christos case 0: 2627 1.1 christos p = "u_int"; 2628 1.1 christos break; 2629 1.1 christos case 1: 2630 1.1 christos p = "netbsd32_orlimitp_t"; 2631 1.1 christos break; 2632 1.1 christos default: 2633 1.1 christos break; 2634 1.1 christos }; 2635 1.1 christos break; 2636 1.1 christos /* linux32_sys_getrlimit */ 2637 1.1 christos case 76: 2638 1.1 christos switch(ndx) { 2639 1.1 christos case 0: 2640 1.1 christos p = "u_int"; 2641 1.1 christos break; 2642 1.1 christos case 1: 2643 1.1 christos p = "netbsd32_orlimitp_t"; 2644 1.1 christos break; 2645 1.1 christos default: 2646 1.1 christos break; 2647 1.1 christos }; 2648 1.1 christos break; 2649 1.1 christos /* compat_50_netbsd32_getrusage */ 2650 1.1 christos case 77: 2651 1.1 christos switch(ndx) { 2652 1.1 christos case 0: 2653 1.1 christos p = "int"; 2654 1.1 christos break; 2655 1.1 christos case 1: 2656 1.1 christos p = "netbsd32_rusage50p_t"; 2657 1.1 christos break; 2658 1.1 christos default: 2659 1.1 christos break; 2660 1.1 christos }; 2661 1.1 christos break; 2662 1.1 christos /* linux32_sys_gettimeofday */ 2663 1.1 christos case 78: 2664 1.1 christos switch(ndx) { 2665 1.1 christos case 0: 2666 1.1 christos p = "netbsd32_timeval50p_t"; 2667 1.1 christos break; 2668 1.1 christos case 1: 2669 1.1 christos p = "netbsd32_timezonep_t"; 2670 1.1 christos break; 2671 1.1 christos default: 2672 1.1 christos break; 2673 1.1 christos }; 2674 1.1 christos break; 2675 1.1 christos /* linux32_sys_settimeofday */ 2676 1.1 christos case 79: 2677 1.1 christos switch(ndx) { 2678 1.1 christos case 0: 2679 1.1 christos p = "netbsd32_timeval50p_t"; 2680 1.1 christos break; 2681 1.1 christos case 1: 2682 1.1 christos p = "netbsd32_timezonep_t"; 2683 1.1 christos break; 2684 1.1 christos default: 2685 1.1 christos break; 2686 1.1 christos }; 2687 1.1 christos break; 2688 1.1 christos /* linux32_sys_getgroups16 */ 2689 1.1 christos case 80: 2690 1.1 christos switch(ndx) { 2691 1.1 christos case 0: 2692 1.1 christos p = "int"; 2693 1.1 christos break; 2694 1.1 christos case 1: 2695 1.1 christos p = "linux32_gid16p_t"; 2696 1.1 christos break; 2697 1.1 christos default: 2698 1.1 christos break; 2699 1.1 christos }; 2700 1.1 christos break; 2701 1.1 christos /* linux32_sys_setgroups16 */ 2702 1.1 christos case 81: 2703 1.1 christos switch(ndx) { 2704 1.1 christos case 0: 2705 1.1 christos p = "int"; 2706 1.1 christos break; 2707 1.1 christos case 1: 2708 1.1 christos p = "linux32_gid16p_t"; 2709 1.1 christos break; 2710 1.1 christos default: 2711 1.1 christos break; 2712 1.1 christos }; 2713 1.1 christos break; 2714 1.1 christos /* linux32_sys_oldselect */ 2715 1.1 christos case 82: 2716 1.1 christos switch(ndx) { 2717 1.1 christos case 0: 2718 1.1 christos p = "linux32_oldselectp_t"; 2719 1.1 christos break; 2720 1.1 christos default: 2721 1.1 christos break; 2722 1.1 christos }; 2723 1.1 christos break; 2724 1.1 christos /* netbsd32_symlink */ 2725 1.1 christos case 83: 2726 1.1 christos switch(ndx) { 2727 1.1 christos case 0: 2728 1.1 christos p = "netbsd32_charp"; 2729 1.1 christos break; 2730 1.1 christos case 1: 2731 1.1 christos p = "netbsd32_charp"; 2732 1.1 christos break; 2733 1.1 christos default: 2734 1.1 christos break; 2735 1.1 christos }; 2736 1.1 christos break; 2737 1.1 christos /* compat_43_netbsd32_lstat43 */ 2738 1.1 christos case 84: 2739 1.1 christos switch(ndx) { 2740 1.1 christos case 0: 2741 1.1 christos p = "netbsd32_charp"; 2742 1.1 christos break; 2743 1.1 christos case 1: 2744 1.1 christos p = "netbsd32_stat43p_t"; 2745 1.1 christos break; 2746 1.1 christos default: 2747 1.1 christos break; 2748 1.1 christos }; 2749 1.1 christos break; 2750 1.1 christos /* netbsd32_readlink */ 2751 1.1 christos case 85: 2752 1.1 christos switch(ndx) { 2753 1.1 christos case 0: 2754 1.1 christos p = "netbsd32_charp"; 2755 1.1 christos break; 2756 1.1 christos case 1: 2757 1.1 christos p = "netbsd32_charp"; 2758 1.1 christos break; 2759 1.1 christos case 2: 2760 1.1 christos p = "netbsd32_size_t"; 2761 1.1 christos break; 2762 1.1 christos default: 2763 1.1 christos break; 2764 1.1 christos }; 2765 1.1 christos break; 2766 1.1 christos /* linux32_sys_swapon */ 2767 1.1 christos case 87: 2768 1.1 christos switch(ndx) { 2769 1.1 christos case 0: 2770 1.1 christos p = "netbsd32_charp"; 2771 1.1 christos break; 2772 1.1 christos default: 2773 1.1 christos break; 2774 1.1 christos }; 2775 1.1 christos break; 2776 1.1 christos /* linux32_sys_reboot */ 2777 1.1 christos case 88: 2778 1.1 christos switch(ndx) { 2779 1.1 christos case 0: 2780 1.1 christos p = "int"; 2781 1.1 christos break; 2782 1.1 christos case 1: 2783 1.1 christos p = "int"; 2784 1.1 christos break; 2785 1.1 christos case 2: 2786 1.1 christos p = "int"; 2787 1.1 christos break; 2788 1.1 christos case 3: 2789 1.1 christos p = "netbsd32_voidp"; 2790 1.1 christos break; 2791 1.1 christos default: 2792 1.1 christos break; 2793 1.1 christos }; 2794 1.1 christos break; 2795 1.1 christos /* linux32_sys_readdir */ 2796 1.1 christos case 89: 2797 1.1 christos switch(ndx) { 2798 1.1 christos case 0: 2799 1.1 christos p = "int"; 2800 1.1 christos break; 2801 1.1 christos case 1: 2802 1.1 christos p = "netbsd32_voidp"; 2803 1.1 christos break; 2804 1.1 christos case 2: 2805 1.1 christos p = "unsigned int"; 2806 1.1 christos break; 2807 1.1 christos default: 2808 1.1 christos break; 2809 1.1 christos }; 2810 1.1 christos break; 2811 1.1 christos /* linux32_sys_old_mmap */ 2812 1.1 christos case 90: 2813 1.1 christos switch(ndx) { 2814 1.1 christos case 0: 2815 1.1 christos p = "linux32_oldmmapp"; 2816 1.1 christos break; 2817 1.1 christos default: 2818 1.1 christos break; 2819 1.1 christos }; 2820 1.1 christos break; 2821 1.1 christos /* netbsd32_munmap */ 2822 1.1 christos case 91: 2823 1.1 christos switch(ndx) { 2824 1.1 christos case 0: 2825 1.1 christos p = "netbsd32_voidp"; 2826 1.1 christos break; 2827 1.1 christos case 1: 2828 1.1 christos p = "netbsd32_size_t"; 2829 1.1 christos break; 2830 1.1 christos default: 2831 1.1 christos break; 2832 1.1 christos }; 2833 1.1 christos break; 2834 1.1 christos /* compat_43_netbsd32_otruncate */ 2835 1.1 christos case 92: 2836 1.1 christos switch(ndx) { 2837 1.1 christos case 0: 2838 1.1 christos p = "netbsd32_charp"; 2839 1.1 christos break; 2840 1.1 christos case 1: 2841 1.1 christos p = "netbsd32_long"; 2842 1.1 christos break; 2843 1.1 christos default: 2844 1.1 christos break; 2845 1.1 christos }; 2846 1.1 christos break; 2847 1.1 christos /* compat_43_netbsd32_oftruncate */ 2848 1.1 christos case 93: 2849 1.1 christos switch(ndx) { 2850 1.1 christos case 0: 2851 1.1 christos p = "int"; 2852 1.1 christos break; 2853 1.1 christos case 1: 2854 1.1 christos p = "netbsd32_long"; 2855 1.1 christos break; 2856 1.1 christos default: 2857 1.1 christos break; 2858 1.1 christos }; 2859 1.1 christos break; 2860 1.1 christos /* netbsd32_fchmod */ 2861 1.1 christos case 94: 2862 1.1 christos switch(ndx) { 2863 1.1 christos case 0: 2864 1.1 christos p = "int"; 2865 1.1 christos break; 2866 1.1 christos case 1: 2867 1.1 christos p = "linux_umode_t"; 2868 1.1 christos break; 2869 1.1 christos default: 2870 1.1 christos break; 2871 1.1 christos }; 2872 1.1 christos break; 2873 1.1 christos /* linux32_sys_fchown16 */ 2874 1.1 christos case 95: 2875 1.1 christos switch(ndx) { 2876 1.1 christos case 0: 2877 1.1 christos p = "int"; 2878 1.1 christos break; 2879 1.1 christos case 1: 2880 1.1 christos p = "linux32_uid16_t"; 2881 1.1 christos break; 2882 1.1 christos case 2: 2883 1.1 christos p = "linux32_gid16_t"; 2884 1.1 christos break; 2885 1.1 christos default: 2886 1.1 christos break; 2887 1.1 christos }; 2888 1.1 christos break; 2889 1.1 christos /* linux32_sys_getpriority */ 2890 1.1 christos case 96: 2891 1.1 christos switch(ndx) { 2892 1.1 christos case 0: 2893 1.1 christos p = "int"; 2894 1.1 christos break; 2895 1.1 christos case 1: 2896 1.1 christos p = "int"; 2897 1.1 christos break; 2898 1.1 christos default: 2899 1.1 christos break; 2900 1.1 christos }; 2901 1.1 christos break; 2902 1.1 christos /* netbsd32_setpriority */ 2903 1.1 christos case 97: 2904 1.1 christos switch(ndx) { 2905 1.1 christos case 0: 2906 1.1 christos p = "int"; 2907 1.1 christos break; 2908 1.1 christos case 1: 2909 1.1 christos p = "int"; 2910 1.1 christos break; 2911 1.1 christos case 2: 2912 1.1 christos p = "int"; 2913 1.1 christos break; 2914 1.1 christos default: 2915 1.1 christos break; 2916 1.1 christos }; 2917 1.1 christos break; 2918 1.1 christos /* netbsd32_profil */ 2919 1.1 christos case 98: 2920 1.1 christos switch(ndx) { 2921 1.1 christos case 0: 2922 1.1 christos p = "netbsd32_voidp"; 2923 1.1 christos break; 2924 1.1 christos case 1: 2925 1.1 christos p = "netbsd32_size_t"; 2926 1.1 christos break; 2927 1.1 christos case 2: 2928 1.1 christos p = "netbsd32_u_long"; 2929 1.1 christos break; 2930 1.1 christos case 3: 2931 1.1 christos p = "u_int"; 2932 1.1 christos break; 2933 1.1 christos default: 2934 1.1 christos break; 2935 1.1 christos }; 2936 1.1 christos break; 2937 1.1 christos /* linux32_sys_statfs */ 2938 1.1 christos case 99: 2939 1.1 christos switch(ndx) { 2940 1.1 christos case 0: 2941 1.1 christos p = "netbsd32_charp"; 2942 1.1 christos break; 2943 1.1 christos case 1: 2944 1.1 christos p = "linux32_statfsp"; 2945 1.1 christos break; 2946 1.1 christos default: 2947 1.1 christos break; 2948 1.1 christos }; 2949 1.1 christos break; 2950 1.1 christos /* linux32_sys_fstatfs */ 2951 1.1 christos case 100: 2952 1.1 christos switch(ndx) { 2953 1.1 christos case 0: 2954 1.1 christos p = "int"; 2955 1.1 christos break; 2956 1.1 christos case 1: 2957 1.1 christos p = "linux32_statfsp"; 2958 1.1 christos break; 2959 1.1 christos default: 2960 1.1 christos break; 2961 1.1 christos }; 2962 1.1 christos break; 2963 1.1 christos /* linux_sys_ioperm */ 2964 1.1 christos case 101: 2965 1.1 christos switch(ndx) { 2966 1.1 christos case 0: 2967 1.1 christos p = "unsigned int"; 2968 1.1 christos break; 2969 1.1 christos case 1: 2970 1.1 christos p = "unsigned int"; 2971 1.1 christos break; 2972 1.1 christos case 2: 2973 1.1 christos p = "int"; 2974 1.1 christos break; 2975 1.1 christos default: 2976 1.1 christos break; 2977 1.1 christos }; 2978 1.1 christos break; 2979 1.1 christos /* linux32_sys_socketcall */ 2980 1.1 christos case 102: 2981 1.1 christos switch(ndx) { 2982 1.1 christos case 0: 2983 1.1 christos p = "int"; 2984 1.1 christos break; 2985 1.1 christos case 1: 2986 1.1 christos p = "netbsd32_voidp"; 2987 1.1 christos break; 2988 1.1 christos default: 2989 1.1 christos break; 2990 1.1 christos }; 2991 1.1 christos break; 2992 1.1 christos /* compat_50_netbsd32_setitimer */ 2993 1.1 christos case 104: 2994 1.1 christos switch(ndx) { 2995 1.1 christos case 0: 2996 1.1 christos p = "int"; 2997 1.1 christos break; 2998 1.1 christos case 1: 2999 1.1 christos p = "netbsd32_itimerval50p_t"; 3000 1.1 christos break; 3001 1.1 christos case 2: 3002 1.1 christos p = "netbsd32_itimerval50p_t"; 3003 1.1 christos break; 3004 1.1 christos default: 3005 1.1 christos break; 3006 1.1 christos }; 3007 1.1 christos break; 3008 1.1 christos /* compat_50_netbsd32_getitimer */ 3009 1.1 christos case 105: 3010 1.1 christos switch(ndx) { 3011 1.1 christos case 0: 3012 1.1 christos p = "int"; 3013 1.1 christos break; 3014 1.1 christos case 1: 3015 1.1 christos p = "netbsd32_itimerval50p_t"; 3016 1.1 christos break; 3017 1.1 christos default: 3018 1.1 christos break; 3019 1.1 christos }; 3020 1.1 christos break; 3021 1.1 christos /* linux32_sys_stat */ 3022 1.1 christos case 106: 3023 1.1 christos switch(ndx) { 3024 1.1 christos case 0: 3025 1.1 christos p = "netbsd32_charp"; 3026 1.1 christos break; 3027 1.1 christos case 1: 3028 1.1 christos p = "linux32_statp"; 3029 1.1 christos break; 3030 1.1 christos default: 3031 1.1 christos break; 3032 1.1 christos }; 3033 1.1 christos break; 3034 1.1 christos /* linux32_sys_lstat */ 3035 1.1 christos case 107: 3036 1.1 christos switch(ndx) { 3037 1.1 christos case 0: 3038 1.1 christos p = "netbsd32_charp"; 3039 1.1 christos break; 3040 1.1 christos case 1: 3041 1.1 christos p = "linux32_statp"; 3042 1.1 christos break; 3043 1.1 christos default: 3044 1.1 christos break; 3045 1.1 christos }; 3046 1.1 christos break; 3047 1.1 christos /* linux32_sys_fstat */ 3048 1.1 christos case 108: 3049 1.1 christos switch(ndx) { 3050 1.1 christos case 0: 3051 1.1 christos p = "int"; 3052 1.1 christos break; 3053 1.1 christos case 1: 3054 1.1 christos p = "linux32_statp"; 3055 1.1 christos break; 3056 1.1 christos default: 3057 1.1 christos break; 3058 1.1 christos }; 3059 1.1 christos break; 3060 1.1 christos /* linux32_sys_olduname */ 3061 1.1 christos case 109: 3062 1.1 christos switch(ndx) { 3063 1.1 christos case 0: 3064 1.1 christos p = "linux32_oldutsnamep_t"; 3065 1.1 christos break; 3066 1.1 christos default: 3067 1.1 christos break; 3068 1.1 christos }; 3069 1.1 christos break; 3070 1.1 christos /* linux_sys_iopl */ 3071 1.1 christos case 110: 3072 1.1 christos switch(ndx) { 3073 1.1 christos case 0: 3074 1.1 christos p = "int"; 3075 1.1 christos break; 3076 1.1 christos default: 3077 1.1 christos break; 3078 1.1 christos }; 3079 1.1 christos break; 3080 1.1 christos /* linux32_sys_wait4 */ 3081 1.1 christos case 114: 3082 1.1 christos switch(ndx) { 3083 1.1 christos case 0: 3084 1.1 christos p = "int"; 3085 1.1 christos break; 3086 1.1 christos case 1: 3087 1.1 christos p = "netbsd32_intp"; 3088 1.1 christos break; 3089 1.1 christos case 2: 3090 1.1 christos p = "int"; 3091 1.1 christos break; 3092 1.1 christos case 3: 3093 1.1 christos p = "netbsd32_rusage50p_t"; 3094 1.1 christos break; 3095 1.1 christos default: 3096 1.1 christos break; 3097 1.1 christos }; 3098 1.1 christos break; 3099 1.1 christos /* linux32_sys_swapoff */ 3100 1.1 christos case 115: 3101 1.1 christos switch(ndx) { 3102 1.1 christos case 0: 3103 1.1 christos p = "netbsd32_charp"; 3104 1.1 christos break; 3105 1.1 christos default: 3106 1.1 christos break; 3107 1.1 christos }; 3108 1.1 christos break; 3109 1.1 christos /* linux32_sys_sysinfo */ 3110 1.1 christos case 116: 3111 1.1 christos switch(ndx) { 3112 1.1 christos case 0: 3113 1.1 christos p = "linux32_sysinfop_t"; 3114 1.1 christos break; 3115 1.1 christos default: 3116 1.1 christos break; 3117 1.1 christos }; 3118 1.1 christos break; 3119 1.1 christos /* linux32_sys_ipc */ 3120 1.1 christos case 117: 3121 1.1 christos switch(ndx) { 3122 1.1 christos case 0: 3123 1.1 christos p = "int"; 3124 1.1 christos break; 3125 1.1 christos case 1: 3126 1.1 christos p = "int"; 3127 1.1 christos break; 3128 1.1 christos case 2: 3129 1.1 christos p = "int"; 3130 1.1 christos break; 3131 1.1 christos case 3: 3132 1.1 christos p = "int"; 3133 1.1 christos break; 3134 1.1 christos case 4: 3135 1.1 christos p = "netbsd32_voidp"; 3136 1.1 christos break; 3137 1.1 christos default: 3138 1.1 christos break; 3139 1.1 christos }; 3140 1.1 christos break; 3141 1.1 christos /* netbsd32_fsync */ 3142 1.1 christos case 118: 3143 1.1 christos switch(ndx) { 3144 1.1 christos case 0: 3145 1.1 christos p = "int"; 3146 1.1 christos break; 3147 1.1 christos default: 3148 1.1 christos break; 3149 1.1 christos }; 3150 1.1 christos break; 3151 1.1 christos /* linux32_sys_sigreturn */ 3152 1.1 christos case 119: 3153 1.1 christos switch(ndx) { 3154 1.1 christos case 0: 3155 1.1 christos p = "linux32_sigcontextp_t"; 3156 1.1 christos break; 3157 1.1 christos default: 3158 1.1 christos break; 3159 1.1 christos }; 3160 1.1 christos break; 3161 1.1 christos /* linux32_sys_clone */ 3162 1.1 christos case 120: 3163 1.1 christos switch(ndx) { 3164 1.1 christos case 0: 3165 1.1 christos p = "int"; 3166 1.1 christos break; 3167 1.1 christos case 1: 3168 1.1 christos p = "netbsd32_voidp"; 3169 1.1 christos break; 3170 1.1 christos case 2: 3171 1.1 christos p = "netbsd32_voidp"; 3172 1.1 christos break; 3173 1.1 christos case 3: 3174 1.1 christos p = "netbsd32_voidp"; 3175 1.1 christos break; 3176 1.1 christos case 4: 3177 1.1 christos p = "netbsd32_voidp"; 3178 1.1 christos break; 3179 1.1 christos default: 3180 1.1 christos break; 3181 1.1 christos }; 3182 1.1 christos break; 3183 1.1 christos /* linux32_sys_setdomainname */ 3184 1.1 christos case 121: 3185 1.1 christos switch(ndx) { 3186 1.1 christos case 0: 3187 1.1 christos p = "netbsd32_charp"; 3188 1.1 christos break; 3189 1.1 christos case 1: 3190 1.1 christos p = "int"; 3191 1.1 christos break; 3192 1.1 christos default: 3193 1.1 christos break; 3194 1.1 christos }; 3195 1.1 christos break; 3196 1.1 christos /* linux32_sys_uname */ 3197 1.1 christos case 122: 3198 1.1 christos switch(ndx) { 3199 1.1 christos case 0: 3200 1.1 christos p = "linux32_utsnamep"; 3201 1.1 christos break; 3202 1.1 christos default: 3203 1.1 christos break; 3204 1.1 christos }; 3205 1.1 christos break; 3206 1.1 christos /* linux32_sys_modify_ldt */ 3207 1.1 christos case 123: 3208 1.1 christos switch(ndx) { 3209 1.1 christos case 0: 3210 1.1 christos p = "int"; 3211 1.1 christos break; 3212 1.1 christos case 1: 3213 1.1 christos p = "netbsd32_charp"; 3214 1.1 christos break; 3215 1.1 christos case 2: 3216 1.1 christos p = "netbsd32_size_t"; 3217 1.1 christos break; 3218 1.1 christos default: 3219 1.1 christos break; 3220 1.1 christos }; 3221 1.1 christos break; 3222 1.1 christos /* linux32_sys_mprotect */ 3223 1.1 christos case 125: 3224 1.1 christos switch(ndx) { 3225 1.1 christos case 0: 3226 1.1 christos p = "netbsd32_voidp"; 3227 1.1 christos break; 3228 1.1 christos case 1: 3229 1.1 christos p = "netbsd32_size_t"; 3230 1.1 christos break; 3231 1.1 christos case 2: 3232 1.1 christos p = "int"; 3233 1.1 christos break; 3234 1.1 christos default: 3235 1.1 christos break; 3236 1.1 christos }; 3237 1.1 christos break; 3238 1.1 christos /* netbsd32_getpgid */ 3239 1.1 christos case 132: 3240 1.1 christos switch(ndx) { 3241 1.1 christos case 0: 3242 1.1 christos p = "pid_t"; 3243 1.1 christos break; 3244 1.1 christos default: 3245 1.1 christos break; 3246 1.1 christos }; 3247 1.1 christos break; 3248 1.1 christos /* netbsd32_fchdir */ 3249 1.1 christos case 133: 3250 1.1 christos switch(ndx) { 3251 1.1 christos case 0: 3252 1.1 christos p = "int"; 3253 1.1 christos break; 3254 1.1 christos default: 3255 1.1 christos break; 3256 1.1 christos }; 3257 1.1 christos break; 3258 1.1 christos /* linux32_sys_personality */ 3259 1.1 christos case 136: 3260 1.1 christos switch(ndx) { 3261 1.1 christos case 0: 3262 1.1 christos p = "netbsd32_u_long"; 3263 1.1 christos break; 3264 1.1 christos default: 3265 1.1 christos break; 3266 1.1 christos }; 3267 1.1 christos break; 3268 1.1 christos /* linux32_sys_setfsuid */ 3269 1.1 christos case 138: 3270 1.1 christos switch(ndx) { 3271 1.1 christos case 0: 3272 1.1 christos p = "uid_t"; 3273 1.1 christos break; 3274 1.1 christos default: 3275 1.1 christos break; 3276 1.1 christos }; 3277 1.1 christos break; 3278 1.1 christos /* linux32_sys_setfsgid */ 3279 1.1 christos case 139: 3280 1.1 christos switch(ndx) { 3281 1.1 christos case 0: 3282 1.1 christos p = "gid_t"; 3283 1.1 christos break; 3284 1.1 christos default: 3285 1.1 christos break; 3286 1.1 christos }; 3287 1.1 christos break; 3288 1.1 christos /* linux32_sys_llseek */ 3289 1.1 christos case 140: 3290 1.1 christos switch(ndx) { 3291 1.1 christos case 0: 3292 1.1 christos p = "int"; 3293 1.1 christos break; 3294 1.1 christos case 1: 3295 1.1 christos p = "u_int32_t"; 3296 1.1 christos break; 3297 1.1 christos case 2: 3298 1.1 christos p = "u_int32_t"; 3299 1.1 christos break; 3300 1.1 christos case 3: 3301 1.1 christos p = "netbsd32_voidp"; 3302 1.1 christos break; 3303 1.1 christos case 4: 3304 1.1 christos p = "int"; 3305 1.1 christos break; 3306 1.1 christos default: 3307 1.1 christos break; 3308 1.1 christos }; 3309 1.1 christos break; 3310 1.1 christos /* linux32_sys_getdents */ 3311 1.1 christos case 141: 3312 1.1 christos switch(ndx) { 3313 1.1 christos case 0: 3314 1.1 christos p = "int"; 3315 1.1 christos break; 3316 1.1 christos case 1: 3317 1.1 christos p = "linux32_direntp_t"; 3318 1.1 christos break; 3319 1.1 christos case 2: 3320 1.1 christos p = "unsigned int"; 3321 1.1 christos break; 3322 1.1 christos default: 3323 1.1 christos break; 3324 1.1 christos }; 3325 1.1 christos break; 3326 1.1 christos /* linux32_sys_select */ 3327 1.1 christos case 142: 3328 1.1 christos switch(ndx) { 3329 1.1 christos case 0: 3330 1.1 christos p = "int"; 3331 1.1 christos break; 3332 1.1 christos case 1: 3333 1.1 christos p = "netbsd32_fd_setp_t"; 3334 1.1 christos break; 3335 1.1 christos case 2: 3336 1.1 christos p = "netbsd32_fd_setp_t"; 3337 1.1 christos break; 3338 1.1 christos case 3: 3339 1.1 christos p = "netbsd32_fd_setp_t"; 3340 1.1 christos break; 3341 1.1 christos case 4: 3342 1.1 christos p = "netbsd32_timeval50p_t"; 3343 1.1 christos break; 3344 1.1 christos default: 3345 1.1 christos break; 3346 1.1 christos }; 3347 1.1 christos break; 3348 1.1 christos /* netbsd32_flock */ 3349 1.1 christos case 143: 3350 1.1 christos switch(ndx) { 3351 1.1 christos case 0: 3352 1.1 christos p = "int"; 3353 1.1 christos break; 3354 1.1 christos case 1: 3355 1.1 christos p = "int"; 3356 1.1 christos break; 3357 1.1 christos default: 3358 1.1 christos break; 3359 1.1 christos }; 3360 1.1 christos break; 3361 1.1 christos /* netbsd32___msync13 */ 3362 1.1 christos case 144: 3363 1.1 christos switch(ndx) { 3364 1.1 christos case 0: 3365 1.1 christos p = "netbsd32_voidp"; 3366 1.1 christos break; 3367 1.1 christos case 1: 3368 1.1 christos p = "netbsd32_size_t"; 3369 1.1 christos break; 3370 1.1 christos case 2: 3371 1.1 christos p = "int"; 3372 1.1 christos break; 3373 1.1 christos default: 3374 1.1 christos break; 3375 1.1 christos }; 3376 1.1 christos break; 3377 1.1 christos /* netbsd32_readv */ 3378 1.1 christos case 145: 3379 1.1 christos switch(ndx) { 3380 1.1 christos case 0: 3381 1.1 christos p = "int"; 3382 1.1 christos break; 3383 1.1 christos case 1: 3384 1.1 christos p = "netbsd32_iovecp_t"; 3385 1.1 christos break; 3386 1.1 christos case 2: 3387 1.1 christos p = "int"; 3388 1.1 christos break; 3389 1.1 christos default: 3390 1.1 christos break; 3391 1.1 christos }; 3392 1.1 christos break; 3393 1.1 christos /* netbsd32_writev */ 3394 1.1 christos case 146: 3395 1.1 christos switch(ndx) { 3396 1.1 christos case 0: 3397 1.1 christos p = "int"; 3398 1.1 christos break; 3399 1.1 christos case 1: 3400 1.1 christos p = "netbsd32_iovecp_t"; 3401 1.1 christos break; 3402 1.1 christos case 2: 3403 1.1 christos p = "int"; 3404 1.1 christos break; 3405 1.1 christos default: 3406 1.1 christos break; 3407 1.1 christos }; 3408 1.1 christos break; 3409 1.1 christos /* netbsd32_getsid */ 3410 1.1 christos case 147: 3411 1.1 christos switch(ndx) { 3412 1.1 christos case 0: 3413 1.1 christos p = "pid_t"; 3414 1.1 christos break; 3415 1.1 christos default: 3416 1.1 christos break; 3417 1.1 christos }; 3418 1.1 christos break; 3419 1.1 christos /* linux32_sys_fdatasync */ 3420 1.1 christos case 148: 3421 1.1 christos switch(ndx) { 3422 1.1 christos case 0: 3423 1.1 christos p = "int"; 3424 1.1 christos break; 3425 1.1 christos default: 3426 1.1 christos break; 3427 1.1 christos }; 3428 1.1 christos break; 3429 1.1 christos /* linux32_sys___sysctl */ 3430 1.1 christos case 149: 3431 1.1 christos switch(ndx) { 3432 1.1 christos case 0: 3433 1.1 christos p = "linux32___sysctlp_t"; 3434 1.1 christos break; 3435 1.1 christos default: 3436 1.1 christos break; 3437 1.1 christos }; 3438 1.1 christos break; 3439 1.1 christos /* netbsd32_mlock */ 3440 1.1 christos case 150: 3441 1.1 christos switch(ndx) { 3442 1.1 christos case 0: 3443 1.1 christos p = "netbsd32_voidp"; 3444 1.1 christos break; 3445 1.1 christos case 1: 3446 1.1 christos p = "netbsd32_size_t"; 3447 1.1 christos break; 3448 1.1 christos default: 3449 1.1 christos break; 3450 1.1 christos }; 3451 1.1 christos break; 3452 1.1 christos /* netbsd32_munlock */ 3453 1.1 christos case 151: 3454 1.1 christos switch(ndx) { 3455 1.1 christos case 0: 3456 1.1 christos p = "netbsd32_voidp"; 3457 1.1 christos break; 3458 1.1 christos case 1: 3459 1.1 christos p = "netbsd32_size_t"; 3460 1.1 christos break; 3461 1.1 christos default: 3462 1.1 christos break; 3463 1.1 christos }; 3464 1.1 christos break; 3465 1.1 christos /* netbsd32_mlockall */ 3466 1.1 christos case 152: 3467 1.1 christos switch(ndx) { 3468 1.1 christos case 0: 3469 1.1 christos p = "int"; 3470 1.1 christos break; 3471 1.1 christos default: 3472 1.1 christos break; 3473 1.1 christos }; 3474 1.1 christos break; 3475 1.1 christos /* sys_munlockall */ 3476 1.1 christos case 153: 3477 1.1 christos break; 3478 1.1 christos /* linux32_sys_sched_setparam */ 3479 1.1 christos case 154: 3480 1.1 christos switch(ndx) { 3481 1.1 christos case 0: 3482 1.1 christos p = "pid_t"; 3483 1.1 christos break; 3484 1.1 christos case 1: 3485 1.1 christos p = "const linux32_sched_paramp_t"; 3486 1.1 christos break; 3487 1.1 christos default: 3488 1.1 christos break; 3489 1.1 christos }; 3490 1.1 christos break; 3491 1.1 christos /* linux32_sys_sched_getparam */ 3492 1.1 christos case 155: 3493 1.1 christos switch(ndx) { 3494 1.1 christos case 0: 3495 1.1 christos p = "pid_t"; 3496 1.1 christos break; 3497 1.1 christos case 1: 3498 1.1 christos p = "linux32_sched_paramp_t"; 3499 1.1 christos break; 3500 1.1 christos default: 3501 1.1 christos break; 3502 1.1 christos }; 3503 1.1 christos break; 3504 1.1 christos /* linux32_sys_sched_setscheduler */ 3505 1.1 christos case 156: 3506 1.1 christos switch(ndx) { 3507 1.1 christos case 0: 3508 1.1 christos p = "pid_t"; 3509 1.1 christos break; 3510 1.1 christos case 1: 3511 1.1 christos p = "int"; 3512 1.1 christos break; 3513 1.1 christos case 2: 3514 1.1 christos p = "linux32_sched_paramp_t"; 3515 1.1 christos break; 3516 1.1 christos default: 3517 1.1 christos break; 3518 1.1 christos }; 3519 1.1 christos break; 3520 1.1 christos /* linux32_sys_sched_getscheduler */ 3521 1.1 christos case 157: 3522 1.1 christos switch(ndx) { 3523 1.1 christos case 0: 3524 1.1 christos p = "pid_t"; 3525 1.1 christos break; 3526 1.1 christos default: 3527 1.1 christos break; 3528 1.1 christos }; 3529 1.1 christos break; 3530 1.1 christos /* linux_sys_sched_yield */ 3531 1.1 christos case 158: 3532 1.1 christos break; 3533 1.1 christos /* linux32_sys_sched_get_priority_max */ 3534 1.1 christos case 159: 3535 1.1 christos switch(ndx) { 3536 1.1 christos case 0: 3537 1.1 christos p = "int"; 3538 1.1 christos break; 3539 1.1 christos default: 3540 1.1 christos break; 3541 1.1 christos }; 3542 1.1 christos break; 3543 1.1 christos /* linux32_sys_sched_get_priority_min */ 3544 1.1 christos case 160: 3545 1.1 christos switch(ndx) { 3546 1.1 christos case 0: 3547 1.1 christos p = "int"; 3548 1.1 christos break; 3549 1.1 christos default: 3550 1.1 christos break; 3551 1.1 christos }; 3552 1.1 christos break; 3553 1.1 christos /* linux32_sys_nanosleep */ 3554 1.1 christos case 162: 3555 1.1 christos switch(ndx) { 3556 1.1 christos case 0: 3557 1.1 christos p = "linux32_timespecp_t"; 3558 1.1 christos break; 3559 1.1 christos case 1: 3560 1.1 christos p = "linux32_timespecp_t"; 3561 1.1 christos break; 3562 1.1 christos default: 3563 1.1 christos break; 3564 1.1 christos }; 3565 1.1 christos break; 3566 1.1 christos /* linux32_sys_mremap */ 3567 1.1 christos case 163: 3568 1.1 christos switch(ndx) { 3569 1.1 christos case 0: 3570 1.1 christos p = "netbsd32_voidp"; 3571 1.1 christos break; 3572 1.1 christos case 1: 3573 1.1 christos p = "netbsd32_size_t"; 3574 1.1 christos break; 3575 1.1 christos case 2: 3576 1.1 christos p = "netbsd32_size_t"; 3577 1.1 christos break; 3578 1.1 christos case 3: 3579 1.1 christos p = "netbsd32_u_long"; 3580 1.1 christos break; 3581 1.1 christos default: 3582 1.1 christos break; 3583 1.1 christos }; 3584 1.1 christos break; 3585 1.1 christos /* linux32_sys_setresuid16 */ 3586 1.1 christos case 164: 3587 1.1 christos switch(ndx) { 3588 1.1 christos case 0: 3589 1.1 christos p = "linux32_uid16_t"; 3590 1.1 christos break; 3591 1.1 christos case 1: 3592 1.1 christos p = "linux32_uid16_t"; 3593 1.1 christos break; 3594 1.1 christos case 2: 3595 1.1 christos p = "linux32_uid16_t"; 3596 1.1 christos break; 3597 1.1 christos default: 3598 1.1 christos break; 3599 1.1 christos }; 3600 1.1 christos break; 3601 1.1 christos /* linux32_sys_getresuid16 */ 3602 1.1 christos case 165: 3603 1.1 christos switch(ndx) { 3604 1.1 christos case 0: 3605 1.1 christos p = "linux32_uid16p_t"; 3606 1.1 christos break; 3607 1.1 christos case 1: 3608 1.1 christos p = "linux32_uid16p_t"; 3609 1.1 christos break; 3610 1.1 christos case 2: 3611 1.1 christos p = "linux32_uid16p_t"; 3612 1.1 christos break; 3613 1.1 christos default: 3614 1.1 christos break; 3615 1.1 christos }; 3616 1.1 christos break; 3617 1.1 christos /* netbsd32_poll */ 3618 1.1 christos case 168: 3619 1.1 christos switch(ndx) { 3620 1.1 christos case 0: 3621 1.1 christos p = "netbsd32_pollfdp_t"; 3622 1.1 christos break; 3623 1.1 christos case 1: 3624 1.1 christos p = "u_int"; 3625 1.1 christos break; 3626 1.1 christos case 2: 3627 1.1 christos p = "int"; 3628 1.1 christos break; 3629 1.1 christos default: 3630 1.1 christos break; 3631 1.1 christos }; 3632 1.1 christos break; 3633 1.1 christos /* linux32_sys_setresgid16 */ 3634 1.1 christos case 170: 3635 1.1 christos switch(ndx) { 3636 1.1 christos case 0: 3637 1.1 christos p = "linux32_gid16_t"; 3638 1.1 christos break; 3639 1.1 christos case 1: 3640 1.1 christos p = "linux32_gid16_t"; 3641 1.1 christos break; 3642 1.1 christos case 2: 3643 1.1 christos p = "linux32_gid16_t"; 3644 1.1 christos break; 3645 1.1 christos default: 3646 1.1 christos break; 3647 1.1 christos }; 3648 1.1 christos break; 3649 1.1 christos /* linux32_sys_getresgid16 */ 3650 1.1 christos case 171: 3651 1.1 christos switch(ndx) { 3652 1.1 christos case 0: 3653 1.1 christos p = "linux32_gid16p_t"; 3654 1.1 christos break; 3655 1.1 christos case 1: 3656 1.1 christos p = "linux32_gid16p_t"; 3657 1.1 christos break; 3658 1.1 christos case 2: 3659 1.1 christos p = "linux32_gid16p_t"; 3660 1.1 christos break; 3661 1.1 christos default: 3662 1.1 christos break; 3663 1.1 christos }; 3664 1.1 christos break; 3665 1.1 christos /* linux32_sys_rt_sigreturn */ 3666 1.1 christos case 173: 3667 1.1 christos switch(ndx) { 3668 1.1 christos case 0: 3669 1.1 christos p = "linux32_ucontextp_t"; 3670 1.1 christos break; 3671 1.1 christos default: 3672 1.1 christos break; 3673 1.1 christos }; 3674 1.1 christos break; 3675 1.1 christos /* linux32_sys_rt_sigaction */ 3676 1.1 christos case 174: 3677 1.1 christos switch(ndx) { 3678 1.1 christos case 0: 3679 1.1 christos p = "int"; 3680 1.1 christos break; 3681 1.1 christos case 1: 3682 1.1 christos p = "linux32_sigactionp_t"; 3683 1.1 christos break; 3684 1.1 christos case 2: 3685 1.1 christos p = "linux32_sigactionp_t"; 3686 1.1 christos break; 3687 1.1 christos case 3: 3688 1.1 christos p = "netbsd32_size_t"; 3689 1.1 christos break; 3690 1.1 christos default: 3691 1.1 christos break; 3692 1.1 christos }; 3693 1.1 christos break; 3694 1.1 christos /* linux32_sys_rt_sigprocmask */ 3695 1.1 christos case 175: 3696 1.1 christos switch(ndx) { 3697 1.1 christos case 0: 3698 1.1 christos p = "int"; 3699 1.1 christos break; 3700 1.1 christos case 1: 3701 1.1 christos p = "linux32_sigsetp_t"; 3702 1.1 christos break; 3703 1.1 christos case 2: 3704 1.1 christos p = "linux32_sigsetp_t"; 3705 1.1 christos break; 3706 1.1 christos case 3: 3707 1.1 christos p = "netbsd32_size_t"; 3708 1.1 christos break; 3709 1.1 christos default: 3710 1.1 christos break; 3711 1.1 christos }; 3712 1.1 christos break; 3713 1.1 christos /* linux32_sys_rt_sigpending */ 3714 1.1 christos case 176: 3715 1.1 christos switch(ndx) { 3716 1.1 christos case 0: 3717 1.1 christos p = "linux32_sigsetp_t"; 3718 1.1 christos break; 3719 1.1 christos case 1: 3720 1.1 christos p = "netbsd32_size_t"; 3721 1.1 christos break; 3722 1.1 christos default: 3723 1.1 christos break; 3724 1.1 christos }; 3725 1.1 christos break; 3726 1.1 christos /* linux32_sys_rt_sigtimedwait */ 3727 1.1 christos case 177: 3728 1.1 christos switch(ndx) { 3729 1.1 christos case 0: 3730 1.1 christos p = "const linux32_sigsetp_t"; 3731 1.1 christos break; 3732 1.1 christos case 1: 3733 1.1 christos p = "linux32_siginfop_t"; 3734 1.1 christos break; 3735 1.1 christos case 2: 3736 1.1 christos p = "const linux32_timespecp_t"; 3737 1.1 christos break; 3738 1.1 christos default: 3739 1.1 christos break; 3740 1.1 christos }; 3741 1.1 christos break; 3742 1.1 christos /* linux32_sys_rt_queueinfo */ 3743 1.1 christos case 178: 3744 1.1 christos switch(ndx) { 3745 1.1 christos case 0: 3746 1.1 christos p = "int"; 3747 1.1 christos break; 3748 1.1 christos case 1: 3749 1.1 christos p = "int"; 3750 1.1 christos break; 3751 1.1 christos case 2: 3752 1.1 christos p = "linux32_siginfop_t"; 3753 1.1 christos break; 3754 1.1 christos default: 3755 1.1 christos break; 3756 1.1 christos }; 3757 1.1 christos break; 3758 1.1 christos /* linux32_sys_rt_sigsuspend */ 3759 1.1 christos case 179: 3760 1.1 christos switch(ndx) { 3761 1.1 christos case 0: 3762 1.1 christos p = "linux32_sigsetp_t"; 3763 1.1 christos break; 3764 1.1 christos case 1: 3765 1.1 christos p = "netbsd32_size_t"; 3766 1.1 christos break; 3767 1.1 christos default: 3768 1.1 christos break; 3769 1.1 christos }; 3770 1.1 christos break; 3771 1.1 christos /* linux32_sys_pread */ 3772 1.1 christos case 180: 3773 1.1 christos switch(ndx) { 3774 1.1 christos case 0: 3775 1.1 christos p = "int"; 3776 1.1 christos break; 3777 1.1 christos case 1: 3778 1.1 christos p = "netbsd32_voidp"; 3779 1.1 christos break; 3780 1.1 christos case 2: 3781 1.1 christos p = "netbsd32_size_t"; 3782 1.1 christos break; 3783 1.1 christos case 3: 3784 1.1 christos p = "netbsd32_off_t"; 3785 1.1 christos break; 3786 1.1 christos default: 3787 1.1 christos break; 3788 1.1 christos }; 3789 1.1 christos break; 3790 1.1 christos /* linux32_sys_pwrite */ 3791 1.1 christos case 181: 3792 1.1 christos switch(ndx) { 3793 1.1 christos case 0: 3794 1.1 christos p = "int"; 3795 1.1 christos break; 3796 1.1 christos case 1: 3797 1.1 christos p = "netbsd32_voidp"; 3798 1.1 christos break; 3799 1.1 christos case 2: 3800 1.1 christos p = "netbsd32_size_t"; 3801 1.1 christos break; 3802 1.1 christos case 3: 3803 1.1 christos p = "netbsd32_off_t"; 3804 1.1 christos break; 3805 1.1 christos default: 3806 1.1 christos break; 3807 1.1 christos }; 3808 1.1 christos break; 3809 1.1 christos /* linux32_sys_chown16 */ 3810 1.1 christos case 182: 3811 1.1 christos switch(ndx) { 3812 1.1 christos case 0: 3813 1.1 christos p = "netbsd32_charp"; 3814 1.1 christos break; 3815 1.1 christos case 1: 3816 1.1 christos p = "linux32_uid16_t"; 3817 1.1 christos break; 3818 1.1 christos case 2: 3819 1.1 christos p = "linux32_gid16_t"; 3820 1.1 christos break; 3821 1.1 christos default: 3822 1.1 christos break; 3823 1.1 christos }; 3824 1.1 christos break; 3825 1.1 christos /* netbsd32___getcwd */ 3826 1.1 christos case 183: 3827 1.1 christos switch(ndx) { 3828 1.1 christos case 0: 3829 1.1 christos p = "netbsd32_charp"; 3830 1.1 christos break; 3831 1.1 christos case 1: 3832 1.1 christos p = "netbsd32_size_t"; 3833 1.1 christos break; 3834 1.1 christos default: 3835 1.1 christos break; 3836 1.1 christos }; 3837 1.1 christos break; 3838 1.1 christos /* sys___vfork14 */ 3839 1.1 christos case 190: 3840 1.1 christos break; 3841 1.1 christos /* linux32_sys_ugetrlimit */ 3842 1.1 christos case 191: 3843 1.1 christos switch(ndx) { 3844 1.1 christos case 0: 3845 1.1 christos p = "int"; 3846 1.1 christos break; 3847 1.1 christos case 1: 3848 1.1 christos p = "netbsd32_orlimitp_t"; 3849 1.1 christos break; 3850 1.1 christos default: 3851 1.1 christos break; 3852 1.1 christos }; 3853 1.1 christos break; 3854 1.1 christos /* linux32_sys_mmap2 */ 3855 1.1 christos case 192: 3856 1.1 christos switch(ndx) { 3857 1.1 christos case 0: 3858 1.1 christos p = "netbsd32_u_long"; 3859 1.1 christos break; 3860 1.1 christos case 1: 3861 1.1 christos p = "netbsd32_size_t"; 3862 1.1 christos break; 3863 1.1 christos case 2: 3864 1.1 christos p = "int"; 3865 1.1 christos break; 3866 1.1 christos case 3: 3867 1.1 christos p = "int"; 3868 1.1 christos break; 3869 1.1 christos case 4: 3870 1.1 christos p = "int"; 3871 1.1 christos break; 3872 1.1 christos case 5: 3873 1.1 christos p = "linux32_off_t"; 3874 1.1 christos break; 3875 1.1 christos default: 3876 1.1 christos break; 3877 1.1 christos }; 3878 1.1 christos break; 3879 1.1 christos /* linux32_sys_truncate64 */ 3880 1.1 christos case 193: 3881 1.1 christos switch(ndx) { 3882 1.1 christos case 0: 3883 1.1 christos p = "netbsd32_charp"; 3884 1.1 christos break; 3885 1.1 christos case 1: 3886 1.1 christos p = "uint32_t"; 3887 1.1 christos break; 3888 1.1 christos case 2: 3889 1.1 christos p = "uint32_t"; 3890 1.1 christos break; 3891 1.1 christos default: 3892 1.1 christos break; 3893 1.1 christos }; 3894 1.1 christos break; 3895 1.1 christos /* linux32_sys_ftruncate64 */ 3896 1.1 christos case 194: 3897 1.1 christos switch(ndx) { 3898 1.1 christos case 0: 3899 1.1 christos p = "unsigned int"; 3900 1.1 christos break; 3901 1.1 christos case 1: 3902 1.1 christos p = "uint32_t"; 3903 1.1 christos break; 3904 1.1 christos case 2: 3905 1.1 christos p = "uint32_t"; 3906 1.1 christos break; 3907 1.1 christos default: 3908 1.1 christos break; 3909 1.1 christos }; 3910 1.1 christos break; 3911 1.1 christos /* linux32_sys_stat64 */ 3912 1.1 christos case 195: 3913 1.1 christos switch(ndx) { 3914 1.1 christos case 0: 3915 1.1 christos p = "netbsd32_charp"; 3916 1.1 christos break; 3917 1.1 christos case 1: 3918 1.1 christos p = "linux32_stat64p"; 3919 1.1 christos break; 3920 1.1 christos default: 3921 1.1 christos break; 3922 1.1 christos }; 3923 1.1 christos break; 3924 1.1 christos /* linux32_sys_lstat64 */ 3925 1.1 christos case 196: 3926 1.1 christos switch(ndx) { 3927 1.1 christos case 0: 3928 1.1 christos p = "netbsd32_charp"; 3929 1.1 christos break; 3930 1.1 christos case 1: 3931 1.1 christos p = "linux32_stat64p"; 3932 1.1 christos break; 3933 1.1 christos default: 3934 1.1 christos break; 3935 1.1 christos }; 3936 1.1 christos break; 3937 1.1 christos /* linux32_sys_fstat64 */ 3938 1.1 christos case 197: 3939 1.1 christos switch(ndx) { 3940 1.1 christos case 0: 3941 1.1 christos p = "int"; 3942 1.1 christos break; 3943 1.1 christos case 1: 3944 1.1 christos p = "linux32_stat64p"; 3945 1.1 christos break; 3946 1.1 christos default: 3947 1.1 christos break; 3948 1.1 christos }; 3949 1.1 christos break; 3950 1.1 christos /* netbsd32___posix_lchown */ 3951 1.1 christos case 198: 3952 1.1 christos switch(ndx) { 3953 1.1 christos case 0: 3954 1.1 christos p = "netbsd32_charp"; 3955 1.1 christos break; 3956 1.1 christos case 1: 3957 1.1 christos p = "uid_t"; 3958 1.1 christos break; 3959 1.1 christos case 2: 3960 1.1 christos p = "gid_t"; 3961 1.1 christos break; 3962 1.1 christos default: 3963 1.1 christos break; 3964 1.1 christos }; 3965 1.1 christos break; 3966 1.1 christos /* sys_getuid */ 3967 1.1 christos case 199: 3968 1.1 christos break; 3969 1.1 christos /* sys_getgid */ 3970 1.1 christos case 200: 3971 1.1 christos break; 3972 1.1 christos /* sys_geteuid */ 3973 1.1 christos case 201: 3974 1.1 christos break; 3975 1.1 christos /* sys_getegid */ 3976 1.1 christos case 202: 3977 1.1 christos break; 3978 1.1 christos /* netbsd32_setreuid */ 3979 1.1 christos case 203: 3980 1.1 christos switch(ndx) { 3981 1.1 christos case 0: 3982 1.1 christos p = "uid_t"; 3983 1.1 christos break; 3984 1.1 christos case 1: 3985 1.1 christos p = "uid_t"; 3986 1.1 christos break; 3987 1.1 christos default: 3988 1.1 christos break; 3989 1.1 christos }; 3990 1.1 christos break; 3991 1.1 christos /* netbsd32_setregid */ 3992 1.1 christos case 204: 3993 1.1 christos switch(ndx) { 3994 1.1 christos case 0: 3995 1.1 christos p = "gid_t"; 3996 1.1 christos break; 3997 1.1 christos case 1: 3998 1.1 christos p = "gid_t"; 3999 1.1 christos break; 4000 1.1 christos default: 4001 1.1 christos break; 4002 1.1 christos }; 4003 1.1 christos break; 4004 1.1 christos /* netbsd32_getgroups */ 4005 1.1 christos case 205: 4006 1.1 christos switch(ndx) { 4007 1.1 christos case 0: 4008 1.1 christos p = "int"; 4009 1.1 christos break; 4010 1.1 christos case 1: 4011 1.1 christos p = "netbsd32_gid_tp"; 4012 1.1 christos break; 4013 1.1 christos default: 4014 1.1 christos break; 4015 1.1 christos }; 4016 1.1 christos break; 4017 1.1 christos /* netbsd32_setgroups */ 4018 1.1 christos case 206: 4019 1.1 christos switch(ndx) { 4020 1.1 christos case 0: 4021 1.1 christos p = "int"; 4022 1.1 christos break; 4023 1.1 christos case 1: 4024 1.1 christos p = "netbsd32_gid_tp"; 4025 1.1 christos break; 4026 1.1 christos default: 4027 1.1 christos break; 4028 1.1 christos }; 4029 1.1 christos break; 4030 1.1 christos /* netbsd32___posix_fchown */ 4031 1.1 christos case 207: 4032 1.1 christos switch(ndx) { 4033 1.1 christos case 0: 4034 1.1 christos p = "int"; 4035 1.1 christos break; 4036 1.1 christos case 1: 4037 1.1 christos p = "uid_t"; 4038 1.1 christos break; 4039 1.1 christos case 2: 4040 1.1 christos p = "gid_t"; 4041 1.1 christos break; 4042 1.1 christos default: 4043 1.1 christos break; 4044 1.1 christos }; 4045 1.1 christos break; 4046 1.1 christos /* linux32_sys_setresuid */ 4047 1.1 christos case 208: 4048 1.1 christos switch(ndx) { 4049 1.1 christos case 0: 4050 1.1 christos p = "uid_t"; 4051 1.1 christos break; 4052 1.1 christos case 1: 4053 1.1 christos p = "uid_t"; 4054 1.1 christos break; 4055 1.1 christos case 2: 4056 1.1 christos p = "uid_t"; 4057 1.1 christos break; 4058 1.1 christos default: 4059 1.1 christos break; 4060 1.1 christos }; 4061 1.1 christos break; 4062 1.1 christos /* linux32_sys_getresuid */ 4063 1.1 christos case 209: 4064 1.1 christos switch(ndx) { 4065 1.1 christos case 0: 4066 1.1 christos p = "linux32_uidp_t"; 4067 1.1 christos break; 4068 1.1 christos case 1: 4069 1.1 christos p = "linux32_uidp_t"; 4070 1.1 christos break; 4071 1.1 christos case 2: 4072 1.1 christos p = "linux32_uidp_t"; 4073 1.1 christos break; 4074 1.1 christos default: 4075 1.1 christos break; 4076 1.1 christos }; 4077 1.1 christos break; 4078 1.1 christos /* linux32_sys_setresgid */ 4079 1.1 christos case 210: 4080 1.1 christos switch(ndx) { 4081 1.1 christos case 0: 4082 1.1 christos p = "gid_t"; 4083 1.1 christos break; 4084 1.1 christos case 1: 4085 1.1 christos p = "gid_t"; 4086 1.1 christos break; 4087 1.1 christos case 2: 4088 1.1 christos p = "gid_t"; 4089 1.1 christos break; 4090 1.1 christos default: 4091 1.1 christos break; 4092 1.1 christos }; 4093 1.1 christos break; 4094 1.1 christos /* linux32_sys_getresgid */ 4095 1.1 christos case 211: 4096 1.1 christos switch(ndx) { 4097 1.1 christos case 0: 4098 1.1 christos p = "linux32_gidp_t"; 4099 1.1 christos break; 4100 1.1 christos case 1: 4101 1.1 christos p = "linux32_gidp_t"; 4102 1.1 christos break; 4103 1.1 christos case 2: 4104 1.1 christos p = "linux32_gidp_t"; 4105 1.1 christos break; 4106 1.1 christos default: 4107 1.1 christos break; 4108 1.1 christos }; 4109 1.1 christos break; 4110 1.1 christos /* netbsd32___posix_chown */ 4111 1.1 christos case 212: 4112 1.1 christos switch(ndx) { 4113 1.1 christos case 0: 4114 1.1 christos p = "netbsd32_charp"; 4115 1.1 christos break; 4116 1.1 christos case 1: 4117 1.1 christos p = "uid_t"; 4118 1.1 christos break; 4119 1.1 christos case 2: 4120 1.1 christos p = "gid_t"; 4121 1.1 christos break; 4122 1.1 christos default: 4123 1.1 christos break; 4124 1.1 christos }; 4125 1.1 christos break; 4126 1.1 christos /* netbsd32_setuid */ 4127 1.1 christos case 213: 4128 1.1 christos switch(ndx) { 4129 1.1 christos case 0: 4130 1.1 christos p = "uid_t"; 4131 1.1 christos break; 4132 1.1 christos default: 4133 1.1 christos break; 4134 1.1 christos }; 4135 1.1 christos break; 4136 1.1 christos /* netbsd32_setgid */ 4137 1.1 christos case 214: 4138 1.1 christos switch(ndx) { 4139 1.1 christos case 0: 4140 1.1 christos p = "gid_t"; 4141 1.1 christos break; 4142 1.1 christos default: 4143 1.1 christos break; 4144 1.1 christos }; 4145 1.1 christos break; 4146 1.1 christos /* linux32_sys_setfsuid */ 4147 1.1 christos case 215: 4148 1.1 christos switch(ndx) { 4149 1.1 christos case 0: 4150 1.1 christos p = "uid_t"; 4151 1.1 christos break; 4152 1.1 christos default: 4153 1.1 christos break; 4154 1.1 christos }; 4155 1.1 christos break; 4156 1.1 christos /* linux32_sys_setfsgid */ 4157 1.1 christos case 216: 4158 1.1 christos switch(ndx) { 4159 1.1 christos case 0: 4160 1.1 christos p = "gid_t"; 4161 1.1 christos break; 4162 1.1 christos default: 4163 1.1 christos break; 4164 1.1 christos }; 4165 1.1 christos break; 4166 1.1 christos /* netbsd32_mincore */ 4167 1.1 christos case 218: 4168 1.1 christos switch(ndx) { 4169 1.1 christos case 0: 4170 1.1 christos p = "netbsd32_voidp"; 4171 1.1 christos break; 4172 1.1 christos case 1: 4173 1.1 christos p = "netbsd32_size_t"; 4174 1.1 christos break; 4175 1.1 christos case 2: 4176 1.1 christos p = "netbsd32_charp"; 4177 1.1 christos break; 4178 1.1 christos default: 4179 1.1 christos break; 4180 1.1 christos }; 4181 1.1 christos break; 4182 1.1 christos /* netbsd32_madvise */ 4183 1.1 christos case 219: 4184 1.1 christos switch(ndx) { 4185 1.1 christos case 0: 4186 1.1 christos p = "netbsd32_voidp"; 4187 1.1 christos break; 4188 1.1 christos case 1: 4189 1.1 christos p = "netbsd32_size_t"; 4190 1.1 christos break; 4191 1.1 christos case 2: 4192 1.1 christos p = "int"; 4193 1.1 christos break; 4194 1.1 christos default: 4195 1.1 christos break; 4196 1.1 christos }; 4197 1.1 christos break; 4198 1.1 christos /* linux32_sys_getdents64 */ 4199 1.1 christos case 220: 4200 1.1 christos switch(ndx) { 4201 1.1 christos case 0: 4202 1.1 christos p = "int"; 4203 1.1 christos break; 4204 1.1 christos case 1: 4205 1.1 christos p = "linux32_dirent64p_t"; 4206 1.1 christos break; 4207 1.1 christos case 2: 4208 1.1 christos p = "unsigned int"; 4209 1.1 christos break; 4210 1.1 christos default: 4211 1.1 christos break; 4212 1.1 christos }; 4213 1.1 christos break; 4214 1.1 christos #define linux32_sys_fcntl64 linux32_sys_fcntl 4215 1.1 christos #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 4216 1.1 christos /* linux32_sys_fcntl64 */ 4217 1.1 christos case 221: 4218 1.1 christos switch(ndx) { 4219 1.1 christos case 0: 4220 1.1 christos p = "int"; 4221 1.1 christos break; 4222 1.1 christos case 1: 4223 1.1 christos p = "int"; 4224 1.1 christos break; 4225 1.1 christos case 2: 4226 1.1 christos p = "netbsd32_voidp"; 4227 1.1 christos break; 4228 1.1 christos default: 4229 1.1 christos break; 4230 1.1 christos }; 4231 1.1 christos break; 4232 1.1 christos /* linux_sys_gettid */ 4233 1.1 christos case 224: 4234 1.1 christos break; 4235 1.1 christos /* netbsd32_setxattr */ 4236 1.1 christos case 226: 4237 1.1 christos switch(ndx) { 4238 1.1 christos case 0: 4239 1.1 christos p = "netbsd32_charp"; 4240 1.1 christos break; 4241 1.1 christos case 1: 4242 1.1 christos p = "netbsd32_charp"; 4243 1.1 christos break; 4244 1.1 christos case 2: 4245 1.1 christos p = "netbsd32_voidp"; 4246 1.1 christos break; 4247 1.1 christos case 3: 4248 1.1 christos p = "netbsd32_size_t"; 4249 1.1 christos break; 4250 1.1 christos case 4: 4251 1.1 christos p = "int"; 4252 1.1 christos break; 4253 1.1 christos default: 4254 1.1 christos break; 4255 1.1 christos }; 4256 1.1 christos break; 4257 1.1 christos /* netbsd32_lsetxattr */ 4258 1.1 christos case 227: 4259 1.1 christos switch(ndx) { 4260 1.1 christos case 0: 4261 1.1 christos p = "netbsd32_charp"; 4262 1.1 christos break; 4263 1.1 christos case 1: 4264 1.1 christos p = "netbsd32_charp"; 4265 1.1 christos break; 4266 1.1 christos case 2: 4267 1.1 christos p = "netbsd32_voidp"; 4268 1.1 christos break; 4269 1.1 christos case 3: 4270 1.1 christos p = "netbsd32_size_t"; 4271 1.1 christos break; 4272 1.1 christos case 4: 4273 1.1 christos p = "int"; 4274 1.1 christos break; 4275 1.1 christos default: 4276 1.1 christos break; 4277 1.1 christos }; 4278 1.1 christos break; 4279 1.1 christos /* netbsd32_fsetxattr */ 4280 1.1 christos case 228: 4281 1.1 christos switch(ndx) { 4282 1.1 christos case 0: 4283 1.1 christos p = "int"; 4284 1.1 christos break; 4285 1.1 christos case 1: 4286 1.1 christos p = "netbsd32_charp"; 4287 1.1 christos break; 4288 1.1 christos case 2: 4289 1.1 christos p = "netbsd32_voidp"; 4290 1.1 christos break; 4291 1.1 christos case 3: 4292 1.1 christos p = "netbsd32_size_t"; 4293 1.1 christos break; 4294 1.1 christos case 4: 4295 1.1 christos p = "int"; 4296 1.1 christos break; 4297 1.1 christos default: 4298 1.1 christos break; 4299 1.1 christos }; 4300 1.1 christos break; 4301 1.1 christos /* netbsd32_getxattr */ 4302 1.1 christos case 229: 4303 1.1 christos switch(ndx) { 4304 1.1 christos case 0: 4305 1.1 christos p = "netbsd32_charp"; 4306 1.1 christos break; 4307 1.1 christos case 1: 4308 1.1 christos p = "netbsd32_charp"; 4309 1.1 christos break; 4310 1.1 christos case 2: 4311 1.1 christos p = "netbsd32_voidp"; 4312 1.1 christos break; 4313 1.1 christos case 3: 4314 1.1 christos p = "netbsd32_size_t"; 4315 1.1 christos break; 4316 1.1 christos default: 4317 1.1 christos break; 4318 1.1 christos }; 4319 1.1 christos break; 4320 1.1 christos /* netbsd32_lgetxattr */ 4321 1.1 christos case 230: 4322 1.1 christos switch(ndx) { 4323 1.1 christos case 0: 4324 1.1 christos p = "netbsd32_charp"; 4325 1.1 christos break; 4326 1.1 christos case 1: 4327 1.1 christos p = "netbsd32_charp"; 4328 1.1 christos break; 4329 1.1 christos case 2: 4330 1.1 christos p = "netbsd32_voidp"; 4331 1.1 christos break; 4332 1.1 christos case 3: 4333 1.1 christos p = "netbsd32_size_t"; 4334 1.1 christos break; 4335 1.1 christos default: 4336 1.1 christos break; 4337 1.1 christos }; 4338 1.1 christos break; 4339 1.1 christos /* netbsd32_fgetxattr */ 4340 1.1 christos case 231: 4341 1.1 christos switch(ndx) { 4342 1.1 christos case 0: 4343 1.1 christos p = "int"; 4344 1.1 christos break; 4345 1.1 christos case 1: 4346 1.1 christos p = "netbsd32_charp"; 4347 1.1 christos break; 4348 1.1 christos case 2: 4349 1.1 christos p = "netbsd32_voidp"; 4350 1.1 christos break; 4351 1.1 christos case 3: 4352 1.1 christos p = "netbsd32_size_t"; 4353 1.1 christos break; 4354 1.1 christos default: 4355 1.1 christos break; 4356 1.1 christos }; 4357 1.1 christos break; 4358 1.1 christos /* netbsd32_listxattr */ 4359 1.1 christos case 232: 4360 1.1 christos switch(ndx) { 4361 1.1 christos case 0: 4362 1.1 christos p = "netbsd32_charp"; 4363 1.1 christos break; 4364 1.1 christos case 1: 4365 1.1 christos p = "netbsd32_charp"; 4366 1.1 christos break; 4367 1.1 christos case 2: 4368 1.1 christos p = "netbsd32_size_t"; 4369 1.1 christos break; 4370 1.1 christos default: 4371 1.1 christos break; 4372 1.1 christos }; 4373 1.1 christos break; 4374 1.1 christos /* netbsd32_llistxattr */ 4375 1.1 christos case 233: 4376 1.1 christos switch(ndx) { 4377 1.1 christos case 0: 4378 1.1 christos p = "netbsd32_charp"; 4379 1.1 christos break; 4380 1.1 christos case 1: 4381 1.1 christos p = "netbsd32_charp"; 4382 1.1 christos break; 4383 1.1 christos case 2: 4384 1.1 christos p = "netbsd32_size_t"; 4385 1.1 christos break; 4386 1.1 christos default: 4387 1.1 christos break; 4388 1.1 christos }; 4389 1.1 christos break; 4390 1.1 christos /* netbsd32_flistxattr */ 4391 1.1 christos case 234: 4392 1.1 christos switch(ndx) { 4393 1.1 christos case 0: 4394 1.1 christos p = "int"; 4395 1.1 christos break; 4396 1.1 christos case 1: 4397 1.1 christos p = "netbsd32_charp"; 4398 1.1 christos break; 4399 1.1 christos case 2: 4400 1.1 christos p = "netbsd32_size_t"; 4401 1.1 christos break; 4402 1.1 christos default: 4403 1.1 christos break; 4404 1.1 christos }; 4405 1.1 christos break; 4406 1.1 christos /* netbsd32_removexattr */ 4407 1.1 christos case 235: 4408 1.1 christos switch(ndx) { 4409 1.1 christos case 0: 4410 1.1 christos p = "netbsd32_charp"; 4411 1.1 christos break; 4412 1.1 christos case 1: 4413 1.1 christos p = "netbsd32_charp"; 4414 1.1 christos break; 4415 1.1 christos default: 4416 1.1 christos break; 4417 1.1 christos }; 4418 1.1 christos break; 4419 1.1 christos /* netbsd32_lremovexattr */ 4420 1.1 christos case 236: 4421 1.1 christos switch(ndx) { 4422 1.1 christos case 0: 4423 1.1 christos p = "netbsd32_charp"; 4424 1.1 christos break; 4425 1.1 christos case 1: 4426 1.1 christos p = "netbsd32_charp"; 4427 1.1 christos break; 4428 1.1 christos default: 4429 1.1 christos break; 4430 1.1 christos }; 4431 1.1 christos break; 4432 1.1 christos /* netbsd32_fremovexattr */ 4433 1.1 christos case 237: 4434 1.1 christos switch(ndx) { 4435 1.1 christos case 0: 4436 1.1 christos p = "int"; 4437 1.1 christos break; 4438 1.1 christos case 1: 4439 1.1 christos p = "netbsd32_charp"; 4440 1.1 christos break; 4441 1.1 christos default: 4442 1.1 christos break; 4443 1.1 christos }; 4444 1.1 christos break; 4445 1.1 christos /* linux32_sys_tkill */ 4446 1.1 christos case 238: 4447 1.1 christos switch(ndx) { 4448 1.1 christos case 0: 4449 1.1 christos p = "int"; 4450 1.1 christos break; 4451 1.1 christos case 1: 4452 1.1 christos p = "int"; 4453 1.1 christos break; 4454 1.1 christos default: 4455 1.1 christos break; 4456 1.1 christos }; 4457 1.1 christos break; 4458 1.1 christos /* linux32_sys_futex */ 4459 1.1 christos case 240: 4460 1.1 christos switch(ndx) { 4461 1.1 christos case 0: 4462 1.1 christos p = "linux32_intp_t"; 4463 1.1 christos break; 4464 1.1 christos case 1: 4465 1.1 christos p = "int"; 4466 1.1 christos break; 4467 1.1 christos case 2: 4468 1.1 christos p = "int"; 4469 1.1 christos break; 4470 1.1 christos case 3: 4471 1.1 christos p = "linux32_timespecp_t"; 4472 1.1 christos break; 4473 1.1 christos case 4: 4474 1.1 christos p = "linux32_intp_t"; 4475 1.1 christos break; 4476 1.1 christos case 5: 4477 1.1 christos p = "int"; 4478 1.1 christos break; 4479 1.1 christos default: 4480 1.1 christos break; 4481 1.1 christos }; 4482 1.1 christos break; 4483 1.1 christos /* linux32_sys_sched_setaffinity */ 4484 1.1 christos case 241: 4485 1.1 christos switch(ndx) { 4486 1.1 christos case 0: 4487 1.1 christos p = "pid_t"; 4488 1.1 christos break; 4489 1.1 christos case 1: 4490 1.1 christos p = "unsigned int"; 4491 1.1 christos break; 4492 1.1 christos case 2: 4493 1.1 christos p = "linux32_ulongp_t"; 4494 1.1 christos break; 4495 1.1 christos default: 4496 1.1 christos break; 4497 1.1 christos }; 4498 1.1 christos break; 4499 1.1 christos /* linux32_sys_sched_getaffinity */ 4500 1.1 christos case 242: 4501 1.1 christos switch(ndx) { 4502 1.1 christos case 0: 4503 1.1 christos p = "pid_t"; 4504 1.1 christos break; 4505 1.1 christos case 1: 4506 1.1 christos p = "unsigned int"; 4507 1.1 christos break; 4508 1.1 christos case 2: 4509 1.1 christos p = "linux32_ulongp_t"; 4510 1.1 christos break; 4511 1.1 christos default: 4512 1.1 christos break; 4513 1.1 christos }; 4514 1.1 christos break; 4515 1.1 christos /* linux32_sys_set_thread_area */ 4516 1.1 christos case 243: 4517 1.1 christos switch(ndx) { 4518 1.1 christos case 0: 4519 1.1 christos p = "linux32_user_descp_t"; 4520 1.1 christos break; 4521 1.1 christos default: 4522 1.1 christos break; 4523 1.1 christos }; 4524 1.1 christos break; 4525 1.1 christos /* linux32_sys_get_thread_area */ 4526 1.1 christos case 244: 4527 1.1 christos switch(ndx) { 4528 1.1 christos case 0: 4529 1.1 christos p = "linux32_user_descp_t"; 4530 1.1 christos break; 4531 1.1 christos default: 4532 1.1 christos break; 4533 1.1 christos }; 4534 1.1 christos break; 4535 1.1 christos /* linux32_sys_fadvise64 */ 4536 1.1 christos case 250: 4537 1.1 christos switch(ndx) { 4538 1.1 christos case 0: 4539 1.1 christos p = "int"; 4540 1.1 christos break; 4541 1.1 christos case 1: 4542 1.1 christos p = "uint32_t"; 4543 1.1 christos break; 4544 1.1 christos case 2: 4545 1.1 christos p = "uint32_t"; 4546 1.1 christos break; 4547 1.1 christos case 3: 4548 1.1 christos p = "linux32_size_t"; 4549 1.1 christos break; 4550 1.1 christos case 4: 4551 1.1 christos p = "int"; 4552 1.1 christos break; 4553 1.1 christos default: 4554 1.1 christos break; 4555 1.1 christos }; 4556 1.1 christos break; 4557 1.1 christos /* linux32_sys_exit_group */ 4558 1.1 christos case 252: 4559 1.1 christos switch(ndx) { 4560 1.1 christos case 0: 4561 1.1 christos p = "int"; 4562 1.1 christos break; 4563 1.1 christos default: 4564 1.1 christos break; 4565 1.1 christos }; 4566 1.1 christos break; 4567 1.1 christos /* linux32_sys_set_tid_address */ 4568 1.1 christos case 258: 4569 1.1 christos switch(ndx) { 4570 1.1 christos case 0: 4571 1.1 christos p = "linux32_intp_t"; 4572 1.1 christos break; 4573 1.1 christos default: 4574 1.1 christos break; 4575 1.1 christos }; 4576 1.1 christos break; 4577 1.9 thorpej /* linux32_sys_timer_create */ 4578 1.9 thorpej case 259: 4579 1.9 thorpej switch(ndx) { 4580 1.9 thorpej case 0: 4581 1.9 thorpej p = "clockid_t"; 4582 1.9 thorpej break; 4583 1.9 thorpej case 1: 4584 1.9 thorpej p = "struct linux32_sigevent *"; 4585 1.9 thorpej break; 4586 1.9 thorpej case 2: 4587 1.9 thorpej p = "timer_t *"; 4588 1.9 thorpej break; 4589 1.9 thorpej default: 4590 1.9 thorpej break; 4591 1.9 thorpej }; 4592 1.9 thorpej break; 4593 1.9 thorpej /* linux32_sys_timer_settime */ 4594 1.9 thorpej case 260: 4595 1.9 thorpej switch(ndx) { 4596 1.9 thorpej case 0: 4597 1.9 thorpej p = "timer_t"; 4598 1.9 thorpej break; 4599 1.9 thorpej case 1: 4600 1.9 thorpej p = "int"; 4601 1.9 thorpej break; 4602 1.9 thorpej case 2: 4603 1.9 thorpej p = "const struct linux32_itimerspec *"; 4604 1.9 thorpej break; 4605 1.9 thorpej case 3: 4606 1.9 thorpej p = "struct linux32_itimerspec *"; 4607 1.9 thorpej break; 4608 1.9 thorpej default: 4609 1.9 thorpej break; 4610 1.9 thorpej }; 4611 1.9 thorpej break; 4612 1.9 thorpej /* linux32_sys_timer_gettime */ 4613 1.9 thorpej case 261: 4614 1.9 thorpej switch(ndx) { 4615 1.9 thorpej case 0: 4616 1.9 thorpej p = "timer_t"; 4617 1.9 thorpej break; 4618 1.9 thorpej case 1: 4619 1.9 thorpej p = "struct linux32_itimerspec *"; 4620 1.9 thorpej break; 4621 1.9 thorpej default: 4622 1.9 thorpej break; 4623 1.9 thorpej }; 4624 1.9 thorpej break; 4625 1.9 thorpej /* sys_timer_getoverrun */ 4626 1.9 thorpej case 262: 4627 1.9 thorpej switch(ndx) { 4628 1.9 thorpej case 0: 4629 1.9 thorpej p = "timer_t"; 4630 1.9 thorpej break; 4631 1.9 thorpej default: 4632 1.9 thorpej break; 4633 1.9 thorpej }; 4634 1.9 thorpej break; 4635 1.9 thorpej /* sys_timer_delete */ 4636 1.9 thorpej case 263: 4637 1.9 thorpej switch(ndx) { 4638 1.9 thorpej case 0: 4639 1.9 thorpej p = "timer_t"; 4640 1.9 thorpej break; 4641 1.9 thorpej default: 4642 1.9 thorpej break; 4643 1.9 thorpej }; 4644 1.9 thorpej break; 4645 1.1 christos /* linux32_sys_clock_settime */ 4646 1.1 christos case 264: 4647 1.1 christos switch(ndx) { 4648 1.1 christos case 0: 4649 1.1 christos p = "clockid_t"; 4650 1.1 christos break; 4651 1.1 christos case 1: 4652 1.1 christos p = "linux32_timespecp_t"; 4653 1.1 christos break; 4654 1.1 christos default: 4655 1.1 christos break; 4656 1.1 christos }; 4657 1.1 christos break; 4658 1.1 christos /* linux32_sys_clock_gettime */ 4659 1.1 christos case 265: 4660 1.1 christos switch(ndx) { 4661 1.1 christos case 0: 4662 1.1 christos p = "clockid_t"; 4663 1.1 christos break; 4664 1.1 christos case 1: 4665 1.1 christos p = "linux32_timespecp_t"; 4666 1.1 christos break; 4667 1.1 christos default: 4668 1.1 christos break; 4669 1.1 christos }; 4670 1.1 christos break; 4671 1.1 christos /* linux32_sys_clock_getres */ 4672 1.1 christos case 266: 4673 1.1 christos switch(ndx) { 4674 1.1 christos case 0: 4675 1.1 christos p = "clockid_t"; 4676 1.1 christos break; 4677 1.1 christos case 1: 4678 1.1 christos p = "linux32_timespecp_t"; 4679 1.1 christos break; 4680 1.1 christos default: 4681 1.1 christos break; 4682 1.1 christos }; 4683 1.1 christos break; 4684 1.1 christos /* linux32_sys_clock_nanosleep */ 4685 1.1 christos case 267: 4686 1.1 christos switch(ndx) { 4687 1.1 christos case 0: 4688 1.1 christos p = "clockid_t"; 4689 1.1 christos break; 4690 1.1 christos case 1: 4691 1.1 christos p = "int"; 4692 1.1 christos break; 4693 1.1 christos case 2: 4694 1.1 christos p = "linux32_timespecp_t"; 4695 1.1 christos break; 4696 1.1 christos case 3: 4697 1.1 christos p = "linux32_timespecp_t"; 4698 1.1 christos break; 4699 1.1 christos default: 4700 1.1 christos break; 4701 1.1 christos }; 4702 1.1 christos break; 4703 1.1 christos /* linux32_sys_statfs64 */ 4704 1.1 christos case 268: 4705 1.1 christos switch(ndx) { 4706 1.1 christos case 0: 4707 1.1 christos p = "netbsd32_charp"; 4708 1.1 christos break; 4709 1.1 christos case 1: 4710 1.1 christos p = "netbsd32_size_t"; 4711 1.1 christos break; 4712 1.1 christos case 2: 4713 1.1 christos p = "linux32_statfs64p"; 4714 1.1 christos break; 4715 1.1 christos default: 4716 1.1 christos break; 4717 1.1 christos }; 4718 1.1 christos break; 4719 1.1 christos /* linux32_sys_fstatfs64 */ 4720 1.1 christos case 269: 4721 1.1 christos switch(ndx) { 4722 1.1 christos case 0: 4723 1.1 christos p = "int"; 4724 1.1 christos break; 4725 1.1 christos case 1: 4726 1.1 christos p = "netbsd32_size_t"; 4727 1.1 christos break; 4728 1.1 christos case 2: 4729 1.1 christos p = "linux32_statfs64p"; 4730 1.1 christos break; 4731 1.1 christos default: 4732 1.1 christos break; 4733 1.1 christos }; 4734 1.1 christos break; 4735 1.1 christos /* linux32_sys_tgkill */ 4736 1.1 christos case 270: 4737 1.1 christos switch(ndx) { 4738 1.1 christos case 0: 4739 1.1 christos p = "int"; 4740 1.1 christos break; 4741 1.1 christos case 1: 4742 1.1 christos p = "int"; 4743 1.1 christos break; 4744 1.1 christos case 2: 4745 1.1 christos p = "int"; 4746 1.1 christos break; 4747 1.1 christos default: 4748 1.1 christos break; 4749 1.1 christos }; 4750 1.1 christos break; 4751 1.1 christos /* compat_50_netbsd32_utimes */ 4752 1.1 christos case 271: 4753 1.1 christos switch(ndx) { 4754 1.1 christos case 0: 4755 1.1 christos p = "netbsd32_charp"; 4756 1.1 christos break; 4757 1.1 christos case 1: 4758 1.1 christos p = "netbsd32_timeval50p_t"; 4759 1.1 christos break; 4760 1.1 christos default: 4761 1.1 christos break; 4762 1.1 christos }; 4763 1.1 christos break; 4764 1.1 christos /* linux32_sys_fadvise64_64 */ 4765 1.1 christos case 272: 4766 1.1 christos switch(ndx) { 4767 1.1 christos case 0: 4768 1.1 christos p = "int"; 4769 1.1 christos break; 4770 1.1 christos case 1: 4771 1.1 christos p = "uint32_t"; 4772 1.1 christos break; 4773 1.1 christos case 2: 4774 1.1 christos p = "uint32_t"; 4775 1.1 christos break; 4776 1.1 christos case 3: 4777 1.1 christos p = "uint32_t"; 4778 1.1 christos break; 4779 1.1 christos case 4: 4780 1.1 christos p = "uint32_t"; 4781 1.1 christos break; 4782 1.1 christos case 5: 4783 1.1 christos p = "int"; 4784 1.1 christos break; 4785 1.1 christos default: 4786 1.1 christos break; 4787 1.1 christos }; 4788 1.1 christos break; 4789 1.1 christos /* linux32_sys_openat */ 4790 1.1 christos case 295: 4791 1.1 christos switch(ndx) { 4792 1.1 christos case 0: 4793 1.1 christos p = "int"; 4794 1.1 christos break; 4795 1.1 christos case 1: 4796 1.1 christos p = "netbsd32_charp"; 4797 1.1 christos break; 4798 1.1 christos case 2: 4799 1.1 christos p = "int"; 4800 1.1 christos break; 4801 1.1 christos case 3: 4802 1.1 christos p = "linux_umode_t"; 4803 1.1 christos break; 4804 1.1 christos default: 4805 1.1 christos break; 4806 1.1 christos }; 4807 1.1 christos break; 4808 1.1 christos /* netbsd32_mkdirat */ 4809 1.1 christos case 296: 4810 1.1 christos switch(ndx) { 4811 1.1 christos case 0: 4812 1.1 christos p = "int"; 4813 1.1 christos break; 4814 1.1 christos case 1: 4815 1.1 christos p = "netbsd32_charp"; 4816 1.1 christos break; 4817 1.1 christos case 2: 4818 1.1 christos p = "linux_umode_t"; 4819 1.1 christos break; 4820 1.1 christos default: 4821 1.1 christos break; 4822 1.1 christos }; 4823 1.1 christos break; 4824 1.1 christos /* linux32_sys_mknodat */ 4825 1.1 christos case 297: 4826 1.1 christos switch(ndx) { 4827 1.1 christos case 0: 4828 1.1 christos p = "int"; 4829 1.1 christos break; 4830 1.1 christos case 1: 4831 1.1 christos p = "netbsd32_charp"; 4832 1.1 christos break; 4833 1.1 christos case 2: 4834 1.1 christos p = "linux_umode_t"; 4835 1.1 christos break; 4836 1.1 christos case 3: 4837 1.1 christos p = "unsigned"; 4838 1.1 christos break; 4839 1.1 christos default: 4840 1.1 christos break; 4841 1.1 christos }; 4842 1.1 christos break; 4843 1.1 christos /* linux32_sys_fchownat */ 4844 1.1 christos case 298: 4845 1.1 christos switch(ndx) { 4846 1.1 christos case 0: 4847 1.1 christos p = "int"; 4848 1.1 christos break; 4849 1.1 christos case 1: 4850 1.1 christos p = "netbsd32_charp"; 4851 1.1 christos break; 4852 1.1 christos case 2: 4853 1.1 christos p = "uid_t"; 4854 1.1 christos break; 4855 1.1 christos case 3: 4856 1.1 christos p = "gid_t"; 4857 1.1 christos break; 4858 1.1 christos case 4: 4859 1.1 christos p = "int"; 4860 1.1 christos break; 4861 1.1 christos default: 4862 1.1 christos break; 4863 1.1 christos }; 4864 1.1 christos break; 4865 1.1 christos /* linux32_sys_fstatat64 */ 4866 1.1 christos case 300: 4867 1.1 christos switch(ndx) { 4868 1.1 christos case 0: 4869 1.1 christos p = "int"; 4870 1.1 christos break; 4871 1.1 christos case 1: 4872 1.1 christos p = "netbsd32_charp"; 4873 1.1 christos break; 4874 1.1 christos case 2: 4875 1.1 christos p = "linux32_stat64p"; 4876 1.1 christos break; 4877 1.1 christos case 3: 4878 1.1 christos p = "int"; 4879 1.1 christos break; 4880 1.1 christos default: 4881 1.1 christos break; 4882 1.1 christos }; 4883 1.1 christos break; 4884 1.1 christos /* linux32_sys_unlinkat */ 4885 1.1 christos case 301: 4886 1.1 christos switch(ndx) { 4887 1.1 christos case 0: 4888 1.1 christos p = "int"; 4889 1.1 christos break; 4890 1.1 christos case 1: 4891 1.1 christos p = "netbsd32_charp"; 4892 1.1 christos break; 4893 1.1 christos case 2: 4894 1.1 christos p = "int"; 4895 1.1 christos break; 4896 1.1 christos default: 4897 1.1 christos break; 4898 1.1 christos }; 4899 1.1 christos break; 4900 1.1 christos /* netbsd32_renameat */ 4901 1.1 christos case 302: 4902 1.1 christos switch(ndx) { 4903 1.1 christos case 0: 4904 1.1 christos p = "int"; 4905 1.1 christos break; 4906 1.1 christos case 1: 4907 1.1 christos p = "netbsd32_charp"; 4908 1.1 christos break; 4909 1.1 christos case 2: 4910 1.1 christos p = "int"; 4911 1.1 christos break; 4912 1.1 christos case 3: 4913 1.1 christos p = "netbsd32_charp"; 4914 1.1 christos break; 4915 1.1 christos default: 4916 1.1 christos break; 4917 1.1 christos }; 4918 1.1 christos break; 4919 1.1 christos /* linux32_sys_linkat */ 4920 1.1 christos case 303: 4921 1.1 christos switch(ndx) { 4922 1.1 christos case 0: 4923 1.1 christos p = "int"; 4924 1.1 christos break; 4925 1.1 christos case 1: 4926 1.1 christos p = "netbsd32_charp"; 4927 1.1 christos break; 4928 1.1 christos case 2: 4929 1.1 christos p = "int"; 4930 1.1 christos break; 4931 1.1 christos case 3: 4932 1.1 christos p = "netbsd32_charp"; 4933 1.1 christos break; 4934 1.1 christos case 4: 4935 1.1 christos p = "int"; 4936 1.1 christos break; 4937 1.1 christos default: 4938 1.1 christos break; 4939 1.1 christos }; 4940 1.1 christos break; 4941 1.1 christos /* netbsd32_symlinkat */ 4942 1.1 christos case 304: 4943 1.1 christos switch(ndx) { 4944 1.1 christos case 0: 4945 1.1 christos p = "netbsd32_charp"; 4946 1.1 christos break; 4947 1.1 christos case 1: 4948 1.1 christos p = "int"; 4949 1.1 christos break; 4950 1.1 christos case 2: 4951 1.1 christos p = "netbsd32_charp"; 4952 1.1 christos break; 4953 1.1 christos default: 4954 1.1 christos break; 4955 1.1 christos }; 4956 1.1 christos break; 4957 1.1 christos /* netbsd32_readlinkat */ 4958 1.1 christos case 305: 4959 1.1 christos switch(ndx) { 4960 1.1 christos case 0: 4961 1.1 christos p = "int"; 4962 1.1 christos break; 4963 1.1 christos case 1: 4964 1.1 christos p = "netbsd32_charp"; 4965 1.1 christos break; 4966 1.1 christos case 2: 4967 1.1 christos p = "netbsd32_charp"; 4968 1.1 christos break; 4969 1.1 christos case 3: 4970 1.1 christos p = "linux32_size_t"; 4971 1.1 christos break; 4972 1.1 christos default: 4973 1.1 christos break; 4974 1.1 christos }; 4975 1.1 christos break; 4976 1.1 christos /* linux32_sys_fchmodat */ 4977 1.1 christos case 306: 4978 1.1 christos switch(ndx) { 4979 1.1 christos case 0: 4980 1.1 christos p = "int"; 4981 1.1 christos break; 4982 1.1 christos case 1: 4983 1.1 christos p = "netbsd32_charp"; 4984 1.1 christos break; 4985 1.1 christos case 2: 4986 1.1 christos p = "linux_umode_t"; 4987 1.1 christos break; 4988 1.1 christos default: 4989 1.1 christos break; 4990 1.1 christos }; 4991 1.1 christos break; 4992 1.1 christos /* linux32_sys_faccessat */ 4993 1.1 christos case 307: 4994 1.1 christos switch(ndx) { 4995 1.1 christos case 0: 4996 1.1 christos p = "int"; 4997 1.1 christos break; 4998 1.1 christos case 1: 4999 1.1 christos p = "netbsd32_charp"; 5000 1.1 christos break; 5001 1.1 christos case 2: 5002 1.1 christos p = "int"; 5003 1.1 christos break; 5004 1.1 christos default: 5005 1.1 christos break; 5006 1.1 christos }; 5007 1.1 christos break; 5008 1.13 ryo /* linux32_sys_pselect6 */ 5009 1.13 ryo case 308: 5010 1.13 ryo switch(ndx) { 5011 1.13 ryo case 0: 5012 1.13 ryo p = "int"; 5013 1.13 ryo break; 5014 1.13 ryo case 1: 5015 1.13 ryo p = "netbsd32_fd_setp_t"; 5016 1.13 ryo break; 5017 1.13 ryo case 2: 5018 1.13 ryo p = "netbsd32_fd_setp_t"; 5019 1.13 ryo break; 5020 1.13 ryo case 3: 5021 1.13 ryo p = "netbsd32_fd_setp_t"; 5022 1.13 ryo break; 5023 1.13 ryo case 4: 5024 1.13 ryo p = "linux32_timespecp_t"; 5025 1.13 ryo break; 5026 1.13 ryo case 5: 5027 1.13 ryo p = "linux32_sized_sigsetp_t"; 5028 1.13 ryo break; 5029 1.13 ryo default: 5030 1.13 ryo break; 5031 1.13 ryo }; 5032 1.13 ryo break; 5033 1.1 christos /* linux32_sys_ppoll */ 5034 1.1 christos case 309: 5035 1.1 christos switch(ndx) { 5036 1.1 christos case 0: 5037 1.1 christos p = "netbsd32_pollfdp_t"; 5038 1.1 christos break; 5039 1.1 christos case 1: 5040 1.1 christos p = "u_int"; 5041 1.1 christos break; 5042 1.1 christos case 2: 5043 1.1 christos p = "linux32_timespecp_t"; 5044 1.1 christos break; 5045 1.1 christos case 3: 5046 1.1 christos p = "linux32_sigsetp_t"; 5047 1.1 christos break; 5048 1.1 christos default: 5049 1.1 christos break; 5050 1.1 christos }; 5051 1.1 christos break; 5052 1.8 thorpej /* netbsd32___futex_set_robust_list */ 5053 1.1 christos case 311: 5054 1.1 christos switch(ndx) { 5055 1.1 christos case 0: 5056 1.8 thorpej p = "netbsd32_voidp"; 5057 1.1 christos break; 5058 1.1 christos case 1: 5059 1.8 thorpej p = "netbsd32_size_t"; 5060 1.1 christos break; 5061 1.1 christos default: 5062 1.1 christos break; 5063 1.1 christos }; 5064 1.1 christos break; 5065 1.8 thorpej /* netbsd32___futex_get_robust_list */ 5066 1.1 christos case 312: 5067 1.1 christos switch(ndx) { 5068 1.1 christos case 0: 5069 1.8 thorpej p = "lwpid_t"; 5070 1.1 christos break; 5071 1.1 christos case 1: 5072 1.8 thorpej p = "netbsd32_voidp"; 5073 1.1 christos break; 5074 1.1 christos case 2: 5075 1.8 thorpej p = "netbsd32_size_tp"; 5076 1.1 christos break; 5077 1.1 christos default: 5078 1.1 christos break; 5079 1.1 christos }; 5080 1.1 christos break; 5081 1.1 christos /* linux32_sys_utimensat */ 5082 1.1 christos case 320: 5083 1.1 christos switch(ndx) { 5084 1.1 christos case 0: 5085 1.1 christos p = "int"; 5086 1.1 christos break; 5087 1.1 christos case 1: 5088 1.1 christos p = "netbsd32_charp"; 5089 1.1 christos break; 5090 1.1 christos case 2: 5091 1.1 christos p = "linux32_timespecp_t"; 5092 1.1 christos break; 5093 1.1 christos case 3: 5094 1.1 christos p = "int"; 5095 1.1 christos break; 5096 1.1 christos default: 5097 1.1 christos break; 5098 1.1 christos }; 5099 1.1 christos break; 5100 1.10 thorpej /* linux_sys_timerfd_create */ 5101 1.10 thorpej case 322: 5102 1.10 thorpej switch(ndx) { 5103 1.10 thorpej case 0: 5104 1.10 thorpej p = "clockid_t"; 5105 1.10 thorpej break; 5106 1.10 thorpej case 1: 5107 1.10 thorpej p = "int"; 5108 1.10 thorpej break; 5109 1.10 thorpej default: 5110 1.10 thorpej break; 5111 1.10 thorpej }; 5112 1.10 thorpej break; 5113 1.11 thorpej /* linux32_sys_eventfd */ 5114 1.11 thorpej case 323: 5115 1.11 thorpej switch(ndx) { 5116 1.11 thorpej case 0: 5117 1.11 thorpej p = "unsigned int"; 5118 1.11 thorpej break; 5119 1.11 thorpej default: 5120 1.11 thorpej break; 5121 1.11 thorpej }; 5122 1.11 thorpej break; 5123 1.7 jdolecek /* linux32_sys_fallocate */ 5124 1.7 jdolecek case 324: 5125 1.7 jdolecek switch(ndx) { 5126 1.7 jdolecek case 0: 5127 1.7 jdolecek p = "int"; 5128 1.7 jdolecek break; 5129 1.7 jdolecek case 1: 5130 1.7 jdolecek p = "int"; 5131 1.7 jdolecek break; 5132 1.7 jdolecek case 2: 5133 1.7 jdolecek p = "off_t"; 5134 1.7 jdolecek break; 5135 1.7 jdolecek case 3: 5136 1.7 jdolecek p = "off_t"; 5137 1.7 jdolecek break; 5138 1.7 jdolecek default: 5139 1.7 jdolecek break; 5140 1.7 jdolecek }; 5141 1.7 jdolecek break; 5142 1.10 thorpej /* linux32_sys_timerfd_settime */ 5143 1.10 thorpej case 325: 5144 1.10 thorpej switch(ndx) { 5145 1.10 thorpej case 0: 5146 1.10 thorpej p = "int"; 5147 1.10 thorpej break; 5148 1.10 thorpej case 1: 5149 1.10 thorpej p = "int"; 5150 1.10 thorpej break; 5151 1.10 thorpej case 2: 5152 1.10 thorpej p = "const struct linux32_itimerspec *"; 5153 1.10 thorpej break; 5154 1.10 thorpej case 3: 5155 1.10 thorpej p = "struct linux32_itimerspec *"; 5156 1.10 thorpej break; 5157 1.10 thorpej default: 5158 1.10 thorpej break; 5159 1.10 thorpej }; 5160 1.10 thorpej break; 5161 1.10 thorpej /* linux32_sys_timerfd_gettime */ 5162 1.10 thorpej case 326: 5163 1.10 thorpej switch(ndx) { 5164 1.10 thorpej case 0: 5165 1.10 thorpej p = "int"; 5166 1.10 thorpej break; 5167 1.10 thorpej case 1: 5168 1.10 thorpej p = "struct linux32_itimerspec *"; 5169 1.10 thorpej break; 5170 1.10 thorpej default: 5171 1.10 thorpej break; 5172 1.10 thorpej }; 5173 1.10 thorpej break; 5174 1.11 thorpej /* linux32_sys_eventfd2 */ 5175 1.11 thorpej case 328: 5176 1.11 thorpej switch(ndx) { 5177 1.11 thorpej case 0: 5178 1.11 thorpej p = "unsigned int"; 5179 1.11 thorpej break; 5180 1.11 thorpej case 1: 5181 1.11 thorpej p = "int"; 5182 1.11 thorpej break; 5183 1.11 thorpej default: 5184 1.11 thorpej break; 5185 1.11 thorpej }; 5186 1.11 thorpej break; 5187 1.1 christos /* linux32_sys_dup3 */ 5188 1.1 christos case 330: 5189 1.1 christos switch(ndx) { 5190 1.1 christos case 0: 5191 1.1 christos p = "int"; 5192 1.1 christos break; 5193 1.1 christos case 1: 5194 1.1 christos p = "int"; 5195 1.1 christos break; 5196 1.1 christos case 2: 5197 1.1 christos p = "int"; 5198 1.1 christos break; 5199 1.1 christos default: 5200 1.1 christos break; 5201 1.1 christos }; 5202 1.1 christos break; 5203 1.1 christos /* linux32_sys_pipe2 */ 5204 1.1 christos case 331: 5205 1.1 christos switch(ndx) { 5206 1.1 christos case 0: 5207 1.1 christos p = "netbsd32_intp"; 5208 1.1 christos break; 5209 1.1 christos case 1: 5210 1.1 christos p = "int"; 5211 1.1 christos break; 5212 1.1 christos default: 5213 1.1 christos break; 5214 1.1 christos }; 5215 1.1 christos break; 5216 1.12 thorpej /* linux32_sys_preadv */ 5217 1.12 thorpej case 333: 5218 1.12 thorpej switch(ndx) { 5219 1.12 thorpej case 0: 5220 1.12 thorpej p = "int"; 5221 1.12 thorpej break; 5222 1.12 thorpej case 1: 5223 1.12 thorpej p = "const netbsd32_iovecp_t"; 5224 1.12 thorpej break; 5225 1.12 thorpej case 2: 5226 1.12 thorpej p = "int"; 5227 1.12 thorpej break; 5228 1.12 thorpej case 3: 5229 1.12 thorpej p = "netbsd32_u_long"; 5230 1.12 thorpej break; 5231 1.12 thorpej case 4: 5232 1.12 thorpej p = "netbsd32_u_long"; 5233 1.12 thorpej break; 5234 1.12 thorpej default: 5235 1.12 thorpej break; 5236 1.12 thorpej }; 5237 1.12 thorpej break; 5238 1.12 thorpej /* linux32_sys_pwritev */ 5239 1.12 thorpej case 334: 5240 1.12 thorpej switch(ndx) { 5241 1.12 thorpej case 0: 5242 1.12 thorpej p = "int"; 5243 1.12 thorpej break; 5244 1.12 thorpej case 1: 5245 1.12 thorpej p = "const netbsd32_iovecp_t"; 5246 1.12 thorpej break; 5247 1.12 thorpej case 2: 5248 1.12 thorpej p = "int"; 5249 1.12 thorpej break; 5250 1.12 thorpej case 3: 5251 1.12 thorpej p = "netbsd32_u_long"; 5252 1.12 thorpej break; 5253 1.12 thorpej case 4: 5254 1.12 thorpej p = "netbsd32_u_long"; 5255 1.12 thorpej break; 5256 1.12 thorpej default: 5257 1.12 thorpej break; 5258 1.12 thorpej }; 5259 1.12 thorpej break; 5260 1.14 ryo /* linux32_sys_prlimit64 */ 5261 1.14 ryo case 340: 5262 1.14 ryo switch(ndx) { 5263 1.14 ryo case 0: 5264 1.14 ryo p = "pid_t"; 5265 1.14 ryo break; 5266 1.14 ryo case 1: 5267 1.14 ryo p = "int"; 5268 1.14 ryo break; 5269 1.14 ryo case 2: 5270 1.14 ryo p = "netbsd32_rlimitp_t"; 5271 1.14 ryo break; 5272 1.14 ryo case 3: 5273 1.14 ryo p = "netbsd32_rlimitp_t"; 5274 1.14 ryo break; 5275 1.14 ryo default: 5276 1.14 ryo break; 5277 1.14 ryo }; 5278 1.14 ryo break; 5279 1.1 christos default: 5280 1.1 christos break; 5281 1.1 christos }; 5282 1.1 christos if (p != NULL) 5283 1.1 christos strlcpy(desc, p, descsz); 5284 1.1 christos } 5285 1.1 christos static void 5286 1.1 christos systrace_return_setargdesc(int sysnum, int ndx, char *desc, size_t descsz) 5287 1.1 christos { 5288 1.1 christos const char *p = NULL; 5289 1.1 christos switch (sysnum) { 5290 1.1 christos /* linux_sys_nosys */ 5291 1.1 christos case 0: 5292 1.1 christos /* linux32_sys_exit */ 5293 1.1 christos case 1: 5294 1.1 christos if (ndx == 0 || ndx == 1) 5295 1.1 christos p = "int"; 5296 1.1 christos break; 5297 1.1 christos /* sys_fork */ 5298 1.1 christos case 2: 5299 1.1 christos /* netbsd32_read */ 5300 1.1 christos case 3: 5301 1.1 christos if (ndx == 0 || ndx == 1) 5302 1.1 christos p = "netbsd32_ssize_t"; 5303 1.1 christos break; 5304 1.1 christos /* netbsd32_write */ 5305 1.1 christos case 4: 5306 1.1 christos if (ndx == 0 || ndx == 1) 5307 1.1 christos p = "netbsd32_ssize_t"; 5308 1.1 christos break; 5309 1.1 christos /* linux32_sys_open */ 5310 1.1 christos case 5: 5311 1.1 christos if (ndx == 0 || ndx == 1) 5312 1.1 christos p = "int"; 5313 1.1 christos break; 5314 1.1 christos /* netbsd32_close */ 5315 1.1 christos case 6: 5316 1.1 christos if (ndx == 0 || ndx == 1) 5317 1.1 christos p = "int"; 5318 1.1 christos break; 5319 1.1 christos /* linux32_sys_waitpid */ 5320 1.1 christos case 7: 5321 1.1 christos if (ndx == 0 || ndx == 1) 5322 1.1 christos p = "int"; 5323 1.1 christos break; 5324 1.1 christos /* linux32_sys_creat */ 5325 1.1 christos case 8: 5326 1.1 christos if (ndx == 0 || ndx == 1) 5327 1.1 christos p = "int"; 5328 1.1 christos break; 5329 1.1 christos /* netbsd32_link */ 5330 1.1 christos case 9: 5331 1.1 christos if (ndx == 0 || ndx == 1) 5332 1.1 christos p = "int"; 5333 1.1 christos break; 5334 1.1 christos /* linux32_sys_unlink */ 5335 1.1 christos case 10: 5336 1.1 christos if (ndx == 0 || ndx == 1) 5337 1.1 christos p = "int"; 5338 1.1 christos break; 5339 1.1 christos /* netbsd32_execve */ 5340 1.1 christos case 11: 5341 1.1 christos if (ndx == 0 || ndx == 1) 5342 1.1 christos p = "int"; 5343 1.1 christos break; 5344 1.1 christos /* netbsd32_chdir */ 5345 1.1 christos case 12: 5346 1.1 christos if (ndx == 0 || ndx == 1) 5347 1.1 christos p = "int"; 5348 1.1 christos break; 5349 1.1 christos /* linux32_sys_time */ 5350 1.1 christos case 13: 5351 1.1 christos if (ndx == 0 || ndx == 1) 5352 1.1 christos p = "int"; 5353 1.1 christos break; 5354 1.1 christos /* linux32_sys_mknod */ 5355 1.1 christos case 14: 5356 1.1 christos if (ndx == 0 || ndx == 1) 5357 1.1 christos p = "int"; 5358 1.1 christos break; 5359 1.1 christos /* netbsd32_chmod */ 5360 1.1 christos case 15: 5361 1.1 christos if (ndx == 0 || ndx == 1) 5362 1.1 christos p = "int"; 5363 1.1 christos break; 5364 1.1 christos /* linux32_sys_lchown16 */ 5365 1.1 christos case 16: 5366 1.1 christos if (ndx == 0 || ndx == 1) 5367 1.1 christos p = "int"; 5368 1.1 christos break; 5369 1.1 christos /* linux32_sys_break */ 5370 1.1 christos case 17: 5371 1.1 christos if (ndx == 0 || ndx == 1) 5372 1.1 christos p = "int"; 5373 1.1 christos break; 5374 1.1 christos /* compat_43_netbsd32_olseek */ 5375 1.1 christos case 19: 5376 1.1 christos if (ndx == 0 || ndx == 1) 5377 1.1 christos p = "netbsd32_long"; 5378 1.1 christos break; 5379 1.1 christos /* sys_getpid */ 5380 1.1 christos case 20: 5381 1.1 christos /* netbsd32_setuid */ 5382 1.1 christos case 23: 5383 1.1 christos if (ndx == 0 || ndx == 1) 5384 1.1 christos p = "int"; 5385 1.1 christos break; 5386 1.1 christos /* sys_getuid */ 5387 1.1 christos case 24: 5388 1.1 christos /* linux32_sys_stime */ 5389 1.1 christos case 25: 5390 1.1 christos if (ndx == 0 || ndx == 1) 5391 1.1 christos p = "int"; 5392 1.1 christos break; 5393 1.1 christos /* linux32_sys_ptrace */ 5394 1.1 christos case 26: 5395 1.1 christos if (ndx == 0 || ndx == 1) 5396 1.1 christos p = "int"; 5397 1.1 christos break; 5398 1.1 christos /* linux32_sys_alarm */ 5399 1.1 christos case 27: 5400 1.1 christos if (ndx == 0 || ndx == 1) 5401 1.1 christos p = "int"; 5402 1.1 christos break; 5403 1.1 christos /* linux_sys_pause */ 5404 1.1 christos case 29: 5405 1.1 christos /* linux32_sys_utime */ 5406 1.1 christos case 30: 5407 1.1 christos if (ndx == 0 || ndx == 1) 5408 1.1 christos p = "int"; 5409 1.1 christos break; 5410 1.1 christos /* netbsd32_access */ 5411 1.1 christos case 33: 5412 1.1 christos if (ndx == 0 || ndx == 1) 5413 1.1 christos p = "int"; 5414 1.1 christos break; 5415 1.1 christos /* linux32_sys_nice */ 5416 1.1 christos case 34: 5417 1.1 christos if (ndx == 0 || ndx == 1) 5418 1.1 christos p = "int"; 5419 1.1 christos break; 5420 1.1 christos /* sys_sync */ 5421 1.1 christos case 36: 5422 1.1 christos /* linux32_sys_kill */ 5423 1.1 christos case 37: 5424 1.1 christos if (ndx == 0 || ndx == 1) 5425 1.1 christos p = "int"; 5426 1.1 christos break; 5427 1.1 christos /* netbsd32___posix_rename */ 5428 1.1 christos case 38: 5429 1.1 christos if (ndx == 0 || ndx == 1) 5430 1.1 christos p = "int"; 5431 1.1 christos break; 5432 1.1 christos /* netbsd32_mkdir */ 5433 1.1 christos case 39: 5434 1.1 christos if (ndx == 0 || ndx == 1) 5435 1.1 christos p = "int"; 5436 1.1 christos break; 5437 1.1 christos /* netbsd32_rmdir */ 5438 1.1 christos case 40: 5439 1.1 christos if (ndx == 0 || ndx == 1) 5440 1.1 christos p = "int"; 5441 1.1 christos break; 5442 1.1 christos /* netbsd32_dup */ 5443 1.1 christos case 41: 5444 1.1 christos if (ndx == 0 || ndx == 1) 5445 1.1 christos p = "int"; 5446 1.1 christos break; 5447 1.1 christos /* linux32_sys_pipe */ 5448 1.1 christos case 42: 5449 1.1 christos if (ndx == 0 || ndx == 1) 5450 1.1 christos p = "int"; 5451 1.1 christos break; 5452 1.1 christos /* linux32_sys_times */ 5453 1.1 christos case 43: 5454 1.1 christos if (ndx == 0 || ndx == 1) 5455 1.1 christos p = "int"; 5456 1.1 christos break; 5457 1.1 christos /* linux32_sys_brk */ 5458 1.1 christos case 45: 5459 1.1 christos if (ndx == 0 || ndx == 1) 5460 1.1 christos p = "int"; 5461 1.1 christos break; 5462 1.1 christos /* netbsd32_setgid */ 5463 1.1 christos case 46: 5464 1.1 christos if (ndx == 0 || ndx == 1) 5465 1.1 christos p = "int"; 5466 1.1 christos break; 5467 1.1 christos /* sys_getgid */ 5468 1.1 christos case 47: 5469 1.1 christos /* linux32_sys_signal */ 5470 1.1 christos case 48: 5471 1.1 christos if (ndx == 0 || ndx == 1) 5472 1.1 christos p = "int"; 5473 1.1 christos break; 5474 1.1 christos /* sys_geteuid */ 5475 1.1 christos case 49: 5476 1.1 christos /* sys_getegid */ 5477 1.1 christos case 50: 5478 1.1 christos /* netbsd32_acct */ 5479 1.1 christos case 51: 5480 1.1 christos if (ndx == 0 || ndx == 1) 5481 1.1 christos p = "int"; 5482 1.1 christos break; 5483 1.1 christos /* linux32_sys_ioctl */ 5484 1.1 christos case 54: 5485 1.1 christos if (ndx == 0 || ndx == 1) 5486 1.1 christos p = "int"; 5487 1.1 christos break; 5488 1.1 christos /* linux32_sys_fcntl */ 5489 1.1 christos case 55: 5490 1.1 christos if (ndx == 0 || ndx == 1) 5491 1.1 christos p = "int"; 5492 1.1 christos break; 5493 1.1 christos /* netbsd32_setpgid */ 5494 1.1 christos case 57: 5495 1.1 christos if (ndx == 0 || ndx == 1) 5496 1.1 christos p = "int"; 5497 1.1 christos break; 5498 1.1 christos /* linux32_sys_oldolduname */ 5499 1.1 christos case 59: 5500 1.1 christos if (ndx == 0 || ndx == 1) 5501 1.1 christos p = "int"; 5502 1.1 christos break; 5503 1.1 christos /* netbsd32_umask */ 5504 1.1 christos case 60: 5505 1.1 christos if (ndx == 0 || ndx == 1) 5506 1.1 christos p = "int"; 5507 1.1 christos break; 5508 1.1 christos /* netbsd32_chroot */ 5509 1.1 christos case 61: 5510 1.1 christos if (ndx == 0 || ndx == 1) 5511 1.1 christos p = "int"; 5512 1.1 christos break; 5513 1.1 christos /* netbsd32_dup2 */ 5514 1.1 christos case 63: 5515 1.1 christos if (ndx == 0 || ndx == 1) 5516 1.1 christos p = "int"; 5517 1.1 christos break; 5518 1.1 christos /* sys_getppid */ 5519 1.1 christos case 64: 5520 1.1 christos /* sys_getpgrp */ 5521 1.1 christos case 65: 5522 1.1 christos /* sys_setsid */ 5523 1.1 christos case 66: 5524 1.1 christos /* linux32_sys_siggetmask */ 5525 1.1 christos case 68: 5526 1.1 christos /* linux32_sys_sigsetmask */ 5527 1.1 christos case 69: 5528 1.1 christos if (ndx == 0 || ndx == 1) 5529 1.1 christos p = "int"; 5530 1.1 christos break; 5531 1.1 christos /* linux32_sys_setreuid16 */ 5532 1.1 christos case 70: 5533 1.1 christos if (ndx == 0 || ndx == 1) 5534 1.1 christos p = "int"; 5535 1.1 christos break; 5536 1.1 christos /* linux32_sys_setregid16 */ 5537 1.1 christos case 71: 5538 1.1 christos if (ndx == 0 || ndx == 1) 5539 1.1 christos p = "int"; 5540 1.1 christos break; 5541 1.1 christos /* compat_43_netbsd32_osethostname */ 5542 1.1 christos case 74: 5543 1.1 christos if (ndx == 0 || ndx == 1) 5544 1.1 christos p = "int"; 5545 1.1 christos break; 5546 1.1 christos /* linux32_sys_setrlimit */ 5547 1.1 christos case 75: 5548 1.1 christos if (ndx == 0 || ndx == 1) 5549 1.1 christos p = "int"; 5550 1.1 christos break; 5551 1.1 christos /* linux32_sys_getrlimit */ 5552 1.1 christos case 76: 5553 1.1 christos if (ndx == 0 || ndx == 1) 5554 1.1 christos p = "int"; 5555 1.1 christos break; 5556 1.1 christos /* compat_50_netbsd32_getrusage */ 5557 1.1 christos case 77: 5558 1.1 christos if (ndx == 0 || ndx == 1) 5559 1.1 christos p = "int"; 5560 1.1 christos break; 5561 1.1 christos /* linux32_sys_gettimeofday */ 5562 1.1 christos case 78: 5563 1.1 christos if (ndx == 0 || ndx == 1) 5564 1.1 christos p = "int"; 5565 1.1 christos break; 5566 1.1 christos /* linux32_sys_settimeofday */ 5567 1.1 christos case 79: 5568 1.1 christos if (ndx == 0 || ndx == 1) 5569 1.1 christos p = "int"; 5570 1.1 christos break; 5571 1.1 christos /* linux32_sys_getgroups16 */ 5572 1.1 christos case 80: 5573 1.1 christos if (ndx == 0 || ndx == 1) 5574 1.1 christos p = "int"; 5575 1.1 christos break; 5576 1.1 christos /* linux32_sys_setgroups16 */ 5577 1.1 christos case 81: 5578 1.1 christos if (ndx == 0 || ndx == 1) 5579 1.1 christos p = "int"; 5580 1.1 christos break; 5581 1.1 christos /* linux32_sys_oldselect */ 5582 1.1 christos case 82: 5583 1.1 christos if (ndx == 0 || ndx == 1) 5584 1.1 christos p = "int"; 5585 1.1 christos break; 5586 1.1 christos /* netbsd32_symlink */ 5587 1.1 christos case 83: 5588 1.1 christos if (ndx == 0 || ndx == 1) 5589 1.1 christos p = "int"; 5590 1.1 christos break; 5591 1.1 christos /* compat_43_netbsd32_lstat43 */ 5592 1.1 christos case 84: 5593 1.1 christos if (ndx == 0 || ndx == 1) 5594 1.1 christos p = "int"; 5595 1.1 christos break; 5596 1.1 christos /* netbsd32_readlink */ 5597 1.1 christos case 85: 5598 1.1 christos if (ndx == 0 || ndx == 1) 5599 1.1 christos p = "int"; 5600 1.1 christos break; 5601 1.1 christos /* linux32_sys_swapon */ 5602 1.1 christos case 87: 5603 1.1 christos if (ndx == 0 || ndx == 1) 5604 1.1 christos p = "int"; 5605 1.1 christos break; 5606 1.1 christos /* linux32_sys_reboot */ 5607 1.1 christos case 88: 5608 1.1 christos if (ndx == 0 || ndx == 1) 5609 1.1 christos p = "int"; 5610 1.1 christos break; 5611 1.1 christos /* linux32_sys_readdir */ 5612 1.1 christos case 89: 5613 1.1 christos if (ndx == 0 || ndx == 1) 5614 1.1 christos p = "int"; 5615 1.1 christos break; 5616 1.1 christos /* linux32_sys_old_mmap */ 5617 1.1 christos case 90: 5618 1.1 christos if (ndx == 0 || ndx == 1) 5619 1.1 christos p = "int"; 5620 1.1 christos break; 5621 1.1 christos /* netbsd32_munmap */ 5622 1.1 christos case 91: 5623 1.1 christos if (ndx == 0 || ndx == 1) 5624 1.1 christos p = "int"; 5625 1.1 christos break; 5626 1.1 christos /* compat_43_netbsd32_otruncate */ 5627 1.1 christos case 92: 5628 1.1 christos if (ndx == 0 || ndx == 1) 5629 1.1 christos p = "int"; 5630 1.1 christos break; 5631 1.1 christos /* compat_43_netbsd32_oftruncate */ 5632 1.1 christos case 93: 5633 1.1 christos if (ndx == 0 || ndx == 1) 5634 1.1 christos p = "int"; 5635 1.1 christos break; 5636 1.1 christos /* netbsd32_fchmod */ 5637 1.1 christos case 94: 5638 1.1 christos if (ndx == 0 || ndx == 1) 5639 1.1 christos p = "int"; 5640 1.1 christos break; 5641 1.1 christos /* linux32_sys_fchown16 */ 5642 1.1 christos case 95: 5643 1.1 christos if (ndx == 0 || ndx == 1) 5644 1.1 christos p = "int"; 5645 1.1 christos break; 5646 1.1 christos /* linux32_sys_getpriority */ 5647 1.1 christos case 96: 5648 1.1 christos if (ndx == 0 || ndx == 1) 5649 1.1 christos p = "int"; 5650 1.1 christos break; 5651 1.1 christos /* netbsd32_setpriority */ 5652 1.1 christos case 97: 5653 1.1 christos if (ndx == 0 || ndx == 1) 5654 1.1 christos p = "int"; 5655 1.1 christos break; 5656 1.1 christos /* netbsd32_profil */ 5657 1.1 christos case 98: 5658 1.1 christos if (ndx == 0 || ndx == 1) 5659 1.1 christos p = "int"; 5660 1.1 christos break; 5661 1.1 christos /* linux32_sys_statfs */ 5662 1.1 christos case 99: 5663 1.1 christos if (ndx == 0 || ndx == 1) 5664 1.1 christos p = "int"; 5665 1.1 christos break; 5666 1.1 christos /* linux32_sys_fstatfs */ 5667 1.1 christos case 100: 5668 1.1 christos if (ndx == 0 || ndx == 1) 5669 1.1 christos p = "int"; 5670 1.1 christos break; 5671 1.1 christos /* linux_sys_ioperm */ 5672 1.1 christos case 101: 5673 1.1 christos if (ndx == 0 || ndx == 1) 5674 1.1 christos p = "int"; 5675 1.1 christos break; 5676 1.1 christos /* linux32_sys_socketcall */ 5677 1.1 christos case 102: 5678 1.1 christos if (ndx == 0 || ndx == 1) 5679 1.1 christos p = "int"; 5680 1.1 christos break; 5681 1.1 christos /* compat_50_netbsd32_setitimer */ 5682 1.1 christos case 104: 5683 1.1 christos if (ndx == 0 || ndx == 1) 5684 1.1 christos p = "int"; 5685 1.1 christos break; 5686 1.1 christos /* compat_50_netbsd32_getitimer */ 5687 1.1 christos case 105: 5688 1.1 christos if (ndx == 0 || ndx == 1) 5689 1.1 christos p = "int"; 5690 1.1 christos break; 5691 1.1 christos /* linux32_sys_stat */ 5692 1.1 christos case 106: 5693 1.1 christos if (ndx == 0 || ndx == 1) 5694 1.1 christos p = "int"; 5695 1.1 christos break; 5696 1.1 christos /* linux32_sys_lstat */ 5697 1.1 christos case 107: 5698 1.1 christos if (ndx == 0 || ndx == 1) 5699 1.1 christos p = "int"; 5700 1.1 christos break; 5701 1.1 christos /* linux32_sys_fstat */ 5702 1.1 christos case 108: 5703 1.1 christos if (ndx == 0 || ndx == 1) 5704 1.1 christos p = "int"; 5705 1.1 christos break; 5706 1.1 christos /* linux32_sys_olduname */ 5707 1.1 christos case 109: 5708 1.1 christos if (ndx == 0 || ndx == 1) 5709 1.1 christos p = "int"; 5710 1.1 christos break; 5711 1.1 christos /* linux_sys_iopl */ 5712 1.1 christos case 110: 5713 1.1 christos if (ndx == 0 || ndx == 1) 5714 1.1 christos p = "int"; 5715 1.1 christos break; 5716 1.1 christos /* linux32_sys_wait4 */ 5717 1.1 christos case 114: 5718 1.1 christos if (ndx == 0 || ndx == 1) 5719 1.1 christos p = "int"; 5720 1.1 christos break; 5721 1.1 christos /* linux32_sys_swapoff */ 5722 1.1 christos case 115: 5723 1.1 christos if (ndx == 0 || ndx == 1) 5724 1.1 christos p = "int"; 5725 1.1 christos break; 5726 1.1 christos /* linux32_sys_sysinfo */ 5727 1.1 christos case 116: 5728 1.1 christos if (ndx == 0 || ndx == 1) 5729 1.1 christos p = "int"; 5730 1.1 christos break; 5731 1.1 christos /* linux32_sys_ipc */ 5732 1.1 christos case 117: 5733 1.1 christos if (ndx == 0 || ndx == 1) 5734 1.1 christos p = "int"; 5735 1.1 christos break; 5736 1.1 christos /* netbsd32_fsync */ 5737 1.1 christos case 118: 5738 1.1 christos if (ndx == 0 || ndx == 1) 5739 1.1 christos p = "int"; 5740 1.1 christos break; 5741 1.1 christos /* linux32_sys_sigreturn */ 5742 1.1 christos case 119: 5743 1.1 christos if (ndx == 0 || ndx == 1) 5744 1.1 christos p = "int"; 5745 1.1 christos break; 5746 1.1 christos /* linux32_sys_clone */ 5747 1.1 christos case 120: 5748 1.1 christos if (ndx == 0 || ndx == 1) 5749 1.1 christos p = "int"; 5750 1.1 christos break; 5751 1.1 christos /* linux32_sys_setdomainname */ 5752 1.1 christos case 121: 5753 1.1 christos if (ndx == 0 || ndx == 1) 5754 1.1 christos p = "int"; 5755 1.1 christos break; 5756 1.1 christos /* linux32_sys_uname */ 5757 1.1 christos case 122: 5758 1.1 christos if (ndx == 0 || ndx == 1) 5759 1.1 christos p = "int"; 5760 1.1 christos break; 5761 1.1 christos /* linux32_sys_modify_ldt */ 5762 1.1 christos case 123: 5763 1.1 christos if (ndx == 0 || ndx == 1) 5764 1.1 christos p = "int"; 5765 1.1 christos break; 5766 1.1 christos /* linux32_sys_mprotect */ 5767 1.1 christos case 125: 5768 1.1 christos if (ndx == 0 || ndx == 1) 5769 1.1 christos p = "int"; 5770 1.1 christos break; 5771 1.1 christos /* netbsd32_getpgid */ 5772 1.1 christos case 132: 5773 1.1 christos if (ndx == 0 || ndx == 1) 5774 1.1 christos p = "int"; 5775 1.1 christos break; 5776 1.1 christos /* netbsd32_fchdir */ 5777 1.1 christos case 133: 5778 1.1 christos if (ndx == 0 || ndx == 1) 5779 1.1 christos p = "int"; 5780 1.1 christos break; 5781 1.1 christos /* linux32_sys_personality */ 5782 1.1 christos case 136: 5783 1.1 christos if (ndx == 0 || ndx == 1) 5784 1.1 christos p = "int"; 5785 1.1 christos break; 5786 1.1 christos /* linux32_sys_setfsuid */ 5787 1.1 christos case 138: 5788 1.1 christos if (ndx == 0 || ndx == 1) 5789 1.1 christos p = "int"; 5790 1.1 christos break; 5791 1.1 christos /* linux32_sys_setfsgid */ 5792 1.1 christos case 139: 5793 1.1 christos if (ndx == 0 || ndx == 1) 5794 1.1 christos p = "int"; 5795 1.1 christos break; 5796 1.1 christos /* linux32_sys_llseek */ 5797 1.1 christos case 140: 5798 1.1 christos if (ndx == 0 || ndx == 1) 5799 1.1 christos p = "int"; 5800 1.1 christos break; 5801 1.1 christos /* linux32_sys_getdents */ 5802 1.1 christos case 141: 5803 1.1 christos if (ndx == 0 || ndx == 1) 5804 1.1 christos p = "int"; 5805 1.1 christos break; 5806 1.1 christos /* linux32_sys_select */ 5807 1.1 christos case 142: 5808 1.1 christos if (ndx == 0 || ndx == 1) 5809 1.1 christos p = "int"; 5810 1.1 christos break; 5811 1.1 christos /* netbsd32_flock */ 5812 1.1 christos case 143: 5813 1.1 christos if (ndx == 0 || ndx == 1) 5814 1.1 christos p = "int"; 5815 1.1 christos break; 5816 1.1 christos /* netbsd32___msync13 */ 5817 1.1 christos case 144: 5818 1.1 christos if (ndx == 0 || ndx == 1) 5819 1.1 christos p = "int"; 5820 1.1 christos break; 5821 1.1 christos /* netbsd32_readv */ 5822 1.1 christos case 145: 5823 1.1 christos if (ndx == 0 || ndx == 1) 5824 1.1 christos p = "int"; 5825 1.1 christos break; 5826 1.1 christos /* netbsd32_writev */ 5827 1.1 christos case 146: 5828 1.1 christos if (ndx == 0 || ndx == 1) 5829 1.1 christos p = "netbsd32_ssize_t"; 5830 1.1 christos break; 5831 1.1 christos /* netbsd32_getsid */ 5832 1.1 christos case 147: 5833 1.1 christos if (ndx == 0 || ndx == 1) 5834 1.1 christos p = "pid_t"; 5835 1.1 christos break; 5836 1.1 christos /* linux32_sys_fdatasync */ 5837 1.1 christos case 148: 5838 1.1 christos if (ndx == 0 || ndx == 1) 5839 1.1 christos p = "int"; 5840 1.1 christos break; 5841 1.1 christos /* linux32_sys___sysctl */ 5842 1.1 christos case 149: 5843 1.1 christos if (ndx == 0 || ndx == 1) 5844 1.1 christos p = "int"; 5845 1.1 christos break; 5846 1.1 christos /* netbsd32_mlock */ 5847 1.1 christos case 150: 5848 1.1 christos if (ndx == 0 || ndx == 1) 5849 1.1 christos p = "int"; 5850 1.1 christos break; 5851 1.1 christos /* netbsd32_munlock */ 5852 1.1 christos case 151: 5853 1.1 christos if (ndx == 0 || ndx == 1) 5854 1.1 christos p = "int"; 5855 1.1 christos break; 5856 1.1 christos /* netbsd32_mlockall */ 5857 1.1 christos case 152: 5858 1.1 christos if (ndx == 0 || ndx == 1) 5859 1.1 christos p = "int"; 5860 1.1 christos break; 5861 1.1 christos /* sys_munlockall */ 5862 1.1 christos case 153: 5863 1.1 christos /* linux32_sys_sched_setparam */ 5864 1.1 christos case 154: 5865 1.1 christos if (ndx == 0 || ndx == 1) 5866 1.1 christos p = "int"; 5867 1.1 christos break; 5868 1.1 christos /* linux32_sys_sched_getparam */ 5869 1.1 christos case 155: 5870 1.1 christos if (ndx == 0 || ndx == 1) 5871 1.1 christos p = "int"; 5872 1.1 christos break; 5873 1.1 christos /* linux32_sys_sched_setscheduler */ 5874 1.1 christos case 156: 5875 1.1 christos if (ndx == 0 || ndx == 1) 5876 1.1 christos p = "int"; 5877 1.1 christos break; 5878 1.1 christos /* linux32_sys_sched_getscheduler */ 5879 1.1 christos case 157: 5880 1.1 christos if (ndx == 0 || ndx == 1) 5881 1.1 christos p = "int"; 5882 1.1 christos break; 5883 1.1 christos /* linux_sys_sched_yield */ 5884 1.1 christos case 158: 5885 1.1 christos /* linux32_sys_sched_get_priority_max */ 5886 1.1 christos case 159: 5887 1.1 christos if (ndx == 0 || ndx == 1) 5888 1.1 christos p = "int"; 5889 1.1 christos break; 5890 1.1 christos /* linux32_sys_sched_get_priority_min */ 5891 1.1 christos case 160: 5892 1.1 christos if (ndx == 0 || ndx == 1) 5893 1.1 christos p = "int"; 5894 1.1 christos break; 5895 1.1 christos /* linux32_sys_nanosleep */ 5896 1.1 christos case 162: 5897 1.1 christos if (ndx == 0 || ndx == 1) 5898 1.1 christos p = "int"; 5899 1.1 christos break; 5900 1.1 christos /* linux32_sys_mremap */ 5901 1.1 christos case 163: 5902 1.1 christos if (ndx == 0 || ndx == 1) 5903 1.1 christos p = "int"; 5904 1.1 christos break; 5905 1.1 christos /* linux32_sys_setresuid16 */ 5906 1.1 christos case 164: 5907 1.1 christos if (ndx == 0 || ndx == 1) 5908 1.1 christos p = "int"; 5909 1.1 christos break; 5910 1.1 christos /* linux32_sys_getresuid16 */ 5911 1.1 christos case 165: 5912 1.1 christos if (ndx == 0 || ndx == 1) 5913 1.1 christos p = "int"; 5914 1.1 christos break; 5915 1.1 christos /* netbsd32_poll */ 5916 1.1 christos case 168: 5917 1.1 christos if (ndx == 0 || ndx == 1) 5918 1.1 christos p = "int"; 5919 1.1 christos break; 5920 1.1 christos /* linux32_sys_setresgid16 */ 5921 1.1 christos case 170: 5922 1.1 christos if (ndx == 0 || ndx == 1) 5923 1.1 christos p = "int"; 5924 1.1 christos break; 5925 1.1 christos /* linux32_sys_getresgid16 */ 5926 1.1 christos case 171: 5927 1.1 christos if (ndx == 0 || ndx == 1) 5928 1.1 christos p = "int"; 5929 1.1 christos break; 5930 1.1 christos /* linux32_sys_rt_sigreturn */ 5931 1.1 christos case 173: 5932 1.1 christos if (ndx == 0 || ndx == 1) 5933 1.1 christos p = "int"; 5934 1.1 christos break; 5935 1.1 christos /* linux32_sys_rt_sigaction */ 5936 1.1 christos case 174: 5937 1.1 christos if (ndx == 0 || ndx == 1) 5938 1.1 christos p = "int"; 5939 1.1 christos break; 5940 1.1 christos /* linux32_sys_rt_sigprocmask */ 5941 1.1 christos case 175: 5942 1.1 christos if (ndx == 0 || ndx == 1) 5943 1.1 christos p = "int"; 5944 1.1 christos break; 5945 1.1 christos /* linux32_sys_rt_sigpending */ 5946 1.1 christos case 176: 5947 1.1 christos if (ndx == 0 || ndx == 1) 5948 1.1 christos p = "int"; 5949 1.1 christos break; 5950 1.1 christos /* linux32_sys_rt_sigtimedwait */ 5951 1.1 christos case 177: 5952 1.1 christos if (ndx == 0 || ndx == 1) 5953 1.1 christos p = "int"; 5954 1.1 christos break; 5955 1.1 christos /* linux32_sys_rt_queueinfo */ 5956 1.1 christos case 178: 5957 1.1 christos if (ndx == 0 || ndx == 1) 5958 1.1 christos p = "int"; 5959 1.1 christos break; 5960 1.1 christos /* linux32_sys_rt_sigsuspend */ 5961 1.1 christos case 179: 5962 1.1 christos if (ndx == 0 || ndx == 1) 5963 1.1 christos p = "int"; 5964 1.1 christos break; 5965 1.1 christos /* linux32_sys_pread */ 5966 1.1 christos case 180: 5967 1.1 christos if (ndx == 0 || ndx == 1) 5968 1.1 christos p = "netbsd32_ssize_t"; 5969 1.1 christos break; 5970 1.1 christos /* linux32_sys_pwrite */ 5971 1.1 christos case 181: 5972 1.1 christos if (ndx == 0 || ndx == 1) 5973 1.1 christos p = "netbsd32_ssize_t"; 5974 1.1 christos break; 5975 1.1 christos /* linux32_sys_chown16 */ 5976 1.1 christos case 182: 5977 1.1 christos if (ndx == 0 || ndx == 1) 5978 1.1 christos p = "int"; 5979 1.1 christos break; 5980 1.1 christos /* netbsd32___getcwd */ 5981 1.1 christos case 183: 5982 1.1 christos if (ndx == 0 || ndx == 1) 5983 1.1 christos p = "int"; 5984 1.1 christos break; 5985 1.1 christos /* sys___vfork14 */ 5986 1.1 christos case 190: 5987 1.1 christos /* linux32_sys_ugetrlimit */ 5988 1.1 christos case 191: 5989 1.1 christos if (ndx == 0 || ndx == 1) 5990 1.1 christos p = "int"; 5991 1.1 christos break; 5992 1.1 christos /* linux32_sys_mmap2 */ 5993 1.1 christos case 192: 5994 1.1 christos if (ndx == 0 || ndx == 1) 5995 1.1 christos p = "linux32_off_t"; 5996 1.1 christos break; 5997 1.1 christos /* linux32_sys_truncate64 */ 5998 1.1 christos case 193: 5999 1.1 christos if (ndx == 0 || ndx == 1) 6000 1.1 christos p = "int"; 6001 1.1 christos break; 6002 1.1 christos /* linux32_sys_ftruncate64 */ 6003 1.1 christos case 194: 6004 1.1 christos if (ndx == 0 || ndx == 1) 6005 1.1 christos p = "int"; 6006 1.1 christos break; 6007 1.1 christos /* linux32_sys_stat64 */ 6008 1.1 christos case 195: 6009 1.1 christos if (ndx == 0 || ndx == 1) 6010 1.1 christos p = "int"; 6011 1.1 christos break; 6012 1.1 christos /* linux32_sys_lstat64 */ 6013 1.1 christos case 196: 6014 1.1 christos if (ndx == 0 || ndx == 1) 6015 1.1 christos p = "int"; 6016 1.1 christos break; 6017 1.1 christos /* linux32_sys_fstat64 */ 6018 1.1 christos case 197: 6019 1.1 christos if (ndx == 0 || ndx == 1) 6020 1.1 christos p = "int"; 6021 1.1 christos break; 6022 1.1 christos /* netbsd32___posix_lchown */ 6023 1.1 christos case 198: 6024 1.1 christos if (ndx == 0 || ndx == 1) 6025 1.1 christos p = "int"; 6026 1.1 christos break; 6027 1.1 christos /* sys_getuid */ 6028 1.1 christos case 199: 6029 1.1 christos /* sys_getgid */ 6030 1.1 christos case 200: 6031 1.1 christos /* sys_geteuid */ 6032 1.1 christos case 201: 6033 1.1 christos /* sys_getegid */ 6034 1.1 christos case 202: 6035 1.1 christos /* netbsd32_setreuid */ 6036 1.1 christos case 203: 6037 1.1 christos if (ndx == 0 || ndx == 1) 6038 1.1 christos p = "int"; 6039 1.1 christos break; 6040 1.1 christos /* netbsd32_setregid */ 6041 1.1 christos case 204: 6042 1.1 christos if (ndx == 0 || ndx == 1) 6043 1.1 christos p = "int"; 6044 1.1 christos break; 6045 1.1 christos /* netbsd32_getgroups */ 6046 1.1 christos case 205: 6047 1.1 christos if (ndx == 0 || ndx == 1) 6048 1.1 christos p = "int"; 6049 1.1 christos break; 6050 1.1 christos /* netbsd32_setgroups */ 6051 1.1 christos case 206: 6052 1.1 christos if (ndx == 0 || ndx == 1) 6053 1.1 christos p = "int"; 6054 1.1 christos break; 6055 1.1 christos /* netbsd32___posix_fchown */ 6056 1.1 christos case 207: 6057 1.1 christos if (ndx == 0 || ndx == 1) 6058 1.1 christos p = "int"; 6059 1.1 christos break; 6060 1.1 christos /* linux32_sys_setresuid */ 6061 1.1 christos case 208: 6062 1.1 christos if (ndx == 0 || ndx == 1) 6063 1.1 christos p = "int"; 6064 1.1 christos break; 6065 1.1 christos /* linux32_sys_getresuid */ 6066 1.1 christos case 209: 6067 1.1 christos if (ndx == 0 || ndx == 1) 6068 1.1 christos p = "int"; 6069 1.1 christos break; 6070 1.1 christos /* linux32_sys_setresgid */ 6071 1.1 christos case 210: 6072 1.1 christos if (ndx == 0 || ndx == 1) 6073 1.1 christos p = "int"; 6074 1.1 christos break; 6075 1.1 christos /* linux32_sys_getresgid */ 6076 1.1 christos case 211: 6077 1.1 christos if (ndx == 0 || ndx == 1) 6078 1.1 christos p = "int"; 6079 1.1 christos break; 6080 1.1 christos /* netbsd32___posix_chown */ 6081 1.1 christos case 212: 6082 1.1 christos if (ndx == 0 || ndx == 1) 6083 1.1 christos p = "int"; 6084 1.1 christos break; 6085 1.1 christos /* netbsd32_setuid */ 6086 1.1 christos case 213: 6087 1.1 christos if (ndx == 0 || ndx == 1) 6088 1.1 christos p = "int"; 6089 1.1 christos break; 6090 1.1 christos /* netbsd32_setgid */ 6091 1.1 christos case 214: 6092 1.1 christos if (ndx == 0 || ndx == 1) 6093 1.1 christos p = "int"; 6094 1.1 christos break; 6095 1.1 christos /* linux32_sys_setfsuid */ 6096 1.1 christos case 215: 6097 1.1 christos if (ndx == 0 || ndx == 1) 6098 1.1 christos p = "int"; 6099 1.1 christos break; 6100 1.1 christos /* linux32_sys_setfsgid */ 6101 1.1 christos case 216: 6102 1.1 christos if (ndx == 0 || ndx == 1) 6103 1.1 christos p = "int"; 6104 1.1 christos break; 6105 1.1 christos /* netbsd32_mincore */ 6106 1.1 christos case 218: 6107 1.1 christos if (ndx == 0 || ndx == 1) 6108 1.1 christos p = "int"; 6109 1.1 christos break; 6110 1.1 christos /* netbsd32_madvise */ 6111 1.1 christos case 219: 6112 1.1 christos if (ndx == 0 || ndx == 1) 6113 1.1 christos p = "int"; 6114 1.1 christos break; 6115 1.1 christos /* linux32_sys_getdents64 */ 6116 1.1 christos case 220: 6117 1.1 christos if (ndx == 0 || ndx == 1) 6118 1.1 christos p = "int"; 6119 1.1 christos break; 6120 1.1 christos #define linux32_sys_fcntl64 linux32_sys_fcntl 6121 1.1 christos #define linux32_sys_fcntl64_args linux32_sys_fcntl_args 6122 1.1 christos /* linux32_sys_fcntl64 */ 6123 1.1 christos case 221: 6124 1.1 christos if (ndx == 0 || ndx == 1) 6125 1.1 christos p = "int"; 6126 1.1 christos break; 6127 1.1 christos /* linux_sys_gettid */ 6128 1.1 christos case 224: 6129 1.1 christos /* netbsd32_setxattr */ 6130 1.1 christos case 226: 6131 1.1 christos if (ndx == 0 || ndx == 1) 6132 1.1 christos p = "int"; 6133 1.1 christos break; 6134 1.1 christos /* netbsd32_lsetxattr */ 6135 1.1 christos case 227: 6136 1.1 christos if (ndx == 0 || ndx == 1) 6137 1.1 christos p = "int"; 6138 1.1 christos break; 6139 1.1 christos /* netbsd32_fsetxattr */ 6140 1.1 christos case 228: 6141 1.1 christos if (ndx == 0 || ndx == 1) 6142 1.1 christos p = "int"; 6143 1.1 christos break; 6144 1.1 christos /* netbsd32_getxattr */ 6145 1.1 christos case 229: 6146 1.1 christos if (ndx == 0 || ndx == 1) 6147 1.1 christos p = "ssize_t"; 6148 1.1 christos break; 6149 1.1 christos /* netbsd32_lgetxattr */ 6150 1.1 christos case 230: 6151 1.1 christos if (ndx == 0 || ndx == 1) 6152 1.1 christos p = "ssize_t"; 6153 1.1 christos break; 6154 1.1 christos /* netbsd32_fgetxattr */ 6155 1.1 christos case 231: 6156 1.1 christos if (ndx == 0 || ndx == 1) 6157 1.1 christos p = "ssize_t"; 6158 1.1 christos break; 6159 1.1 christos /* netbsd32_listxattr */ 6160 1.1 christos case 232: 6161 1.1 christos if (ndx == 0 || ndx == 1) 6162 1.1 christos p = "ssize_t"; 6163 1.1 christos break; 6164 1.1 christos /* netbsd32_llistxattr */ 6165 1.1 christos case 233: 6166 1.1 christos if (ndx == 0 || ndx == 1) 6167 1.1 christos p = "ssize_t"; 6168 1.1 christos break; 6169 1.1 christos /* netbsd32_flistxattr */ 6170 1.1 christos case 234: 6171 1.1 christos if (ndx == 0 || ndx == 1) 6172 1.1 christos p = "ssize_t"; 6173 1.1 christos break; 6174 1.1 christos /* netbsd32_removexattr */ 6175 1.1 christos case 235: 6176 1.1 christos if (ndx == 0 || ndx == 1) 6177 1.1 christos p = "int"; 6178 1.1 christos break; 6179 1.1 christos /* netbsd32_lremovexattr */ 6180 1.1 christos case 236: 6181 1.1 christos if (ndx == 0 || ndx == 1) 6182 1.1 christos p = "int"; 6183 1.1 christos break; 6184 1.1 christos /* netbsd32_fremovexattr */ 6185 1.1 christos case 237: 6186 1.1 christos if (ndx == 0 || ndx == 1) 6187 1.1 christos p = "int"; 6188 1.1 christos break; 6189 1.1 christos /* linux32_sys_tkill */ 6190 1.1 christos case 238: 6191 1.1 christos if (ndx == 0 || ndx == 1) 6192 1.1 christos p = "int"; 6193 1.1 christos break; 6194 1.1 christos /* linux32_sys_futex */ 6195 1.1 christos case 240: 6196 1.1 christos if (ndx == 0 || ndx == 1) 6197 1.1 christos p = "int"; 6198 1.1 christos break; 6199 1.1 christos /* linux32_sys_sched_setaffinity */ 6200 1.1 christos case 241: 6201 1.1 christos if (ndx == 0 || ndx == 1) 6202 1.1 christos p = "int"; 6203 1.1 christos break; 6204 1.1 christos /* linux32_sys_sched_getaffinity */ 6205 1.1 christos case 242: 6206 1.1 christos if (ndx == 0 || ndx == 1) 6207 1.1 christos p = "int"; 6208 1.1 christos break; 6209 1.1 christos /* linux32_sys_set_thread_area */ 6210 1.1 christos case 243: 6211 1.1 christos if (ndx == 0 || ndx == 1) 6212 1.1 christos p = "int"; 6213 1.1 christos break; 6214 1.1 christos /* linux32_sys_get_thread_area */ 6215 1.1 christos case 244: 6216 1.1 christos if (ndx == 0 || ndx == 1) 6217 1.1 christos p = "int"; 6218 1.1 christos break; 6219 1.1 christos /* linux32_sys_fadvise64 */ 6220 1.1 christos case 250: 6221 1.1 christos if (ndx == 0 || ndx == 1) 6222 1.1 christos p = "int"; 6223 1.1 christos break; 6224 1.1 christos /* linux32_sys_exit_group */ 6225 1.1 christos case 252: 6226 1.1 christos if (ndx == 0 || ndx == 1) 6227 1.1 christos p = "int"; 6228 1.1 christos break; 6229 1.1 christos /* linux32_sys_set_tid_address */ 6230 1.1 christos case 258: 6231 1.1 christos if (ndx == 0 || ndx == 1) 6232 1.1 christos p = "int"; 6233 1.1 christos break; 6234 1.9 thorpej /* linux32_sys_timer_create */ 6235 1.9 thorpej case 259: 6236 1.9 thorpej if (ndx == 0 || ndx == 1) 6237 1.9 thorpej p = "int"; 6238 1.9 thorpej break; 6239 1.9 thorpej /* linux32_sys_timer_settime */ 6240 1.9 thorpej case 260: 6241 1.9 thorpej if (ndx == 0 || ndx == 1) 6242 1.9 thorpej p = "int"; 6243 1.9 thorpej break; 6244 1.9 thorpej /* linux32_sys_timer_gettime */ 6245 1.9 thorpej case 261: 6246 1.9 thorpej if (ndx == 0 || ndx == 1) 6247 1.9 thorpej p = "int"; 6248 1.9 thorpej break; 6249 1.9 thorpej /* sys_timer_getoverrun */ 6250 1.9 thorpej case 262: 6251 1.9 thorpej if (ndx == 0 || ndx == 1) 6252 1.9 thorpej p = "int"; 6253 1.9 thorpej break; 6254 1.9 thorpej /* sys_timer_delete */ 6255 1.9 thorpej case 263: 6256 1.9 thorpej if (ndx == 0 || ndx == 1) 6257 1.9 thorpej p = "int"; 6258 1.9 thorpej break; 6259 1.1 christos /* linux32_sys_clock_settime */ 6260 1.1 christos case 264: 6261 1.1 christos if (ndx == 0 || ndx == 1) 6262 1.1 christos p = "int"; 6263 1.1 christos break; 6264 1.1 christos /* linux32_sys_clock_gettime */ 6265 1.1 christos case 265: 6266 1.1 christos if (ndx == 0 || ndx == 1) 6267 1.1 christos p = "int"; 6268 1.1 christos break; 6269 1.1 christos /* linux32_sys_clock_getres */ 6270 1.1 christos case 266: 6271 1.1 christos if (ndx == 0 || ndx == 1) 6272 1.1 christos p = "int"; 6273 1.1 christos break; 6274 1.1 christos /* linux32_sys_clock_nanosleep */ 6275 1.1 christos case 267: 6276 1.1 christos if (ndx == 0 || ndx == 1) 6277 1.1 christos p = "int"; 6278 1.1 christos break; 6279 1.1 christos /* linux32_sys_statfs64 */ 6280 1.1 christos case 268: 6281 1.1 christos if (ndx == 0 || ndx == 1) 6282 1.1 christos p = "int"; 6283 1.1 christos break; 6284 1.1 christos /* linux32_sys_fstatfs64 */ 6285 1.1 christos case 269: 6286 1.1 christos if (ndx == 0 || ndx == 1) 6287 1.1 christos p = "int"; 6288 1.1 christos break; 6289 1.1 christos /* linux32_sys_tgkill */ 6290 1.1 christos case 270: 6291 1.1 christos if (ndx == 0 || ndx == 1) 6292 1.1 christos p = "int"; 6293 1.1 christos break; 6294 1.1 christos /* compat_50_netbsd32_utimes */ 6295 1.1 christos case 271: 6296 1.1 christos if (ndx == 0 || ndx == 1) 6297 1.1 christos p = "int"; 6298 1.1 christos break; 6299 1.1 christos /* linux32_sys_fadvise64_64 */ 6300 1.1 christos case 272: 6301 1.1 christos if (ndx == 0 || ndx == 1) 6302 1.1 christos p = "int"; 6303 1.1 christos break; 6304 1.1 christos /* linux32_sys_openat */ 6305 1.1 christos case 295: 6306 1.1 christos if (ndx == 0 || ndx == 1) 6307 1.1 christos p = "int"; 6308 1.1 christos break; 6309 1.1 christos /* netbsd32_mkdirat */ 6310 1.1 christos case 296: 6311 1.1 christos if (ndx == 0 || ndx == 1) 6312 1.1 christos p = "int"; 6313 1.1 christos break; 6314 1.1 christos /* linux32_sys_mknodat */ 6315 1.1 christos case 297: 6316 1.1 christos if (ndx == 0 || ndx == 1) 6317 1.1 christos p = "int"; 6318 1.1 christos break; 6319 1.1 christos /* linux32_sys_fchownat */ 6320 1.1 christos case 298: 6321 1.1 christos if (ndx == 0 || ndx == 1) 6322 1.1 christos p = "int"; 6323 1.1 christos break; 6324 1.1 christos /* linux32_sys_fstatat64 */ 6325 1.1 christos case 300: 6326 1.1 christos if (ndx == 0 || ndx == 1) 6327 1.1 christos p = "int"; 6328 1.1 christos break; 6329 1.1 christos /* linux32_sys_unlinkat */ 6330 1.1 christos case 301: 6331 1.1 christos if (ndx == 0 || ndx == 1) 6332 1.1 christos p = "int"; 6333 1.1 christos break; 6334 1.1 christos /* netbsd32_renameat */ 6335 1.1 christos case 302: 6336 1.1 christos if (ndx == 0 || ndx == 1) 6337 1.1 christos p = "int"; 6338 1.1 christos break; 6339 1.1 christos /* linux32_sys_linkat */ 6340 1.1 christos case 303: 6341 1.1 christos if (ndx == 0 || ndx == 1) 6342 1.1 christos p = "int"; 6343 1.1 christos break; 6344 1.1 christos /* netbsd32_symlinkat */ 6345 1.1 christos case 304: 6346 1.1 christos if (ndx == 0 || ndx == 1) 6347 1.1 christos p = "int"; 6348 1.1 christos break; 6349 1.1 christos /* netbsd32_readlinkat */ 6350 1.1 christos case 305: 6351 1.1 christos if (ndx == 0 || ndx == 1) 6352 1.1 christos p = "int"; 6353 1.1 christos break; 6354 1.1 christos /* linux32_sys_fchmodat */ 6355 1.1 christos case 306: 6356 1.1 christos if (ndx == 0 || ndx == 1) 6357 1.1 christos p = "int"; 6358 1.1 christos break; 6359 1.1 christos /* linux32_sys_faccessat */ 6360 1.1 christos case 307: 6361 1.1 christos if (ndx == 0 || ndx == 1) 6362 1.1 christos p = "int"; 6363 1.1 christos break; 6364 1.13 ryo /* linux32_sys_pselect6 */ 6365 1.13 ryo case 308: 6366 1.13 ryo if (ndx == 0 || ndx == 1) 6367 1.13 ryo p = "int"; 6368 1.13 ryo break; 6369 1.1 christos /* linux32_sys_ppoll */ 6370 1.1 christos case 309: 6371 1.1 christos if (ndx == 0 || ndx == 1) 6372 1.1 christos p = "int"; 6373 1.1 christos break; 6374 1.8 thorpej /* netbsd32___futex_set_robust_list */ 6375 1.1 christos case 311: 6376 1.1 christos if (ndx == 0 || ndx == 1) 6377 1.1 christos p = "int"; 6378 1.1 christos break; 6379 1.8 thorpej /* netbsd32___futex_get_robust_list */ 6380 1.1 christos case 312: 6381 1.1 christos if (ndx == 0 || ndx == 1) 6382 1.1 christos p = "int"; 6383 1.1 christos break; 6384 1.1 christos /* linux32_sys_utimensat */ 6385 1.1 christos case 320: 6386 1.1 christos if (ndx == 0 || ndx == 1) 6387 1.1 christos p = "int"; 6388 1.1 christos break; 6389 1.10 thorpej /* linux_sys_timerfd_create */ 6390 1.10 thorpej case 322: 6391 1.10 thorpej if (ndx == 0 || ndx == 1) 6392 1.10 thorpej p = "int"; 6393 1.10 thorpej break; 6394 1.11 thorpej /* linux32_sys_eventfd */ 6395 1.11 thorpej case 323: 6396 1.11 thorpej if (ndx == 0 || ndx == 1) 6397 1.11 thorpej p = "int"; 6398 1.11 thorpej break; 6399 1.7 jdolecek /* linux32_sys_fallocate */ 6400 1.7 jdolecek case 324: 6401 1.7 jdolecek if (ndx == 0 || ndx == 1) 6402 1.7 jdolecek p = "int"; 6403 1.7 jdolecek break; 6404 1.10 thorpej /* linux32_sys_timerfd_settime */ 6405 1.10 thorpej case 325: 6406 1.10 thorpej if (ndx == 0 || ndx == 1) 6407 1.10 thorpej p = "int"; 6408 1.10 thorpej break; 6409 1.10 thorpej /* linux32_sys_timerfd_gettime */ 6410 1.10 thorpej case 326: 6411 1.10 thorpej if (ndx == 0 || ndx == 1) 6412 1.10 thorpej p = "int"; 6413 1.10 thorpej break; 6414 1.11 thorpej /* linux32_sys_eventfd2 */ 6415 1.11 thorpej case 328: 6416 1.11 thorpej if (ndx == 0 || ndx == 1) 6417 1.11 thorpej p = "int"; 6418 1.11 thorpej break; 6419 1.1 christos /* linux32_sys_dup3 */ 6420 1.1 christos case 330: 6421 1.1 christos if (ndx == 0 || ndx == 1) 6422 1.1 christos p = "int"; 6423 1.1 christos break; 6424 1.1 christos /* linux32_sys_pipe2 */ 6425 1.1 christos case 331: 6426 1.1 christos if (ndx == 0 || ndx == 1) 6427 1.1 christos p = "int"; 6428 1.1 christos break; 6429 1.12 thorpej /* linux32_sys_preadv */ 6430 1.12 thorpej case 333: 6431 1.12 thorpej if (ndx == 0 || ndx == 1) 6432 1.12 thorpej p = "int"; 6433 1.12 thorpej break; 6434 1.12 thorpej /* linux32_sys_pwritev */ 6435 1.12 thorpej case 334: 6436 1.12 thorpej if (ndx == 0 || ndx == 1) 6437 1.12 thorpej p = "int"; 6438 1.12 thorpej break; 6439 1.14 ryo /* linux32_sys_prlimit64 */ 6440 1.14 ryo case 340: 6441 1.14 ryo if (ndx == 0 || ndx == 1) 6442 1.14 ryo p = "int"; 6443 1.14 ryo break; 6444 1.1 christos default: 6445 1.1 christos break; 6446 1.1 christos }; 6447 1.1 christos if (p != NULL) 6448 1.1 christos strlcpy(desc, p, descsz); 6449 1.1 christos } 6450