The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/syscallargs.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /* $NetBSD: syscallargs.h,v 1.130 2004/03/26 15:29:28 drochner 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.138 2004/03/26 15:18:54 drochner Exp 
    8  */
    9 
   10 #ifndef _SYS__SYSCALLARGS_H_
   11 #define _SYS__SYSCALLARGS_H_
   12 
   13 #ifdef  syscallarg
   14 #undef  syscallarg
   15 #endif
   16 
   17 #define syscallarg(x)                                                   \
   18         union {                                                         \
   19                 register_t pad;                                         \
   20                 struct { x datum; } le;                                 \
   21                 struct { /* LINTED zero array dimension */              \
   22                         int8_t pad[  /* CONSTCOND */                    \
   23                                 (sizeof (register_t) < sizeof (x))      \
   24                                 ? 0                                     \
   25                                 : sizeof (register_t) - sizeof (x)];    \
   26                         x datum;                                        \
   27                 } be;                                                   \
   28         }
   29 
   30 struct sys_exit_args {
   31         syscallarg(int) rval;
   32 };
   33 
   34 struct sys_read_args {
   35         syscallarg(int) fd;
   36         syscallarg(void *) buf;
   37         syscallarg(size_t) nbyte;
   38 };
   39 
   40 struct sys_write_args {
   41         syscallarg(int) fd;
   42         syscallarg(const void *) buf;
   43         syscallarg(size_t) nbyte;
   44 };
   45 
   46 struct sys_open_args {
   47         syscallarg(const char *) path;
   48         syscallarg(int) flags;
   49         syscallarg(mode_t) mode;
   50 };
   51 
   52 struct sys_close_args {
   53         syscallarg(int) fd;
   54 };
   55 
   56 struct sys_wait4_args {
   57         syscallarg(int) pid;
   58         syscallarg(int *) status;
   59         syscallarg(int) options;
   60         syscallarg(struct rusage *) rusage;
   61 };
   62 
   63 struct compat_43_sys_creat_args {
   64         syscallarg(const char *) path;
   65         syscallarg(mode_t) mode;
   66 };
   67 
   68 struct sys_link_args {
   69         syscallarg(const char *) path;
   70         syscallarg(const char *) link;
   71 };
   72 
   73 struct sys_unlink_args {
   74         syscallarg(const char *) path;
   75 };
   76 
   77 struct sys_chdir_args {
   78         syscallarg(const char *) path;
   79 };
   80 
   81 struct sys_fchdir_args {
   82         syscallarg(int) fd;
   83 };
   84 
   85 struct sys_mknod_args {
   86         syscallarg(const char *) path;
   87         syscallarg(mode_t) mode;
   88         syscallarg(dev_t) dev;
   89 };
   90 
   91 struct sys_chmod_args {
   92         syscallarg(const char *) path;
   93         syscallarg(mode_t) mode;
   94 };
   95 
   96 struct sys_chown_args {
   97         syscallarg(const char *) path;
   98         syscallarg(uid_t) uid;
   99         syscallarg(gid_t) gid;
  100 };
  101 
  102 struct sys_obreak_args {
  103         syscallarg(char *) nsize;
  104 };
  105 
  106 struct sys_getfsstat_args {
  107         syscallarg(struct statfs *) buf;
  108         syscallarg(long) bufsize;
  109         syscallarg(int) flags;
  110 };
  111 
  112 struct compat_43_sys_lseek_args {
  113         syscallarg(int) fd;
  114         syscallarg(long) offset;
  115         syscallarg(int) whence;
  116 };
  117 #ifdef COMPAT_43
  118 #else
  119 #endif
  120 
  121 struct sys_mount_args {
  122         syscallarg(const char *) type;
  123         syscallarg(const char *) path;
  124         syscallarg(int) flags;
  125         syscallarg(void *) data;
  126 };
  127 
  128 struct sys_unmount_args {
  129         syscallarg(const char *) path;
  130         syscallarg(int) flags;
  131 };
  132 
  133 struct sys_setuid_args {
  134         syscallarg(uid_t) uid;
  135 };
  136 #ifdef COMPAT_43
  137 #else
  138 #endif
  139 
  140 struct sys_ptrace_args {
  141         syscallarg(int) req;
  142         syscallarg(pid_t) pid;
  143         syscallarg(caddr_t) addr;
  144         syscallarg(int) data;
  145 };
  146 
  147 struct sys_recvmsg_args {
  148         syscallarg(int) s;
  149         syscallarg(struct msghdr *) msg;
  150         syscallarg(int) flags;
  151 };
  152 
  153 struct sys_sendmsg_args {
  154         syscallarg(int) s;
  155         syscallarg(const struct msghdr *) msg;
  156         syscallarg(int) flags;
  157 };
  158 
  159 struct sys_recvfrom_args {
  160         syscallarg(int) s;
  161         syscallarg(void *) buf;
  162         syscallarg(size_t) len;
  163         syscallarg(int) flags;
  164         syscallarg(struct sockaddr *) from;
  165         syscallarg(unsigned int *) fromlenaddr;
  166 };
  167 
  168 struct sys_accept_args {
  169         syscallarg(int) s;
  170         syscallarg(struct sockaddr *) name;
  171         syscallarg(unsigned int *) anamelen;
  172 };
  173 
  174 struct sys_getpeername_args {
  175         syscallarg(int) fdes;
  176         syscallarg(struct sockaddr *) asa;
  177         syscallarg(unsigned int *) alen;
  178 };
  179 
  180 struct sys_getsockname_args {
  181         syscallarg(int) fdes;
  182         syscallarg(struct sockaddr *) asa;
  183         syscallarg(unsigned int *) alen;
  184 };
  185 
  186 struct sys_access_args {
  187         syscallarg(const char *) path;
  188         syscallarg(int) flags;
  189 };
  190 
  191 struct sys_chflags_args {
  192         syscallarg(const char *) path;
  193         syscallarg(u_long) flags;
  194 };
  195 
  196 struct sys_fchflags_args {
  197         syscallarg(int) fd;
  198         syscallarg(u_long) flags;
  199 };
  200 
  201 struct sys_kill_args {
  202         syscallarg(int) pid;
  203         syscallarg(int) signum;
  204 };
  205 
  206 struct compat_43_sys_stat_args {
  207         syscallarg(const char *) path;
  208         syscallarg(struct stat43 *) ub;
  209 };
  210 
  211 struct compat_43_sys_lstat_args {
  212         syscallarg(const char *) path;
  213         syscallarg(struct stat43 *) ub;
  214 };
  215 
  216 struct sys_dup_args {
  217         syscallarg(int) fd;
  218 };
  219 
  220 struct sys_profil_args {
  221         syscallarg(caddr_t) samples;
  222         syscallarg(size_t) size;
  223         syscallarg(u_long) offset;
  224         syscallarg(u_int) scale;
  225 };
  226 #if defined(KTRACE) || !defined(_KERNEL)
  227 
  228 struct sys_ktrace_args {
  229         syscallarg(const char *) fname;
  230         syscallarg(int) ops;
  231         syscallarg(int) facs;
  232         syscallarg(int) pid;
  233 };
  234 #else
  235 #endif
  236 
  237 struct compat_13_sys_sigaction_args {
  238         syscallarg(int) signum;
  239         syscallarg(const struct sigaction13 *) nsa;
  240         syscallarg(struct sigaction13 *) osa;
  241 };
  242 #ifdef COMPAT_43
  243 #else
  244 #endif
  245 
  246 struct compat_13_sys_sigprocmask_args {
  247         syscallarg(int) how;
  248         syscallarg(int) mask;
  249 };
  250 
  251 struct sys___getlogin_args {
  252         syscallarg(char *) namebuf;
  253         syscallarg(size_t) namelen;
  254 };
  255 
  256 struct sys___setlogin_args {
  257         syscallarg(const char *) namebuf;
  258 };
  259 
  260 struct sys_acct_args {
  261         syscallarg(const char *) path;
  262 };
  263 
  264 struct compat_13_sys_sigaltstack_args {
  265         syscallarg(const struct sigaltstack13 *) nss;
  266         syscallarg(struct sigaltstack13 *) oss;
  267 };
  268 
  269 struct sys_ioctl_args {
  270         syscallarg(int) fd;
  271         syscallarg(u_long) com;
  272         syscallarg(void *) data;
  273 };
  274 
  275 struct compat_12_sys_reboot_args {
  276         syscallarg(int) opt;
  277 };
  278 
  279 struct sys_revoke_args {
  280         syscallarg(const char *) path;
  281 };
  282 
  283 struct sys_symlink_args {
  284         syscallarg(const char *) path;
  285         syscallarg(const char *) link;
  286 };
  287 
  288 struct sys_readlink_args {
  289         syscallarg(const char *) path;
  290         syscallarg(char *) buf;
  291         syscallarg(size_t) count;
  292 };
  293 
  294 struct sys_execve_args {
  295         syscallarg(const char *) path;
  296         syscallarg(char *const *) argp;
  297         syscallarg(char *const *) envp;
  298 };
  299 
  300 struct sys_umask_args {
  301         syscallarg(mode_t) newmask;
  302 };
  303 
  304 struct sys_chroot_args {
  305         syscallarg(const char *) path;
  306 };
  307 
  308 struct compat_43_sys_fstat_args {
  309         syscallarg(int) fd;
  310         syscallarg(struct stat43 *) sb;
  311 };
  312 
  313 struct compat_43_sys_getkerninfo_args {
  314         syscallarg(int) op;
  315         syscallarg(char *) where;
  316         syscallarg(int *) size;
  317         syscallarg(int) arg;
  318 };
  319 
  320 struct compat_12_sys_msync_args {
  321         syscallarg(caddr_t) addr;
  322         syscallarg(size_t) len;
  323 };
  324 
  325 struct sys_sbrk_args {
  326         syscallarg(intptr_t) incr;
  327 };
  328 
  329 struct sys_sstk_args {
  330         syscallarg(int) incr;
  331 };
  332 
  333 struct compat_43_sys_mmap_args {
  334         syscallarg(caddr_t) addr;
  335         syscallarg(size_t) len;
  336         syscallarg(int) prot;
  337         syscallarg(int) flags;
  338         syscallarg(int) fd;
  339         syscallarg(long) pos;
  340 };
  341 
  342 struct sys_ovadvise_args {
  343         syscallarg(int) anom;
  344 };
  345 
  346 struct sys_munmap_args {
  347         syscallarg(void *) addr;
  348         syscallarg(size_t) len;
  349 };
  350 
  351 struct sys_mprotect_args {
  352         syscallarg(void *) addr;
  353         syscallarg(size_t) len;
  354         syscallarg(int) prot;
  355 };
  356 
  357 struct sys_madvise_args {
  358         syscallarg(void *) addr;
  359         syscallarg(size_t) len;
  360         syscallarg(int) behav;
  361 };
  362 
  363 struct sys_mincore_args {
  364         syscallarg(void *) addr;
  365         syscallarg(size_t) len;
  366         syscallarg(char *) vec;
  367 };
  368 
  369 struct sys_getgroups_args {
  370         syscallarg(int) gidsetsize;
  371         syscallarg(gid_t *) gidset;
  372 };
  373 
  374 struct sys_setgroups_args {
  375         syscallarg(int) gidsetsize;
  376         syscallarg(const gid_t *) gidset;
  377 };
  378 
  379 struct sys_setpgid_args {
  380         syscallarg(int) pid;
  381         syscallarg(int) pgid;
  382 };
  383 
  384 struct sys_setitimer_args {
  385         syscallarg(int) which;
  386         syscallarg(const struct itimerval *) itv;
  387         syscallarg(struct itimerval *) oitv;
  388 };
  389 
  390 struct compat_12_sys_swapon_args {
  391         syscallarg(const char *) name;
  392 };
  393 
  394 struct sys_getitimer_args {
  395         syscallarg(int) which;
  396         syscallarg(struct itimerval *) itv;
  397 };
  398 
  399 struct compat_43_sys_gethostname_args {
  400         syscallarg(char *) hostname;
  401         syscallarg(u_int) len;
  402 };
  403 
  404 struct compat_43_sys_sethostname_args {
  405         syscallarg(char *) hostname;
  406         syscallarg(u_int) len;
  407 };
  408 
  409 struct sys_dup2_args {
  410         syscallarg(int) from;
  411         syscallarg(int) to;
  412 };
  413 
  414 struct sys_fcntl_args {
  415         syscallarg(int) fd;
  416         syscallarg(int) cmd;
  417         syscallarg(void *) arg;
  418 };
  419 
  420 struct sys_select_args {
  421         syscallarg(int) nd;
  422         syscallarg(fd_set *) in;
  423         syscallarg(fd_set *) ou;
  424         syscallarg(fd_set *) ex;
  425         syscallarg(struct timeval *) tv;
  426 };
  427 
  428 struct sys_fsync_args {
  429         syscallarg(int) fd;
  430 };
  431 
  432 struct sys_setpriority_args {
  433         syscallarg(int) which;
  434         syscallarg(int) who;
  435         syscallarg(int) prio;
  436 };
  437 
  438 struct sys_socket_args {
  439         syscallarg(int) domain;
  440         syscallarg(int) type;
  441         syscallarg(int) protocol;
  442 };
  443 
  444 struct sys_connect_args {
  445         syscallarg(int) s;
  446         syscallarg(const struct sockaddr *) name;
  447         syscallarg(unsigned int) namelen;
  448 };
  449 
  450 struct compat_43_sys_accept_args {
  451         syscallarg(int) s;
  452         syscallarg(caddr_t) name;
  453         syscallarg(int *) anamelen;
  454 };
  455 
  456 struct sys_getpriority_args {
  457         syscallarg(int) which;
  458         syscallarg(int) who;
  459 };
  460 
  461 struct compat_43_sys_send_args {
  462         syscallarg(int) s;
  463         syscallarg(caddr_t) buf;
  464         syscallarg(int) len;
  465         syscallarg(int) flags;
  466 };
  467 
  468 struct compat_43_sys_recv_args {
  469         syscallarg(int) s;
  470         syscallarg(caddr_t) buf;
  471         syscallarg(int) len;
  472         syscallarg(int) flags;
  473 };
  474 
  475 struct compat_13_sys_sigreturn_args {
  476         syscallarg(struct sigcontext13 *) sigcntxp;
  477 };
  478 
  479 struct sys_bind_args {
  480         syscallarg(int) s;
  481         syscallarg(const struct sockaddr *) name;
  482         syscallarg(unsigned int) namelen;
  483 };
  484 
  485 struct sys_setsockopt_args {
  486         syscallarg(int) s;
  487         syscallarg(int) level;
  488         syscallarg(int) name;
  489         syscallarg(const void *) val;
  490         syscallarg(unsigned int) valsize;
  491 };
  492 
  493 struct sys_listen_args {
  494         syscallarg(int) s;
  495         syscallarg(int) backlog;
  496 };
  497 
  498 struct compat_43_sys_sigvec_args {
  499         syscallarg(int) signum;
  500         syscallarg(struct sigvec *) nsv;
  501         syscallarg(struct sigvec *) osv;
  502 };
  503 
  504 struct compat_43_sys_sigblock_args {
  505         syscallarg(int) mask;
  506 };
  507 
  508 struct compat_43_sys_sigsetmask_args {
  509         syscallarg(int) mask;
  510 };
  511 
  512 struct compat_13_sys_sigsuspend_args {
  513         syscallarg(int) mask;
  514 };
  515 
  516 struct compat_43_sys_sigstack_args {
  517         syscallarg(struct sigstack *) nss;
  518         syscallarg(struct sigstack *) oss;
  519 };
  520 
  521 struct compat_43_sys_recvmsg_args {
  522         syscallarg(int) s;
  523         syscallarg(struct omsghdr *) msg;
  524         syscallarg(int) flags;
  525 };
  526 
  527 struct compat_43_sys_sendmsg_args {
  528         syscallarg(int) s;
  529         syscallarg(caddr_t) msg;
  530         syscallarg(int) flags;
  531 };
  532 
  533 struct sys_gettimeofday_args {
  534         syscallarg(struct timeval *) tp;
  535         syscallarg(struct timezone *) tzp;
  536 };
  537 
  538 struct sys_getrusage_args {
  539         syscallarg(int) who;
  540         syscallarg(struct rusage *) rusage;
  541 };
  542 
  543 struct sys_getsockopt_args {
  544         syscallarg(int) s;
  545         syscallarg(int) level;
  546         syscallarg(int) name;
  547         syscallarg(void *) val;
  548         syscallarg(unsigned int *) avalsize;
  549 };
  550 
  551 struct sys_readv_args {
  552         syscallarg(int) fd;
  553         syscallarg(const struct iovec *) iovp;
  554         syscallarg(int) iovcnt;
  555 };
  556 
  557 struct sys_writev_args {
  558         syscallarg(int) fd;
  559         syscallarg(const struct iovec *) iovp;
  560         syscallarg(int) iovcnt;
  561 };
  562 
  563 struct sys_settimeofday_args {
  564         syscallarg(const struct timeval *) tv;
  565         syscallarg(const struct timezone *) tzp;
  566 };
  567 
  568 struct sys_fchown_args {
  569         syscallarg(int) fd;
  570         syscallarg(uid_t) uid;
  571         syscallarg(gid_t) gid;
  572 };
  573 
  574 struct sys_fchmod_args {
  575         syscallarg(int) fd;
  576         syscallarg(mode_t) mode;
  577 };
  578 
  579 struct compat_43_sys_recvfrom_args {
  580         syscallarg(int) s;
  581         syscallarg(caddr_t) buf;
  582         syscallarg(size_t) len;
  583         syscallarg(int) flags;
  584         syscallarg(caddr_t) from;
  585         syscallarg(int *) fromlenaddr;
  586 };
  587 
  588 struct sys_setreuid_args {
  589         syscallarg(uid_t) ruid;
  590         syscallarg(uid_t) euid;
  591 };
  592 
  593 struct sys_setregid_args {
  594         syscallarg(gid_t) rgid;
  595         syscallarg(gid_t) egid;
  596 };
  597 
  598 struct sys_rename_args {
  599         syscallarg(const char *) from;
  600         syscallarg(const char *) to;
  601 };
  602 
  603 struct compat_43_sys_truncate_args {
  604         syscallarg(const char *) path;
  605         syscallarg(long) length;
  606 };
  607 
  608 struct compat_43_sys_ftruncate_args {
  609         syscallarg(int) fd;
  610         syscallarg(long) length;
  611 };
  612 
  613 struct sys_flock_args {
  614         syscallarg(int) fd;
  615         syscallarg(int) how;
  616 };
  617 
  618 struct sys_mkfifo_args {
  619         syscallarg(const char *) path;
  620         syscallarg(mode_t) mode;
  621 };
  622 
  623 struct sys_sendto_args {
  624         syscallarg(int) s;
  625         syscallarg(const void *) buf;
  626         syscallarg(size_t) len;
  627         syscallarg(int) flags;
  628         syscallarg(const struct sockaddr *) to;
  629         syscallarg(unsigned int) tolen;
  630 };
  631 
  632 struct sys_shutdown_args {
  633         syscallarg(int) s;
  634         syscallarg(int) how;
  635 };
  636 
  637 struct sys_socketpair_args {
  638         syscallarg(int) domain;
  639         syscallarg(int) type;
  640         syscallarg(int) protocol;
  641         syscallarg(int *) rsv;
  642 };
  643 
  644 struct sys_mkdir_args {
  645         syscallarg(const char *) path;
  646         syscallarg(mode_t) mode;
  647 };
  648 
  649 struct sys_rmdir_args {
  650         syscallarg(const char *) path;
  651 };
  652 
  653 struct sys_utimes_args {
  654         syscallarg(const char *) path;
  655         syscallarg(const struct timeval *) tptr;
  656 };
  657 
  658 struct sys_adjtime_args {
  659         syscallarg(const struct timeval *) delta;
  660         syscallarg(struct timeval *) olddelta;
  661 };
  662 
  663 struct compat_43_sys_getpeername_args {
  664         syscallarg(int) fdes;
  665         syscallarg(caddr_t) asa;
  666         syscallarg(int *) alen;
  667 };
  668 
  669 struct compat_43_sys_sethostid_args {
  670         syscallarg(int32_t) hostid;
  671 };
  672 
  673 struct compat_43_sys_getrlimit_args {
  674         syscallarg(int) which;
  675         syscallarg(struct orlimit *) rlp;
  676 };
  677 
  678 struct compat_43_sys_setrlimit_args {
  679         syscallarg(int) which;
  680         syscallarg(const struct orlimit *) rlp;
  681 };
  682 
  683 struct compat_43_sys_killpg_args {
  684         syscallarg(int) pgid;
  685         syscallarg(int) signum;
  686 };
  687 
  688 struct sys_quotactl_args {
  689         syscallarg(const char *) path;
  690         syscallarg(int) cmd;
  691         syscallarg(int) uid;
  692         syscallarg(caddr_t) arg;
  693 };
  694 
  695 struct compat_43_sys_getsockname_args {
  696         syscallarg(int) fdec;
  697         syscallarg(caddr_t) asa;
  698         syscallarg(int *) alen;
  699 };
  700 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
  701 
  702 struct sys_nfssvc_args {
  703         syscallarg(int) flag;
  704         syscallarg(void *) argp;
  705 };
  706 #else
  707 #endif
  708 
  709 struct compat_43_sys_getdirentries_args {
  710         syscallarg(int) fd;
  711         syscallarg(char *) buf;
  712         syscallarg(u_int) count;
  713         syscallarg(long *) basep;
  714 };
  715 
  716 struct sys_statfs_args {
  717         syscallarg(const char *) path;
  718         syscallarg(struct statfs *) buf;
  719 };
  720 
  721 struct sys_fstatfs_args {
  722         syscallarg(int) fd;
  723         syscallarg(struct statfs *) buf;
  724 };
  725 
  726 struct sys_getfh_args {
  727         syscallarg(const char *) fname;
  728         syscallarg(fhandle_t *) fhp;
  729 };
  730 
  731 struct compat_09_sys_getdomainname_args {
  732         syscallarg(char *) domainname;
  733         syscallarg(int) len;
  734 };
  735 
  736 struct compat_09_sys_setdomainname_args {
  737         syscallarg(char *) domainname;
  738         syscallarg(int) len;
  739 };
  740 
  741 struct compat_09_sys_uname_args {
  742         syscallarg(struct outsname *) name;
  743 };
  744 
  745 struct sys_sysarch_args {
  746         syscallarg(int) op;
  747         syscallarg(void *) parms;
  748 };
  749 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
  750 
  751 struct compat_10_sys_semsys_args {
  752         syscallarg(int) which;
  753         syscallarg(int) a2;
  754         syscallarg(int) a3;
  755         syscallarg(int) a4;
  756         syscallarg(int) a5;
  757 };
  758 #else
  759 #endif
  760 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
  761 
  762 struct compat_10_sys_msgsys_args {
  763         syscallarg(int) which;
  764         syscallarg(int) a2;
  765         syscallarg(int) a3;
  766         syscallarg(int) a4;
  767         syscallarg(int) a5;
  768         syscallarg(int) a6;
  769 };
  770 #else
  771 #endif
  772 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
  773 
  774 struct compat_10_sys_shmsys_args {
  775         syscallarg(int) which;
  776         syscallarg(int) a2;
  777         syscallarg(int) a3;
  778         syscallarg(int) a4;
  779 };
  780 #else
  781 #endif
  782 
  783 struct sys_pread_args {
  784         syscallarg(int) fd;
  785         syscallarg(void *) buf;
  786         syscallarg(size_t) nbyte;
  787         syscallarg(int) pad;
  788         syscallarg(off_t) offset;
  789 };
  790 
  791 struct sys_pwrite_args {
  792         syscallarg(int) fd;
  793         syscallarg(const void *) buf;
  794         syscallarg(size_t) nbyte;
  795         syscallarg(int) pad;
  796         syscallarg(off_t) offset;
  797 };
  798 
  799 struct sys_ntp_gettime_args {
  800         syscallarg(struct ntptimeval *) ntvp;
  801 };
  802 #if defined(NTP) || !defined(_KERNEL)
  803 
  804 struct sys_ntp_adjtime_args {
  805         syscallarg(struct timex *) tp;
  806 };
  807 #else
  808 #endif
  809 
  810 struct sys_setgid_args {
  811         syscallarg(gid_t) gid;
  812 };
  813 
  814 struct sys_setegid_args {
  815         syscallarg(gid_t) egid;
  816 };
  817 
  818 struct sys_seteuid_args {
  819         syscallarg(uid_t) euid;
  820 };
  821 #if defined(LFS) || !defined(_KERNEL)
  822 
  823 struct sys_lfs_bmapv_args {
  824         syscallarg(fsid_t *) fsidp;
  825         syscallarg(struct block_info *) blkiov;
  826         syscallarg(int) blkcnt;
  827 };
  828 
  829 struct sys_lfs_markv_args {
  830         syscallarg(fsid_t *) fsidp;
  831         syscallarg(struct block_info *) blkiov;
  832         syscallarg(int) blkcnt;
  833 };
  834 
  835 struct sys_lfs_segclean_args {
  836         syscallarg(fsid_t *) fsidp;
  837         syscallarg(u_long) segment;
  838 };
  839 
  840 struct sys_lfs_segwait_args {
  841         syscallarg(fsid_t *) fsidp;
  842         syscallarg(struct timeval *) tv;
  843 };
  844 #else
  845 #endif
  846 
  847 struct compat_12_sys_stat_args {
  848         syscallarg(const char *) path;
  849         syscallarg(struct stat12 *) ub;
  850 };
  851 
  852 struct compat_12_sys_fstat_args {
  853         syscallarg(int) fd;
  854         syscallarg(struct stat12 *) sb;
  855 };
  856 
  857 struct compat_12_sys_lstat_args {
  858         syscallarg(const char *) path;
  859         syscallarg(struct stat12 *) ub;
  860 };
  861 
  862 struct sys_pathconf_args {
  863         syscallarg(const char *) path;
  864         syscallarg(int) name;
  865 };
  866 
  867 struct sys_fpathconf_args {
  868         syscallarg(int) fd;
  869         syscallarg(int) name;
  870 };
  871 
  872 struct sys_getrlimit_args {
  873         syscallarg(int) which;
  874         syscallarg(struct rlimit *) rlp;
  875 };
  876 
  877 struct sys_setrlimit_args {
  878         syscallarg(int) which;
  879         syscallarg(const struct rlimit *) rlp;
  880 };
  881 
  882 struct compat_12_sys_getdirentries_args {
  883         syscallarg(int) fd;
  884         syscallarg(char *) buf;
  885         syscallarg(u_int) count;
  886         syscallarg(long *) basep;
  887 };
  888 
  889 struct sys_mmap_args {
  890         syscallarg(void *) addr;
  891         syscallarg(size_t) len;
  892         syscallarg(int) prot;
  893         syscallarg(int) flags;
  894         syscallarg(int) fd;
  895         syscallarg(long) pad;
  896         syscallarg(off_t) pos;
  897 };
  898 
  899 struct sys_lseek_args {
  900         syscallarg(int) fd;
  901         syscallarg(int) pad;
  902         syscallarg(off_t) offset;
  903         syscallarg(int) whence;
  904 };
  905 
  906 struct sys_truncate_args {
  907         syscallarg(const char *) path;
  908         syscallarg(int) pad;
  909         syscallarg(off_t) length;
  910 };
  911 
  912 struct sys_ftruncate_args {
  913         syscallarg(int) fd;
  914         syscallarg(int) pad;
  915         syscallarg(off_t) length;
  916 };
  917 
  918 struct sys___sysctl_args {
  919         syscallarg(int *) name;
  920         syscallarg(u_int) namelen;
  921         syscallarg(void *) old;
  922         syscallarg(size_t *) oldlenp;
  923         syscallarg(void *) new;
  924         syscallarg(size_t) newlen;
  925 };
  926 
  927 struct sys_mlock_args {
  928         syscallarg(const void *) addr;
  929         syscallarg(size_t) len;
  930 };
  931 
  932 struct sys_munlock_args {
  933         syscallarg(const void *) addr;
  934         syscallarg(size_t) len;
  935 };
  936 
  937 struct sys_undelete_args {
  938         syscallarg(const char *) path;
  939 };
  940 
  941 struct sys_futimes_args {
  942         syscallarg(int) fd;
  943         syscallarg(const struct timeval *) tptr;
  944 };
  945 
  946 struct sys_getpgid_args {
  947         syscallarg(pid_t) pid;
  948 };
  949 
  950 struct sys_reboot_args {
  951         syscallarg(int) opt;
  952         syscallarg(char *) bootstr;
  953 };
  954 
  955 struct sys_poll_args {
  956         syscallarg(struct pollfd *) fds;
  957         syscallarg(u_int) nfds;
  958         syscallarg(int) timeout;
  959 };
  960 #if defined(LKM) || !defined(_KERNEL)
  961 #else   /* !LKM */
  962 #endif  /* !LKM */
  963 #if defined(SYSVSEM) || !defined(_KERNEL)
  964 
  965 struct compat_14_sys___semctl_args {
  966         syscallarg(int) semid;
  967         syscallarg(int) semnum;
  968         syscallarg(int) cmd;
  969         syscallarg(union __semun *) arg;
  970 };
  971 
  972 struct sys_semget_args {
  973         syscallarg(key_t) key;
  974         syscallarg(int) nsems;
  975         syscallarg(int) semflg;
  976 };
  977 
  978 struct sys_semop_args {
  979         syscallarg(int) semid;
  980         syscallarg(struct sembuf *) sops;
  981         syscallarg(size_t) nsops;
  982 };
  983 
  984 struct sys_semconfig_args {
  985         syscallarg(int) flag;
  986 };
  987 #else
  988 #endif
  989 #if defined(SYSVMSG) || !defined(_KERNEL)
  990 
  991 struct compat_14_sys_msgctl_args {
  992         syscallarg(int) msqid;
  993         syscallarg(int) cmd;
  994         syscallarg(struct msqid_ds14 *) buf;
  995 };
  996 
  997 struct sys_msgget_args {
  998         syscallarg(key_t) key;
  999         syscallarg(int) msgflg;
 1000 };
 1001 
 1002 struct sys_msgsnd_args {
 1003         syscallarg(int) msqid;
 1004         syscallarg(const void *) msgp;
 1005         syscallarg(size_t) msgsz;
 1006         syscallarg(int) msgflg;
 1007 };
 1008 
 1009 struct sys_msgrcv_args {
 1010         syscallarg(int) msqid;
 1011         syscallarg(void *) msgp;
 1012         syscallarg(size_t) msgsz;
 1013         syscallarg(long) msgtyp;
 1014         syscallarg(int) msgflg;
 1015 };
 1016 #else
 1017 #endif
 1018 #if defined(SYSVSHM) || !defined(_KERNEL)
 1019 
 1020 struct sys_shmat_args {
 1021         syscallarg(int) shmid;
 1022         syscallarg(const void *) shmaddr;
 1023         syscallarg(int) shmflg;
 1024 };
 1025 
 1026 struct compat_14_sys_shmctl_args {
 1027         syscallarg(int) shmid;
 1028         syscallarg(int) cmd;
 1029         syscallarg(struct shmid_ds14 *) buf;
 1030 };
 1031 
 1032 struct sys_shmdt_args {
 1033         syscallarg(const void *) shmaddr;
 1034 };
 1035 
 1036 struct sys_shmget_args {
 1037         syscallarg(key_t) key;
 1038         syscallarg(size_t) size;
 1039         syscallarg(int) shmflg;
 1040 };
 1041 #else
 1042 #endif
 1043 
 1044 struct sys_clock_gettime_args {
 1045         syscallarg(clockid_t) clock_id;
 1046         syscallarg(struct timespec *) tp;
 1047 };
 1048 
 1049 struct sys_clock_settime_args {
 1050         syscallarg(clockid_t) clock_id;
 1051         syscallarg(const struct timespec *) tp;
 1052 };
 1053 
 1054 struct sys_clock_getres_args {
 1055         syscallarg(clockid_t) clock_id;
 1056         syscallarg(struct timespec *) tp;
 1057 };
 1058 
 1059 struct sys_timer_create_args {
 1060         syscallarg(clockid_t) clock_id;
 1061         syscallarg(struct sigevent *) evp;
 1062         syscallarg(timer_t *) timerid;
 1063 };
 1064 
 1065 struct sys_timer_delete_args {
 1066         syscallarg(timer_t) timerid;
 1067 };
 1068 
 1069 struct sys_timer_settime_args {
 1070         syscallarg(timer_t) timerid;
 1071         syscallarg(int) flags;
 1072         syscallarg(const struct itimerspec *) value;
 1073         syscallarg(struct itimerspec *) ovalue;
 1074 };
 1075 
 1076 struct sys_timer_gettime_args {
 1077         syscallarg(timer_t) timerid;
 1078         syscallarg(struct itimerspec *) value;
 1079 };
 1080 
 1081 struct sys_timer_getoverrun_args {
 1082         syscallarg(timer_t) timerid;
 1083 };
 1084 
 1085 struct sys_nanosleep_args {
 1086         syscallarg(const struct timespec *) rqtp;
 1087         syscallarg(struct timespec *) rmtp;
 1088 };
 1089 
 1090 struct sys_fdatasync_args {
 1091         syscallarg(int) fd;
 1092 };
 1093 
 1094 struct sys_mlockall_args {
 1095         syscallarg(int) flags;
 1096 };
 1097 
 1098 struct sys___sigtimedwait_args {
 1099         syscallarg(const sigset_t *) set;
 1100         syscallarg(siginfo_t *) info;
 1101         syscallarg(struct timespec *) timeout;
 1102 };
 1103 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
 1104 
 1105 struct sys__ksem_init_args {
 1106         syscallarg(unsigned int) value;
 1107         syscallarg(semid_t *) idp;
 1108 };
 1109 
 1110 struct sys__ksem_open_args {
 1111         syscallarg(const char *) name;
 1112         syscallarg(int) oflag;
 1113         syscallarg(mode_t) mode;
 1114         syscallarg(unsigned int) value;
 1115         syscallarg(semid_t *) idp;
 1116 };
 1117 
 1118 struct sys__ksem_unlink_args {
 1119         syscallarg(const char *) name;
 1120 };
 1121 
 1122 struct sys__ksem_close_args {
 1123         syscallarg(semid_t) id;
 1124 };
 1125 
 1126 struct sys__ksem_post_args {
 1127         syscallarg(semid_t) id;
 1128 };
 1129 
 1130 struct sys__ksem_wait_args {
 1131         syscallarg(semid_t) id;
 1132 };
 1133 
 1134 struct sys__ksem_trywait_args {
 1135         syscallarg(semid_t) id;
 1136 };
 1137 
 1138 struct sys__ksem_getvalue_args {
 1139         syscallarg(semid_t) id;
 1140         syscallarg(unsigned int *) value;
 1141 };
 1142 
 1143 struct sys__ksem_destroy_args {
 1144         syscallarg(semid_t) id;
 1145 };
 1146 #else
 1147 #endif
 1148 
 1149 struct sys___posix_rename_args {
 1150         syscallarg(const char *) from;
 1151         syscallarg(const char *) to;
 1152 };
 1153 
 1154 struct sys_swapctl_args {
 1155         syscallarg(int) cmd;
 1156         syscallarg(const void *) arg;
 1157         syscallarg(int) misc;
 1158 };
 1159 
 1160 struct sys_getdents_args {
 1161         syscallarg(int) fd;
 1162         syscallarg(char *) buf;
 1163         syscallarg(size_t) count;
 1164 };
 1165 
 1166 struct sys_minherit_args {
 1167         syscallarg(void *) addr;
 1168         syscallarg(size_t) len;
 1169         syscallarg(int) inherit;
 1170 };
 1171 
 1172 struct sys_lchmod_args {
 1173         syscallarg(const char *) path;
 1174         syscallarg(mode_t) mode;
 1175 };
 1176 
 1177 struct sys_lchown_args {
 1178         syscallarg(const char *) path;
 1179         syscallarg(uid_t) uid;
 1180         syscallarg(gid_t) gid;
 1181 };
 1182 
 1183 struct sys_lutimes_args {
 1184         syscallarg(const char *) path;
 1185         syscallarg(const struct timeval *) tptr;
 1186 };
 1187 
 1188 struct sys___msync13_args {
 1189         syscallarg(void *) addr;
 1190         syscallarg(size_t) len;
 1191         syscallarg(int) flags;
 1192 };
 1193 
 1194 struct sys___stat13_args {
 1195         syscallarg(const char *) path;
 1196         syscallarg(struct stat *) ub;
 1197 };
 1198 
 1199 struct sys___fstat13_args {
 1200         syscallarg(int) fd;
 1201         syscallarg(struct stat *) sb;
 1202 };
 1203 
 1204 struct sys___lstat13_args {
 1205         syscallarg(const char *) path;
 1206         syscallarg(struct stat *) ub;
 1207 };
 1208 
 1209 struct sys___sigaltstack14_args {
 1210         syscallarg(const struct sigaltstack *) nss;
 1211         syscallarg(struct sigaltstack *) oss;
 1212 };
 1213 
 1214 struct sys___posix_chown_args {
 1215         syscallarg(const char *) path;
 1216         syscallarg(uid_t) uid;
 1217         syscallarg(gid_t) gid;
 1218 };
 1219 
 1220 struct sys___posix_fchown_args {
 1221         syscallarg(int) fd;
 1222         syscallarg(uid_t) uid;
 1223         syscallarg(gid_t) gid;
 1224 };
 1225 
 1226 struct sys___posix_lchown_args {
 1227         syscallarg(const char *) path;
 1228         syscallarg(uid_t) uid;
 1229         syscallarg(gid_t) gid;
 1230 };
 1231 
 1232 struct sys_getsid_args {
 1233         syscallarg(pid_t) pid;
 1234 };
 1235 
 1236 struct sys___clone_args {
 1237         syscallarg(int) flags;
 1238         syscallarg(void *) stack;
 1239 };
 1240 #if defined(KTRACE) || !defined(_KERNEL)
 1241 
 1242 struct sys_fktrace_args {
 1243         syscallarg(const int) fd;
 1244         syscallarg(int) ops;
 1245         syscallarg(int) facs;
 1246         syscallarg(int) pid;
 1247 };
 1248 #else
 1249 #endif
 1250 
 1251 struct sys_preadv_args {
 1252         syscallarg(int) fd;
 1253         syscallarg(const struct iovec *) iovp;
 1254         syscallarg(int) iovcnt;
 1255         syscallarg(int) pad;
 1256         syscallarg(off_t) offset;
 1257 };
 1258 
 1259 struct sys_pwritev_args {
 1260         syscallarg(int) fd;
 1261         syscallarg(const struct iovec *) iovp;
 1262         syscallarg(int) iovcnt;
 1263         syscallarg(int) pad;
 1264         syscallarg(off_t) offset;
 1265 };
 1266 
 1267 struct compat_16_sys___sigaction14_args {
 1268         syscallarg(int) signum;
 1269         syscallarg(const struct sigaction *) nsa;
 1270         syscallarg(struct sigaction *) osa;
 1271 };
 1272 
 1273 struct sys___sigpending14_args {
 1274         syscallarg(sigset_t *) set;
 1275 };
 1276 
 1277 struct sys___sigprocmask14_args {
 1278         syscallarg(int) how;
 1279         syscallarg(const sigset_t *) set;
 1280         syscallarg(sigset_t *) oset;
 1281 };
 1282 
 1283 struct sys___sigsuspend14_args {
 1284         syscallarg(const sigset_t *) set;
 1285 };
 1286 
 1287 struct compat_16_sys___sigreturn14_args {
 1288         syscallarg(struct sigcontext *) sigcntxp;
 1289 };
 1290 
 1291 struct sys___getcwd_args {
 1292         syscallarg(char *) bufp;
 1293         syscallarg(size_t) length;
 1294 };
 1295 
 1296 struct sys_fchroot_args {
 1297         syscallarg(int) fd;
 1298 };
 1299 
 1300 struct sys_fhopen_args {
 1301         syscallarg(const fhandle_t *) fhp;
 1302         syscallarg(int) flags;
 1303 };
 1304 
 1305 struct sys_fhstat_args {
 1306         syscallarg(const fhandle_t *) fhp;
 1307         syscallarg(struct stat *) sb;
 1308 };
 1309 
 1310 struct sys_fhstatfs_args {
 1311         syscallarg(const fhandle_t *) fhp;
 1312         syscallarg(struct statfs *) buf;
 1313 };
 1314 #if defined(SYSVSEM) || !defined(_KERNEL)
 1315 
 1316 struct sys_____semctl13_args {
 1317         syscallarg(int) semid;
 1318         syscallarg(int) semnum;
 1319         syscallarg(int) cmd;
 1320         syscallarg(union __semun *) arg;
 1321 };
 1322 #else
 1323 #endif
 1324 #if defined(SYSVMSG) || !defined(_KERNEL)
 1325 
 1326 struct sys___msgctl13_args {
 1327         syscallarg(int) msqid;
 1328         syscallarg(int) cmd;
 1329         syscallarg(struct msqid_ds *) buf;
 1330 };
 1331 #else
 1332 #endif
 1333 #if defined(SYSVSHM) || !defined(_KERNEL)
 1334 
 1335 struct sys___shmctl13_args {
 1336         syscallarg(int) shmid;
 1337         syscallarg(int) cmd;
 1338         syscallarg(struct shmid_ds *) buf;
 1339 };
 1340 #else
 1341 #endif
 1342 
 1343 struct sys_lchflags_args {
 1344         syscallarg(const char *) path;
 1345         syscallarg(u_long) flags;
 1346 };
 1347 
 1348 struct sys_utrace_args {
 1349         syscallarg(const char *) label;
 1350         syscallarg(void *) addr;
 1351         syscallarg(size_t) len;
 1352 };
 1353 
 1354 struct sys_getcontext_args {
 1355         syscallarg(struct __ucontext *) ucp;
 1356 };
 1357 
 1358 struct sys_setcontext_args {
 1359         syscallarg(const struct __ucontext *) ucp;
 1360 };
 1361 
 1362 struct sys__lwp_create_args {
 1363         syscallarg(const struct __ucontext *) ucp;
 1364         syscallarg(u_long) flags;
 1365         syscallarg(lwpid_t *) new_lwp;
 1366 };
 1367 
 1368 struct sys__lwp_wait_args {
 1369         syscallarg(lwpid_t) wait_for;
 1370         syscallarg(lwpid_t *) departed;
 1371 };
 1372 
 1373 struct sys__lwp_suspend_args {
 1374         syscallarg(lwpid_t) target;
 1375 };
 1376 
 1377 struct sys__lwp_continue_args {
 1378         syscallarg(lwpid_t) target;
 1379 };
 1380 
 1381 struct sys__lwp_wakeup_args {
 1382         syscallarg(lwpid_t) target;
 1383 };
 1384 
 1385 struct sys__lwp_setprivate_args {
 1386         syscallarg(void *) ptr;
 1387 };
 1388 
 1389 struct sys_sa_register_args {
 1390         syscallarg(sa_upcall_t) new;
 1391         syscallarg(sa_upcall_t *) old;
 1392         syscallarg(int) flags;
 1393         syscallarg(ssize_t) stackinfo_offset;
 1394 };
 1395 
 1396 struct sys_sa_stacks_args {
 1397         syscallarg(int) num;
 1398         syscallarg(stack_t *) stacks;
 1399 };
 1400 
 1401 struct sys_sa_setconcurrency_args {
 1402         syscallarg(int) concurrency;
 1403 };
 1404 
 1405 struct sys_sa_preempt_args {
 1406         syscallarg(int) sa_id;
 1407 };
 1408 
 1409 struct sys___sigaction_sigtramp_args {
 1410         syscallarg(int) signum;
 1411         syscallarg(const struct sigaction *) nsa;
 1412         syscallarg(struct sigaction *) osa;
 1413         syscallarg(const void *) tramp;
 1414         syscallarg(int) vers;
 1415 };
 1416 
 1417 struct sys_pmc_get_info_args {
 1418         syscallarg(int) ctr;
 1419         syscallarg(int) op;
 1420         syscallarg(void *) args;
 1421 };
 1422 
 1423 struct sys_pmc_control_args {
 1424         syscallarg(int) ctr;
 1425         syscallarg(int) op;
 1426         syscallarg(void *) args;
 1427 };
 1428 
 1429 struct sys_rasctl_args {
 1430         syscallarg(caddr_t) addr;
 1431         syscallarg(size_t) len;
 1432         syscallarg(int) op;
 1433 };
 1434 
 1435 struct sys_kevent_args {
 1436         syscallarg(int) fd;
 1437         syscallarg(const struct kevent *) changelist;
 1438         syscallarg(size_t) nchanges;
 1439         syscallarg(struct kevent *) eventlist;
 1440         syscallarg(size_t) nevents;
 1441         syscallarg(const struct timespec *) timeout;
 1442 };
 1443 
 1444 struct sys_fsync_range_args {
 1445         syscallarg(int) fd;
 1446         syscallarg(int) flags;
 1447         syscallarg(off_t) start;
 1448         syscallarg(off_t) length;
 1449 };
 1450 
 1451 struct sys_uuidgen_args {
 1452         syscallarg(struct uuid *) store;
 1453         syscallarg(int) count;
 1454 };
 1455 
 1456 /*
 1457  * System call prototypes.
 1458  */
 1459 
 1460 int     sys_exit(struct lwp *, void *, register_t *);
 1461 
 1462 int     sys_fork(struct lwp *, void *, register_t *);
 1463 
 1464 int     sys_read(struct lwp *, void *, register_t *);
 1465 
 1466 int     sys_write(struct lwp *, void *, register_t *);
 1467 
 1468 int     sys_open(struct lwp *, void *, register_t *);
 1469 
 1470 int     sys_close(struct lwp *, void *, register_t *);
 1471 
 1472 int     sys_wait4(struct lwp *, void *, register_t *);
 1473 
 1474 int     compat_43_sys_creat(struct lwp *, void *, register_t *);
 1475 
 1476 int     sys_link(struct lwp *, void *, register_t *);
 1477 
 1478 int     sys_unlink(struct lwp *, void *, register_t *);
 1479 
 1480 int     sys_chdir(struct lwp *, void *, register_t *);
 1481 
 1482 int     sys_fchdir(struct lwp *, void *, register_t *);
 1483 
 1484 int     sys_mknod(struct lwp *, void *, register_t *);
 1485 
 1486 int     sys_chmod(struct lwp *, void *, register_t *);
 1487 
 1488 int     sys_chown(struct lwp *, void *, register_t *);
 1489 
 1490 int     sys_obreak(struct lwp *, void *, register_t *);
 1491 
 1492 int     sys_getfsstat(struct lwp *, void *, register_t *);
 1493 
 1494 int     compat_43_sys_lseek(struct lwp *, void *, register_t *);
 1495 
 1496 #ifdef COMPAT_43
 1497 int     sys_getpid_with_ppid(struct lwp *, void *, register_t *);
 1498 
 1499 #else
 1500 int     sys_getpid(struct lwp *, void *, register_t *);
 1501 
 1502 #endif
 1503 int     sys_mount(struct lwp *, void *, register_t *);
 1504 
 1505 int     sys_unmount(struct lwp *, void *, register_t *);
 1506 
 1507 int     sys_setuid(struct lwp *, void *, register_t *);
 1508 
 1509 #ifdef COMPAT_43
 1510 int     sys_getuid_with_euid(struct lwp *, void *, register_t *);
 1511 
 1512 #else
 1513 int     sys_getuid(struct lwp *, void *, register_t *);
 1514 
 1515 #endif
 1516 int     sys_geteuid(struct lwp *, void *, register_t *);
 1517 
 1518 int     sys_ptrace(struct lwp *, void *, register_t *);
 1519 
 1520 int     sys_recvmsg(struct lwp *, void *, register_t *);
 1521 
 1522 int     sys_sendmsg(struct lwp *, void *, register_t *);
 1523 
 1524 int     sys_recvfrom(struct lwp *, void *, register_t *);
 1525 
 1526 int     sys_accept(struct lwp *, void *, register_t *);
 1527 
 1528 int     sys_getpeername(struct lwp *, void *, register_t *);
 1529 
 1530 int     sys_getsockname(struct lwp *, void *, register_t *);
 1531 
 1532 int     sys_access(struct lwp *, void *, register_t *);
 1533 
 1534 int     sys_chflags(struct lwp *, void *, register_t *);
 1535 
 1536 int     sys_fchflags(struct lwp *, void *, register_t *);
 1537 
 1538 int     sys_sync(struct lwp *, void *, register_t *);
 1539 
 1540 int     sys_kill(struct lwp *, void *, register_t *);
 1541 
 1542 int     compat_43_sys_stat(struct lwp *, void *, register_t *);
 1543 
 1544 int     sys_getppid(struct lwp *, void *, register_t *);
 1545 
 1546 int     compat_43_sys_lstat(struct lwp *, void *, register_t *);
 1547 
 1548 int     sys_dup(struct lwp *, void *, register_t *);
 1549 
 1550 int     sys_pipe(struct lwp *, void *, register_t *);
 1551 
 1552 int     sys_getegid(struct lwp *, void *, register_t *);
 1553 
 1554 int     sys_profil(struct lwp *, void *, register_t *);
 1555 
 1556 #if defined(KTRACE) || !defined(_KERNEL)
 1557 int     sys_ktrace(struct lwp *, void *, register_t *);
 1558 
 1559 #else
 1560 #endif
 1561 int     compat_13_sys_sigaction(struct lwp *, void *, register_t *);
 1562 
 1563 #ifdef COMPAT_43
 1564 int     sys_getgid_with_egid(struct lwp *, void *, register_t *);
 1565 
 1566 #else
 1567 int     sys_getgid(struct lwp *, void *, register_t *);
 1568 
 1569 #endif
 1570 int     compat_13_sys_sigprocmask(struct lwp *, void *, register_t *);
 1571 
 1572 int     sys___getlogin(struct lwp *, void *, register_t *);
 1573 
 1574 int     sys___setlogin(struct lwp *, void *, register_t *);
 1575 
 1576 int     sys_acct(struct lwp *, void *, register_t *);
 1577 
 1578 int     compat_13_sys_sigpending(struct lwp *, void *, register_t *);
 1579 
 1580 int     compat_13_sys_sigaltstack(struct lwp *, void *, register_t *);
 1581 
 1582 int     sys_ioctl(struct lwp *, void *, register_t *);
 1583 
 1584 int     compat_12_sys_reboot(struct lwp *, void *, register_t *);
 1585 
 1586 int     sys_revoke(struct lwp *, void *, register_t *);
 1587 
 1588 int     sys_symlink(struct lwp *, void *, register_t *);
 1589 
 1590 int     sys_readlink(struct lwp *, void *, register_t *);
 1591 
 1592 int     sys_execve(struct lwp *, void *, register_t *);
 1593 
 1594 int     sys_umask(struct lwp *, void *, register_t *);
 1595 
 1596 int     sys_chroot(struct lwp *, void *, register_t *);
 1597 
 1598 int     compat_43_sys_fstat(struct lwp *, void *, register_t *);
 1599 
 1600 int     compat_43_sys_getkerninfo(struct lwp *, void *, register_t *);
 1601 
 1602 int     compat_43_sys_getpagesize(struct lwp *, void *, register_t *);
 1603 
 1604 int     compat_12_sys_msync(struct lwp *, void *, register_t *);
 1605 
 1606 int     sys_vfork(struct lwp *, void *, register_t *);
 1607 
 1608 int     sys_sbrk(struct lwp *, void *, register_t *);
 1609 
 1610 int     sys_sstk(struct lwp *, void *, register_t *);
 1611 
 1612 int     compat_43_sys_mmap(struct lwp *, void *, register_t *);
 1613 
 1614 int     sys_ovadvise(struct lwp *, void *, register_t *);
 1615 
 1616 int     sys_munmap(struct lwp *, void *, register_t *);
 1617 
 1618 int     sys_mprotect(struct lwp *, void *, register_t *);
 1619 
 1620 int     sys_madvise(struct lwp *, void *, register_t *);
 1621 
 1622 int     sys_mincore(struct lwp *, void *, register_t *);
 1623 
 1624 int     sys_getgroups(struct lwp *, void *, register_t *);
 1625 
 1626 int     sys_setgroups(struct lwp *, void *, register_t *);
 1627 
 1628 int     sys_getpgrp(struct lwp *, void *, register_t *);
 1629 
 1630 int     sys_setpgid(struct lwp *, void *, register_t *);
 1631 
 1632 int     sys_setitimer(struct lwp *, void *, register_t *);
 1633 
 1634 int     compat_43_sys_wait(struct lwp *, void *, register_t *);
 1635 
 1636 int     compat_12_sys_swapon(struct lwp *, void *, register_t *);
 1637 
 1638 int     sys_getitimer(struct lwp *, void *, register_t *);
 1639 
 1640 int     compat_43_sys_gethostname(struct lwp *, void *, register_t *);
 1641 
 1642 int     compat_43_sys_sethostname(struct lwp *, void *, register_t *);
 1643 
 1644 int     compat_43_sys_getdtablesize(struct lwp *, void *, register_t *);
 1645 
 1646 int     sys_dup2(struct lwp *, void *, register_t *);
 1647 
 1648 int     sys_fcntl(struct lwp *, void *, register_t *);
 1649 
 1650 int     sys_select(struct lwp *, void *, register_t *);
 1651 
 1652 int     sys_fsync(struct lwp *, void *, register_t *);
 1653 
 1654 int     sys_setpriority(struct lwp *, void *, register_t *);
 1655 
 1656 int     sys_socket(struct lwp *, void *, register_t *);
 1657 
 1658 int     sys_connect(struct lwp *, void *, register_t *);
 1659 
 1660 int     compat_43_sys_accept(struct lwp *, void *, register_t *);
 1661 
 1662 int     sys_getpriority(struct lwp *, void *, register_t *);
 1663 
 1664 int     compat_43_sys_send(struct lwp *, void *, register_t *);
 1665 
 1666 int     compat_43_sys_recv(struct lwp *, void *, register_t *);
 1667 
 1668 int     compat_13_sys_sigreturn(struct lwp *, void *, register_t *);
 1669 
 1670 int     sys_bind(struct lwp *, void *, register_t *);
 1671 
 1672 int     sys_setsockopt(struct lwp *, void *, register_t *);
 1673 
 1674 int     sys_listen(struct lwp *, void *, register_t *);
 1675 
 1676 int     compat_43_sys_sigvec(struct lwp *, void *, register_t *);
 1677 
 1678 int     compat_43_sys_sigblock(struct lwp *, void *, register_t *);
 1679 
 1680 int     compat_43_sys_sigsetmask(struct lwp *, void *, register_t *);
 1681 
 1682 int     compat_13_sys_sigsuspend(struct lwp *, void *, register_t *);
 1683 
 1684 int     compat_43_sys_sigstack(struct lwp *, void *, register_t *);
 1685 
 1686 int     compat_43_sys_recvmsg(struct lwp *, void *, register_t *);
 1687 
 1688 int     compat_43_sys_sendmsg(struct lwp *, void *, register_t *);
 1689 
 1690 int     sys_gettimeofday(struct lwp *, void *, register_t *);
 1691 
 1692 int     sys_getrusage(struct lwp *, void *, register_t *);
 1693 
 1694 int     sys_getsockopt(struct lwp *, void *, register_t *);
 1695 
 1696 int     sys_readv(struct lwp *, void *, register_t *);
 1697 
 1698 int     sys_writev(struct lwp *, void *, register_t *);
 1699 
 1700 int     sys_settimeofday(struct lwp *, void *, register_t *);
 1701 
 1702 int     sys_fchown(struct lwp *, void *, register_t *);
 1703 
 1704 int     sys_fchmod(struct lwp *, void *, register_t *);
 1705 
 1706 int     compat_43_sys_recvfrom(struct lwp *, void *, register_t *);
 1707 
 1708 int     sys_setreuid(struct lwp *, void *, register_t *);
 1709 
 1710 int     sys_setregid(struct lwp *, void *, register_t *);
 1711 
 1712 int     sys_rename(struct lwp *, void *, register_t *);
 1713 
 1714 int     compat_43_sys_truncate(struct lwp *, void *, register_t *);
 1715 
 1716 int     compat_43_sys_ftruncate(struct lwp *, void *, register_t *);
 1717 
 1718 int     sys_flock(struct lwp *, void *, register_t *);
 1719 
 1720 int     sys_mkfifo(struct lwp *, void *, register_t *);
 1721 
 1722 int     sys_sendto(struct lwp *, void *, register_t *);
 1723 
 1724 int     sys_shutdown(struct lwp *, void *, register_t *);
 1725 
 1726 int     sys_socketpair(struct lwp *, void *, register_t *);
 1727 
 1728 int     sys_mkdir(struct lwp *, void *, register_t *);
 1729 
 1730 int     sys_rmdir(struct lwp *, void *, register_t *);
 1731 
 1732 int     sys_utimes(struct lwp *, void *, register_t *);
 1733 
 1734 int     sys_adjtime(struct lwp *, void *, register_t *);
 1735 
 1736 int     compat_43_sys_getpeername(struct lwp *, void *, register_t *);
 1737 
 1738 int     compat_43_sys_gethostid(struct lwp *, void *, register_t *);
 1739 
 1740 int     compat_43_sys_sethostid(struct lwp *, void *, register_t *);
 1741 
 1742 int     compat_43_sys_getrlimit(struct lwp *, void *, register_t *);
 1743 
 1744 int     compat_43_sys_setrlimit(struct lwp *, void *, register_t *);
 1745 
 1746 int     compat_43_sys_killpg(struct lwp *, void *, register_t *);
 1747 
 1748 int     sys_setsid(struct lwp *, void *, register_t *);
 1749 
 1750 int     sys_quotactl(struct lwp *, void *, register_t *);
 1751 
 1752 int     compat_43_sys_quota(struct lwp *, void *, register_t *);
 1753 
 1754 int     compat_43_sys_getsockname(struct lwp *, void *, register_t *);
 1755 
 1756 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
 1757 int     sys_nfssvc(struct lwp *, void *, register_t *);
 1758 
 1759 #else
 1760 #endif
 1761 int     compat_43_sys_getdirentries(struct lwp *, void *, register_t *);
 1762 
 1763 int     sys_statfs(struct lwp *, void *, register_t *);
 1764 
 1765 int     sys_fstatfs(struct lwp *, void *, register_t *);
 1766 
 1767 int     sys_getfh(struct lwp *, void *, register_t *);
 1768 
 1769 int     compat_09_sys_getdomainname(struct lwp *, void *, register_t *);
 1770 
 1771 int     compat_09_sys_setdomainname(struct lwp *, void *, register_t *);
 1772 
 1773 int     compat_09_sys_uname(struct lwp *, void *, register_t *);
 1774 
 1775 int     sys_sysarch(struct lwp *, void *, register_t *);
 1776 
 1777 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64)
 1778 int     compat_10_sys_semsys(struct lwp *, void *, register_t *);
 1779 
 1780 #else
 1781 #endif
 1782 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64)
 1783 int     compat_10_sys_msgsys(struct lwp *, void *, register_t *);
 1784 
 1785 #else
 1786 #endif
 1787 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64)
 1788 int     compat_10_sys_shmsys(struct lwp *, void *, register_t *);
 1789 
 1790 #else
 1791 #endif
 1792 int     sys_pread(struct lwp *, void *, register_t *);
 1793 
 1794 int     sys_pwrite(struct lwp *, void *, register_t *);
 1795 
 1796 int     sys_ntp_gettime(struct lwp *, void *, register_t *);
 1797 
 1798 #if defined(NTP) || !defined(_KERNEL)
 1799 int     sys_ntp_adjtime(struct lwp *, void *, register_t *);
 1800 
 1801 #else
 1802 #endif
 1803 int     sys_setgid(struct lwp *, void *, register_t *);
 1804 
 1805 int     sys_setegid(struct lwp *, void *, register_t *);
 1806 
 1807 int     sys_seteuid(struct lwp *, void *, register_t *);
 1808 
 1809 #if defined(LFS) || !defined(_KERNEL)
 1810 int     sys_lfs_bmapv(struct lwp *, void *, register_t *);
 1811 
 1812 int     sys_lfs_markv(struct lwp *, void *, register_t *);
 1813 
 1814 int     sys_lfs_segclean(struct lwp *, void *, register_t *);
 1815 
 1816 int     sys_lfs_segwait(struct lwp *, void *, register_t *);
 1817 
 1818 #else
 1819 #endif
 1820 int     compat_12_sys_stat(struct lwp *, void *, register_t *);
 1821 
 1822 int     compat_12_sys_fstat(struct lwp *, void *, register_t *);
 1823 
 1824 int     compat_12_sys_lstat(struct lwp *, void *, register_t *);
 1825 
 1826 int     sys_pathconf(struct lwp *, void *, register_t *);
 1827 
 1828 int     sys_fpathconf(struct lwp *, void *, register_t *);
 1829 
 1830 int     sys_getrlimit(struct lwp *, void *, register_t *);
 1831 
 1832 int     sys_setrlimit(struct lwp *, void *, register_t *);
 1833 
 1834 int     compat_12_sys_getdirentries(struct lwp *, void *, register_t *);
 1835 
 1836 int     sys_mmap(struct lwp *, void *, register_t *);
 1837 
 1838 int     sys_lseek(struct lwp *, void *, register_t *);
 1839 
 1840 int     sys_truncate(struct lwp *, void *, register_t *);
 1841 
 1842 int     sys_ftruncate(struct lwp *, void *, register_t *);
 1843 
 1844 int     sys___sysctl(struct lwp *, void *, register_t *);
 1845 
 1846 int     sys_mlock(struct lwp *, void *, register_t *);
 1847 
 1848 int     sys_munlock(struct lwp *, void *, register_t *);
 1849 
 1850 int     sys_undelete(struct lwp *, void *, register_t *);
 1851 
 1852 int     sys_futimes(struct lwp *, void *, register_t *);
 1853 
 1854 int     sys_getpgid(struct lwp *, void *, register_t *);
 1855 
 1856 int     sys_reboot(struct lwp *, void *, register_t *);
 1857 
 1858 int     sys_poll(struct lwp *, void *, register_t *);
 1859 
 1860 #if defined(LKM) || !defined(_KERNEL)
 1861 int     sys_lkmnosys(struct lwp *, void *, register_t *);
 1862 
 1863 #else   /* !LKM */
 1864 #endif  /* !LKM */
 1865 #if defined(SYSVSEM) || !defined(_KERNEL)
 1866 int     compat_14_sys___semctl(struct lwp *, void *, register_t *);
 1867 
 1868 int     sys_semget(struct lwp *, void *, register_t *);
 1869 
 1870 int     sys_semop(struct lwp *, void *, register_t *);
 1871 
 1872 int     sys_semconfig(struct lwp *, void *, register_t *);
 1873 
 1874 #else
 1875 #endif
 1876 #if defined(SYSVMSG) || !defined(_KERNEL)
 1877 int     compat_14_sys_msgctl(struct lwp *, void *, register_t *);
 1878 
 1879 int     sys_msgget(struct lwp *, void *, register_t *);
 1880 
 1881 int     sys_msgsnd(struct lwp *, void *, register_t *);
 1882 
 1883 int     sys_msgrcv(struct lwp *, void *, register_t *);
 1884 
 1885 #else
 1886 #endif
 1887 #if defined(SYSVSHM) || !defined(_KERNEL)
 1888 int     sys_shmat(struct lwp *, void *, register_t *);
 1889 
 1890 int     compat_14_sys_shmctl(struct lwp *, void *, register_t *);
 1891 
 1892 int     sys_shmdt(struct lwp *, void *, register_t *);
 1893 
 1894 int     sys_shmget(struct lwp *, void *, register_t *);
 1895 
 1896 #else
 1897 #endif
 1898 int     sys_clock_gettime(struct lwp *, void *, register_t *);
 1899 
 1900 int     sys_clock_settime(struct lwp *, void *, register_t *);
 1901 
 1902 int     sys_clock_getres(struct lwp *, void *, register_t *);
 1903 
 1904 int     sys_timer_create(struct lwp *, void *, register_t *);
 1905 
 1906 int     sys_timer_delete(struct lwp *, void *, register_t *);
 1907 
 1908 int     sys_timer_settime(struct lwp *, void *, register_t *);
 1909 
 1910 int     sys_timer_gettime(struct lwp *, void *, register_t *);
 1911 
 1912 int     sys_timer_getoverrun(struct lwp *, void *, register_t *);
 1913 
 1914 int     sys_nanosleep(struct lwp *, void *, register_t *);
 1915 
 1916 int     sys_fdatasync(struct lwp *, void *, register_t *);
 1917 
 1918 int     sys_mlockall(struct lwp *, void *, register_t *);
 1919 
 1920 int     sys_munlockall(struct lwp *, void *, register_t *);
 1921 
 1922 int     sys___sigtimedwait(struct lwp *, void *, register_t *);
 1923 
 1924 #if defined(P1003_1B_SEMAPHORE) || (!defined(_KERNEL) && defined(_LIBC))
 1925 int     sys__ksem_init(struct lwp *, void *, register_t *);
 1926 
 1927 int     sys__ksem_open(struct lwp *, void *, register_t *);
 1928 
 1929 int     sys__ksem_unlink(struct lwp *, void *, register_t *);
 1930 
 1931 int     sys__ksem_close(struct lwp *, void *, register_t *);
 1932 
 1933 int     sys__ksem_post(struct lwp *, void *, register_t *);
 1934 
 1935 int     sys__ksem_wait(struct lwp *, void *, register_t *);
 1936 
 1937 int     sys__ksem_trywait(struct lwp *, void *, register_t *);
 1938 
 1939 int     sys__ksem_getvalue(struct lwp *, void *, register_t *);
 1940 
 1941 int     sys__ksem_destroy(struct lwp *, void *, register_t *);
 1942 
 1943 #else
 1944 #endif
 1945 int     sys___posix_rename(struct lwp *, void *, register_t *);
 1946 
 1947 int     sys_swapctl(struct lwp *, void *, register_t *);
 1948 
 1949 int     sys_getdents(struct lwp *, void *, register_t *);
 1950 
 1951 int     sys_minherit(struct lwp *, void *, register_t *);
 1952 
 1953 int     sys_lchmod(struct lwp *, void *, register_t *);
 1954 
 1955 int     sys_lchown(struct lwp *, void *, register_t *);
 1956 
 1957 int     sys_lutimes(struct lwp *, void *, register_t *);
 1958 
 1959 int     sys___msync13(struct lwp *, void *, register_t *);
 1960 
 1961 int     sys___stat13(struct lwp *, void *, register_t *);
 1962 
 1963 int     sys___fstat13(struct lwp *, void *, register_t *);
 1964 
 1965 int     sys___lstat13(struct lwp *, void *, register_t *);
 1966 
 1967 int     sys___sigaltstack14(struct lwp *, void *, register_t *);
 1968 
 1969 int     sys___vfork14(struct lwp *, void *, register_t *);
 1970 
 1971 int     sys___posix_chown(struct lwp *, void *, register_t *);
 1972 
 1973 int     sys___posix_fchown(struct lwp *, void *, register_t *);
 1974 
 1975 int     sys___posix_lchown(struct lwp *, void *, register_t *);
 1976 
 1977 int     sys_getsid(struct lwp *, void *, register_t *);
 1978 
 1979 int     sys___clone(struct lwp *, void *, register_t *);
 1980 
 1981 #if defined(KTRACE) || !defined(_KERNEL)
 1982 int     sys_fktrace(struct lwp *, void *, register_t *);
 1983 
 1984 #else
 1985 #endif
 1986 int     sys_preadv(struct lwp *, void *, register_t *);
 1987 
 1988 int     sys_pwritev(struct lwp *, void *, register_t *);
 1989 
 1990 int     compat_16_sys___sigaction14(struct lwp *, void *, register_t *);
 1991 
 1992 int     sys___sigpending14(struct lwp *, void *, register_t *);
 1993 
 1994 int     sys___sigprocmask14(struct lwp *, void *, register_t *);
 1995 
 1996 int     sys___sigsuspend14(struct lwp *, void *, register_t *);
 1997 
 1998 int     compat_16_sys___sigreturn14(struct lwp *, void *, register_t *);
 1999 
 2000 int     sys___getcwd(struct lwp *, void *, register_t *);
 2001 
 2002 int     sys_fchroot(struct lwp *, void *, register_t *);
 2003 
 2004 int     sys_fhopen(struct lwp *, void *, register_t *);
 2005 
 2006 int     sys_fhstat(struct lwp *, void *, register_t *);
 2007 
 2008 int     sys_fhstatfs(struct lwp *, void *, register_t *);
 2009 
 2010 #if defined(SYSVSEM) || !defined(_KERNEL)
 2011 int     sys_____semctl13(struct lwp *, void *, register_t *);
 2012 
 2013 #else
 2014 #endif
 2015 #if defined(SYSVMSG) || !defined(_KERNEL)
 2016 int     sys___msgctl13(struct lwp *, void *, register_t *);
 2017 
 2018 #else
 2019 #endif
 2020 #if defined(SYSVSHM) || !defined(_KERNEL)
 2021 int     sys___shmctl13(struct lwp *, void *, register_t *);
 2022 
 2023 #else
 2024 #endif
 2025 int     sys_lchflags(struct lwp *, void *, register_t *);
 2026 
 2027 int     sys_issetugid(struct lwp *, void *, register_t *);
 2028 
 2029 int     sys_utrace(struct lwp *, void *, register_t *);
 2030 
 2031 int     sys_getcontext(struct lwp *, void *, register_t *);
 2032 
 2033 int     sys_setcontext(struct lwp *, void *, register_t *);
 2034 
 2035 int     sys__lwp_create(struct lwp *, void *, register_t *);
 2036 
 2037 int     sys__lwp_exit(struct lwp *, void *, register_t *);
 2038 
 2039 int     sys__lwp_self(struct lwp *, void *, register_t *);
 2040 
 2041 int     sys__lwp_wait(struct lwp *, void *, register_t *);
 2042 
 2043 int     sys__lwp_suspend(struct lwp *, void *, register_t *);
 2044 
 2045 int     sys__lwp_continue(struct lwp *, void *, register_t *);
 2046 
 2047 int     sys__lwp_wakeup(struct lwp *, void *, register_t *);
 2048 
 2049 int     sys__lwp_getprivate(struct lwp *, void *, register_t *);
 2050 
 2051 int     sys__lwp_setprivate(struct lwp *, void *, register_t *);
 2052 
 2053 int     sys_sa_register(struct lwp *, void *, register_t *);
 2054 
 2055 int     sys_sa_stacks(struct lwp *, void *, register_t *);
 2056 
 2057 int     sys_sa_enable(struct lwp *, void *, register_t *);
 2058 
 2059 int     sys_sa_setconcurrency(struct lwp *, void *, register_t *);
 2060 
 2061 int     sys_sa_yield(struct lwp *, void *, register_t *);
 2062 
 2063 int     sys_sa_preempt(struct lwp *, void *, register_t *);
 2064 
 2065 int     sys___sigaction_sigtramp(struct lwp *, void *, register_t *);
 2066 
 2067 int     sys_pmc_get_info(struct lwp *, void *, register_t *);
 2068 
 2069 int     sys_pmc_control(struct lwp *, void *, register_t *);
 2070 
 2071 int     sys_rasctl(struct lwp *, void *, register_t *);
 2072 
 2073 int     sys_kqueue(struct lwp *, void *, register_t *);
 2074 
 2075 int     sys_kevent(struct lwp *, void *, register_t *);
 2076 
 2077 int     sys_fsync_range(struct lwp *, void *, register_t *);
 2078 
 2079 int     sys_uuidgen(struct lwp *, void *, register_t *);
 2080 
 2081 #endif /* _SYS__SYSCALLARGS_H_ */

Cache object: a3f503f6fb60c012aa49b5dab5c9553b


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.