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