sysproto.h revision 28400
1/* 2 * System call prototypes. 3 * 4 * DO NOT EDIT-- this file is automatically generated. 5 * created from Id: syscalls.master,v 1.41 1997/08/19 05:53:48 peter Exp 6 */ 7 8#ifndef _SYS_SYSPROTO_H_ 9#define _SYS_SYSPROTO_H_ 10 11#include <sys/signal.h> 12 13struct nosys_args { 14 int dummy; 15}; 16struct rexit_args { 17 int rval; 18}; 19struct fork_args { 20 int dummy; 21}; 22struct read_args { 23 int fd; 24 char * buf; 25 u_int nbyte; 26}; 27struct write_args { 28 int fd; 29 char * buf; 30 u_int nbyte; 31}; 32struct open_args { 33 char * path; 34 int flags; 35 int mode; 36}; 37struct close_args { 38 int fd; 39}; 40struct wait_args { 41 int pid; 42 int * status; 43 int options; 44 struct rusage * rusage; 45}; 46struct link_args { 47 char * path; 48 char * link; 49}; 50struct unlink_args { 51 char * path; 52}; 53struct chdir_args { 54 char * path; 55}; 56struct fchdir_args { 57 int fd; 58}; 59struct mknod_args { 60 char * path; 61 int mode; 62 int dev; 63}; 64struct chmod_args { 65 char * path; 66 int mode; 67}; 68struct chown_args { 69 char * path; 70 int uid; 71 int gid; 72}; 73struct obreak_args { 74 char * nsize; 75}; 76struct getfsstat_args { 77 struct statfs * buf; 78 long bufsize; 79 int flags; 80}; 81struct getpid_args { 82 int dummy; 83}; 84struct mount_args { 85 char * type; 86 char * path; 87 int flags; 88 caddr_t data; 89}; 90struct unmount_args { 91 char * path; 92 int flags; 93}; 94struct setuid_args { 95 uid_t uid; 96}; 97struct getuid_args { 98 int dummy; 99}; 100struct geteuid_args { 101 int dummy; 102}; 103struct ptrace_args { 104 int req; 105 pid_t pid; 106 caddr_t addr; 107 int data; 108}; 109struct recvmsg_args { 110 int s; 111 struct msghdr * msg; 112 int flags; 113}; 114struct sendmsg_args { 115 int s; 116 caddr_t msg; 117 int flags; 118}; 119struct recvfrom_args { 120 int s; 121 caddr_t buf; 122 size_t len; 123 int flags; 124 caddr_t from; 125 int * fromlenaddr; 126}; 127struct accept_args { 128 int s; 129 caddr_t name; 130 int * anamelen; 131}; 132struct getpeername_args { 133 int fdes; 134 caddr_t asa; 135 int * alen; 136}; 137struct getsockname_args { 138 int fdes; 139 caddr_t asa; 140 int * alen; 141}; 142struct access_args { 143 char * path; 144 int flags; 145}; 146struct chflags_args { 147 char * path; 148 int flags; 149}; 150struct fchflags_args { 151 int fd; 152 int flags; 153}; 154struct sync_args { 155 int dummy; 156}; 157struct kill_args { 158 int pid; 159 int signum; 160}; 161struct getppid_args { 162 int dummy; 163}; 164struct dup_args { 165 u_int fd; 166}; 167struct pipe_args { 168 int dummy; 169}; 170struct getegid_args { 171 int dummy; 172}; 173struct profil_args { 174 caddr_t samples; 175 u_int size; 176 u_int offset; 177 u_int scale; 178}; 179struct ktrace_args { 180 char * fname; 181 int ops; 182 int facs; 183 int pid; 184}; 185struct sigaction_args { 186 int signum; 187 struct sigaction * nsa; 188 struct sigaction * osa; 189}; 190struct getgid_args { 191 int dummy; 192}; 193struct sigprocmask_args { 194 int how; 195 sigset_t mask; 196}; 197struct getlogin_args { 198 char * namebuf; 199 u_int namelen; 200}; 201struct setlogin_args { 202 char * namebuf; 203}; 204struct acct_args { 205 char * path; 206}; 207struct sigpending_args { 208 int dummy; 209}; 210struct sigaltstack_args { 211 struct sigaltstack * nss; 212 struct sigaltstack * oss; 213}; 214struct ioctl_args { 215 int fd; 216 u_long com; 217 caddr_t data; 218}; 219struct reboot_args { 220 int opt; 221}; 222struct revoke_args { 223 char * path; 224}; 225struct symlink_args { 226 char * path; 227 char * link; 228}; 229struct readlink_args { 230 char * path; 231 char * buf; 232 int count; 233}; 234struct execve_args { 235 char * fname; 236 char ** argv; 237 char ** envv; 238}; 239struct umask_args { 240 int newmask; 241}; 242struct chroot_args { 243 char * path; 244}; 245struct getpagesize_args { 246 int dummy; 247}; 248struct msync_args { 249 caddr_t addr; 250 size_t len; 251 int flags; 252}; 253struct vfork_args { 254 int dummy; 255}; 256struct sbrk_args { 257 int incr; 258}; 259struct sstk_args { 260 int incr; 261}; 262struct ovadvise_args { 263 int anom; 264}; 265struct munmap_args { 266 caddr_t addr; 267 size_t len; 268}; 269struct mprotect_args { 270 caddr_t addr; 271 size_t len; 272 int prot; 273}; 274struct madvise_args { 275 caddr_t addr; 276 size_t len; 277 int behav; 278}; 279struct mincore_args { 280 caddr_t addr; 281 size_t len; 282 char * vec; 283}; 284struct getgroups_args { 285 u_int gidsetsize; 286 gid_t * gidset; 287}; 288struct setgroups_args { 289 u_int gidsetsize; 290 gid_t * gidset; 291}; 292struct getpgrp_args { 293 int dummy; 294}; 295struct setpgid_args { 296 int pid; 297 int pgid; 298}; 299struct setitimer_args { 300 u_int which; 301 struct itimerval * itv; 302 struct itimerval * oitv; 303}; 304struct owait_args { 305 int dummy; 306}; 307struct swapon_args { 308 char * name; 309}; 310struct getitimer_args { 311 u_int which; 312 struct itimerval * itv; 313}; 314struct getdtablesize_args { 315 int dummy; 316}; 317struct dup2_args { 318 u_int from; 319 u_int to; 320}; 321struct fcntl_args { 322 int fd; 323 int cmd; 324 int arg; 325}; 326struct select_args { 327 int nd; 328 fd_set * in; 329 fd_set * ou; 330 fd_set * ex; 331 struct timeval * tv; 332}; 333struct fsync_args { 334 int fd; 335}; 336struct setpriority_args { 337 int which; 338 int who; 339 int prio; 340}; 341struct socket_args { 342 int domain; 343 int type; 344 int protocol; 345}; 346struct connect_args { 347 int s; 348 caddr_t name; 349 int namelen; 350}; 351struct getpriority_args { 352 int which; 353 int who; 354}; 355struct sigreturn_args { 356 struct sigcontext * sigcntxp; 357}; 358struct bind_args { 359 int s; 360 caddr_t name; 361 int namelen; 362}; 363struct setsockopt_args { 364 int s; 365 int level; 366 int name; 367 caddr_t val; 368 int valsize; 369}; 370struct listen_args { 371 int s; 372 int backlog; 373}; 374struct sigsuspend_args { 375 sigset_t mask; 376}; 377struct gettimeofday_args { 378 struct timeval * tp; 379 struct timezone * tzp; 380}; 381struct getrusage_args { 382 int who; 383 struct rusage * rusage; 384}; 385struct getsockopt_args { 386 int s; 387 int level; 388 int name; 389 caddr_t val; 390 int * avalsize; 391}; 392struct readv_args { 393 int fd; 394 struct iovec * iovp; 395 u_int iovcnt; 396}; 397struct writev_args { 398 int fd; 399 struct iovec * iovp; 400 u_int iovcnt; 401}; 402struct settimeofday_args { 403 struct timeval * tv; 404 struct timezone * tzp; 405}; 406struct fchown_args { 407 int fd; 408 int uid; 409 int gid; 410}; 411struct fchmod_args { 412 int fd; 413 int mode; 414}; 415struct setreuid_args { 416 int ruid; 417 int euid; 418}; 419struct setregid_args { 420 int rgid; 421 int egid; 422}; 423struct rename_args { 424 char * from; 425 char * to; 426}; 427struct flock_args { 428 int fd; 429 int how; 430}; 431struct mkfifo_args { 432 char * path; 433 int mode; 434}; 435struct sendto_args { 436 int s; 437 caddr_t buf; 438 size_t len; 439 int flags; 440 caddr_t to; 441 int tolen; 442}; 443struct shutdown_args { 444 int s; 445 int how; 446}; 447struct socketpair_args { 448 int domain; 449 int type; 450 int protocol; 451 int * rsv; 452}; 453struct mkdir_args { 454 char * path; 455 int mode; 456}; 457struct rmdir_args { 458 char * path; 459}; 460struct utimes_args { 461 char * path; 462 struct timeval * tptr; 463}; 464struct adjtime_args { 465 struct timeval * delta; 466 struct timeval * olddelta; 467}; 468struct ogethostid_args { 469 int dummy; 470}; 471struct setsid_args { 472 int dummy; 473}; 474struct quotactl_args { 475 char * path; 476 int cmd; 477 int uid; 478 caddr_t arg; 479}; 480struct oquota_args { 481 int dummy; 482}; 483#ifdef NFS 484struct nfssvc_args { 485 int flag; 486 caddr_t argp; 487}; 488#else 489#endif 490struct statfs_args { 491 char * path; 492 struct statfs * buf; 493}; 494struct fstatfs_args { 495 int fd; 496 struct statfs * buf; 497}; 498#if defined(NFS) && !defined (NFS_NOSERVER) 499struct getfh_args { 500 char * fname; 501 struct fhandle * fhp; 502}; 503#else 504#endif 505struct getdomainname_args { 506 char * domainname; 507 int len; 508}; 509struct setdomainname_args { 510 char * domainname; 511 int len; 512}; 513struct uname_args { 514 struct utsname * name; 515}; 516struct sysarch_args { 517 int op; 518 char * parms; 519}; 520struct rtprio_args { 521 int function; 522 pid_t pid; 523 struct rtprio * rtp; 524}; 525struct semsys_args { 526 int which; 527 int a2; 528 int a3; 529 int a4; 530 int a5; 531}; 532struct msgsys_args { 533 int which; 534 int a2; 535 int a3; 536 int a4; 537 int a5; 538 int a6; 539}; 540struct shmsys_args { 541 int which; 542 int a2; 543 int a3; 544 int a4; 545}; 546struct ntp_adjtime_args { 547 struct timex * tp; 548}; 549struct setgid_args { 550 gid_t gid; 551}; 552struct setegid_args { 553 gid_t egid; 554}; 555struct seteuid_args { 556 uid_t euid; 557}; 558#ifdef LFS 559struct lfs_bmapv_args { 560 struct fsid ** fsidp; 561 struct block_info * blkiov; 562 int blkcnt; 563}; 564struct lfs_markv_args { 565 struct fsid ** fsidp; 566 struct block_info * blkiov; 567 int blkcnt; 568}; 569struct lfs_segclean_args { 570 struct fsid ** fsidp; 571 u_long segment; 572}; 573struct lfs_segwait_args { 574 struct fsid ** fsidp; 575 struct timeval * tv; 576}; 577#else 578#endif 579struct stat_args { 580 char * path; 581 struct stat * ub; 582}; 583struct fstat_args { 584 int fd; 585 struct stat * sb; 586}; 587struct lstat_args { 588 char * path; 589 struct stat * ub; 590}; 591struct pathconf_args { 592 char * path; 593 int name; 594}; 595struct fpathconf_args { 596 int fd; 597 int name; 598}; 599struct __getrlimit_args { 600 u_int which; 601 struct orlimit * rlp; 602}; 603struct __setrlimit_args { 604 u_int which; 605 struct orlimit * rlp; 606}; 607struct getdirentries_args { 608 int fd; 609 char * buf; 610 u_int count; 611 long * basep; 612}; 613struct mmap_args { 614 caddr_t addr; 615 size_t len; 616 int prot; 617 int flags; 618 int fd; 619 long pad; 620 off_t pos; 621}; 622struct lseek_args { 623 int fd; 624 int pad; 625 off_t offset; 626 int whence; 627}; 628struct truncate_args { 629 char * path; 630 int pad; 631 off_t length; 632}; 633struct ftruncate_args { 634 int fd; 635 int pad; 636 off_t length; 637}; 638struct sysctl_args { 639 int * name; 640 u_int namelen; 641 void * old; 642 size_t * oldlenp; 643 void * new; 644 size_t newlen; 645}; 646struct mlock_args { 647 caddr_t addr; 648 size_t len; 649}; 650struct munlock_args { 651 caddr_t addr; 652 size_t len; 653}; 654struct utrace_args { 655 caddr_t addr; 656 size_t len; 657}; 658struct undelete_args { 659 char * path; 660}; 661struct getpgid_args { 662 pid_t pid; 663}; 664struct __semctl_args { 665 int semid; 666 int semnum; 667 int cmd; 668 union semun * arg; 669}; 670struct semget_args { 671 key_t key; 672 int nsems; 673 int semflg; 674}; 675struct semop_args { 676 int semid; 677 struct sembuf * sops; 678 u_int nsops; 679}; 680struct semconfig_args { 681 int flag; 682}; 683struct msgctl_args { 684 int msqid; 685 int cmd; 686 struct msqid_ds * buf; 687}; 688struct msgget_args { 689 key_t key; 690 int msgflg; 691}; 692struct msgsnd_args { 693 int msqid; 694 void * msgp; 695 size_t msgsz; 696 int msgflg; 697}; 698struct msgrcv_args { 699 int msqid; 700 void * msgp; 701 size_t msgsz; 702 long msgtyp; 703 int msgflg; 704}; 705struct shmat_args { 706 int shmid; 707 void * shmaddr; 708 int shmflg; 709}; 710struct shmctl_args { 711 int shmid; 712 int cmd; 713 struct shmid_ds * buf; 714}; 715struct shmdt_args { 716 void * shmaddr; 717}; 718struct shmget_args { 719 key_t key; 720 int size; 721 int shmflg; 722}; 723struct clock_gettime_args { 724 clockid_t clock_id; 725 struct timespec * tp; 726}; 727struct clock_settime_args { 728 clockid_t clock_id; 729 const struct timespec * tp; 730}; 731struct clock_getres_args { 732 clockid_t clock_id; 733 struct timespec * tp; 734}; 735struct nanosleep_args { 736 const struct timespec * rqtp; 737 struct timespec * rmtp; 738}; 739struct minherit_args { 740 caddr_t addr; 741 size_t len; 742 int inherit; 743}; 744struct rfork_args { 745 int flags; 746}; 747struct issetugid_args { 748 int dummy; 749}; 750struct lchown_args { 751 char * path; 752 int uid; 753 int gid; 754}; 755struct modnext_args { 756 int modid; 757}; 758struct modstat_args { 759 int modid; 760 struct module_stat * stat; 761}; 762struct modfnext_args { 763 int modid; 764}; 765struct modfind_args { 766 char * name; 767}; 768struct kldload_args { 769 const char * file; 770}; 771struct kldunload_args { 772 int fileid; 773}; 774struct kldfind_args { 775 const char * file; 776}; 777struct kldnext_args { 778 int fileid; 779}; 780struct kldstat_args { 781 int fileid; 782 struct kld_file_stat * stat; 783}; 784struct kldfirstmod_args { 785 int fileid; 786}; 787struct getsid_args { 788 pid_t pid; 789}; 790struct signanosleep_args { 791 const struct timespec * rqtp; 792 struct timespec * rmtp; 793 sigset_t * mask; 794}; 795struct aio_return_args { 796 struct aiocb * aiocbp; 797}; 798struct aio_suspend_args { 799 struct aiocb *const * aiocbp; 800 int nent; 801 const struct timespec * timeout; 802}; 803struct aio_cancel_args { 804 int fd; 805 struct aiocb * aiocbp; 806}; 807struct aio_error_args { 808 struct aiocb * aiocbp; 809}; 810struct aio_read_args { 811 struct aiocb * aiocbp; 812}; 813struct aio_write_args { 814 struct aiocb * aiocbp; 815}; 816struct lio_listio_args { 817 int mode; 818 struct aiocb *const * acb_list; 819 int nent; 820 struct sigevent * sig; 821}; 822struct yield_args { 823 int dummy; 824}; 825struct thr_sleep_args { 826 const struct timespec * timeout; 827}; 828struct thr_wakeup_args { 829 pid_t pid; 830}; 831struct mlockall_args { 832 int how; 833}; 834struct munlockall_args { 835 int dummy; 836}; 837int nosys __P((struct proc *, struct nosys_args *, int [])); 838void exit __P((struct proc *, struct rexit_args *, int [])) __dead2; 839int fork __P((struct proc *, struct fork_args *, int [])); 840int read __P((struct proc *, struct read_args *, int [])); 841int write __P((struct proc *, struct write_args *, int [])); 842int open __P((struct proc *, struct open_args *, int [])); 843int close __P((struct proc *, struct close_args *, int [])); 844int wait4 __P((struct proc *, struct wait_args *, int [])); 845int link __P((struct proc *, struct link_args *, int [])); 846int unlink __P((struct proc *, struct unlink_args *, int [])); 847int chdir __P((struct proc *, struct chdir_args *, int [])); 848int fchdir __P((struct proc *, struct fchdir_args *, int [])); 849int mknod __P((struct proc *, struct mknod_args *, int [])); 850int chmod __P((struct proc *, struct chmod_args *, int [])); 851int chown __P((struct proc *, struct chown_args *, int [])); 852int obreak __P((struct proc *, struct obreak_args *, int [])); 853int getfsstat __P((struct proc *, struct getfsstat_args *, int [])); 854int getpid __P((struct proc *, struct getpid_args *, int [])); 855int mount __P((struct proc *, struct mount_args *, int [])); 856int unmount __P((struct proc *, struct unmount_args *, int [])); 857int setuid __P((struct proc *, struct setuid_args *, int [])); 858int getuid __P((struct proc *, struct getuid_args *, int [])); 859int geteuid __P((struct proc *, struct geteuid_args *, int [])); 860int ptrace __P((struct proc *, struct ptrace_args *, int [])); 861int recvmsg __P((struct proc *, struct recvmsg_args *, int [])); 862int sendmsg __P((struct proc *, struct sendmsg_args *, int [])); 863int recvfrom __P((struct proc *, struct recvfrom_args *, int [])); 864int accept __P((struct proc *, struct accept_args *, int [])); 865int getpeername __P((struct proc *, struct getpeername_args *, int [])); 866int getsockname __P((struct proc *, struct getsockname_args *, int [])); 867int access __P((struct proc *, struct access_args *, int [])); 868int chflags __P((struct proc *, struct chflags_args *, int [])); 869int fchflags __P((struct proc *, struct fchflags_args *, int [])); 870int sync __P((struct proc *, struct sync_args *, int [])); 871int kill __P((struct proc *, struct kill_args *, int [])); 872int getppid __P((struct proc *, struct getppid_args *, int [])); 873int dup __P((struct proc *, struct dup_args *, int [])); 874int pipe __P((struct proc *, struct pipe_args *, int [])); 875int getegid __P((struct proc *, struct getegid_args *, int [])); 876int profil __P((struct proc *, struct profil_args *, int [])); 877int ktrace __P((struct proc *, struct ktrace_args *, int [])); 878int sigaction __P((struct proc *, struct sigaction_args *, int [])); 879int getgid __P((struct proc *, struct getgid_args *, int [])); 880int sigprocmask __P((struct proc *, struct sigprocmask_args *, int [])); 881int getlogin __P((struct proc *, struct getlogin_args *, int [])); 882int setlogin __P((struct proc *, struct setlogin_args *, int [])); 883int acct __P((struct proc *, struct acct_args *, int [])); 884int sigpending __P((struct proc *, struct sigpending_args *, int [])); 885int sigaltstack __P((struct proc *, struct sigaltstack_args *, int [])); 886int ioctl __P((struct proc *, struct ioctl_args *, int [])); 887int reboot __P((struct proc *, struct reboot_args *, int [])); 888int revoke __P((struct proc *, struct revoke_args *, int [])); 889int symlink __P((struct proc *, struct symlink_args *, int [])); 890int readlink __P((struct proc *, struct readlink_args *, int [])); 891int execve __P((struct proc *, struct execve_args *, int [])); 892int umask __P((struct proc *, struct umask_args *, int [])); 893int chroot __P((struct proc *, struct chroot_args *, int [])); 894int msync __P((struct proc *, struct msync_args *, int [])); 895int vfork __P((struct proc *, struct vfork_args *, int [])); 896int sbrk __P((struct proc *, struct sbrk_args *, int [])); 897int sstk __P((struct proc *, struct sstk_args *, int [])); 898int ovadvise __P((struct proc *, struct ovadvise_args *, int [])); 899int munmap __P((struct proc *, struct munmap_args *, int [])); 900int mprotect __P((struct proc *, struct mprotect_args *, int [])); 901int madvise __P((struct proc *, struct madvise_args *, int [])); 902int mincore __P((struct proc *, struct mincore_args *, int [])); 903int getgroups __P((struct proc *, struct getgroups_args *, int [])); 904int setgroups __P((struct proc *, struct setgroups_args *, int [])); 905int getpgrp __P((struct proc *, struct getpgrp_args *, int [])); 906int setpgid __P((struct proc *, struct setpgid_args *, int [])); 907int setitimer __P((struct proc *, struct setitimer_args *, int [])); 908int swapon __P((struct proc *, struct swapon_args *, int [])); 909int getitimer __P((struct proc *, struct getitimer_args *, int [])); 910int getdtablesize __P((struct proc *, struct getdtablesize_args *, int [])); 911int dup2 __P((struct proc *, struct dup2_args *, int [])); 912int fcntl __P((struct proc *, struct fcntl_args *, int [])); 913int select __P((struct proc *, struct select_args *, int [])); 914int fsync __P((struct proc *, struct fsync_args *, int [])); 915int setpriority __P((struct proc *, struct setpriority_args *, int [])); 916int socket __P((struct proc *, struct socket_args *, int [])); 917int connect __P((struct proc *, struct connect_args *, int [])); 918int getpriority __P((struct proc *, struct getpriority_args *, int [])); 919int sigreturn __P((struct proc *, struct sigreturn_args *, int [])); 920int bind __P((struct proc *, struct bind_args *, int [])); 921int setsockopt __P((struct proc *, struct setsockopt_args *, int [])); 922int listen __P((struct proc *, struct listen_args *, int [])); 923int sigsuspend __P((struct proc *, struct sigsuspend_args *, int [])); 924int gettimeofday __P((struct proc *, struct gettimeofday_args *, int [])); 925int getrusage __P((struct proc *, struct getrusage_args *, int [])); 926int getsockopt __P((struct proc *, struct getsockopt_args *, int [])); 927int readv __P((struct proc *, struct readv_args *, int [])); 928int writev __P((struct proc *, struct writev_args *, int [])); 929int settimeofday __P((struct proc *, struct settimeofday_args *, int [])); 930int fchown __P((struct proc *, struct fchown_args *, int [])); 931int fchmod __P((struct proc *, struct fchmod_args *, int [])); 932int setreuid __P((struct proc *, struct setreuid_args *, int [])); 933int setregid __P((struct proc *, struct setregid_args *, int [])); 934int rename __P((struct proc *, struct rename_args *, int [])); 935int flock __P((struct proc *, struct flock_args *, int [])); 936int mkfifo __P((struct proc *, struct mkfifo_args *, int [])); 937int sendto __P((struct proc *, struct sendto_args *, int [])); 938int shutdown __P((struct proc *, struct shutdown_args *, int [])); 939int socketpair __P((struct proc *, struct socketpair_args *, int [])); 940int mkdir __P((struct proc *, struct mkdir_args *, int [])); 941int rmdir __P((struct proc *, struct rmdir_args *, int [])); 942int utimes __P((struct proc *, struct utimes_args *, int [])); 943int adjtime __P((struct proc *, struct adjtime_args *, int [])); 944int setsid __P((struct proc *, struct setsid_args *, int [])); 945int quotactl __P((struct proc *, struct quotactl_args *, int [])); 946#ifdef NFS 947int nfssvc __P((struct proc *, struct nfssvc_args *, int [])); 948#else 949#endif 950int statfs __P((struct proc *, struct statfs_args *, int [])); 951int fstatfs __P((struct proc *, struct fstatfs_args *, int [])); 952#if defined(NFS) && !defined (NFS_NOSERVER) 953int getfh __P((struct proc *, struct getfh_args *, int [])); 954#else 955#endif 956int getdomainname __P((struct proc *, struct getdomainname_args *, int [])); 957int setdomainname __P((struct proc *, struct setdomainname_args *, int [])); 958int uname __P((struct proc *, struct uname_args *, int [])); 959int sysarch __P((struct proc *, struct sysarch_args *, int [])); 960int rtprio __P((struct proc *, struct rtprio_args *, int [])); 961int semsys __P((struct proc *, struct semsys_args *, int [])); 962int msgsys __P((struct proc *, struct msgsys_args *, int [])); 963int shmsys __P((struct proc *, struct shmsys_args *, int [])); 964int ntp_adjtime __P((struct proc *, struct ntp_adjtime_args *, int [])); 965int setgid __P((struct proc *, struct setgid_args *, int [])); 966int setegid __P((struct proc *, struct setegid_args *, int [])); 967int seteuid __P((struct proc *, struct seteuid_args *, int [])); 968#ifdef LFS 969int lfs_bmapv __P((struct proc *, struct lfs_bmapv_args *, int [])); 970int lfs_markv __P((struct proc *, struct lfs_markv_args *, int [])); 971int lfs_segclean __P((struct proc *, struct lfs_segclean_args *, int [])); 972int lfs_segwait __P((struct proc *, struct lfs_segwait_args *, int [])); 973#else 974#endif 975int stat __P((struct proc *, struct stat_args *, int [])); 976int fstat __P((struct proc *, struct fstat_args *, int [])); 977int lstat __P((struct proc *, struct lstat_args *, int [])); 978int pathconf __P((struct proc *, struct pathconf_args *, int [])); 979int fpathconf __P((struct proc *, struct fpathconf_args *, int [])); 980int getrlimit __P((struct proc *, struct __getrlimit_args *, int [])); 981int setrlimit __P((struct proc *, struct __setrlimit_args *, int [])); 982int getdirentries __P((struct proc *, struct getdirentries_args *, int [])); 983int mmap __P((struct proc *, struct mmap_args *, int [])); 984int lseek __P((struct proc *, struct lseek_args *, int [])); 985int truncate __P((struct proc *, struct truncate_args *, int [])); 986int ftruncate __P((struct proc *, struct ftruncate_args *, int [])); 987int __sysctl __P((struct proc *, struct sysctl_args *, int [])); 988int mlock __P((struct proc *, struct mlock_args *, int [])); 989int munlock __P((struct proc *, struct munlock_args *, int [])); 990int utrace __P((struct proc *, struct utrace_args *, int [])); 991int undelete __P((struct proc *, struct undelete_args *, int [])); 992int getpgid __P((struct proc *, struct getpgid_args *, int [])); 993int lkmnosys __P((struct proc *, struct nosys_args *, int [])); 994int __semctl __P((struct proc *, struct __semctl_args *, int [])); 995int semget __P((struct proc *, struct semget_args *, int [])); 996int semop __P((struct proc *, struct semop_args *, int [])); 997int semconfig __P((struct proc *, struct semconfig_args *, int [])); 998int msgctl __P((struct proc *, struct msgctl_args *, int [])); 999int msgget __P((struct proc *, struct msgget_args *, int [])); 1000int msgsnd __P((struct proc *, struct msgsnd_args *, int [])); 1001int msgrcv __P((struct proc *, struct msgrcv_args *, int [])); 1002int shmat __P((struct proc *, struct shmat_args *, int [])); 1003int shmctl __P((struct proc *, struct shmctl_args *, int [])); 1004int shmdt __P((struct proc *, struct shmdt_args *, int [])); 1005int shmget __P((struct proc *, struct shmget_args *, int [])); 1006int clock_gettime __P((struct proc *, struct clock_gettime_args *, int [])); 1007int clock_settime __P((struct proc *, struct clock_settime_args *, int [])); 1008int clock_getres __P((struct proc *, struct clock_getres_args *, int [])); 1009int nanosleep __P((struct proc *, struct nanosleep_args *, int [])); 1010int minherit __P((struct proc *, struct minherit_args *, int [])); 1011int rfork __P((struct proc *, struct rfork_args *, int [])); 1012int issetugid __P((struct proc *, struct issetugid_args *, int [])); 1013int lchown __P((struct proc *, struct lchown_args *, int [])); 1014int modnext __P((struct proc *, struct modnext_args *, int [])); 1015int modstat __P((struct proc *, struct modstat_args *, int [])); 1016int modfnext __P((struct proc *, struct modfnext_args *, int [])); 1017int modfind __P((struct proc *, struct modfind_args *, int [])); 1018int kldload __P((struct proc *, struct kldload_args *, int [])); 1019int kldunload __P((struct proc *, struct kldunload_args *, int [])); 1020int kldfind __P((struct proc *, struct kldfind_args *, int [])); 1021int kldnext __P((struct proc *, struct kldnext_args *, int [])); 1022int kldstat __P((struct proc *, struct kldstat_args *, int [])); 1023int kldfirstmod __P((struct proc *, struct kldfirstmod_args *, int [])); 1024int getsid __P((struct proc *, struct getsid_args *, int [])); 1025int signanosleep __P((struct proc *, struct signanosleep_args *, int [])); 1026int aio_return __P((struct proc *, struct aio_return_args *, int [])); 1027int aio_suspend __P((struct proc *, struct aio_suspend_args *, int [])); 1028int aio_cancel __P((struct proc *, struct aio_cancel_args *, int [])); 1029int aio_error __P((struct proc *, struct aio_error_args *, int [])); 1030int aio_read __P((struct proc *, struct aio_read_args *, int [])); 1031int aio_write __P((struct proc *, struct aio_write_args *, int [])); 1032int lio_listio __P((struct proc *, struct lio_listio_args *, int [])); 1033int yield __P((struct proc *, struct yield_args *, int [])); 1034int thr_sleep __P((struct proc *, struct thr_sleep_args *, int [])); 1035int thr_wakeup __P((struct proc *, struct thr_wakeup_args *, int [])); 1036int mlockall __P((struct proc *, struct mlockall_args *, int [])); 1037int munlockall __P((struct proc *, struct munlockall_args *, int [])); 1038 1039#ifdef COMPAT_43 1040 1041struct ocreat_args { 1042 char * path; 1043 int mode; 1044}; 1045struct olseek_args { 1046 int fd; 1047 long offset; 1048 int whence; 1049}; 1050struct ostat_args { 1051 char * path; 1052 struct ostat * ub; 1053}; 1054struct olstat_args { 1055 char * path; 1056 struct ostat * ub; 1057}; 1058struct ofstat_args { 1059 int fd; 1060 struct ostat * sb; 1061}; 1062struct getkerninfo_args { 1063 int op; 1064 char * where; 1065 int * size; 1066 int arg; 1067}; 1068struct ommap_args { 1069 caddr_t addr; 1070 int len; 1071 int prot; 1072 int flags; 1073 int fd; 1074 long pos; 1075}; 1076struct gethostname_args { 1077 char * hostname; 1078 u_int len; 1079}; 1080struct sethostname_args { 1081 char * hostname; 1082 u_int len; 1083}; 1084struct osend_args { 1085 int s; 1086 caddr_t buf; 1087 int len; 1088 int flags; 1089}; 1090struct orecv_args { 1091 int s; 1092 caddr_t buf; 1093 int len; 1094 int flags; 1095}; 1096struct osigvec_args { 1097 int signum; 1098 struct sigvec * nsv; 1099 struct sigvec * osv; 1100}; 1101struct osigblock_args { 1102 int mask; 1103}; 1104struct osigsetmask_args { 1105 int mask; 1106}; 1107struct osigstack_args { 1108 struct sigstack * nss; 1109 struct sigstack * oss; 1110}; 1111struct orecvmsg_args { 1112 int s; 1113 struct omsghdr * msg; 1114 int flags; 1115}; 1116struct osendmsg_args { 1117 int s; 1118 caddr_t msg; 1119 int flags; 1120}; 1121struct otruncate_args { 1122 char * path; 1123 long length; 1124}; 1125struct oftruncate_args { 1126 int fd; 1127 long length; 1128}; 1129struct ogetpeername_args { 1130 int fdes; 1131 caddr_t asa; 1132 int * alen; 1133}; 1134struct osethostid_args { 1135 long hostid; 1136}; 1137struct ogetrlimit_args { 1138 u_int which; 1139 struct ogetrlimit * rlp; 1140}; 1141struct osetrlimit_args { 1142 u_int which; 1143 struct ogetrlimit * rlp; 1144}; 1145struct okillpg_args { 1146 int pgid; 1147 int signum; 1148}; 1149#ifdef NFS 1150#else 1151#endif 1152struct ogetdirentries_args { 1153 int fd; 1154 char * buf; 1155 u_int count; 1156 long * basep; 1157}; 1158#if defined(NFS) && !defined (NFS_NOSERVER) 1159#else 1160#endif 1161#ifdef LFS 1162#else 1163#endif 1164int ocreat __P((struct proc *, struct ocreat_args *, int [])); 1165int olseek __P((struct proc *, struct olseek_args *, int [])); 1166int ostat __P((struct proc *, struct ostat_args *, int [])); 1167int olstat __P((struct proc *, struct olstat_args *, int [])); 1168int ofstat __P((struct proc *, struct ofstat_args *, int [])); 1169int ogetkerninfo __P((struct proc *, struct getkerninfo_args *, int [])); 1170int ogetpagesize __P((struct proc *, struct getpagesize_args *, int [])); 1171int ommap __P((struct proc *, struct ommap_args *, int [])); 1172int owait __P((struct proc *, struct owait_args *, int [])); 1173int ogethostname __P((struct proc *, struct gethostname_args *, int [])); 1174int osethostname __P((struct proc *, struct sethostname_args *, int [])); 1175int oaccept __P((struct proc *, struct accept_args *, int [])); 1176int osend __P((struct proc *, struct osend_args *, int [])); 1177int orecv __P((struct proc *, struct orecv_args *, int [])); 1178int osigvec __P((struct proc *, struct osigvec_args *, int [])); 1179int osigblock __P((struct proc *, struct osigblock_args *, int [])); 1180int osigsetmask __P((struct proc *, struct osigsetmask_args *, int [])); 1181int osigstack __P((struct proc *, struct osigstack_args *, int [])); 1182int orecvmsg __P((struct proc *, struct orecvmsg_args *, int [])); 1183int osendmsg __P((struct proc *, struct osendmsg_args *, int [])); 1184int orecvfrom __P((struct proc *, struct recvfrom_args *, int [])); 1185int otruncate __P((struct proc *, struct otruncate_args *, int [])); 1186int oftruncate __P((struct proc *, struct oftruncate_args *, int [])); 1187int ogetpeername __P((struct proc *, struct ogetpeername_args *, int [])); 1188int ogethostid __P((struct proc *, struct ogethostid_args *, int [])); 1189int osethostid __P((struct proc *, struct osethostid_args *, int [])); 1190int ogetrlimit __P((struct proc *, struct ogetrlimit_args *, int [])); 1191int osetrlimit __P((struct proc *, struct osetrlimit_args *, int [])); 1192int okillpg __P((struct proc *, struct okillpg_args *, int [])); 1193int oquota __P((struct proc *, struct oquota_args *, int [])); 1194int ogetsockname __P((struct proc *, struct getsockname_args *, int [])); 1195int ogetdirentries __P((struct proc *, struct ogetdirentries_args *, int [])); 1196 1197#endif /* COMPAT_43 */ 1198 1199#endif /* !_SYS_SYSPROTO_H_ */ 1200