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

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1  $FreeBSD: releng/9.2/sys/compat/freebsd32/syscalls.master 251051 2013-05-28 05:51:00Z kib $
    2 ;       from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
    3 ;       from: src/sys/kern/syscalls.master 1.107
    4 ;
    5 ; System call name/number master file.
    6 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
    7 
    8 ; Columns: number audit type name alt{name,tag,rtyp}/comments
    9 ;       number  system call number, must be in order
   10 ;       audit   the audit event associated with the system call
   11 ;               A value of AUE_NULL means no auditing, but it also means that
   12 ;               there is no audit event for the call at this time. For the
   13 ;               case where the event exists, but we don't want auditing, the
   14 ;               event should be #defined to AUE_NULL in audit_kevents.h.
   15 ;       type    one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
   16 ;               COMPAT7, NODEF, NOARGS, NOPROTO, NOSTD
   17 ;               The COMPAT* options may be combined with one or more NO*
   18 ;               options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
   19 ;       name    psuedo-prototype of syscall routine
   20 ;               If one of the following alts is different, then all appear:
   21 ;       altname name of system call if different
   22 ;       alttag  name of args struct tag if different from [o]`name'"_args"
   23 ;       altrtyp return type if not int (bogus - syscalls always return int)
   24 ;               for UNIMPL/OBSOL, name continues with comments
   25 
   26 ; types:
   27 ;       STD     always included
   28 ;       COMPAT  included on COMPAT #ifdef
   29 ;       COMPAT4 included on COMPAT4 #ifdef (FreeBSD 4 compat)
   30 ;       COMPAT6 included on COMPAT6 #ifdef (FreeBSD 6 compat)
   31 ;       COMPAT7 included on COMPAT7 #ifdef (FreeBSD 7 compat)
   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 lkmressys
   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 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 ; #ifdef's, etc. may be included, and are copied to the output files.
   46 
   47 #include <sys/param.h>
   48 #include <sys/sysent.h>
   49 #include <sys/sysproto.h>
   50 #include <sys/mount.h>
   51 #include <sys/socket.h>
   52 #include <compat/freebsd32/freebsd32.h>
   53 #include <compat/freebsd32/freebsd32_proto.h>
   54 
   55 #if !defined(PAD64_REQUIRED) && defined(__powerpc__)
   56 #define PAD64_REQUIRED
   57 #endif
   58 
   59 ; Reserved/unimplemented system calls in the range 0-150 inclusive
   60 ; are reserved for use in future Berkeley releases.
   61 ; Additional system calls implemented in vendor and other
   62 ; redistributions should be placed in the reserved range at the end
   63 ; of the current calls.
   64 
   65 0       AUE_NULL        NOPROTO { int nosys(void); } syscall nosys_args int
   66 1       AUE_EXIT        NOPROTO { void sys_exit(int rval); } exit \
   67                                     sys_exit_args void
   68 2       AUE_FORK        NOPROTO { int fork(void); }
   69 3       AUE_READ        NOPROTO { ssize_t read(int fd, void *buf, \
   70                                     size_t nbyte); }
   71 4       AUE_WRITE       NOPROTO { ssize_t write(int fd, const void *buf, \
   72                                     size_t nbyte); }
   73 5       AUE_OPEN_RWTC   NOPROTO { int open(char *path, int flags, \
   74                                     int mode); }
   75 6       AUE_CLOSE       NOPROTO { int close(int fd); }
   76 7       AUE_WAIT4       STD     { int freebsd32_wait4(int pid, int *status, \
   77                                     int options, struct rusage32 *rusage); }
   78 8       AUE_CREAT       OBSOL   old creat
   79 9       AUE_LINK        NOPROTO { int link(char *path, char *link); }
   80 10      AUE_UNLINK      NOPROTO { int unlink(char *path); }
   81 11      AUE_NULL        OBSOL   execv
   82 12      AUE_CHDIR       NOPROTO { int chdir(char *path); }
   83 13      AUE_FCHDIR      NOPROTO { int fchdir(int fd); }
   84 14      AUE_MKNOD       NOPROTO { int mknod(char *path, int mode, int dev); }
   85 15      AUE_CHMOD       NOPROTO { int chmod(char *path, int mode); }
   86 16      AUE_CHOWN       NOPROTO { int chown(char *path, int uid, int gid); }
   87 17      AUE_NULL        NOPROTO { int obreak(char *nsize); } break \
   88                                     obreak_args int
   89 18      AUE_GETFSSTAT   COMPAT4 { int freebsd32_getfsstat( \
   90                                     struct statfs32 *buf, long bufsize, \
   91                                     int flags); }
   92 19      AUE_LSEEK       COMPAT  { int freebsd32_lseek(int fd, int offset, \
   93                                     int whence); }
   94 20      AUE_GETPID      NOPROTO { pid_t getpid(void); }
   95 21      AUE_MOUNT       NOPROTO { int mount(char *type, char *path, \
   96                                     int flags, caddr_t data); }
   97 22      AUE_UMOUNT      NOPROTO { int unmount(char *path, int flags); }
   98 23      AUE_SETUID      NOPROTO { int setuid(uid_t uid); }
   99 24      AUE_GETUID      NOPROTO { uid_t getuid(void); }
  100 25      AUE_GETEUID     NOPROTO { uid_t geteuid(void); }
  101 26      AUE_PTRACE      NOPROTO { int ptrace(int req, pid_t pid, \
  102                                     caddr_t addr, int data); }
  103 27      AUE_RECVMSG     STD     { int freebsd32_recvmsg(int s, struct msghdr32 *msg, \
  104                                     int flags); }
  105 28      AUE_SENDMSG     STD     { int freebsd32_sendmsg(int s, struct msghdr32 *msg, \
  106                                     int flags); }
  107 29      AUE_RECVFROM    STD     { int freebsd32_recvfrom(int s, u_int32_t buf, \
  108                                     u_int32_t len, int flags, u_int32_t from, \
  109                                     u_int32_t fromlenaddr); }
  110 30      AUE_ACCEPT      NOPROTO { int accept(int s, caddr_t name, \
  111                                     int *anamelen); }
  112 31      AUE_GETPEERNAME NOPROTO { int getpeername(int fdes, caddr_t asa, \
  113                                     int *alen); }
  114 32      AUE_GETSOCKNAME NOPROTO { int getsockname(int fdes, caddr_t asa, \
  115                                     int *alen); }
  116 33      AUE_ACCESS      NOPROTO { int access(char *path, int flags); }
  117 34      AUE_CHFLAGS     NOPROTO { int chflags(char *path, int flags); }
  118 35      AUE_FCHFLAGS    NOPROTO { int fchflags(int fd, int flags); }
  119 36      AUE_SYNC        NOPROTO { int sync(void); }
  120 37      AUE_KILL        NOPROTO { int kill(int pid, int signum); }
  121 38      AUE_STAT        COMPAT  { int freebsd32_stat(char *path, \
  122                                     struct ostat32 *ub); }
  123 39      AUE_GETPPID     NOPROTO { pid_t getppid(void); }
  124 40      AUE_LSTAT       COMPAT  { int freebsd32_lstat(char *path, \
  125                                     struct ostat *ub); }
  126 41      AUE_DUP         NOPROTO { int dup(u_int fd); }
  127 42      AUE_PIPE        NOPROTO { int pipe(void); }
  128 43      AUE_GETEGID     NOPROTO { gid_t getegid(void); }
  129 44      AUE_PROFILE     NOPROTO { int profil(caddr_t samples, size_t size, \
  130                                     size_t offset, u_int scale); }
  131 45      AUE_KTRACE      NOPROTO { int ktrace(const char *fname, int ops, \
  132                                     int facs, int pid); }
  133 46      AUE_SIGACTION   COMPAT  { int freebsd32_sigaction( int signum, \
  134                                    struct osigaction32 *nsa, \
  135                                    struct osigaction32 *osa); }
  136 47      AUE_GETGID      NOPROTO { gid_t getgid(void); }
  137 48      AUE_SIGPROCMASK COMPAT  { int freebsd32_sigprocmask(int how, \
  138                                    osigset_t mask); }
  139 49      AUE_GETLOGIN    NOPROTO { int getlogin(char *namebuf, \
  140                                     u_int namelen); }
  141 50      AUE_SETLOGIN    NOPROTO { int setlogin(char *namebuf); }
  142 51      AUE_ACCT        NOPROTO { int acct(char *path); }
  143 52      AUE_SIGPENDING  COMPAT  { int freebsd32_sigpending(void); }
  144 53      AUE_SIGALTSTACK STD     { int freebsd32_sigaltstack( \
  145                                     struct sigaltstack32 *ss, \
  146                                     struct sigaltstack32 *oss); }
  147 54      AUE_NULL        STD     { int freebsd32_ioctl(int fd, uint32_t com, \
  148                                     struct md_ioctl32 *data); }
  149 55      AUE_REBOOT      NOPROTO { int reboot(int opt); }
  150 56      AUE_REVOKE      NOPROTO { int revoke(char *path); }
  151 57      AUE_SYMLINK     NOPROTO { int symlink(char *path, char *link); }
  152 58      AUE_READLINK    NOPROTO { ssize_t readlink(char *path, char *buf, \
  153                                     size_t count); }
  154 59      AUE_EXECVE      STD     { int freebsd32_execve(char *fname, \
  155                                     u_int32_t *argv, u_int32_t *envv); }
  156 60      AUE_UMASK       NOPROTO { int umask(int newmask); } umask \
  157                                     umask_args int
  158 61      AUE_CHROOT      NOPROTO { int chroot(char *path); }
  159 62      AUE_FSTAT       COMPAT  { int freebsd32_fstat(int fd, \
  160                                     struct ostat32 *ub); }
  161 63      AUE_NULL        OBSOL   ogetkerninfo
  162 64      AUE_NULL        COMPAT  { int freebsd32_getpagesize( \
  163                                     int32_t dummy); }
  164 65      AUE_MSYNC       NOPROTO { int msync(void *addr, size_t len, \
  165                                     int flags); }
  166 66      AUE_VFORK       NOPROTO { int vfork(void); }
  167 67      AUE_NULL        OBSOL   vread
  168 68      AUE_NULL        OBSOL   vwrite
  169 69      AUE_SBRK        NOPROTO { int sbrk(int incr); }
  170 70      AUE_SSTK        NOPROTO { int sstk(int incr); }
  171 71      AUE_MMAP        COMPAT|NOPROTO  { int mmap(void *addr, int len, \
  172                                     int prot, int flags, int fd, int pos); }
  173 72      AUE_O_VADVISE   NOPROTO { int ovadvise(int anom); } vadvise \
  174                                     ovadvise_args int
  175 73      AUE_MUNMAP      NOPROTO { int munmap(void *addr, size_t len); }
  176 74      AUE_MPROTECT    STD     { int freebsd32_mprotect(const void *addr, \
  177                                     size_t len, int prot); }
  178 75      AUE_MADVISE     NOPROTO { int madvise(void *addr, size_t len, \
  179                                     int behav); }
  180 76      AUE_NULL        OBSOL   vhangup
  181 77      AUE_NULL        OBSOL   vlimit
  182 78      AUE_MINCORE     NOPROTO { int mincore(const void *addr, size_t len, \
  183                                     char *vec); }
  184 79      AUE_GETGROUPS   NOPROTO { int getgroups(u_int gidsetsize, \
  185                                     gid_t *gidset); }
  186 80      AUE_SETGROUPS   NOPROTO { int setgroups(u_int gidsetsize, \
  187                                     gid_t *gidset); }
  188 81      AUE_GETPGRP     NOPROTO { int getpgrp(void); }
  189 82      AUE_SETPGRP     NOPROTO { int setpgid(int pid, int pgid); }
  190 83      AUE_SETITIMER   STD     { int freebsd32_setitimer(u_int which, \
  191                                     struct itimerval32 *itv, \
  192                                     struct itimerval32 *oitv); }
  193 84      AUE_NULL        OBSOL   owait
  194 ; XXX implement
  195 85      AUE_SWAPON      NOPROTO { int swapon(char *name); }
  196 86      AUE_GETITIMER   STD     { int freebsd32_getitimer(u_int which, \
  197                                     struct itimerval32 *itv); }
  198 87      AUE_O_GETHOSTNAME       OBSOL   ogethostname
  199 88      AUE_O_SETHOSTNAME       OBSOL   osethostname
  200 89      AUE_GETDTABLESIZE       NOPROTO { int getdtablesize(void); }
  201 90      AUE_DUP2        NOPROTO { int dup2(u_int from, u_int to); }
  202 91      AUE_NULL        UNIMPL  getdopt
  203 92      AUE_FCNTL       NOPROTO { int fcntl(int fd, int cmd, long arg); }
  204 93      AUE_SELECT      STD     { int freebsd32_select(int nd, fd_set *in, \
  205                                     fd_set *ou, fd_set *ex, \
  206                                     struct timeval32 *tv); }
  207 94      AUE_NULL        UNIMPL  setdopt
  208 95      AUE_FSYNC       NOPROTO { int fsync(int fd); }
  209 96      AUE_SETPRIORITY NOPROTO { int setpriority(int which, int who, \
  210                                     int prio); }
  211 97      AUE_SOCKET      NOPROTO { int socket(int domain, int type, \
  212                                     int protocol); }
  213 98      AUE_CONNECT     NOPROTO { int connect(int s, caddr_t name, \
  214                                     int namelen); }
  215 99      AUE_NULL        OBSOL   oaccept
  216 100     AUE_GETPRIORITY NOPROTO { int getpriority(int which, int who); }
  217 101     AUE_NULL        OBSOL   osend
  218 102     AUE_NULL        OBSOL   orecv
  219 103     AUE_NULL        COMPAT  { int freebsd32_sigreturn( \
  220                                     struct ia32_sigcontext3 *sigcntxp); }
  221 104     AUE_BIND        NOPROTO { int bind(int s, caddr_t name, \
  222                                     int namelen); }
  223 105     AUE_SETSOCKOPT  NOPROTO { int setsockopt(int s, int level, \
  224                                     int name, caddr_t val, int valsize); }
  225 106     AUE_LISTEN      NOPROTO { int listen(int s, int backlog); }
  226 107     AUE_NULL        OBSOL   vtimes
  227 108     AUE_O_SIGVEC    COMPAT  { int freebsd32_sigvec(int signum, \
  228                                      struct sigvec32 *nsv, \
  229                                      struct sigvec32 *osv); }
  230 109     AUE_O_SIGBLOCK  COMPAT  { int freebsd32_sigblock(int mask); }
  231 110     AUE_O_SIGSETMASK        COMPAT  { int freebsd32_sigsetmask( int mask); }
  232 111     AUE_SIGSUSPEND  COMPAT  { int freebsd32_sigsuspend( int mask); }
  233 112     AUE_O_SIGSTACK  COMPAT  { int freebsd32_sigstack( \
  234                                      struct sigstack32 *nss, \
  235                                      struct sigstack32 *oss); }
  236 113     AUE_NULL        OBSOL   orecvmsg
  237 114     AUE_NULL        OBSOL   osendmsg
  238 115     AUE_NULL        OBSOL   vtrace
  239 116     AUE_GETTIMEOFDAY        STD     { int freebsd32_gettimeofday( \
  240                                     struct timeval32 *tp, \
  241                                     struct timezone *tzp); }
  242 117     AUE_GETRUSAGE   STD     { int freebsd32_getrusage(int who, \
  243                                     struct rusage32 *rusage); }
  244 118     AUE_GETSOCKOPT  NOPROTO { int getsockopt(int s, int level, \
  245                                     int name, caddr_t val, int *avalsize); }
  246 119     AUE_NULL        UNIMPL  resuba (BSD/OS 2.x)
  247 120     AUE_READV       STD     { int freebsd32_readv(int fd, \
  248                                     struct iovec32 *iovp, u_int iovcnt); }
  249 121     AUE_WRITEV      STD     { int freebsd32_writev(int fd, \
  250                                     struct iovec32 *iovp, u_int iovcnt); }
  251 122     AUE_SETTIMEOFDAY        STD     { int freebsd32_settimeofday( \
  252                                     struct timeval32 *tv, \
  253                                     struct timezone *tzp); }
  254 123     AUE_FCHOWN      NOPROTO { int fchown(int fd, int uid, int gid); }
  255 124     AUE_FCHMOD      NOPROTO { int fchmod(int fd, int mode); }
  256 125     AUE_RECVFROM    OBSOL   orecvfrom
  257 126     AUE_SETREUID    NOPROTO { int setreuid(int ruid, int euid); }
  258 127     AUE_SETREGID    NOPROTO { int setregid(int rgid, int egid); }
  259 128     AUE_RENAME      NOPROTO { int rename(char *from, char *to); }
  260 129     AUE_TRUNCATE    COMPAT|NOPROTO  { int truncate(char *path, \
  261                                             int length); }
  262 130     AUE_FTRUNCATE   COMPAT|NOPROTO  { int ftruncate(int fd, int length); }
  263 131     AUE_FLOCK       NOPROTO { int flock(int fd, int how); }
  264 132     AUE_MKFIFO      NOPROTO { int mkfifo(char *path, int mode); }
  265 133     AUE_SENDTO      NOPROTO { int sendto(int s, caddr_t buf, \
  266                                     size_t len, int flags, caddr_t to, \
  267                                     int tolen); }
  268 134     AUE_SHUTDOWN    NOPROTO { int shutdown(int s, int how); }
  269 135     AUE_SOCKETPAIR  NOPROTO { int socketpair(int domain, int type, \
  270                                     int protocol, int *rsv); }
  271 136     AUE_MKDIR       NOPROTO { int mkdir(char *path, int mode); }
  272 137     AUE_RMDIR       NOPROTO { int rmdir(char *path); }
  273 138     AUE_UTIMES      STD     { int freebsd32_utimes(char *path, \
  274                                     struct timeval32 *tptr); }
  275 139     AUE_NULL        OBSOL   4.2 sigreturn
  276 140     AUE_ADJTIME     STD     { int freebsd32_adjtime( \
  277                                     struct timeval32 *delta, \
  278                                     struct timeval32 *olddelta); }
  279 141     AUE_GETPEERNAME OBSOL   ogetpeername
  280 142     AUE_SYSCTL      OBSOL   ogethostid
  281 143     AUE_SYSCTL      OBSOL   sethostid
  282 144     AUE_GETRLIMIT   OBSOL   getrlimit
  283 145     AUE_SETRLIMIT   OBSOL   setrlimit
  284 146     AUE_KILLPG      OBSOL   killpg
  285 147     AUE_SETSID      NOPROTO { int setsid(void); }
  286 148     AUE_QUOTACTL    NOPROTO { int quotactl(char *path, int cmd, int uid, \
  287                                     caddr_t arg); }
  288 149     AUE_O_QUOTA     OBSOL oquota
  289 150     AUE_GETSOCKNAME OBSOL ogetsockname
  290 
  291 ; Syscalls 151-180 inclusive are reserved for vendor-specific
  292 ; system calls.  (This includes various calls added for compatibity
  293 ; with other Unix variants.)
  294 ; Some of these calls are now supported by BSD...
  295 151     AUE_NULL        UNIMPL  sem_lock (BSD/OS 2.x)
  296 152     AUE_NULL        UNIMPL  sem_wakeup (BSD/OS 2.x)
  297 153     AUE_NULL        UNIMPL  asyncdaemon (BSD/OS 2.x)
  298 ; 154 is initialised by the NLM code, if present.
  299 154     AUE_NULL        UNIMPL  nlm_syscall
  300 ; 155 is initialized by the NFS code, if present.
  301 ; XXX this is a problem!!!
  302 155     AUE_NFS_SVC     UNIMPL  nfssvc
  303 156     AUE_GETDIRENTRIES COMPAT { int freebsd32_getdirentries(int fd, \
  304                                     char *buf, u_int count, uint32_t *basep); }
  305 157     AUE_STATFS      COMPAT4 { int freebsd32_statfs(char *path, \
  306                                     struct statfs32 *buf); }
  307 158     AUE_FSTATFS     COMPAT4 { int freebsd32_fstatfs(int fd, \
  308                                     struct statfs32 *buf); }
  309 159     AUE_NULL        UNIMPL  nosys
  310 160     AUE_LGETFH      UNIMPL  lgetfh
  311 161     AUE_NFS_GETFH   NOPROTO { int getfh(char *fname, \
  312                                     struct fhandle *fhp); }
  313 162     AUE_NULL        OBSOL   getdomainname
  314 163     AUE_NULL        OBSOL   setdomainname
  315 164     AUE_NULL        OBSOL   uname
  316 165     AUE_SYSARCH     STD     { int freebsd32_sysarch(int op, char *parms); }
  317 166     AUE_RTPRIO      NOPROTO { int rtprio(int function, pid_t pid, \
  318                                     struct rtprio *rtp); }
  319 167     AUE_NULL        UNIMPL  nosys
  320 168     AUE_NULL        UNIMPL  nosys
  321 169     AUE_SEMSYS      NOSTD   { int freebsd32_semsys(int which, int a2, \
  322                                     int a3, int a4, int a5); }
  323 170     AUE_MSGSYS      NOSTD   { int freebsd32_msgsys(int which, int a2, \
  324                                     int a3, int a4, int a5, int a6); }
  325 171     AUE_SHMSYS      NOSTD   { int freebsd32_shmsys(uint32_t which, uint32_t a2, \
  326                                     uint32_t a3, uint32_t a4); }
  327 172     AUE_NULL        UNIMPL  nosys
  328 173     AUE_PREAD       COMPAT6 { ssize_t freebsd32_pread(int fd, void *buf, \
  329                                     size_t nbyte, int pad, \
  330                                     u_int32_t offset1, u_int32_t offset2); }
  331 174     AUE_PWRITE      COMPAT6 { ssize_t freebsd32_pwrite(int fd, \
  332                                     const void *buf, size_t nbyte, int pad, \
  333                                     u_int32_t offset1, u_int32_t offset2); }
  334 175     AUE_NULL        UNIMPL  nosys
  335 176     AUE_NTP_ADJTIME NOPROTO { int ntp_adjtime(struct timex *tp); }
  336 177     AUE_NULL        UNIMPL  sfork (BSD/OS 2.x)
  337 178     AUE_NULL        UNIMPL  getdescriptor (BSD/OS 2.x)
  338 179     AUE_NULL        UNIMPL  setdescriptor (BSD/OS 2.x)
  339 180     AUE_NULL        UNIMPL  nosys
  340 
  341 ; Syscalls 181-199 are used by/reserved for BSD
  342 181     AUE_SETGID      NOPROTO { int setgid(gid_t gid); }
  343 182     AUE_SETEGID     NOPROTO { int setegid(gid_t egid); }
  344 183     AUE_SETEUID     NOPROTO { int seteuid(uid_t euid); }
  345 184     AUE_NULL        UNIMPL  lfs_bmapv
  346 185     AUE_NULL        UNIMPL  lfs_markv
  347 186     AUE_NULL        UNIMPL  lfs_segclean
  348 187     AUE_NULL        UNIMPL  lfs_segwait
  349 188     AUE_STAT        STD     { int freebsd32_stat(char *path, \
  350                                     struct stat32 *ub); }
  351 189     AUE_FSTAT       STD     { int freebsd32_fstat(int fd, \
  352                                     struct stat32 *ub); }
  353 190     AUE_LSTAT       STD     { int freebsd32_lstat(char *path, \
  354                                     struct stat32 *ub); }
  355 191     AUE_PATHCONF    NOPROTO { int pathconf(char *path, int name); }
  356 192     AUE_FPATHCONF   NOPROTO { int fpathconf(int fd, int name); }
  357 193     AUE_NULL        UNIMPL  nosys
  358 194     AUE_GETRLIMIT   NOPROTO { int getrlimit(u_int which, \
  359                                     struct rlimit *rlp); } getrlimit \
  360                                     __getrlimit_args int
  361 195     AUE_SETRLIMIT   NOPROTO { int setrlimit(u_int which, \
  362                                     struct rlimit *rlp); } setrlimit \
  363                                     __setrlimit_args int
  364 196     AUE_GETDIRENTRIES       STD     { int freebsd32_getdirentries(int fd, \
  365                                     char *buf, u_int count, int32_t *basep); }
  366 197     AUE_MMAP        COMPAT6 { caddr_t freebsd32_mmap(caddr_t addr, \
  367                                     size_t len, int prot, int flags, int fd, \
  368                                     int pad, u_int32_t pos1, u_int32_t pos2); }
  369 198     AUE_NULL        NOPROTO { int nosys(void); } __syscall \
  370                                     __syscall_args int
  371 199     AUE_LSEEK       COMPAT6 { off_t freebsd32_lseek(int fd, int pad, \
  372                                     u_int32_t offset1, u_int32_t offset2, \
  373                                     int whence); }
  374 200     AUE_TRUNCATE    COMPAT6 { int freebsd32_truncate(char *path, \
  375                                     int pad, u_int32_t length1, \
  376                                     u_int32_t length2); }
  377 201     AUE_FTRUNCATE   COMPAT6 { int freebsd32_ftruncate(int fd, int pad, \
  378                                     u_int32_t length1, u_int32_t length2); }
  379 202     AUE_SYSCTL      STD     { int freebsd32_sysctl(int *name, \
  380                                     u_int namelen, void *old, \
  381                                     u_int32_t *oldlenp, void *new, \
  382                                     u_int32_t newlen); }
  383 203     AUE_MLOCK       NOPROTO { int mlock(const void *addr, \
  384                                     size_t len); }
  385 204     AUE_MUNLOCK     NOPROTO { int munlock(const void *addr, \
  386                                     size_t len); }
  387 205     AUE_UNDELETE    NOPROTO { int undelete(char *path); }
  388 206     AUE_FUTIMES     STD     { int freebsd32_futimes(int fd, \
  389                                     struct timeval32 *tptr); }
  390 207     AUE_GETPGID     NOPROTO { int getpgid(pid_t pid); }
  391 208     AUE_NULL        UNIMPL  newreboot (NetBSD)
  392 209     AUE_POLL        NOPROTO { int poll(struct pollfd *fds, u_int nfds, \
  393                                     int timeout); }
  394 
  395 ;
  396 ; The following are reserved for loadable syscalls
  397 ;
  398 210     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  399 211     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  400 212     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  401 213     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  402 214     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  403 215     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  404 216     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  405 217     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  406 218     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  407 219     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
  408 
  409 ;
  410 ; The following were introduced with NetBSD/4.4Lite-2
  411 ; They are initialized by their respective modules/sysinits
  412 ; XXX PROBLEM!!
  413 220     AUE_SEMCTL      COMPAT7|NOSTD   { int freebsd32_semctl( \
  414                                     int semid, int semnum, \
  415                                     int cmd, union semun32 *arg); }
  416 221     AUE_SEMGET      NOSTD|NOPROTO   { int semget(key_t key, int nsems, \
  417                                     int semflg); }
  418 222     AUE_SEMOP       NOSTD|NOPROTO   { int semop(int semid, \
  419                                     struct sembuf *sops, u_int nsops); }
  420 223     AUE_NULL        UNIMPL  semconfig
  421 224     AUE_MSGCTL      COMPAT7|NOSTD   { int freebsd32_msgctl( \
  422                                     int msqid, int cmd, \
  423                                     struct msqid_ds32_old *buf); }
  424 225     AUE_MSGGET      NOSTD|NOPROTO   { int msgget(key_t key, int msgflg); }
  425 226     AUE_MSGSND      NOSTD   { int freebsd32_msgsnd(int msqid, void *msgp, \
  426                                     size_t msgsz, int msgflg); }
  427 227     AUE_MSGRCV      NOSTD   { int freebsd32_msgrcv(int msqid, void *msgp, \
  428                                     size_t msgsz, long msgtyp, int msgflg); }
  429 228     AUE_SHMAT       NOSTD|NOPROTO   { int shmat(int shmid, void *shmaddr, \
  430                                     int shmflg); }
  431 229     AUE_SHMCTL      COMPAT7|NOSTD   { int freebsd32_shmctl( \
  432                                     int shmid, int cmd, \
  433                                     struct shmid_ds32_old *buf); }
  434 230     AUE_SHMDT       NOSTD|NOPROTO   { int shmdt(void *shmaddr); }
  435 231     AUE_SHMGET      NOSTD|NOPROTO   { int shmget(key_t key, int size, \
  436                                     int shmflg); }
  437 ;
  438 232     AUE_NULL        STD     { int freebsd32_clock_gettime(clockid_t clock_id, \
  439                                     struct timespec32 *tp); }
  440 233     AUE_CLOCK_SETTIME       STD     { int freebsd32_clock_settime(clockid_t clock_id, \
  441                                     const struct timespec32 *tp); }
  442 234     AUE_NULL        STD     { int freebsd32_clock_getres(clockid_t clock_id, \
  443                                     struct timespec32 *tp); }
  444 235     AUE_NULL        UNIMPL  timer_create
  445 236     AUE_NULL        UNIMPL  timer_delete
  446 237     AUE_NULL        UNIMPL  timer_settime
  447 238     AUE_NULL        UNIMPL  timer_gettime
  448 239     AUE_NULL        UNIMPL  timer_getoverrun
  449 240     AUE_NULL        STD     { int freebsd32_nanosleep( \
  450                                     const struct timespec32 *rqtp, \
  451                                     struct timespec32 *rmtp); }
  452 241     AUE_NULL        UNIMPL  nosys
  453 242     AUE_NULL        UNIMPL  nosys
  454 243     AUE_NULL        UNIMPL  nosys
  455 244     AUE_NULL        UNIMPL  nosys
  456 245     AUE_NULL        UNIMPL  nosys
  457 246     AUE_NULL        UNIMPL  nosys
  458 247     AUE_NULL        UNIMPL  nosys
  459 248     AUE_NULL        UNIMPL  ntp_gettime
  460 249     AUE_NULL        UNIMPL  nosys
  461 ; syscall numbers initially used in OpenBSD
  462 250     AUE_MINHERIT    NOPROTO { int minherit(void *addr, size_t len, \
  463                                     int inherit); }
  464 251     AUE_RFORK       NOPROTO { int rfork(int flags); }
  465 252     AUE_POLL        NOPROTO { int openbsd_poll(struct pollfd *fds, \
  466                                     u_int nfds, int timeout); }
  467 253     AUE_ISSETUGID   NOPROTO { int issetugid(void); }
  468 254     AUE_LCHOWN      NOPROTO { int lchown(char *path, int uid, int gid); }
  469 255     AUE_NULL        NOSTD   { int freebsd32_aio_read( \
  470                                     struct aiocb32 *aiocbp); }
  471 256     AUE_NULL        NOSTD   { int freebsd32_aio_write( \
  472                                     struct aiocb32 *aiocbp); }
  473 257     AUE_NULL        NOSTD   { int freebsd32_lio_listio(int mode, \
  474                                     struct aiocb32 * const *acb_list, \
  475                                     int nent, struct sigevent *sig); }
  476 258     AUE_NULL        UNIMPL  nosys
  477 259     AUE_NULL        UNIMPL  nosys
  478 260     AUE_NULL        UNIMPL  nosys
  479 261     AUE_NULL        UNIMPL  nosys
  480 262     AUE_NULL        UNIMPL  nosys
  481 263     AUE_NULL        UNIMPL  nosys
  482 264     AUE_NULL        UNIMPL  nosys
  483 265     AUE_NULL        UNIMPL  nosys
  484 266     AUE_NULL        UNIMPL  nosys
  485 267     AUE_NULL        UNIMPL  nosys
  486 268     AUE_NULL        UNIMPL  nosys
  487 269     AUE_NULL        UNIMPL  nosys
  488 270     AUE_NULL        UNIMPL  nosys
  489 271     AUE_NULL        UNIMPL  nosys
  490 272     AUE_O_GETDENTS  NOPROTO { int getdents(int fd, char *buf, \
  491                                     size_t count); }
  492 273     AUE_NULL        UNIMPL  nosys
  493 274     AUE_LCHMOD      NOPROTO { int lchmod(char *path, mode_t mode); }
  494 275     AUE_LCHOWN      NOPROTO { int lchown(char *path, uid_t uid, \
  495                                     gid_t gid); } netbsd_lchown \
  496                                     lchown_args int
  497 276     AUE_LUTIMES     STD     { int freebsd32_lutimes(char *path, \
  498                                     struct timeval32 *tptr); }
  499 277     AUE_MSYNC       NOPROTO { int msync(void *addr, size_t len, \
  500                                     int flags); } netbsd_msync msync_args int
  501 278     AUE_STAT        NOPROTO { int nstat(char *path, struct nstat *ub); }
  502 279     AUE_FSTAT       NOPROTO { int nfstat(int fd, struct nstat *sb); }
  503 280     AUE_LSTAT       NOPROTO { int nlstat(char *path, struct nstat *ub); }
  504 281     AUE_NULL        UNIMPL  nosys
  505 282     AUE_NULL        UNIMPL  nosys
  506 283     AUE_NULL        UNIMPL  nosys
  507 284     AUE_NULL        UNIMPL  nosys
  508 285     AUE_NULL        UNIMPL  nosys
  509 286     AUE_NULL        UNIMPL  nosys
  510 287     AUE_NULL        UNIMPL  nosys
  511 288     AUE_NULL        UNIMPL  nosys
  512 ; 289 and 290 from NetBSD (OpenBSD: 267 and 268)
  513 289     AUE_PREADV      STD     { ssize_t freebsd32_preadv(int fd, \
  514                                         struct iovec32 *iovp, \
  515                                         u_int iovcnt, \
  516                                         u_int32_t offset1, u_int32_t offset2); }
  517 290     AUE_PWRITEV     STD     { ssize_t freebsd32_pwritev(int fd, \
  518                                         struct iovec32 *iovp, \
  519                                         u_int iovcnt, \
  520                                         u_int32_t offset1, u_int32_t offset2); }
  521 291     AUE_NULL        UNIMPL  nosys
  522 292     AUE_NULL        UNIMPL  nosys
  523 293     AUE_NULL        UNIMPL  nosys
  524 294     AUE_NULL        UNIMPL  nosys
  525 295     AUE_NULL        UNIMPL  nosys
  526 296     AUE_NULL        UNIMPL  nosys
  527 ; XXX 297 is 300 in NetBSD 
  528 297     AUE_FHSTATFS    COMPAT4 { int freebsd32_fhstatfs( \
  529                                     const struct fhandle *u_fhp, \
  530                                     struct statfs32 *buf); }
  531 298     AUE_FHOPEN      NOPROTO { int fhopen(const struct fhandle *u_fhp, \
  532                                     int flags); }
  533 299     AUE_FHSTAT      NOPROTO { int fhstat(const struct fhandle *u_fhp, \
  534                                     struct stat *sb); }
  535 ; syscall numbers for FreeBSD
  536 300     AUE_NULL        NOPROTO { int modnext(int modid); }
  537 301     AUE_NULL        STD     { int freebsd32_modstat(int modid, \
  538                                     struct module_stat32* stat); }
  539 302     AUE_NULL        NOPROTO { int modfnext(int modid); }
  540 303     AUE_NULL        NOPROTO { int modfind(const char *name); }
  541 304     AUE_MODLOAD     NOPROTO { int kldload(const char *file); }
  542 305     AUE_MODUNLOAD   NOPROTO { int kldunload(int fileid); }
  543 306     AUE_NULL        NOPROTO { int kldfind(const char *file); }
  544 307     AUE_NULL        NOPROTO { int kldnext(int fileid); }
  545 308     AUE_NULL        STD     { int freebsd32_kldstat(int fileid, \
  546                                     struct kld32_file_stat* stat); }
  547 309     AUE_NULL        NOPROTO { int kldfirstmod(int fileid); }
  548 310     AUE_GETSID      NOPROTO { int getsid(pid_t pid); }
  549 311     AUE_SETRESUID   NOPROTO { int setresuid(uid_t ruid, uid_t euid, \
  550                                     uid_t suid); }
  551 312     AUE_SETRESGID   NOPROTO { int setresgid(gid_t rgid, gid_t egid, \
  552                                     gid_t sgid); }
  553 313     AUE_NULL        OBSOL   signanosleep
  554 314     AUE_NULL        NOSTD   { int freebsd32_aio_return( \
  555                                     struct aiocb32 *aiocbp); }
  556 315     AUE_NULL        NOSTD   { int freebsd32_aio_suspend( \
  557                                     struct aiocb32 * const * aiocbp, int nent, \
  558                                     const struct timespec32 *timeout); }
  559 316     AUE_NULL        NOSTD   { int freebsd32_aio_cancel(int fd, \
  560                                     struct aiocb32 *aiocbp); }
  561 317     AUE_NULL        NOSTD   { int freebsd32_aio_error( \
  562                                     struct aiocb32 *aiocbp); }
  563 318     AUE_NULL        NOSTD   { int freebsd32_oaio_read( \
  564                                     struct oaiocb32 *aiocbp); }
  565 319     AUE_NULL        NOSTD   { int freebsd32_oaio_write( \
  566                                     struct oaiocb32 *aiocbp); }
  567 320     AUE_NULL        NOSTD   { int freebsd32_olio_listio(int mode, \
  568                                     struct oaiocb32 * const *acb_list, \
  569                                     int nent, struct osigevent32 *sig); }
  570 321     AUE_NULL        NOPROTO { int yield(void); }
  571 322     AUE_NULL        OBSOL   thr_sleep
  572 323     AUE_NULL        OBSOL   thr_wakeup
  573 324     AUE_MLOCKALL    NOPROTO { int mlockall(int how); }
  574 325     AUE_MUNLOCKALL  NOPROTO { int munlockall(void); }
  575 326     AUE_GETCWD      NOPROTO { int __getcwd(u_char *buf, u_int buflen); }
  576 
  577 327     AUE_NULL        NOPROTO { int sched_setparam (pid_t pid, \
  578                                     const struct sched_param *param); }
  579 328     AUE_NULL        NOPROTO { int sched_getparam (pid_t pid, \
  580                                     struct sched_param *param); }
  581 
  582 329     AUE_NULL        NOPROTO { int sched_setscheduler (pid_t pid, \
  583                                     int policy, \
  584                                     const struct sched_param *param); }
  585 330     AUE_NULL        NOPROTO { int sched_getscheduler (pid_t pid); }
  586 
  587 331     AUE_NULL        NOPROTO { int sched_yield (void); }
  588 332     AUE_NULL        NOPROTO { int sched_get_priority_max (int policy); }
  589 333     AUE_NULL        NOPROTO { int sched_get_priority_min (int policy); }
  590 334     AUE_NULL        NOPROTO { int sched_rr_get_interval (pid_t pid, \
  591                                     struct timespec *interval); }
  592 335     AUE_NULL        NOPROTO { int utrace(const void *addr, size_t len); }
  593 336     AUE_SENDFILE    COMPAT4 { int freebsd32_sendfile(int fd, int s, \
  594                                     u_int32_t offset1, u_int32_t offset2, \
  595                                     size_t nbytes, struct sf_hdtr32 *hdtr, \
  596                                     off_t *sbytes, int flags); }
  597 337     AUE_NULL        NOPROTO { int kldsym(int fileid, int cmd, \
  598                                     void *data); }
  599 338     AUE_JAIL        STD     { int freebsd32_jail(struct jail32 *jail); }
  600 339     AUE_NULL        UNIMPL  pioctl
  601 340     AUE_SIGPROCMASK NOPROTO { int sigprocmask(int how, \
  602                                     const sigset_t *set, sigset_t *oset); }
  603 341     AUE_SIGSUSPEND  NOPROTO { int sigsuspend(const sigset_t *sigmask); }
  604 342     AUE_SIGACTION   COMPAT4 { int freebsd32_sigaction(int sig, \
  605                                     struct sigaction32 *act, \
  606                                     struct sigaction32 *oact); }
  607 343     AUE_SIGPENDING  NOPROTO { int sigpending(sigset_t *set); }
  608 344     AUE_SIGRETURN   COMPAT4 { int freebsd32_sigreturn( \
  609                     const struct freebsd4_freebsd32_ucontext *sigcntxp); }
  610 345     AUE_SIGWAIT     STD     { int freebsd32_sigtimedwait(const sigset_t *set, \
  611                                     siginfo_t *info, \
  612                                     const struct timespec *timeout); }
  613 346     AUE_NULL        STD     { int freebsd32_sigwaitinfo(const sigset_t *set, \
  614                                     siginfo_t *info); }
  615 347     AUE_NULL        NOPROTO { int __acl_get_file(const char *path, \
  616                                     acl_type_t type, struct acl *aclp); }
  617 348     AUE_NULL        NOPROTO { int __acl_set_file(const char *path, \
  618                                     acl_type_t type, struct acl *aclp); }
  619 349     AUE_NULL        NOPROTO { int __acl_get_fd(int filedes, \
  620                                     acl_type_t type, struct acl *aclp); }
  621 350     AUE_NULL        NOPROTO { int __acl_set_fd(int filedes, \
  622                                     acl_type_t type, struct acl *aclp); }
  623 351     AUE_NULL        NOPROTO { int __acl_delete_file(const char *path, \
  624                                     acl_type_t type); }
  625 352     AUE_NULL        NOPROTO { int __acl_delete_fd(int filedes, \
  626                                     acl_type_t type); }
  627 353     AUE_NULL        NOPROTO { int __acl_aclcheck_file(const char *path, \
  628                                     acl_type_t type, struct acl *aclp); }
  629 354     AUE_NULL        NOPROTO { int __acl_aclcheck_fd(int filedes, \
  630                                     acl_type_t type, struct acl *aclp); }
  631 355     AUE_EXTATTRCTL  NOPROTO { int extattrctl(const char *path, int cmd, \
  632                                     const char *filename, int attrnamespace, \
  633                                     const char *attrname); }
  634 356     AUE_EXTATTR_SET_FILE    NOPROTO { int extattr_set_file( \
  635                                     const char *path, int attrnamespace, \
  636                                     const char *attrname, void *data, \
  637                                     size_t nbytes); }
  638 357     AUE_EXTATTR_GET_FILE    NOPROTO { ssize_t extattr_get_file( \
  639                                     const char *path, int attrnamespace, \
  640                                     const char *attrname, void *data, \
  641                                     size_t nbytes); }
  642 358     AUE_EXTATTR_DELETE_FILE NOPROTO { int extattr_delete_file( \
  643                                     const char *path, int attrnamespace, \
  644                                     const char *attrname); }
  645 359     AUE_NULL        NOSTD   { int freebsd32_aio_waitcomplete( \
  646                                     struct aiocb32 **aiocbp, \
  647                                     struct timespec32 *timeout); }
  648 360     AUE_GETRESUID   NOPROTO { int getresuid(uid_t *ruid, uid_t *euid, \
  649                                     uid_t *suid); }
  650 361     AUE_GETRESGID   NOPROTO { int getresgid(gid_t *rgid, gid_t *egid, \
  651                                     gid_t *sgid); }
  652 362     AUE_KQUEUE      NOPROTO { int kqueue(void); }
  653 363     AUE_NULL        STD     { int freebsd32_kevent(int fd, \
  654                                     const struct kevent32 *changelist, \
  655                                     int nchanges, \
  656                                     struct kevent32 *eventlist, int nevents, \
  657                                     const struct timespec32 *timeout); }
  658 364     AUE_NULL        UNIMPL  __cap_get_proc
  659 365     AUE_NULL        UNIMPL  __cap_set_proc
  660 366     AUE_NULL        UNIMPL  __cap_get_fd
  661 367     AUE_NULL        UNIMPL  __cap_get_file
  662 368     AUE_NULL        UNIMPL  __cap_set_fd
  663 369     AUE_NULL        UNIMPL  __cap_set_file
  664 370     AUE_NULL        UNIMPL  nosys
  665 371     AUE_EXTATTR_SET_FD      NOPROTO { int extattr_set_fd(int fd, \
  666                                     int attrnamespace, const char *attrname, \
  667                                     void *data, size_t nbytes); }
  668 372     AUE_EXTATTR_GET_FD      NOPROTO { ssize_t extattr_get_fd(int fd, \
  669                                     int attrnamespace, const char *attrname, \
  670                                     void *data, size_t nbytes); }
  671 373     AUE_EXTATTR_DELETE_FD   NOPROTO { int extattr_delete_fd(int fd, \
  672                                     int attrnamespace, \
  673                                     const char *attrname); }
  674 374     AUE_NULL        NOPROTO { int __setugid(int flag); }
  675 375     AUE_NULL        UNIMPL  nfsclnt
  676 376     AUE_EACCESS     NOPROTO { int eaccess(char *path, int flags); }
  677 377     AUE_NULL        UNIMPL  afs_syscall
  678 378     AUE_NMOUNT      STD     { int freebsd32_nmount(struct iovec32 *iovp, \
  679                                     unsigned int iovcnt, int flags); }
  680 379     AUE_NULL        UNIMPL  kse_exit
  681 380     AUE_NULL        UNIMPL  kse_wakeup
  682 381     AUE_NULL        UNIMPL  kse_create
  683 382     AUE_NULL        UNIMPL  kse_thr_interrupt
  684 383     AUE_NULL        UNIMPL  kse_release
  685 384     AUE_NULL        UNIMPL  __mac_get_proc
  686 385     AUE_NULL        UNIMPL  __mac_set_proc
  687 386     AUE_NULL        UNIMPL  __mac_get_fd
  688 387     AUE_NULL        UNIMPL  __mac_get_file
  689 388     AUE_NULL        UNIMPL  __mac_set_fd
  690 389     AUE_NULL        UNIMPL  __mac_set_file
  691 390     AUE_NULL        NOPROTO { int kenv(int what, const char *name, \
  692                                     char *value, int len); }
  693 391     AUE_LCHFLAGS    NOPROTO { int lchflags(const char *path, int flags); }
  694 392     AUE_NULL        NOPROTO { int uuidgen(struct uuid *store, \
  695                                     int count); }
  696 393     AUE_SENDFILE    STD     { int freebsd32_sendfile(int fd, int s, \
  697                                     u_int32_t offset1, u_int32_t offset2, \
  698                                     size_t nbytes, struct sf_hdtr32 *hdtr, \
  699                                     off_t *sbytes, int flags); }
  700 394     AUE_NULL        UNIMPL  mac_syscall
  701 395     AUE_GETFSSTAT   NOPROTO { int getfsstat(struct statfs *buf, \
  702                                     long bufsize, int flags); }
  703 396     AUE_STATFS      NOPROTO { int statfs(char *path, \
  704                                     struct statfs *buf); }
  705 397     AUE_FSTATFS     NOPROTO { int fstatfs(int fd, struct statfs *buf); }
  706 398     AUE_FHSTATFS    NOPROTO { int fhstatfs(const struct fhandle *u_fhp, \
  707                                     struct statfs *buf); }
  708 399     AUE_NULL        UNIMPL  nosys
  709 400     AUE_NULL        NOSTD|NOPROTO   { int ksem_close(semid_t id); }
  710 401     AUE_NULL        NOSTD|NOPROTO   { int ksem_post(semid_t id); }
  711 402     AUE_NULL        NOSTD|NOPROTO   { int ksem_wait(semid_t id); }
  712 403     AUE_NULL        NOSTD|NOPROTO   { int ksem_trywait(semid_t id); }
  713 404     AUE_NULL        NOSTD   { int freebsd32_ksem_init(semid_t *idp, \
  714                                     unsigned int value); }
  715 405     AUE_NULL        NOSTD   { int freebsd32_ksem_open(semid_t *idp, \
  716                                     const char *name, int oflag, \
  717                                     mode_t mode, unsigned int value); }
  718 406     AUE_NULL        NOSTD|NOPROTO   { int ksem_unlink(const char *name); }
  719 407     AUE_NULL        NOSTD|NOPROTO   { int ksem_getvalue(semid_t id, \
  720                                     int *val); }
  721 408     AUE_NULL        NOSTD|NOPROTO   { int ksem_destroy(semid_t id); }
  722 409     AUE_NULL        UNIMPL  __mac_get_pid
  723 410     AUE_NULL        UNIMPL  __mac_get_link
  724 411     AUE_NULL        UNIMPL  __mac_set_link
  725 412     AUE_EXTATTR_SET_LINK    NOPROTO { int extattr_set_link( \
  726                                     const char *path, int attrnamespace, \
  727                                     const char *attrname, void *data, \
  728                                     size_t nbytes); }
  729 413     AUE_EXTATTR_GET_LINK    NOPROTO { ssize_t extattr_get_link( \
  730                                     const char *path, int attrnamespace, \
  731                                     const char *attrname, void *data, \
  732                                     size_t nbytes); }
  733 414     AUE_EXTATTR_DELETE_LINK NOPROTO { int extattr_delete_link( \
  734                                     const char *path, int attrnamespace, \
  735                                     const char *attrname); }
  736 415     AUE_NULL        UNIMPL  __mac_execve
  737 416     AUE_SIGACTION   STD     { int freebsd32_sigaction(int sig, \
  738                                     struct sigaction32 *act, \
  739                                     struct sigaction32 *oact); }
  740 417     AUE_SIGRETURN   STD     { int freebsd32_sigreturn( \
  741                     const struct freebsd32_ucontext *sigcntxp); }
  742 418     AUE_NULL        UNIMPL  __xstat
  743 419     AUE_NULL        UNIMPL  __xfstat
  744 420     AUE_NULL        UNIMPL  __xlstat
  745 421     AUE_NULL        STD     { int freebsd32_getcontext( \
  746                                     struct freebsd32_ucontext *ucp); }
  747 422     AUE_NULL        STD     { int freebsd32_setcontext( \
  748                                     const struct freebsd32_ucontext *ucp); }
  749 423     AUE_NULL        STD     { int freebsd32_swapcontext( \
  750                                     struct freebsd32_ucontext *oucp, \
  751                                     const struct freebsd32_ucontext *ucp); }
  752 424     AUE_SWAPOFF     UNIMPL  swapoff
  753 425     AUE_NULL        NOPROTO { int __acl_get_link(const char *path, \
  754                                     acl_type_t type, struct acl *aclp); }
  755 426     AUE_NULL        NOPROTO { int __acl_set_link(const char *path, \
  756                                     acl_type_t type, struct acl *aclp); }
  757 427     AUE_NULL        NOPROTO { int __acl_delete_link(const char *path, \
  758                                     acl_type_t type); }
  759 428     AUE_NULL        NOPROTO { int __acl_aclcheck_link(const char *path, \
  760                                     acl_type_t type, struct acl *aclp); }
  761 429     AUE_SIGWAIT     NOPROTO { int sigwait(const sigset_t *set, \
  762                                     int *sig); }
  763 430     AUE_NULL        UNIMPL  thr_create;
  764 431     AUE_NULL        NOPROTO { void thr_exit(long *state); }
  765 432     AUE_NULL        NOPROTO { int thr_self(long *id); }
  766 433     AUE_NULL        NOPROTO { int thr_kill(long id, int sig); }
  767 434     AUE_NULL        STD     { int freebsd32_umtx_lock(struct umtx *umtx); }
  768 435     AUE_NULL        STD     { int freebsd32_umtx_unlock(struct umtx *umtx); }
  769 436     AUE_NULL        NOPROTO { int jail_attach(int jid); }
  770 437     AUE_EXTATTR_LIST_FD     NOPROTO { ssize_t extattr_list_fd(int fd, \
  771                                     int attrnamespace, void *data, \
  772                                     size_t nbytes); }
  773 438     AUE_EXTATTR_LIST_FILE   NOPROTO { ssize_t extattr_list_file( \
  774                                     const char *path, int attrnamespace, \
  775                                     void *data, size_t nbytes); }
  776 439     AUE_EXTATTR_LIST_LINK   NOPROTO { ssize_t extattr_list_link( \
  777                                     const char *path, int attrnamespace, \
  778                                     void *data, size_t nbytes); }
  779 440     AUE_NULL        UNIMPL  kse_switchin
  780 441     AUE_NULL        NOSTD   { int freebsd32_ksem_timedwait(semid_t id, \
  781                                     const struct timespec32 *abstime); }
  782 442     AUE_NULL        STD     { int freebsd32_thr_suspend( \
  783                                     const struct timespec32 *timeout); }
  784 443     AUE_NULL        NOPROTO { int thr_wake(long id); }
  785 444     AUE_MODUNLOAD   NOPROTO { int kldunloadf(int fileid, int flags); }
  786 445     AUE_AUDIT       NOPROTO { int audit(const void *record, \
  787                                     u_int length); }
  788 446     AUE_AUDITON     NOPROTO { int auditon(int cmd, void *data, \
  789                                     u_int length); }
  790 447     AUE_GETAUID     NOPROTO { int getauid(uid_t *auid); }
  791 448     AUE_SETAUID     NOPROTO { int setauid(uid_t *auid); }
  792 449     AUE_GETAUDIT    NOPROTO { int getaudit(struct auditinfo *auditinfo); }
  793 450     AUE_SETAUDIT    NOPROTO { int setaudit(struct auditinfo *auditinfo); }
  794 451     AUE_GETAUDIT_ADDR       NOPROTO { int getaudit_addr( \
  795                                     struct auditinfo_addr *auditinfo_addr, \
  796                                     u_int length); }
  797 452     AUE_SETAUDIT_ADDR       NOPROTO { int setaudit_addr( \
  798                                     struct auditinfo_addr *auditinfo_addr, \
  799                                     u_int length); }
  800 453     AUE_AUDITCTL    NOPROTO { int auditctl(char *path); }
  801 454     AUE_NULL        STD     { int freebsd32_umtx_op(void *obj, int op,\
  802                                     u_long val, void *uaddr, \
  803                                     void *uaddr2); }
  804 455     AUE_NULL        STD     { int freebsd32_thr_new(        \
  805                                     struct thr_param32 *param,  \
  806                                     int param_size); }
  807 456     AUE_NULL        NOPROTO { int sigqueue(pid_t pid, int signum, \
  808                                     void *value); }
  809 457     AUE_NULL        NOSTD   { int freebsd32_kmq_open( \
  810                                     const char *path, int flags, mode_t mode, \
  811                                     const struct mq_attr32 *attr); }
  812 458     AUE_NULL        NOSTD   { int freebsd32_kmq_setattr(int mqd, \
  813                                     const struct mq_attr32 *attr,       \
  814                                     struct mq_attr32 *oattr); }
  815 459     AUE_NULL        NOSTD   { int freebsd32_kmq_timedreceive(int mqd, \
  816                                     char *msg_ptr, size_t msg_len,      \
  817                                     unsigned *msg_prio,                 \
  818                                     const struct timespec32 *abs_timeout); }
  819 460     AUE_NULL        NOSTD   { int freebsd32_kmq_timedsend(int mqd,  \
  820                                     const char *msg_ptr, size_t msg_len,\
  821                                     unsigned msg_prio,                  \
  822                                     const struct timespec32 *abs_timeout);}
  823 461     AUE_NULL        NOPROTO|NOSTD   { int kmq_notify(int mqd,       \
  824                                     const struct sigevent *sigev); }
  825 462     AUE_NULL        NOPROTO|NOSTD   { int kmq_unlink(const char *path); }
  826 463     AUE_NULL        NOPROTO { int abort2(const char *why, int nargs, void **args); }
  827 464     AUE_NULL        NOPROTO { int thr_set_name(long id, const char *name); }
  828 465     AUE_NULL        NOSTD   { int freebsd32_aio_fsync(int op, \
  829                                     struct aiocb32 *aiocbp); }
  830 466     AUE_RTPRIO      NOPROTO { int rtprio_thread(int function, \
  831                                     lwpid_t lwpid, struct rtprio *rtp); }
  832 467     AUE_NULL        UNIMPL  nosys
  833 468     AUE_NULL        UNIMPL  nosys
  834 469     AUE_NULL        UNIMPL  __getpath_fromfd
  835 470     AUE_NULL        UNIMPL  __getpath_fromaddr
  836 471     AUE_NULL        NOPROTO { int sctp_peeloff(int sd, uint32_t name); }
  837 472     AUE_NULL        NOPROTO { int sctp_generic_sendmsg(int sd, caddr_t msg, int mlen, \
  838                                     caddr_t to, __socklen_t tolen, \
  839                                     struct sctp_sndrcvinfo *sinfo, int flags); }
  840 473     AUE_NULL        NOPROTO { int sctp_generic_sendmsg_iov(int sd, struct iovec *iov, int iovlen, \
  841                                     caddr_t to, __socklen_t tolen, \
  842                                     struct sctp_sndrcvinfo *sinfo, int flags); }
  843 474     AUE_NULL        NOPROTO { int sctp_generic_recvmsg(int sd, struct iovec *iov, int iovlen, \
  844                                     struct sockaddr * from, __socklen_t *fromlenaddr, \
  845                                     struct sctp_sndrcvinfo *sinfo, int *msg_flags); }
  846 #ifdef PAD64_REQUIRED
  847 475     AUE_PREAD       STD     { ssize_t freebsd32_pread(int fd, \
  848                                     void *buf,size_t nbyte, \
  849                                     int pad, \
  850                                     u_int32_t offset1, u_int32_t offset2); }
  851 476     AUE_PWRITE      STD     { ssize_t freebsd32_pwrite(int fd, \
  852                                     const void *buf, size_t nbyte, \
  853                                     int pad, \
  854                                     u_int32_t offset1, u_int32_t offset2); }
  855 477     AUE_MMAP        STD     { caddr_t freebsd32_mmap(caddr_t addr, \
  856                                     size_t len, int prot, int flags, int fd, \
  857                                     int pad, \
  858                                     u_int32_t pos1, u_int32_t pos2); }
  859 478     AUE_LSEEK       STD     { off_t freebsd32_lseek(int fd, \
  860                                     int pad, \
  861                                     u_int32_t offset1, u_int32_t offset2, \
  862                                     int whence); }
  863 479     AUE_TRUNCATE    STD     { int freebsd32_truncate(char *path, \
  864                                     int pad, \
  865                                     u_int32_t length1, u_int32_t length2); }
  866 480     AUE_FTRUNCATE   STD     { int freebsd32_ftruncate(int fd, \
  867                                     int pad, \
  868                                     u_int32_t length1, u_int32_t length2); }
  869 #else
  870 475     AUE_PREAD       STD     { ssize_t freebsd32_pread(int fd, \
  871                                     void *buf,size_t nbyte, \
  872                                     u_int32_t offset1, u_int32_t offset2); }
  873 476     AUE_PWRITE      STD     { ssize_t freebsd32_pwrite(int fd, \
  874                                     const void *buf, size_t nbyte, \
  875                                     u_int32_t offset1, u_int32_t offset2); }
  876 477     AUE_MMAP        STD     { caddr_t freebsd32_mmap(caddr_t addr, \
  877                                     size_t len, int prot, int flags, int fd, \
  878                                     u_int32_t pos1, u_int32_t pos2); }
  879 478     AUE_LSEEK       STD     { off_t freebsd32_lseek(int fd, \
  880                                     u_int32_t offset1, u_int32_t offset2, \
  881                                     int whence); }
  882 479     AUE_TRUNCATE    STD     { int freebsd32_truncate(char *path, \
  883                                     u_int32_t length1, u_int32_t length2); }
  884 480     AUE_FTRUNCATE   STD     { int freebsd32_ftruncate(int fd, \
  885                                     u_int32_t length1, u_int32_t length2); }
  886 #endif
  887 481     AUE_KILL        NOPROTO { int thr_kill2(pid_t pid, long id, int sig); }
  888 482     AUE_SHMOPEN     NOPROTO { int shm_open(const char *path, int flags, \
  889                                     mode_t mode); }
  890 483     AUE_SHMUNLINK   NOPROTO { int shm_unlink(const char *path); }
  891 484     AUE_NULL        NOPROTO { int cpuset(cpusetid_t *setid); }
  892 #ifdef PAD64_REQUIRED
  893 485     AUE_NULL        STD     { int freebsd32_cpuset_setid(cpuwhich_t which, \
  894                                     int pad, \
  895                                     u_int32_t id1, u_int32_t id2, \
  896                                     cpusetid_t setid); }
  897 #else
  898 485     AUE_NULL        STD     { int freebsd32_cpuset_setid(cpuwhich_t which, \
  899                                     u_int32_t id1, u_int32_t id2, \
  900                                     cpusetid_t setid); }
  901 #endif
  902 486     AUE_NULL        STD     { int freebsd32_cpuset_getid(cpulevel_t level, \
  903                                     cpuwhich_t which, \
  904                                     u_int32_t id1, u_int32_t id2, \
  905                                     cpusetid_t *setid); }
  906 487     AUE_NULL        STD     { int freebsd32_cpuset_getaffinity( \
  907                                     cpulevel_t level, cpuwhich_t which, \
  908                                     u_int32_t id1, u_int32_t id2, \
  909                                     size_t cpusetsize, \
  910                                     cpuset_t *mask); }
  911 488     AUE_NULL        STD     { int freebsd32_cpuset_setaffinity( \
  912                                     cpulevel_t level, cpuwhich_t which, \
  913                                     u_int32_t id1, u_int32_t id2, \
  914                                     size_t cpusetsize, \
  915                                     const cpuset_t *mask); }
  916 489     AUE_FACCESSAT   NOPROTO { int faccessat(int fd, char *path, int mode, \
  917                                     int flag); }
  918 490     AUE_FCHMODAT    NOPROTO { int fchmodat(int fd, const char *path, \
  919                                     mode_t mode, int flag); }
  920 491     AUE_FCHOWNAT    NOPROTO { int fchownat(int fd, char *path, uid_t uid, \
  921                                     gid_t gid, int flag); }
  922 492     AUE_FEXECVE     STD     { int freebsd32_fexecve(int fd, \
  923                                     u_int32_t *argv, u_int32_t *envv); }
  924 493     AUE_FSTATAT     STD     { int freebsd32_fstatat(int fd, char *path, \
  925                                     struct stat *buf, int flag); }
  926 494     AUE_FUTIMESAT   STD     { int freebsd32_futimesat(int fd, char *path, \
  927                                     struct timeval *times); }
  928 495     AUE_LINKAT      NOPROTO { int linkat(int fd1, char *path1, int fd2, \
  929                                     char *path2, int flag); }
  930 496     AUE_MKDIRAT     NOPROTO { int mkdirat(int fd, char *path, \
  931                                     mode_t mode); }
  932 497     AUE_MKFIFOAT    NOPROTO { int mkfifoat(int fd, char *path, \
  933                                     mode_t mode); }
  934 498     AUE_MKNODAT     NOPROTO { int mknodat(int fd, char *path, \
  935                                     mode_t mode, dev_t dev); }
  936 499     AUE_OPENAT_RWTC NOPROTO { int openat(int fd, char *path, int flag, \
  937                                     mode_t mode); }
  938 500     AUE_READLINKAT  NOPROTO { int readlinkat(int fd, char *path, char *buf, \
  939                                     size_t bufsize); }
  940 501     AUE_RENAMEAT    NOPROTO { int renameat(int oldfd, char *old, int newfd, \
  941                                     const char *new); }
  942 502     AUE_SYMLINKAT   NOPROTO { int symlinkat(char *path1, int fd, \
  943                                     char *path2); }
  944 503     AUE_UNLINKAT    NOPROTO { int unlinkat(int fd, char *path, \
  945                                     int flag); }
  946 504     AUE_POSIX_OPENPT        NOPROTO { int posix_openpt(int flags); }
  947 ; 505 is initialised by the kgssapi code, if present.
  948 505     AUE_NULL        UNIMPL  gssd_syscall
  949 506     AUE_NULL        STD     { int freebsd32_jail_get(struct iovec32 *iovp, \
  950                                     unsigned int iovcnt, int flags); }
  951 507     AUE_NULL        STD     { int freebsd32_jail_set(struct iovec32 *iovp, \
  952                                     unsigned int iovcnt, int flags); }
  953 508     AUE_NULL        NOPROTO { int jail_remove(int jid); }
  954 509     AUE_CLOSEFROM   NOPROTO { int closefrom(int lowfd); }
  955 510     AUE_SEMCTL      NOSTD { int freebsd32_semctl(int semid, int semnum, \
  956                                     int cmd, union semun32 *arg); }
  957 511     AUE_MSGCTL      NOSTD   { int freebsd32_msgctl(int msqid, int cmd, \
  958                                     struct msqid_ds32 *buf); }
  959 512     AUE_SHMCTL      NOSTD   { int freebsd32_shmctl(int shmid, int cmd, \
  960                                     struct shmid_ds32 *buf); }
  961 513     AUE_LPATHCONF   NOPROTO { int lpathconf(char *path, int name); }
  962 514     AUE_CAP_NEW     NOPROTO { int cap_new(int fd, u_int64_t rights); }
  963 515     AUE_CAP_GETRIGHTS       NOPROTO { int cap_getrights(int fd, \
  964                                     u_int64_t *rightsp); }
  965 516     AUE_CAP_ENTER   NOPROTO { int cap_enter(void); }
  966 517     AUE_CAP_GETMODE NOPROTO { int cap_getmode(u_int *modep); }
  967 518     AUE_PDFORK      UNIMPL  pdfork
  968 519     AUE_PDKILL      UNIMPL  pdkill
  969 520     AUE_PDGETPID    UNIMPL  pdgetpid
  970 521     AUE_PDWAIT      UNIMPL  pdwait
  971 522     AUE_SELECT      STD     { int freebsd32_pselect(int nd, fd_set *in, \
  972                                     fd_set *ou, fd_set *ex, \
  973                                     const struct timespec32 *ts, \
  974                                     const sigset_t *sm); }
  975 523     AUE_NULL        NOPROTO { int getloginclass(char *namebuf, \
  976                                     size_t namelen); }
  977 524     AUE_NULL        NOPROTO { int setloginclass(const char *namebuf); }
  978 525     AUE_NULL        NOPROTO { int rctl_get_racct(const void *inbufp, \
  979                                     size_t inbuflen, void *outbufp, \
  980                                     size_t outbuflen); }
  981 526     AUE_NULL        NOPROTO { int rctl_get_rules(const void *inbufp, \
  982                                     size_t inbuflen, void *outbufp, \
  983                                     size_t outbuflen); }
  984 527     AUE_NULL        NOPROTO { int rctl_get_limits(const void *inbufp, \
  985                                     size_t inbuflen, void *outbufp, \
  986                                     size_t outbuflen); }
  987 528     AUE_NULL        NOPROTO { int rctl_add_rule(const void *inbufp, \
  988                                     size_t inbuflen, void *outbufp, \
  989                                     size_t outbuflen); }
  990 529     AUE_NULL        NOPROTO { int rctl_remove_rule(const void *inbufp, \
  991                                     size_t inbuflen, void *outbufp, \
  992                                     size_t outbuflen); }
  993 #ifdef PAD64_REQUIRED
  994 530     AUE_NULL        STD     { int freebsd32_posix_fallocate(int fd, \
  995                                     int pad, \
  996                                     uint32_t offset1, uint32_t offset2,\
  997                                     uint32_t len1, uint32_t len2); }
  998 531     AUE_NULL        STD     { int freebsd32_posix_fadvise(int fd, \
  999                                     int pad, \
 1000                                     uint32_t offset1, uint32_t offset2,\
 1001                                     uint32_t len1, uint32_t len2, \
 1002                                     int advice); }
 1003 532     AUE_WAIT6       STD     { int freebsd32_wait6(int idtype, int pad, \
 1004                                     uint32_t id1, uint32_t id2, \
 1005                                     int *status, int options, \
 1006                                     struct wrusage32 *wrusage, \
 1007                                     siginfo_t *info); }
 1008 #else
 1009 530     AUE_NULL        STD     { int freebsd32_posix_fallocate(int fd,\
 1010                                     uint32_t offset1, uint32_t offset2,\
 1011                                     uint32_t len1, uint32_t len2); }
 1012 531     AUE_NULL        STD     { int freebsd32_posix_fadvise(int fd, \
 1013                                     uint32_t offset1, uint32_t offset2,\
 1014                                     uint32_t len1, uint32_t len2, \
 1015                                     int advice); }
 1016 532     AUE_WAIT6       STD     { int freebsd32_wait6(int idtype, \
 1017                                     uint32_t id1, uint32_t id2, \
 1018                                     int *status, int options, \
 1019                                     struct wrusage32 *wrusage, \
 1020                                     siginfo_t *info); }
 1021 #endif

Cache object: ad824e95da5cc7364aa384b04a87c320


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