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/kern/syscalls.master

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  $FreeBSD$
    2 ;       from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
    3 ;
    4 ; System call name/number master file.
    5 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
    6 
    7 ; Columns: number [M]type nargs name alt{name,tag,rtyp}/comments
    8 ;       number  system call number, must be in order
    9 ;       audit   the audit event associated with the system call
   10 ;               A value of AUE_NULL means no auditing, but it also means that
   11 ;               there is no audit event for the call at this time. For the
   12 ;               case where the event exists, but we don't want auditing, the
   13 ;               event should be #defined to AUE_NULL in audit_kevents.h.
   14 ;       type    one of [M]STD, [M]OBSOL, [M]UNIMPL, [M]COMPAT, [M]CPT_NOA,
   15 ;               [M]LIBCOMPAT, [M]NODEF, [M]NOARGS, [M]NOPROTO, [M]NOIMPL,
   16 ;               [M]NOSTD, [M]COMPAT4
   17 ;       name    psuedo-prototype of syscall routine
   18 ;               If one of the following alts is different, then all appear:
   19 ;       altname name of system call if different
   20 ;       alttag  name of args struct tag if different from [o]`name'"_args"
   21 ;       altrtyp return type if not int (bogus - syscalls always return int)
   22 ;               for UNIMPL/OBSOL, name continues with comments
   23 
   24 ; types:
   25 ;       [M]     e.g. like MSTD -- means the system call is MP-safe.  If no
   26 ;               M prefix is used, the syscall wrapper will obtain the Giant
   27 ;               lock for the syscall.
   28 ;       STD     always included
   29 ;       COMPAT  included on COMPAT #ifdef
   30 ;       COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat)
   31 ;       LIBCOMPAT included on COMPAT #ifdef, and placed in syscall.h
   32 ;       OBSOL   obsolete, not included in system, only specifies name
   33 ;       UNIMPL  not implemented, placeholder only
   34 ;       NOSTD   implemented but as a lkm that can be statically
   35 ;                       compiled in sysent entry will be filled with lkmsys
   36 ;                       so the SYSCALL_MODULE macro works
   37 ;       NOARGS  same as STD except do not create structure in sys/sysproto.h
   38 ;       NODEF   same as STD except only have the entry in the syscall table
   39 ;               added.  Meaning - do do not create structure or function
   40 ;               prototype in sys/sysproto.h
   41 ;       NOPROTO same as STD except do not create structure or
   42 ;               function prototype in sys/sysproto.h.  Does add a
   43 ;               definition to syscall.h besides adding a sysent.
   44 
   45 ;
   46 ; Please copy any additions and changes to the following compatability tables:
   47 ; sys/compat/freebsd32/syscalls.master
   48 
   49 ; #ifdef's, etc. may be included, and are copied to the output files.
   50 
   51 #include <sys/param.h>
   52 #include <sys/sysent.h>
   53 #include <sys/sysproto.h>
   54 
   55 ; Reserved/unimplemented system calls in the range 0-150 inclusive
   56 ; are reserved for use in future Berkeley releases.
   57 ; Additional system calls implemented in vendor and other
   58 ; redistributions should be placed in the reserved range at the end
   59 ; of the current calls.
   60 
   61 0       AUE_NULL        MSTD    { int nosys(void); } syscall nosys_args int
   62 1       AUE_EXIT        MSTD    { void sys_exit(int rval); } exit \
   63                                     sys_exit_args void
   64 2       AUE_FORK        MSTD    { int fork(void); }
   65 3       AUE_NULL        MSTD    { ssize_t read(int fd, void *buf, \
   66                                     size_t nbyte); }
   67 4       AUE_NULL        MSTD    { ssize_t write(int fd, const void *buf, \
   68                                     size_t nbyte); }
   69 5       AUE_OPEN_RWTC   MSTD    { int open(char *path, int flags, int mode); }
   70 ; XXX should be         { int open(const char *path, int flags, ...); }
   71 ; but we're not ready for `const' or varargs.
   72 ; XXX man page says `mode_t mode'.
   73 6       AUE_CLOSE       MSTD    { int close(int fd); }
   74 7       AUE_WAIT4       MSTD    { int wait4(int pid, int *status, \
   75                                     int options, struct rusage *rusage); } \
   76                                     wait4 wait_args int
   77 8       AUE_CREAT       MCOMPAT { int creat(char *path, int mode); }
   78 9       AUE_LINK        MSTD    { int link(char *path, char *link); }
   79 10      AUE_UNLINK      MSTD    { int unlink(char *path); }
   80 11      AUE_NULL        OBSOL   execv
   81 12      AUE_CHDIR       MSTD    { int chdir(char *path); }
   82 13      AUE_FCHDIR      MSTD    { int fchdir(int fd); }
   83 14      AUE_MKNOD       MSTD    { int mknod(char *path, int mode, int dev); }
   84 15      AUE_CHMOD       MSTD    { int chmod(char *path, int mode); }
   85 16      AUE_CHOWN       MSTD    { int chown(char *path, int uid, int gid); }
   86 17      AUE_NULL        MSTD    { int obreak(char *nsize); } break \
   87                                     obreak_args int
   88 18      AUE_GETFSSTAT   MCOMPAT4        { int getfsstat(struct ostatfs *buf, \
   89                                     long bufsize, int flags); }
   90 19      AUE_LSEEK       MCOMPAT { long lseek(int fd, long offset, \
   91                                     int whence); }
   92 20      AUE_GETPID      MSTD    { pid_t getpid(void); }
   93 21      AUE_MOUNT       STD     { int mount(char *type, char *path, \
   94                                     int flags, caddr_t data); }
   95 ; XXX `path' should have type `const char *' but we're not ready for that.
   96 22      AUE_UMOUNT      STD     { int unmount(char *path, int flags); }
   97 23      AUE_SETUID      MSTD    { int setuid(uid_t uid); }
   98 24      AUE_GETUID      MSTD    { uid_t getuid(void); }
   99 25      AUE_GETEUID     MSTD    { uid_t geteuid(void); }
  100 26      AUE_PTRACE      MSTD    { int ptrace(int req, pid_t pid, \
  101                                     caddr_t addr, int data); }
  102 27      AUE_RECVMSG     MSTD    { int recvmsg(int s, struct msghdr *msg, \
  103                                     int flags); }
  104 28      AUE_SENDMSG     MSTD    { int sendmsg(int s, struct msghdr *msg, \
  105                                     int flags); }
  106 29      AUE_RECVFROM    MSTD    { int recvfrom(int s, caddr_t buf, \
  107                                     size_t len, int flags, \
  108                                     struct sockaddr * __restrict from, \
  109                                     __socklen_t * __restrict fromlenaddr); }
  110 30      AUE_ACCEPT      MSTD    { int accept(int s, \
  111                                     struct sockaddr * __restrict name, \
  112                                     __socklen_t * __restrict anamelen); }
  113 31      AUE_GETPEERNAME MSTD    { int getpeername(int fdes, \
  114                                     struct sockaddr * __restrict asa, \
  115                                     __socklen_t * __restrict alen); }
  116 32      AUE_GETSOCKNAME MSTD    { int getsockname(int fdes, \
  117                                     struct sockaddr * __restrict asa, \
  118                                     __socklen_t * __restrict alen); }
  119 33      AUE_ACCESS      MSTD    { int access(char *path, int flags); }
  120 34      AUE_CHFLAGS     MSTD    { int chflags(char *path, int flags); }
  121 35      AUE_FCHFLAGS    MSTD    { int fchflags(int fd, int flags); }
  122 36      AUE_SYNC        MSTD    { int sync(void); }
  123 37      AUE_KILL        MSTD    { int kill(int pid, int signum); }
  124 38      AUE_STAT        MCOMPAT { int stat(char *path, struct ostat *ub); }
  125 39      AUE_GETPPID     MSTD    { pid_t getppid(void); }
  126 40      AUE_LSTAT       MCOMPAT { int lstat(char *path, struct ostat *ub); }
  127 41      AUE_DUP         MSTD    { int dup(u_int fd); }
  128 42      AUE_PIPE        MSTD    { int pipe(void); }
  129 43      AUE_GETEGID     MSTD    { gid_t getegid(void); }
  130 44      AUE_PROFILE     MSTD    { int profil(caddr_t samples, size_t size, \
  131                                     size_t offset, u_int scale); }
  132 45      AUE_KTRACE      MSTD    { int ktrace(const char *fname, int ops, \
  133                                     int facs, int pid); }
  134 46      AUE_SIGACTION   MCOMPAT { int sigaction(int signum, \
  135                                     struct osigaction *nsa, \
  136                                     struct osigaction *osa); }
  137 47      AUE_GETGID      MSTD    { gid_t getgid(void); }
  138 48      AUE_SIGPROCMASK MCOMPAT { int sigprocmask(int how, osigset_t mask); }
  139 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
  140 ; us the mask, not a pointer to it, and we return the old mask as the
  141 ; (int) return value.
  142 49      AUE_GETLOGIN    MSTD    { int getlogin(char *namebuf, u_int \
  143                                     namelen); }
  144 50      AUE_SETLOGIN    MSTD    { int setlogin(char *namebuf); }
  145 51      AUE_ACCT        MSTD    { int acct(char *path); }
  146 52      AUE_SIGPENDING  MCOMPAT { int sigpending(void); }
  147 53      AUE_SIGPENDING  MSTD    { int sigaltstack(stack_t *ss, \
  148                                     stack_t *oss); }
  149 54      AUE_IOCTL       MSTD    { int ioctl(int fd, u_long com, \
  150                                     caddr_t data); }
  151 55      AUE_REBOOT      MSTD    { int reboot(int opt); }
  152 56      AUE_REVOKE      MSTD    { int revoke(char *path); }
  153 57      AUE_SYMLINK     MSTD    { int symlink(char *path, char *link); }
  154 58      AUE_READLINK    MSTD    { int readlink(char *path, char *buf, \
  155                                     int count); }
  156 59      AUE_EXECVE      MSTD    { int execve(char *fname, char **argv, \
  157                                     char **envv); }
  158 60      AUE_UMASK       MSTD    { int umask(int newmask); } umask umask_args \
  159                                     int
  160 61      AUE_CHROOT      MSTD    { int chroot(char *path); }
  161 62      AUE_FSTAT       MCOMPAT { int fstat(int fd, struct ostat *sb); }
  162 63      AUE_NULL        MCOMPAT { int getkerninfo(int op, char *where, \
  163                                     size_t *size, int arg); } getkerninfo \
  164                                     getkerninfo_args int
  165 64      AUE_NULL        MCOMPAT { int getpagesize(void); } getpagesize \
  166                                     getpagesize_args int
  167 65      AUE_MSYNC       MSTD    { int msync(void *addr, size_t len, \
  168                                     int flags); }
  169 66      AUE_VFORK       MSTD    { int vfork(void); }
  170 67      AUE_NULL        OBSOL   vread
  171 68      AUE_NULL        OBSOL   vwrite
  172 69      AUE_SBRK        MSTD    { int sbrk(int incr); }
  173 70      AUE_SSTK        MSTD    { int sstk(int incr); }
  174 71      AUE_MMAP        MCOMPAT { int mmap(void *addr, int len, int prot, \
  175                                     int flags, int fd, long pos); }
  176 72      AUE_O_VADVISE   MSTD    { int ovadvise(int anom); } vadvise \
  177                                     ovadvise_args int
  178 73      AUE_MUNMAP      MSTD    { int munmap(void *addr, size_t len); }
  179 74      AUE_MPROTECT    MSTD    { int mprotect(const void *addr, size_t len, \
  180                                     int prot); }
  181 75      AUE_MADVISE     MSTD    { int madvise(void *addr, size_t len, \
  182                                     int behav); }
  183 76      AUE_NULL        OBSOL   vhangup
  184 77      AUE_NULL        OBSOL   vlimit
  185 78      AUE_MINCORE     MSTD    { int mincore(const void *addr, size_t len, \
  186                                     char *vec); }
  187 79      AUE_GETGROUPS   MSTD    { int getgroups(u_int gidsetsize, \
  188                                     gid_t *gidset); }
  189 80      AUE_SETGROUPS   MSTD    { int setgroups(u_int gidsetsize, \
  190                                     gid_t *gidset); }
  191 81      AUE_GETPGRP     MSTD    { int getpgrp(void); }
  192 82      AUE_SETPGRP     MSTD    { int setpgid(int pid, int pgid); }
  193 83      AUE_SETITIMER   MSTD    { int setitimer(u_int which, struct \
  194                                     itimerval *itv, struct itimerval *oitv); }
  195 84      AUE_WAIT4       MCOMPAT { int wait(void); }
  196 85      AUE_SWAPON      MSTD    { int swapon(char *name); }
  197 86      AUE_GETITIMER   MSTD    { int getitimer(u_int which, \
  198                                     struct itimerval *itv); }
  199 87      AUE_SYSCTL      MCOMPAT { int gethostname(char *hostname, \
  200                                     u_int len); } gethostname \
  201                                     gethostname_args int
  202 88      AUE_SYSCTL      MCOMPAT { int sethostname(char *hostname, \
  203                                     u_int len); } sethostname \
  204                                     sethostname_args int
  205 89      AUE_GETDTABLESIZE       MSTD    { int getdtablesize(void); }
  206 90      AUE_DUP2        MSTD    { int dup2(u_int from, u_int to); }
  207 91      AUE_NULL        UNIMPL  getdopt
  208 92      AUE_FCNTL       MSTD    { int fcntl(int fd, int cmd, long arg); }
  209 ; XXX should be { int fcntl(int fd, int cmd, ...); }
  210 ; but we're not ready for varargs.
  211 93      AUE_SELECT      MSTD    { int select(int nd, fd_set *in, fd_set *ou, \
  212                                     fd_set *ex, struct timeval *tv); }
  213 94      AUE_NULL        UNIMPL  setdopt
  214 95      AUE_FSYNC       MSTD    { int fsync(int fd); }
  215 96      AUE_SETPRIORITY MSTD    { int setpriority(int which, int who, \
  216                                     int prio); }
  217 97      AUE_SOCKET      MSTD    { int socket(int domain, int type, \
  218                                     int protocol); }
  219 98      AUE_CONNECT     MSTD    { int connect(int s, caddr_t name, \
  220                                     int namelen); }
  221 99      AUE_ACCEPT      MCPT_NOA { int accept(int s, caddr_t name, \
  222                                     int *anamelen); } accept accept_args int
  223 100     AUE_GETPRIORITY MSTD    { int getpriority(int which, int who); }
  224 101     AUE_SEND        MCOMPAT { int send(int s, caddr_t buf, int len, \
  225                                     int flags); }
  226 102     AUE_RECV        MCOMPAT { int recv(int s, caddr_t buf, int len, \
  227                                     int flags); }
  228 103     AUE_SIGRETURN   MCOMPAT { int sigreturn( \
  229                                     struct osigcontext *sigcntxp); }
  230 104     AUE_BIND        MSTD    { int bind(int s, caddr_t name, \
  231                                     int namelen); }
  232 105     AUE_SETSOCKOPT  MSTD    { int setsockopt(int s, int level, int name, \
  233                                     caddr_t val, int valsize); }
  234 106     AUE_LISTEN      MSTD    { int listen(int s, int backlog); }
  235 107     AUE_NULL        OBSOL   vtimes
  236 108     AUE_NULL        MCOMPAT { int sigvec(int signum, struct sigvec *nsv, \
  237                                     struct sigvec *osv); }
  238 109     AUE_NULL        MCOMPAT { int sigblock(int mask); }
  239 110     AUE_NULL        MCOMPAT { int sigsetmask(int mask); }
  240 111     AUE_NULL        MCOMPAT { int sigsuspend(osigset_t mask); }
  241 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
  242 ; us the mask, not a pointer to it.
  243 112     AUE_NULL        MCOMPAT { int sigstack(struct sigstack *nss, \
  244                                     struct sigstack *oss); }
  245 113     AUE_RECVMSG     MCOMPAT { int recvmsg(int s, struct omsghdr *msg, \
  246                                     int flags); }
  247 114     AUE_SENDMSG     MCOMPAT { int sendmsg(int s, caddr_t msg, \
  248                                     int flags); }
  249 115     AUE_NULL        OBSOL   vtrace
  250 116     AUE_GETTIMEOFDAY        MSTD    { int gettimeofday(struct timeval *tp, \
  251                                     struct timezone *tzp); }
  252 117     AUE_GETRUSAGE   MSTD    { int getrusage(int who, \
  253                                     struct rusage *rusage); }
  254 118     AUE_GETSOCKOPT  MSTD    { int getsockopt(int s, int level, int name, \
  255                                     caddr_t val, int *avalsize); }
  256 119     AUE_NULL        UNIMPL  resuba (BSD/OS 2.x)
  257 120     AUE_READV       MSTD    { int readv(int fd, struct iovec *iovp, \
  258                                     u_int iovcnt); }
  259 121     AUE_WRITEV      MSTD    { int writev(int fd, struct iovec *iovp, \
  260                                     u_int iovcnt); }
  261 122     AUE_SETTIMEOFDAY        MSTD    { int settimeofday(struct timeval *tv, \
  262                                     struct timezone *tzp); }
  263 123     AUE_FCHOWN      MSTD    { int fchown(int fd, int uid, int gid); }
  264 124     AUE_FCHMOD      MSTD    { int fchmod(int fd, int mode); }
  265 125     AUE_RECVFROM    MCPT_NOA { int recvfrom(int s, caddr_t buf, \
  266                                     size_t len, int flags, caddr_t from, int \
  267                                     *fromlenaddr); } recvfrom recvfrom_args \
  268                                     int
  269 126     AUE_SETREUID    MSTD    { int setreuid(int ruid, int euid); }
  270 127     AUE_SETREGID    MSTD    { int setregid(int rgid, int egid); }
  271 128     AUE_RENAME      MSTD    { int rename(char *from, char *to); }
  272 129     AUE_TRUNCATE    MCOMPAT { int truncate(char *path, long length); }
  273 130     AUE_FTRUNCATE   MCOMPAT { int ftruncate(int fd, long length); }
  274 131     AUE_FLOCK       MSTD    { int flock(int fd, int how); }
  275 132     AUE_MKFIFO      MSTD    { int mkfifo(char *path, int mode); }
  276 133     AUE_SENDTO      MSTD    { int sendto(int s, caddr_t buf, size_t len, \
  277                                     int flags, caddr_t to, int tolen); }
  278 134     AUE_SHUTDOWN    MSTD    { int shutdown(int s, int how); }
  279 135     AUE_SOCKETPAIR  MSTD    { int socketpair(int domain, int type, \
  280                                     int protocol, int *rsv); }
  281 136     AUE_MKDIR       MSTD    { int mkdir(char *path, int mode); }
  282 137     AUE_RMDIR       MSTD    { int rmdir(char *path); }
  283 138     AUE_UTIMES      MSTD    { int utimes(char *path, \
  284                                     struct timeval *tptr); }
  285 139     AUE_NULL        OBSOL   4.2 sigreturn
  286 140     AUE_ADJTIME     MSTD    { int adjtime(struct timeval *delta, \
  287                                     struct timeval *olddelta); }
  288 141     AUE_GETPEERNAME MCOMPAT { int getpeername(int fdes, caddr_t asa, \
  289                                     int *alen); }
  290 142     AUE_SYSCTL      MCOMPAT { long gethostid(void); }
  291 143     AUE_SYSCTL      MCOMPAT { int sethostid(long hostid); }
  292 144     AUE_GETRLIMIT   MCOMPAT { int getrlimit(u_int which, struct \
  293                                     orlimit *rlp); }
  294 145     AUE_SETRLIMIT   MCOMPAT { int setrlimit(u_int which, \
  295                                     struct orlimit *rlp); }
  296 146     AUE_KILLPG      MCOMPAT { int killpg(int pgid, int signum); }
  297 147     AUE_SETSID      MSTD    { int setsid(void); }
  298 148     AUE_QUOTACTL    MSTD    { int quotactl(char *path, int cmd, int uid, \
  299                                     caddr_t arg); }
  300 149     AUE_O_QUOTA     MCOMPAT { int quota(void); }
  301 150     AUE_GETSOCKNAME MCPT_NOA        { int getsockname(int fdec, \
  302                                     caddr_t asa, int *alen); } getsockname \
  303                                     getsockname_args int
  304 
  305 ; Syscalls 151-180 inclusive are reserved for vendor-specific
  306 ; system calls.  (This includes various calls added for compatibity
  307 ; with other Unix variants.)
  308 ; Some of these calls are now supported by BSD...
  309 151     AUE_NULL        UNIMPL  sem_lock (BSD/OS 2.x)
  310 152     AUE_NULL        UNIMPL  sem_wakeup (BSD/OS 2.x)
  311 153     AUE_NULL        UNIMPL  asyncdaemon (BSD/OS 2.x)
  312 ; 154 is initialised by the NLM code, if present.
  313 154     AUE_NULL        MNOSTD  { int nlm_syscall(int debug_level, int grace_period, int addr_count, char **addrs); }
  314 ; 155 is initialized by the NFS code, if present.
  315 155     AUE_NFS_SVC     MNOIMPL { int nfssvc(int flag, caddr_t argp); }
  316 156     AUE_GETDIRENTRIES       COMPAT  { int getdirentries(int fd, char *buf, \
  317                                     u_int count, long *basep); }
  318 157     AUE_STATFS      MCOMPAT4        { int statfs(char *path, \
  319                                     struct ostatfs *buf); }
  320 158     AUE_FSTATFS     MCOMPAT4        { int fstatfs(int fd, \
  321                                     struct ostatfs *buf); }
  322 159     AUE_NULL        UNIMPL  nosys
  323 160     AUE_LGETFH      MSTD    { int lgetfh(char *fname, \
  324                                     struct fhandle *fhp); }
  325 161     AUE_NFS_GETFH   MSTD    { int getfh(char *fname, \
  326                                     struct fhandle *fhp); }
  327 162     AUE_SYSCTL      MSTD    { int getdomainname(char *domainname, \
  328                                     int len); }
  329 163     AUE_SYSCTL      MSTD    { int setdomainname(char *domainname, \
  330                                     int len); }
  331 164     AUE_NULL        MSTD    { int uname(struct utsname *name); }
  332 165     AUE_NULL        MSTD    { int sysarch(int op, char *parms); }
  333 166     AUE_NULL        MSTD    { int rtprio(int function, pid_t pid, \
  334                                     struct rtprio *rtp); }
  335 167     AUE_NULL        UNIMPL  nosys
  336 168     AUE_NULL        UNIMPL  nosys
  337 ; 169 is initialized by the SYSVSEM code if present or loaded
  338 169     AUE_SEMSYS      MNOSTD  { int semsys(int which, int a2, int a3, \
  339                                     int a4, int a5); }
  340 ; 169 is initialized by the SYSVMSG code if present or loaded
  341 ; XXX should be { int semsys(int which, ...); }
  342 170     AUE_MSGSYS      MNOSTD  { int msgsys(int which, int a2, int a3, \
  343                                     int a4, int a5, int a6); }
  344 ; 169 is initialized by the SYSVSHM code if present or loaded
  345 ; XXX should be { int msgsys(int which, ...); }
  346 171     AUE_SHMSYS      MNOSTD  { int shmsys(int which, int a2, int a3, \
  347                                     int a4); }
  348 ; XXX should be { int shmsys(int which, ...); }
  349 172     AUE_NULL        UNIMPL  nosys
  350 173     AUE_PREAD       MSTD    { ssize_t pread(int fd, void *buf, \
  351                                     size_t nbyte, int pad, off_t offset); }
  352 174     AUE_PWRITE      MSTD    { ssize_t pwrite(int fd, const void *buf, \
  353                                     size_t nbyte, int pad, off_t offset); }
  354 175     AUE_NULL        UNIMPL  nosys
  355 176     AUE_NTP_ADJTIME MSTD    { int ntp_adjtime(struct timex *tp); }
  356 177     AUE_NULL        UNIMPL  sfork (BSD/OS 2.x)
  357 178     AUE_NULL        UNIMPL  getdescriptor (BSD/OS 2.x)
  358 179     AUE_NULL        UNIMPL  setdescriptor (BSD/OS 2.x)
  359 180     AUE_NULL        UNIMPL  nosys
  360 
  361 ; Syscalls 181-199 are used by/reserved for BSD
  362 181     AUE_SETGID      MSTD    { int setgid(gid_t gid); }
  363 182     AUE_SETEGID     MSTD    { int setegid(gid_t egid); }
  364 183     AUE_SETEUID     MSTD    { int seteuid(uid_t euid); }
  365 184     AUE_NULL        UNIMPL  lfs_bmapv
  366 185     AUE_NULL        UNIMPL  lfs_markv
  367 186     AUE_NULL        UNIMPL  lfs_segclean
  368 187     AUE_NULL        UNIMPL  lfs_segwait
  369 188     AUE_STAT        MSTD    { int stat(char *path, struct stat *ub); }
  370 189     AUE_FSTAT       MSTD    { int fstat(int fd, struct stat *sb); }
  371 190     AUE_LSTAT       MSTD    { int lstat(char *path, struct stat *ub); }
  372 191     AUE_PATHCONF    MSTD    { int pathconf(char *path, int name); }
  373 192     AUE_FPATHCONF   MSTD    { int fpathconf(int fd, int name); }
  374 193     AUE_NULL        UNIMPL  nosys
  375 194     AUE_GETRLIMIT   MSTD    { int getrlimit(u_int which, \
  376                                     struct rlimit *rlp); } getrlimit \
  377                                     __getrlimit_args int
  378 195     AUE_SETRLIMIT   MSTD    { int setrlimit(u_int which, \
  379                                     struct rlimit *rlp); } setrlimit \
  380                                     __setrlimit_args int
  381 196     AUE_GETDIRENTRIES       MSTD    { int getdirentries(int fd, char *buf, \
  382                                     u_int count, long *basep); }
  383 197     AUE_MMAP        MSTD    { caddr_t mmap(caddr_t addr, size_t len, \
  384                                     int prot, int flags, int fd, int pad, \
  385                                     off_t pos); }
  386 198     AUE_NULL        MSTD    { int nosys(void); } __syscall \
  387                                     __syscall_args int
  388 199     AUE_LSEEK       MSTD    { off_t lseek(int fd, int pad, off_t offset, \
  389                                     int whence); }
  390 200     AUE_TRUNCATE    MSTD    { int truncate(char *path, int pad, \
  391                                     off_t length); }
  392 201     AUE_FTRUNCATE   MSTD    { int ftruncate(int fd, int pad, \
  393                                     off_t length); }
  394 202     AUE_SYSCTL      MSTD    { int __sysctl(int *name, u_int namelen, \
  395                                     void *old, size_t *oldlenp, void *new, \
  396                                     size_t newlen); } __sysctl sysctl_args int
  397 203     AUE_MLOCK       MSTD    { int mlock(const void *addr, size_t len); }
  398 204     AUE_MUNLOCK     MSTD    { int munlock(const void *addr, size_t len); }
  399 205     AUE_UNDELETE    MSTD    { int undelete(char *path); }
  400 206     AUE_FUTIMES     MSTD    { int futimes(int fd, struct timeval *tptr); }
  401 207     AUE_GETPGID     MSTD    { int getpgid(pid_t pid); }
  402 208     AUE_NULL        UNIMPL  newreboot (NetBSD)
  403 209     AUE_POLL        MSTD    { int poll(struct pollfd *fds, u_int nfds, \
  404                                     int timeout); }
  405 
  406 ;
  407 ; The following are reserved for loadable syscalls
  408 ;
  409 210     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  410 211     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  411 212     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  412 213     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  413 214     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  414 215     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  415 216     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  416 217     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  417 218     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  418 219     AUE_NULL        NODEF   lkmnosys lkmnosys nosys_args int
  419 
  420 ;
  421 ; The following were introduced with NetBSD/4.4Lite-2
  422 ; They are initialized by their respective modules/sysinits
  423 220     AUE_SEMCTL      MNOSTD  { int __semctl(int semid, int semnum, \
  424                                     int cmd, union semun *arg); }
  425 221     AUE_SEMGET      MNOSTD  { int semget(key_t key, int nsems, \
  426                                     int semflg); }
  427 222     AUE_SEMOP       MNOSTD  { int semop(int semid, struct sembuf *sops, \
  428                                     size_t nsops); }
  429 223     AUE_NULL        UNIMPL  semconfig
  430 224     AUE_MSGCTL      MNOSTD  { int msgctl(int msqid, int cmd, \
  431                                     struct msqid_ds *buf); }
  432 225     AUE_MSGGET      MNOSTD  { int msgget(key_t key, int msgflg); }
  433 226     AUE_MSGSND      MNOSTD  { int msgsnd(int msqid, const void *msgp, \
  434                                     size_t msgsz, int msgflg); }
  435 227     AUE_MSGRCV      MNOSTD  { int msgrcv(int msqid, void *msgp, \
  436                                     size_t msgsz, long msgtyp, int msgflg); }
  437 228     AUE_SHMAT       MNOSTD  { int shmat(int shmid, const void *shmaddr, \
  438                                     int shmflg); }
  439 229     AUE_SHMCTL      MNOSTD  { int shmctl(int shmid, int cmd, \
  440                                     struct shmid_ds *buf); }
  441 230     AUE_SHMDT       MNOSTD  { int shmdt(const void *shmaddr); }
  442 231     AUE_SHMGET      MNOSTD  { int shmget(key_t key, size_t size, \
  443                                     int shmflg); }
  444 ;
  445 232     AUE_NULL        MSTD    { int clock_gettime(clockid_t clock_id, \
  446                                     struct timespec *tp); }
  447 233     AUE_NULL        MSTD    { int clock_settime(clockid_t clock_id, \
  448                                     const struct timespec *tp); }
  449 234     AUE_NULL        MSTD    { int clock_getres(clockid_t clock_id, \
  450                                     struct timespec *tp); }
  451 235     AUE_NULL        UNIMPL  timer_create
  452 236     AUE_NULL        UNIMPL  timer_delete
  453 237     AUE_NULL        UNIMPL  timer_settime
  454 238     AUE_NULL        UNIMPL  timer_gettime
  455 239     AUE_NULL        UNIMPL  timer_getoverrun
  456 240     AUE_NULL        MSTD    { int nanosleep(const struct timespec *rqtp, \
  457                                     struct timespec *rmtp); }
  458 241     AUE_NULL        UNIMPL  nosys
  459 242     AUE_NULL        UNIMPL  nosys
  460 243     AUE_NULL        UNIMPL  nosys
  461 244     AUE_NULL        UNIMPL  nosys
  462 245     AUE_NULL        UNIMPL  nosys
  463 246     AUE_NULL        UNIMPL  nosys
  464 247     AUE_NULL        UNIMPL  nosys
  465 248     AUE_NULL        MSTD    { int ntp_gettime(struct ntptimeval *ntvp); }
  466 249     AUE_NULL        UNIMPL  nosys
  467 ; syscall numbers initially used in OpenBSD
  468 250     AUE_MINHERIT    MSTD    { int minherit(void *addr, size_t len, \
  469                                     int inherit); }
  470 251     AUE_RFORK       MSTD    { int rfork(int flags); }
  471 252     AUE_POLL        MSTD    { int openbsd_poll(struct pollfd *fds, \
  472                                     u_int nfds, int timeout); }
  473 253     AUE_ISSETUGID   MSTD    { int issetugid(void); }
  474 254     AUE_LCHOWN      MSTD    { int lchown(char *path, int uid, int gid); }
  475 255     AUE_NULL        UNIMPL  nosys
  476 256     AUE_NULL        UNIMPL  nosys
  477 257     AUE_NULL        UNIMPL  nosys
  478 258     AUE_NULL        UNIMPL  nosys
  479 259     AUE_NULL        UNIMPL  nosys
  480 260     AUE_NULL        UNIMPL  nosys
  481 261     AUE_NULL        UNIMPL  nosys
  482 262     AUE_NULL        UNIMPL  nosys
  483 263     AUE_NULL        UNIMPL  nosys
  484 264     AUE_NULL        UNIMPL  nosys
  485 265     AUE_NULL        UNIMPL  nosys
  486 266     AUE_NULL        UNIMPL  nosys
  487 267     AUE_NULL        UNIMPL  nosys
  488 268     AUE_NULL        UNIMPL  nosys
  489 269     AUE_NULL        UNIMPL  nosys
  490 270     AUE_NULL        UNIMPL  nosys
  491 271     AUE_NULL        UNIMPL  nosys
  492 272     AUE_O_GETDENTS  MSTD    { int getdents(int fd, char *buf, \
  493                                     size_t count); }
  494 273     AUE_NULL        UNIMPL  nosys
  495 274     AUE_LCHMOD      MSTD    { int lchmod(char *path, mode_t mode); }
  496 275     AUE_LCHOWN      MNOPROTO { int lchown(char *path, uid_t uid, \
  497                                     gid_t gid); } netbsd_lchown lchown_args \
  498                                     int
  499 276     AUE_LUTIMES     MSTD    { int lutimes(char *path, \
  500                                     struct timeval *tptr); }
  501 277     AUE_MSYNC       MNOPROTO        { int msync(void *addr, size_t len, \
  502                                     int flags); } netbsd_msync msync_args int
  503 278     AUE_STAT        MSTD    { int nstat(char *path, struct nstat *ub); }
  504 279     AUE_FSTAT       MSTD    { int nfstat(int fd, struct nstat *sb); }
  505 280     AUE_LSTAT       MSTD    { int nlstat(char *path, struct nstat *ub); }
  506 281     AUE_NULL        UNIMPL  nosys
  507 282     AUE_NULL        UNIMPL  nosys
  508 283     AUE_NULL        UNIMPL  nosys
  509 284     AUE_NULL        UNIMPL  nosys
  510 285     AUE_NULL        UNIMPL  nosys
  511 286     AUE_NULL        UNIMPL  nosys
  512 287     AUE_NULL        UNIMPL  nosys
  513 288     AUE_NULL        UNIMPL  nosys
  514 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
  515 289     AUE_NULL        MSTD    { ssize_t preadv(int fd, struct iovec *iovp, \
  516                                         u_int iovcnt, off_t offset); }
  517 290     AUE_NULL        MSTD    { ssize_t pwritev(int fd, struct iovec *iovp, \
  518                                         u_int iovcnt, off_t offset); }
  519 291     AUE_NULL        UNIMPL  nosys
  520 292     AUE_NULL        UNIMPL  nosys
  521 293     AUE_NULL        UNIMPL  nosys
  522 294     AUE_NULL        UNIMPL  nosys
  523 295     AUE_NULL        UNIMPL  nosys
  524 296     AUE_NULL        UNIMPL  nosys
  525 ; XXX 297 is 300 in NetBSD 
  526 297     AUE_FHSTATFS    MCOMPAT4        { int fhstatfs( \
  527                                     const struct fhandle *u_fhp, \
  528                                     struct ostatfs *buf); }
  529 298     AUE_FHOPEN      MSTD    { int fhopen(const struct fhandle *u_fhp, \
  530                                     int flags); }
  531 299     AUE_FHSTAT      MSTD    { int fhstat(const struct fhandle *u_fhp, \
  532                                     struct stat *sb); }
  533 ; syscall numbers for FreeBSD
  534 300     AUE_NULL        MSTD    { int modnext(int modid); }
  535 301     AUE_NULL        MSTD    { int modstat(int modid, \
  536                                     struct module_stat *stat); }
  537 302     AUE_NULL        MSTD    { int modfnext(int modid); }
  538 303     AUE_NULL        MSTD    { int modfind(const char *name); }
  539 304     AUE_MODLOAD     MSTD    { int kldload(const char *file); }
  540 305     AUE_MODUNLOAD   MSTD    { int kldunload(int fileid); }
  541 306     AUE_NULL        MSTD    { int kldfind(const char *file); }
  542 307     AUE_NULL        MSTD    { int kldnext(int fileid); }
  543 308     AUE_NULL        MSTD    { int kldstat(int fileid, struct \
  544                                     kld_file_stat* stat); }
  545 309     AUE_NULL        MSTD    { int kldfirstmod(int fileid); }
  546 310     AUE_GETSID      MSTD    { int getsid(pid_t pid); }
  547 311     AUE_SETRESUID   MSTD    { int setresuid(uid_t ruid, uid_t euid, \
  548                                     uid_t suid); }
  549 312     AUE_SETRESGID   MSTD    { int setresgid(gid_t rgid, gid_t egid, \
  550                                     gid_t sgid); }
  551 313     AUE_NULL        OBSOL   signanosleep
  552 314     AUE_NULL        NOSTD   { int aio_return(struct aiocb *aiocbp); }
  553 315     AUE_NULL        NOSTD   { int aio_suspend( \
  554                                     struct aiocb * const * aiocbp, int nent, \
  555                                     const struct timespec *timeout); }
  556 316     AUE_NULL        NOSTD   { int aio_cancel(int fd, \
  557                                     struct aiocb *aiocbp); }
  558 317     AUE_NULL        NOSTD   { int aio_error(struct aiocb *aiocbp); }
  559 318     AUE_NULL        NOSTD   { int aio_read(struct aiocb *aiocbp); }
  560 319     AUE_NULL        NOSTD   { int aio_write(struct aiocb *aiocbp); }
  561 320     AUE_NULL        NOSTD   { int lio_listio(int mode, \
  562                                     struct aiocb * const *acb_list, \
  563                                     int nent, struct sigevent *sig); }
  564 321     AUE_NULL        MSTD    { int yield(void); }
  565 322     AUE_NULL        OBSOL   thr_sleep
  566 323     AUE_NULL        OBSOL   thr_wakeup
  567 324     AUE_MLOCKALL    MSTD    { int mlockall(int how); }
  568 325     AUE_MUNLOCKALL  MSTD    { int munlockall(void); }
  569 326     AUE_NULL        MSTD    { int __getcwd(u_char *buf, u_int buflen); }
  570 
  571 327     AUE_NULL        MSTD    { int sched_setparam (pid_t pid, \
  572                                     const struct sched_param *param); }
  573 328     AUE_NULL        MSTD    { int sched_getparam (pid_t pid, struct \
  574                                     sched_param *param); }
  575 
  576 329     AUE_NULL        MSTD    { int sched_setscheduler (pid_t pid, int \
  577                                     policy, const struct sched_param \
  578                                     *param); }
  579 330     AUE_NULL        MSTD    { int sched_getscheduler (pid_t pid); }
  580 
  581 331     AUE_NULL        MSTD    { int sched_yield (void); }
  582 332     AUE_NULL        MSTD    { int sched_get_priority_max (int policy); }
  583 333     AUE_NULL        MSTD    { int sched_get_priority_min (int policy); }
  584 334     AUE_NULL        MSTD    { int sched_rr_get_interval (pid_t pid, \
  585                                     struct timespec *interval); }
  586 335     AUE_NULL        MSTD    { int utrace(const void *addr, size_t len); }
  587 336     AUE_SENDFILE    MCOMPAT4        { int sendfile(int fd, int s, \
  588                                     off_t offset, size_t nbytes, \
  589                                     struct sf_hdtr *hdtr, off_t *sbytes, \
  590                                     int flags); }
  591 337     AUE_NULL        MSTD    { int kldsym(int fileid, int cmd, \
  592                                     void *data); }
  593 338     AUE_JAIL        MSTD    { int jail(struct jail *jail); }
  594 339     AUE_NULL        UNIMPL  pioctl
  595 340     AUE_SIGPROCMASK MSTD    { int sigprocmask(int how, \
  596                                     const sigset_t *set, sigset_t *oset); }
  597 341     AUE_SIGSUSPEND  MSTD    { int sigsuspend(const sigset_t *sigmask); }
  598 342     AUE_SIGACTION   MCOMPAT4        { int sigaction(int sig, const \
  599                                     struct sigaction *act, \
  600                                     struct sigaction *oact); }
  601 343     AUE_SIGPENDING  MSTD    { int sigpending(sigset_t *set); }
  602 344     AUE_SIGRETURN   MCOMPAT4        { int sigreturn( \
  603                                     const struct ucontext4 *sigcntxp); }
  604 345     AUE_SIGWAIT     MSTD    { int sigtimedwait(const sigset_t *set, \
  605                                     siginfo_t *info, \
  606                                     const struct timespec *timeout); }
  607 346     AUE_NULL        MSTD    { int sigwaitinfo(const sigset_t *set, \
  608                                     siginfo_t *info); }
  609 347     AUE_NULL        MSTD    { int __acl_get_file(const char *path, \
  610                                     acl_type_t type, struct acl *aclp); }
  611 348     AUE_NULL        MSTD    { int __acl_set_file(const char *path, \
  612                                     acl_type_t type, struct acl *aclp); }
  613 349     AUE_NULL        MSTD    { int __acl_get_fd(int filedes, \
  614                                     acl_type_t type, struct acl *aclp); }
  615 350     AUE_NULL        MSTD    { int __acl_set_fd(int filedes, \
  616                                     acl_type_t type, struct acl *aclp); }
  617 351     AUE_NULL        MSTD    { int __acl_delete_file(const char *path, \
  618                                     acl_type_t type); }
  619 352     AUE_NULL        MSTD    { int __acl_delete_fd(int filedes, \
  620                                     acl_type_t type); }
  621 353     AUE_NULL        MSTD    { int __acl_aclcheck_file(const char *path, \
  622                                     acl_type_t type, struct acl *aclp); }
  623 354     AUE_NULL        MSTD    { int __acl_aclcheck_fd(int filedes, \
  624                                     acl_type_t type, struct acl *aclp); }
  625 355     AUE_EXTATTRCTL  MSTD    { int extattrctl(const char *path, int cmd, \
  626                                     const char *filename, int attrnamespace, \
  627                                     const char *attrname); }
  628 356     AUE_EXTATTR_SET_FILE    MSTD    { int extattr_set_file( \
  629                                     const char *path, int attrnamespace, \
  630                                     const char *attrname, void *data, \
  631                                     size_t nbytes); }
  632 357     AUE_EXTATTR_GET_FILE    MSTD    { ssize_t extattr_get_file( \
  633                                     const char *path, int attrnamespace, \
  634                                     const char *attrname, void *data, \
  635                                     size_t nbytes); }
  636 358     AUE_EXTATTR_DELETE_FILE MSTD    { int extattr_delete_file( \
  637                                     const char *path, int attrnamespace, \
  638                                     const char *attrname); }
  639 359     AUE_NULL        NOSTD   { int aio_waitcomplete( \
  640                                     struct aiocb **aiocbp, \
  641                                     struct timespec *timeout); }
  642 360     AUE_GETRESUID   MSTD    { int getresuid(uid_t *ruid, uid_t *euid, \
  643                                     uid_t *suid); }
  644 361     AUE_GETRESGID   MSTD    { int getresgid(gid_t *rgid, gid_t *egid, \
  645                                     gid_t *sgid); }
  646 362     AUE_NULL        MSTD    { int kqueue(void); }
  647 363     AUE_NULL        MSTD    { int kevent(int fd, \
  648                                     struct kevent *changelist, int nchanges, \
  649                                     struct kevent *eventlist, int nevents, \
  650                                     const struct timespec *timeout); }
  651 364     AUE_NULL        UNIMPL  __cap_get_proc
  652 365     AUE_NULL        UNIMPL  __cap_set_proc
  653 366     AUE_NULL        UNIMPL  __cap_get_fd
  654 367     AUE_NULL        UNIMPL  __cap_get_file
  655 368     AUE_NULL        UNIMPL  __cap_set_fd
  656 369     AUE_NULL        UNIMPL  __cap_set_file
  657 370     AUE_NULL        NODEF   lkmressys lkmressys nosys_args int
  658 371     AUE_EXTATTR_SET_FD      MSTD    { int extattr_set_fd(int fd, \
  659                                     int attrnamespace, const char *attrname, \
  660                                     void *data, size_t nbytes); }
  661 372     AUE_EXTATTR_GET_FD      MSTD    { ssize_t extattr_get_fd(int fd, \
  662                                     int attrnamespace, const char *attrname, \
  663                                     void *data, size_t nbytes); }
  664 373     AUE_EXTATTR_DELETE_FD   MSTD    { int extattr_delete_fd(int fd, \
  665                                     int attrnamespace, \
  666                                     const char *attrname); }
  667 374     AUE_NULL        MSTD    { int __setugid(int flag); }
  668 375     AUE_NULL        NOIMPL  { int nfsclnt(int flag, caddr_t argp); }
  669 376     AUE_EACCESS     MSTD    { int eaccess(char *path, int flags); }
  670 377     AUE_NULL        UNIMPL  afs_syscall
  671 378     AUE_NMOUNT      STD     { int nmount(struct iovec *iovp, \
  672                                     unsigned int iovcnt, int flags); }
  673 379     AUE_NULL        MSTD    { int kse_exit(void); }
  674 380     AUE_NULL        MSTD    { int kse_wakeup(struct kse_mailbox *mbx); }
  675 381     AUE_NULL        MSTD    { int kse_create(struct kse_mailbox *mbx, \
  676                                     int newgroup); }
  677 382     AUE_NULL        MSTD    { int kse_thr_interrupt( \
  678                                     struct kse_thr_mailbox *tmbx, int cmd, \
  679                                     long data); }
  680 383     AUE_NULL        MSTD    { int kse_release(struct timespec *timeout); }
  681 384     AUE_NULL        MSTD    { int __mac_get_proc(struct mac *mac_p); }
  682 385     AUE_NULL        MSTD    { int __mac_set_proc(struct mac *mac_p); }
  683 386     AUE_NULL        MSTD    { int __mac_get_fd(int fd, \
  684                                     struct mac *mac_p); }
  685 387     AUE_NULL        MSTD    { int __mac_get_file(const char *path_p, \
  686                                     struct mac *mac_p); }
  687 388     AUE_NULL        MSTD    { int __mac_set_fd(int fd, \
  688                                     struct mac *mac_p); }
  689 389     AUE_NULL        MSTD    { int __mac_set_file(const char *path_p, \
  690                                     struct mac *mac_p); }
  691 390     AUE_NULL        MSTD    { int kenv(int what, const char *name, \
  692                                     char *value, int len); }
  693 391     AUE_LCHFLAGS    MSTD    { int lchflags(const char *path, int flags); }
  694 392     AUE_NULL        MSTD    { int uuidgen(struct uuid *store, \
  695                                     int count); }
  696 393     AUE_SENDFILE    MSTD    { int sendfile(int fd, int s, off_t offset, \
  697                                     size_t nbytes, struct sf_hdtr *hdtr, \
  698                                     off_t *sbytes, int flags); }
  699 394     AUE_NULL        MSTD    { int mac_syscall(const char *policy, \
  700                                     int call, void *arg); }
  701 395     AUE_GETFSSTAT   MSTD    { int getfsstat(struct statfs *buf, \
  702                                     long bufsize, int flags); }
  703 396     AUE_STATFS      MSTD    { int statfs(char *path, \
  704                                     struct statfs *buf); }
  705 397     AUE_FSTATFS     MSTD    { int fstatfs(int fd, struct statfs *buf); }
  706 398     AUE_NULL        MSTD    { int fhstatfs(const struct fhandle *u_fhp, \
  707                                     struct statfs *buf); }
  708 399     AUE_NULL        UNIMPL  nosys
  709 400     AUE_NULL        MNOSTD  { int ksem_close(semid_t id); }
  710 401     AUE_NULL        MNOSTD  { int ksem_post(semid_t id); }
  711 402     AUE_NULL        MNOSTD  { int ksem_wait(semid_t id); }
  712 403     AUE_NULL        MNOSTD  { int ksem_trywait(semid_t id); }
  713 404     AUE_NULL        MNOSTD  { int ksem_init(semid_t *idp, \
  714                                     unsigned int value); }
  715 405     AUE_NULL        MNOSTD  { int ksem_open(semid_t *idp, \
  716                                     const char *name, int oflag, \
  717                                     mode_t mode, unsigned int value); }
  718 406     AUE_NULL        MNOSTD  { int ksem_unlink(const char *name); }
  719 407     AUE_NULL        MNOSTD  { int ksem_getvalue(semid_t id, int *val); }
  720 408     AUE_NULL        MNOSTD  { int ksem_destroy(semid_t id); }
  721 409     AUE_NULL        MSTD    { int __mac_get_pid(pid_t pid, \
  722                                     struct mac *mac_p); }
  723 410     AUE_NULL        MSTD    { int __mac_get_link(const char *path_p, \
  724                                     struct mac *mac_p); }
  725 411     AUE_NULL        MSTD    { int __mac_set_link(const char *path_p, \
  726                                     struct mac *mac_p); }
  727 412     AUE_EXTATTR_SET_LINK    MSTD    { int extattr_set_link( \
  728                                     const char *path, int attrnamespace, \
  729                                     const char *attrname, void *data, \
  730                                     size_t nbytes); }
  731 413     AUE_EXTATTR_GET_LINK    MSTD    { ssize_t extattr_get_link( \
  732                                     const char *path, int attrnamespace, \
  733                                     const char *attrname, void *data, \
  734                                     size_t nbytes); }
  735 414     AUE_EXTATTR_DELETE_LINK MSTD    { int extattr_delete_link( \
  736                                     const char *path, int attrnamespace, \
  737                                     const char *attrname); }
  738 415     AUE_NULL        MSTD    { int __mac_execve(char *fname, char **argv, \
  739                                     char **envv, struct mac *mac_p); }
  740 416     AUE_SIGACTION   MSTD    { int sigaction(int sig, \
  741                                     const struct sigaction *act, \
  742                                     struct sigaction *oact); }
  743 417     AUE_SIGRETURN   MSTD    { int sigreturn( \
  744                                     const struct __ucontext *sigcntxp); }
  745 418     AUE_NULL        UNIMPL  __xstat
  746 419     AUE_NULL        UNIMPL  __xfstat
  747 420     AUE_NULL        UNIMPL  __xlstat
  748 421     AUE_NULL        MSTD    { int getcontext(struct __ucontext *ucp); }
  749 422     AUE_NULL        MSTD    { int setcontext( \
  750                                     const struct __ucontext *ucp); }
  751 423     AUE_NULL        MSTD    { int swapcontext(struct __ucontext *oucp, \
  752                                     const struct __ucontext *ucp); }
  753 424     AUE_SWAPOFF     MSTD    { int swapoff(const char *name); }
  754 425     AUE_NULL        MSTD    { int __acl_get_link(const char *path, \
  755                                     acl_type_t type, struct acl *aclp); }
  756 426     AUE_NULL        MSTD    { int __acl_set_link(const char *path, \
  757                                     acl_type_t type, struct acl *aclp); }
  758 427     AUE_NULL        MSTD    { int __acl_delete_link(const char *path, \
  759                                     acl_type_t type); }
  760 428     AUE_NULL        MSTD    { int __acl_aclcheck_link(const char *path, \
  761                                     acl_type_t type, struct acl *aclp); }
  762 429     AUE_SIGWAIT     MSTD    { int sigwait(const sigset_t *set, \
  763                                     int *sig); }
  764 430     AUE_NULL        MSTD    { int thr_create(ucontext_t *ctx, long *id, \
  765                                     int flags); }
  766 431     AUE_NULL        MSTD    { void thr_exit(long *state); }
  767 432     AUE_NULL        MSTD    { int thr_self(long *id); }
  768 433     AUE_NULL        MSTD    { int thr_kill(long id, int sig); }
  769 434     AUE_NULL        MSTD    { int _umtx_lock(struct umtx *umtx); }
  770 435     AUE_NULL        MSTD    { int _umtx_unlock(struct umtx *umtx); }
  771 436     AUE_NULL        MSTD    { int jail_attach(int jid); }
  772 437     AUE_EXTATTR_LIST_FD     MSTD    { ssize_t extattr_list_fd(int fd, \
  773                                     int attrnamespace, void *data, \
  774                                     size_t nbytes); }
  775 438     AUE_EXTATTR_LIST_FILE   MSTD    { ssize_t extattr_list_file( \
  776                                     const char *path, int attrnamespace, \
  777                                     void *data, size_t nbytes); }
  778 439     AUE_EXTATTR_LIST_LINK   MSTD    { ssize_t extattr_list_link( \
  779                                     const char *path, int attrnamespace, \
  780                                     void *data, size_t nbytes); }
  781 440     AUE_NULL        MSTD    { int kse_switchin( \
  782                                     struct kse_thr_mailbox *tmbx, \
  783                                     int flags); }
  784 441     AUE_NULL        MNOSTD  { int ksem_timedwait(semid_t id, \
  785                                     struct timespec *abstime); }
  786 442     AUE_NULL        MSTD    { int thr_suspend( \
  787                                     const struct timespec *timeout); }
  788 443     AUE_NULL        MSTD    { int thr_wake(long id); }
  789 444     AUE_NULL        MSTD    { int kldunloadf(int fileid, int flags); }
  790 445     AUE_AUDIT       MSTD    { int audit(const void *record, \
  791                                     u_int length); }
  792 446     AUE_AUDITON     MSTD    { int auditon(int cmd, void *data, \
  793                                     u_int length); }
  794 447     AUE_GETAUID     MSTD    { int getauid(uid_t *auid); }
  795 448     AUE_SETAUID     MSTD    { int setauid(uid_t *auid); }
  796 449     AUE_GETAUDIT    MSTD    { int getaudit(struct auditinfo *auditinfo); }
  797 450     AUE_SETAUDIT    MSTD    { int setaudit(struct auditinfo *auditinfo); }
  798 451     AUE_GETAUDIT_ADDR       MSTD    { int getaudit_addr( \
  799                                     struct auditinfo_addr *auditinfo_addr, \
  800                                     u_int length); }
  801 452     AUE_SETAUDIT_ADDR       MSTD    { int setaudit_addr( \
  802                                     struct auditinfo_addr *auditinfo_addr, \
  803                                     u_int length); }
  804 453     AUE_AUDITCTL    MSTD    { int auditctl(char *path); }
  805 454     AUE_NULL        MSTD    { int _umtx_op(struct umtx *umtx, int op, \
  806                                     long id, void *uaddr, void *uaddr2); }
  807 455     AUE_NULL        MSTD    { int thr_new(struct thr_param *param, \
  808                                     int param_size); }
  809 
  810 ; Please copy any additions and changes to the following compatability tables:
  811 ; sys/compat/freebsd32/syscalls.master

Cache object: ac1013c87edfcc3b4af67bace830b122


[ 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.