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