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

Cache object: ace5a9b87d8f0b7356e0d3cb97a99d3e


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