1 /* $NetBSD: sunos32_syscallargs.h,v 1.14 2005/02/26 23:58:20 perry Exp $ */ 2 3 /* 4 * System call argument lists. 5 * 6 * DO NOT EDIT-- this file is automatically generated. 7 * created from; NetBSD: syscalls.master,v 1.10 2005/02/26 23:10:21 perry Exp 8 */ 9 10 #ifndef _SUNOS32_SYS__SYSCALLARGS_H_ 11 #define _SUNOS32_SYS__SYSCALLARGS_H_ 12 13 #ifdef syscallarg 14 #undef syscallarg 15 #endif 16 17 #define syscallarg(x) \ 18 union { \ 19 register32_t pad; \ 20 struct { x datum; } le; \ 21 struct { /* LINTED zero array dimension */ \ 22 int8_t pad[ /* CONSTCOND */ \ 23 (sizeof (register32_t) < sizeof (x)) \ 24 ? 0 \ 25 : sizeof (register32_t) - sizeof (x)]; \ 26 x datum; \ 27 } be; \ 28 } 29 30 struct sunos32_sys_open_args { 31 syscallarg(const netbsd32_charp) path; 32 syscallarg(int) flags; 33 syscallarg(int) mode; 34 }; 35 36 struct sunos32_sys_wait4_args { 37 syscallarg(int) pid; 38 syscallarg(netbsd32_intp) status; 39 syscallarg(int) options; 40 syscallarg(netbsd32_rusagep_t) rusage; 41 }; 42 43 struct sunos32_sys_creat_args { 44 syscallarg(const netbsd32_charp) path; 45 syscallarg(int) mode; 46 }; 47 48 struct sunos32_sys_execv_args { 49 syscallarg(const netbsd32_charp) path; 50 syscallarg(netbsd32_charpp) argp; 51 }; 52 53 struct sunos32_sys_mknod_args { 54 syscallarg(const netbsd32_charp) path; 55 syscallarg(int) mode; 56 syscallarg(int) dev; 57 }; 58 59 struct sunos32_sys_stime_args { 60 syscallarg(sunos32_time_tp) tp; 61 }; 62 63 struct sunos32_sys_ptrace_args { 64 syscallarg(int) req; 65 syscallarg(pid_t) pid; 66 syscallarg(netbsd32_caddr_t) addr; 67 syscallarg(int) data; 68 syscallarg(netbsd32_charp) addr2; 69 }; 70 71 struct sunos32_sys_access_args { 72 syscallarg(const netbsd32_charp) path; 73 syscallarg(int) flags; 74 }; 75 76 struct sunos32_sys_stat_args { 77 syscallarg(const netbsd32_charp) path; 78 syscallarg(netbsd32_stat43p_t) ub; 79 }; 80 81 struct sunos32_sys_lstat_args { 82 syscallarg(const netbsd32_charp) path; 83 syscallarg(netbsd32_stat43p_t) ub; 84 }; 85 86 struct sunos32_sys_mctl_args { 87 syscallarg(netbsd32_voidp) addr; 88 syscallarg(int) len; 89 syscallarg(int) func; 90 syscallarg(netbsd32_voidp) arg; 91 }; 92 93 struct sunos32_sys_ioctl_args { 94 syscallarg(int) fd; 95 syscallarg(netbsd32_u_long) com; 96 syscallarg(netbsd32_caddr_t) data; 97 }; 98 99 struct sunos32_sys_reboot_args { 100 syscallarg(int) howto; 101 syscallarg(netbsd32_charp) bootstr; 102 }; 103 104 struct sunos32_sys_execve_args { 105 syscallarg(const netbsd32_charp) path; 106 syscallarg(netbsd32_charpp) argp; 107 syscallarg(netbsd32_charpp) envp; 108 }; 109 110 struct sunos32_sys_omsync_args { 111 syscallarg(netbsd32_caddr_t) addr; 112 syscallarg(netbsd32_size_t) len; 113 syscallarg(int) flags; 114 }; 115 116 struct sunos32_sys_mmap_args { 117 syscallarg(netbsd32_voidp) addr; 118 syscallarg(netbsd32_size_t) len; 119 syscallarg(int) prot; 120 syscallarg(int) flags; 121 syscallarg(int) fd; 122 syscallarg(netbsd32_long) pos; 123 }; 124 125 struct sunos32_sys_setpgrp_args { 126 syscallarg(int) pid; 127 syscallarg(int) pgid; 128 }; 129 130 struct sunos32_sys_fcntl_args { 131 syscallarg(int) fd; 132 syscallarg(int) cmd; 133 syscallarg(netbsd32_voidp) arg; 134 }; 135 136 struct sunos32_sys_socket_args { 137 syscallarg(int) domain; 138 syscallarg(int) type; 139 syscallarg(int) protocol; 140 }; 141 142 struct sunos32_sys_setsockopt_args { 143 syscallarg(int) s; 144 syscallarg(int) level; 145 syscallarg(int) name; 146 syscallarg(netbsd32_caddr_t) val; 147 syscallarg(int) valsize; 148 }; 149 150 struct sunos32_sys_sigvec_args { 151 syscallarg(int) signum; 152 syscallarg(netbsd32_sigvecp_t) nsv; 153 syscallarg(netbsd32_sigvecp_t) osv; 154 }; 155 156 struct sunos32_sys_sigsuspend_args { 157 syscallarg(int) mask; 158 }; 159 160 struct sunos32_sys_socketpair_args { 161 syscallarg(int) domain; 162 syscallarg(int) type; 163 syscallarg(int) protocol; 164 syscallarg(netbsd32_intp) rsv; 165 }; 166 167 struct sunos32_sys_sigreturn_args { 168 syscallarg(netbsd32_sigcontextp_t) sigcntxp; 169 }; 170 171 struct sunos32_sys_getrlimit_args { 172 syscallarg(u_int) which; 173 syscallarg(netbsd32_orlimitp_t) rlp; 174 }; 175 176 struct sunos32_sys_setrlimit_args { 177 syscallarg(u_int) which; 178 syscallarg(netbsd32_orlimitp_t) rlp; 179 }; 180 #ifdef NFSSERVER 181 182 struct sunos32_sys_nfssvc_args { 183 syscallarg(int) fd; 184 }; 185 #else 186 #endif 187 188 struct sunos32_sys_statfs_args { 189 syscallarg(const netbsd32_charp) path; 190 syscallarg(sunos32_statfsp_t) buf; 191 }; 192 193 struct sunos32_sys_fstatfs_args { 194 syscallarg(int) fd; 195 syscallarg(sunos32_statfsp_t) buf; 196 }; 197 198 struct sunos32_sys_unmount_args { 199 syscallarg(netbsd32_charp) path; 200 }; 201 #ifdef NFS 202 #else 203 #endif 204 205 struct sunos32_sys_quotactl_args { 206 syscallarg(int) cmd; 207 syscallarg(netbsd32_charp) special; 208 syscallarg(int) uid; 209 syscallarg(netbsd32_caddr_t) addr; 210 }; 211 212 struct sunos32_sys_exportfs_args { 213 syscallarg(netbsd32_charp) path; 214 syscallarg(netbsd32_charp) ex; 215 }; 216 217 struct sunos32_sys_mount_args { 218 syscallarg(netbsd32_charp) type; 219 syscallarg(netbsd32_charp) path; 220 syscallarg(int) flags; 221 syscallarg(netbsd32_caddr_t) data; 222 }; 223 224 struct sunos32_sys_ustat_args { 225 syscallarg(int) dev; 226 syscallarg(sunos32_ustatp_t) buf; 227 }; 228 #ifdef SYSVSEM 229 #else 230 #endif 231 #ifdef SYSVMSG 232 #else 233 #endif 234 #ifdef SYSVSHM 235 #else 236 #endif 237 238 struct sunos32_sys_auditsys_args { 239 syscallarg(netbsd32_charp) record; 240 }; 241 242 struct sunos32_sys_getdents_args { 243 syscallarg(int) fd; 244 syscallarg(netbsd32_charp) buf; 245 syscallarg(int) nbytes; 246 }; 247 248 struct sunos32_sys_sigpending_args { 249 syscallarg(netbsd32_intp) mask; 250 }; 251 252 struct sunos32_sys_sysconf_args { 253 syscallarg(int) name; 254 }; 255 256 struct sunos32_sys_uname_args { 257 syscallarg(sunos32_utsnamep_t) name; 258 }; 259 260 /* 261 * System call prototypes. 262 */ 263 264 int sys_nosys(struct lwp *, void *, register_t *); 265 266 int netbsd32_exit(struct lwp *, void *, register_t *); 267 268 int sys_fork(struct lwp *, void *, register_t *); 269 270 int netbsd32_read(struct lwp *, void *, register_t *); 271 272 int netbsd32_write(struct lwp *, void *, register_t *); 273 274 int sunos32_sys_open(struct lwp *, void *, register_t *); 275 276 int netbsd32_close(struct lwp *, void *, register_t *); 277 278 int sunos32_sys_wait4(struct lwp *, void *, register_t *); 279 280 int sunos32_sys_creat(struct lwp *, void *, register_t *); 281 282 int netbsd32_link(struct lwp *, void *, register_t *); 283 284 int netbsd32_unlink(struct lwp *, void *, register_t *); 285 286 int sunos32_sys_execv(struct lwp *, void *, register_t *); 287 288 int netbsd32_chdir(struct lwp *, void *, register_t *); 289 290 int sunos32_sys_mknod(struct lwp *, void *, register_t *); 291 292 int netbsd32_chmod(struct lwp *, void *, register_t *); 293 294 int netbsd32_chown(struct lwp *, void *, register_t *); 295 296 int netbsd32_break(struct lwp *, void *, register_t *); 297 298 int compat_43_netbsd32_olseek(struct lwp *, void *, register_t *); 299 300 int sys_getpid_with_ppid(struct lwp *, void *, register_t *); 301 302 int netbsd32_setuid(struct lwp *, void *, register_t *); 303 304 int sys_getuid_with_euid(struct lwp *, void *, register_t *); 305 306 int sunos32_sys_stime(struct lwp *, void *, register_t *); 307 308 int sunos32_sys_ptrace(struct lwp *, void *, register_t *); 309 310 int sunos32_sys_access(struct lwp *, void *, register_t *); 311 312 int sys_sync(struct lwp *, void *, register_t *); 313 314 int netbsd32_kill(struct lwp *, void *, register_t *); 315 316 int sunos32_sys_stat(struct lwp *, void *, register_t *); 317 318 int sunos32_sys_lstat(struct lwp *, void *, register_t *); 319 320 int netbsd32_dup(struct lwp *, void *, register_t *); 321 322 int sys_pipe(struct lwp *, void *, register_t *); 323 324 int netbsd32_profil(struct lwp *, void *, register_t *); 325 326 int netbsd32_setgid(struct lwp *, void *, register_t *); 327 328 int sys_getgid_with_egid(struct lwp *, void *, register_t *); 329 330 int netbsd32_acct(struct lwp *, void *, register_t *); 331 332 int sunos32_sys_mctl(struct lwp *, void *, register_t *); 333 334 int sunos32_sys_ioctl(struct lwp *, void *, register_t *); 335 336 int sunos32_sys_reboot(struct lwp *, void *, register_t *); 337 338 int netbsd32_symlink(struct lwp *, void *, register_t *); 339 340 int netbsd32_readlink(struct lwp *, void *, register_t *); 341 342 int sunos32_sys_execve(struct lwp *, void *, register_t *); 343 344 int netbsd32_umask(struct lwp *, void *, register_t *); 345 346 int netbsd32_chroot(struct lwp *, void *, register_t *); 347 348 int compat_43_netbsd32_fstat43(struct lwp *, void *, register_t *); 349 350 int compat_43_sys_getpagesize(struct lwp *, void *, register_t *); 351 352 int sunos32_sys_omsync(struct lwp *, void *, register_t *); 353 354 int sys_vfork(struct lwp *, void *, register_t *); 355 356 int netbsd32_sbrk(struct lwp *, void *, register_t *); 357 358 int netbsd32_sstk(struct lwp *, void *, register_t *); 359 360 int sunos32_sys_mmap(struct lwp *, void *, register_t *); 361 362 int netbsd32_ovadvise(struct lwp *, void *, register_t *); 363 364 int netbsd32_munmap(struct lwp *, void *, register_t *); 365 366 int netbsd32_mprotect(struct lwp *, void *, register_t *); 367 368 int netbsd32_madvise(struct lwp *, void *, register_t *); 369 370 int sunos32_sys_vhangup(struct lwp *, void *, register_t *); 371 372 int netbsd32_mincore(struct lwp *, void *, register_t *); 373 374 int netbsd32_getgroups(struct lwp *, void *, register_t *); 375 376 int netbsd32_setgroups(struct lwp *, void *, register_t *); 377 378 int sys_getpgrp(struct lwp *, void *, register_t *); 379 380 int sunos32_sys_setpgrp(struct lwp *, void *, register_t *); 381 382 int netbsd32_setitimer(struct lwp *, void *, register_t *); 383 384 int compat_12_netbsd32_oswapon(struct lwp *, void *, register_t *); 385 386 int netbsd32_getitimer(struct lwp *, void *, register_t *); 387 388 int compat_43_netbsd32_ogethostname(struct lwp *, void *, register_t *); 389 390 int compat_43_netbsd32_osethostname(struct lwp *, void *, register_t *); 391 392 int compat_43_sys_getdtablesize(struct lwp *, void *, register_t *); 393 394 int netbsd32_dup2(struct lwp *, void *, register_t *); 395 396 int sunos32_sys_fcntl(struct lwp *, void *, register_t *); 397 398 int netbsd32_select(struct lwp *, void *, register_t *); 399 400 int netbsd32_fsync(struct lwp *, void *, register_t *); 401 402 int netbsd32_setpriority(struct lwp *, void *, register_t *); 403 404 int sunos32_sys_socket(struct lwp *, void *, register_t *); 405 406 int netbsd32_connect(struct lwp *, void *, register_t *); 407 408 int compat_43_netbsd32_oaccept(struct lwp *, void *, register_t *); 409 410 int netbsd32_getpriority(struct lwp *, void *, register_t *); 411 412 int compat_43_netbsd32_osend(struct lwp *, void *, register_t *); 413 414 int compat_43_netbsd32_orecv(struct lwp *, void *, register_t *); 415 416 int netbsd32_bind(struct lwp *, void *, register_t *); 417 418 int sunos32_sys_setsockopt(struct lwp *, void *, register_t *); 419 420 int netbsd32_listen(struct lwp *, void *, register_t *); 421 422 int sunos32_sys_sigvec(struct lwp *, void *, register_t *); 423 424 int compat_43_netbsd32_sigblock(struct lwp *, void *, register_t *); 425 426 int compat_43_netbsd32_sigsetmask(struct lwp *, void *, register_t *); 427 428 int sunos32_sys_sigsuspend(struct lwp *, void *, register_t *); 429 430 int compat_43_netbsd32_osigstack(struct lwp *, void *, register_t *); 431 432 int compat_43_netbsd32_orecvmsg(struct lwp *, void *, register_t *); 433 434 int compat_43_netbsd32_osendmsg(struct lwp *, void *, register_t *); 435 436 int netbsd32_gettimeofday(struct lwp *, void *, register_t *); 437 438 int netbsd32_getrusage(struct lwp *, void *, register_t *); 439 440 int netbsd32_getsockopt(struct lwp *, void *, register_t *); 441 442 int netbsd32_readv(struct lwp *, void *, register_t *); 443 444 int netbsd32_writev(struct lwp *, void *, register_t *); 445 446 int netbsd32_settimeofday(struct lwp *, void *, register_t *); 447 448 int netbsd32_fchown(struct lwp *, void *, register_t *); 449 450 int netbsd32_fchmod(struct lwp *, void *, register_t *); 451 452 int compat_43_netbsd32_orecvfrom(struct lwp *, void *, register_t *); 453 454 int netbsd32_setreuid(struct lwp *, void *, register_t *); 455 456 int netbsd32_setregid(struct lwp *, void *, register_t *); 457 458 int netbsd32_rename(struct lwp *, void *, register_t *); 459 460 int compat_43_netbsd32_otruncate(struct lwp *, void *, register_t *); 461 462 int compat_43_netbsd32_oftruncate(struct lwp *, void *, register_t *); 463 464 int netbsd32_flock(struct lwp *, void *, register_t *); 465 466 int netbsd32_sendto(struct lwp *, void *, register_t *); 467 468 int netbsd32_shutdown(struct lwp *, void *, register_t *); 469 470 int sunos32_sys_socketpair(struct lwp *, void *, register_t *); 471 472 int netbsd32_mkdir(struct lwp *, void *, register_t *); 473 474 int netbsd32_rmdir(struct lwp *, void *, register_t *); 475 476 int netbsd32_utimes(struct lwp *, void *, register_t *); 477 478 int sunos32_sys_sigreturn(struct lwp *, void *, register_t *); 479 480 int netbsd32_adjtime(struct lwp *, void *, register_t *); 481 482 int compat_43_netbsd32_ogetpeername(struct lwp *, void *, register_t *); 483 484 int compat_43_sys_gethostid(struct lwp *, void *, register_t *); 485 486 int sunos32_sys_getrlimit(struct lwp *, void *, register_t *); 487 488 int sunos32_sys_setrlimit(struct lwp *, void *, register_t *); 489 490 int compat_43_netbsd32_killpg(struct lwp *, void *, register_t *); 491 492 int compat_43_netbsd32_ogetsockname(struct lwp *, void *, register_t *); 493 494 int netbsd32_poll(struct lwp *, void *, register_t *); 495 496 #ifdef NFSSERVER 497 int sunos32_sys_nfssvc(struct lwp *, void *, register_t *); 498 499 #else 500 #endif 501 int compat_43_netbsd32_ogetdirentries(struct lwp *, void *, register_t *); 502 503 int sunos32_sys_statfs(struct lwp *, void *, register_t *); 504 505 int sunos32_sys_fstatfs(struct lwp *, void *, register_t *); 506 507 int sunos32_sys_unmount(struct lwp *, void *, register_t *); 508 509 #ifdef NFS 510 int async_daemon(struct lwp *, void *, register_t *); 511 512 int sys_getfh(struct lwp *, void *, register_t *); 513 514 #else 515 #endif 516 int compat_09_netbsd32_ogetdomainname(struct lwp *, void *, register_t *); 517 518 int compat_09_netbsd32_osetdomainname(struct lwp *, void *, register_t *); 519 520 int sunos32_sys_quotactl(struct lwp *, void *, register_t *); 521 522 int sunos32_sys_exportfs(struct lwp *, void *, register_t *); 523 524 int sunos32_sys_mount(struct lwp *, void *, register_t *); 525 526 int sunos32_sys_ustat(struct lwp *, void *, register_t *); 527 528 #ifdef SYSVSEM 529 int compat_10_netbsd32_sys_semsys(struct lwp *, void *, register_t *); 530 531 #else 532 #endif 533 #ifdef SYSVMSG 534 int compat_10_netbsd32_sys_msgsys(struct lwp *, void *, register_t *); 535 536 #else 537 #endif 538 #ifdef SYSVSHM 539 int compat_10_netbsd32_sys_shmsys(struct lwp *, void *, register_t *); 540 541 #else 542 #endif 543 int sunos32_sys_auditsys(struct lwp *, void *, register_t *); 544 545 int sunos32_sys_getdents(struct lwp *, void *, register_t *); 546 547 int sys_setsid(struct lwp *, void *, register_t *); 548 549 int netbsd32_fchdir(struct lwp *, void *, register_t *); 550 551 int netbsd32_fchroot(struct lwp *, void *, register_t *); 552 553 int sunos32_sys_sigpending(struct lwp *, void *, register_t *); 554 555 int netbsd32_setpgid(struct lwp *, void *, register_t *); 556 557 int netbsd32_pathconf(struct lwp *, void *, register_t *); 558 559 int netbsd32_fpathconf(struct lwp *, void *, register_t *); 560 561 int sunos32_sys_sysconf(struct lwp *, void *, register_t *); 562 563 int sunos32_sys_uname(struct lwp *, void *, register_t *); 564 565 #endif /* _SUNOS32_SYS__SYSCALLARGS_H_ */ 566