]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/kern/syscalls.master
Remove __restrict qualifiers from syscalls.master.
[FreeBSD/FreeBSD.git] / sys / kern / syscalls.master
1  $FreeBSD$
2 ;       from: @(#)syscalls.master       8.2 (Berkeley) 1/13/94
3 ;
4 ; System call name/number master file.
5 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
6
7 ; Columns: number audit type name alt{name,tag,rtyp}/comments
8 ;       number  system call number, must be in order
9 ;       audit   the audit event associated with the system call
10 ;               A value of AUE_NULL means no auditing, but it also means that
11 ;               there is no audit event for the call at this time. For the
12 ;               case where the event exists, but we don't want auditing, the
13 ;               event should be #defined to AUE_NULL in audit_kevents.h.
14 ;       type    one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6,
15 ;               COMPAT7, COMPAT11, NODEF, NOARGS, NOPROTO, NOSTD
16 ;               The COMPAT* options may be combined with one or more NO*
17 ;               options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
18 ;       name    pseudo-prototype of syscall routine
19 ;               If one of the following alts is different, then all appear:
20 ;       altname name of system call if different
21 ;       alttag  name of args struct tag if different from [o]`name'"_args"
22 ;       altrtyp return type if not int (bogus - syscalls always return int)
23 ;               for UNIMPL/OBSOL, name continues with comments
24
25 ; types:
26 ;       STD     always included
27 ;       COMPAT  included on COMPAT #ifdef
28 ;       COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
29 ;       COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
30 ;       COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
31 ;       COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
32 ;       COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat)
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 ;       NOTSTATIC syscall is loadable
46
47 ; annotations:
48 ;       SAL 2.0 annotations are used to specify how system calls treat
49 ;       arguments that are passed using pointers. There are three basic
50 ;       annotations.
51 ;
52 ;       _In_    Object pointed to will be read and not modified.
53 ;       _Out_   Object pointed to will be written and not read.
54 ;       _Inout_ Object pointed to will be written and read.
55 ;
56 ;       These annotations are used alone when the pointer refers to a single
57 ;       object i.e. scalar types, structs, and pointers, and not NULL. Adding
58 ;       the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
59 ;       refer to NULL.
60 ;
61 ;       For pointers to arrays, additional suffixes are added:
62 ;
63 ;       _In_z_, _Out_z_, _Inout_z_:
64 ;           for a NUL terminated array e.g. a string.
65 ;       _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
66 ;           for a NUL terminated array e.g. a string, of known length n bytes.
67 ;       _In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
68 ;           for an array of n elements.
69 ;       _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
70 ;           for a buffer of n-bytes.
71
72 ; Please copy any additions and changes to the following compatability tables:
73 ; sys/compat/freebsd32/syscalls.master
74
75 ; #ifdef's, etc. may be included, and are copied to the output files.
76
77 #include <sys/param.h>
78 #include <sys/sysent.h>
79 #include <sys/sysproto.h>
80
81 ; Reserved/unimplemented system calls in the range 0-150 inclusive
82 ; are reserved for use in future Berkeley releases.
83 ; Additional system calls implemented in vendor and other
84 ; redistributions should be placed in the reserved range at the end
85 ; of the current calls.
86
87 0       AUE_NULL        STD     { int nosys(void); } syscall nosys_args int
88 1       AUE_EXIT        STD     { void sys_exit(int rval); } exit \
89                                     sys_exit_args void
90 2       AUE_FORK        STD     { int fork(void); }
91 3       AUE_READ        STD     { ssize_t read(int fd, \
92                                     _Out_writes_bytes_(nbyte) void *buf, \
93                                     size_t nbyte); }
94 4       AUE_WRITE       STD     { ssize_t write(int fd, \
95                                     _In_reads_bytes_(nbyte) const void *buf, \
96                                     size_t nbyte); }
97 5       AUE_OPEN_RWTC   STD     { int open( \
98                                     _In_z_ char *path, \
99                                     int flags, \
100                                     int mode); }
101 ; XXX should be         { int open(const char *path, int flags, ...); }
102 ; but we're not ready for `const' or varargs.
103 ; XXX man page says `mode_t mode'.
104 6       AUE_CLOSE       STD     { int close(int fd); }
105 7       AUE_WAIT4       STD     { int wait4(int pid, \
106                                     _Out_opt_ int *status, \
107                                     int options, \
108                                     _Out_opt_ struct rusage *rusage); }
109 8       AUE_CREAT       COMPAT  { int creat(_In_z_ char *path, int mode); }
110 9       AUE_LINK        STD     { int link(_In_z_ char *path, \
111                                     _In_z_ char *link); }
112 10      AUE_UNLINK      STD     { int unlink(_In_z_ char *path); }
113 11      AUE_NULL        OBSOL   execv
114 12      AUE_CHDIR       STD     { int chdir(_In_z_ char *path); }
115 13      AUE_FCHDIR      STD     { int fchdir(int fd); }
116 14      AUE_MKNOD       COMPAT11 { int mknod(_In_z_ char *path, int mode, \
117                                     int dev); }
118 15      AUE_CHMOD       STD     { int chmod(_In_z_ char *path, int mode); }
119 16      AUE_CHOWN       STD     { int chown(_In_z_ char *path, \
120                                     int uid, int gid); }
121 17      AUE_NULL        STD     { caddr_t break(_In_ char *nsize); }
122 18      AUE_GETFSSTAT   COMPAT4 { int getfsstat( \
123                                     _Out_writes_bytes_opt_(bufsize) \
124                                     struct ostatfs *buf, \
125                                     long bufsize, int mode); }
126 19      AUE_LSEEK       COMPAT  { long lseek(int fd, long offset, \
127                                     int whence); }
128 20      AUE_GETPID      STD     { pid_t getpid(void); }
129 21      AUE_MOUNT       STD     { int mount(_In_z_ char *type, \
130                                     _In_z_ char *path, int flags, \
131                                     _In_opt_ caddr_t data); }
132 ; XXX `path' should have type `const char *' but we're not ready for that.
133 22      AUE_UMOUNT      STD     { int unmount(_In_z_ char *path, int flags); }
134 23      AUE_SETUID      STD     { int setuid(uid_t uid); }
135 24      AUE_GETUID      STD     { uid_t getuid(void); }
136 25      AUE_GETEUID     STD     { uid_t geteuid(void); }
137 26      AUE_PTRACE      STD     { int ptrace(int req, pid_t pid, \
138                                     _Inout_opt_ caddr_t addr, int data); }
139 27      AUE_RECVMSG     STD     { int recvmsg(int s, \
140                                     _Inout_ struct msghdr *msg, int flags); }
141 28      AUE_SENDMSG     STD     { int sendmsg(int s, _In_ struct msghdr *msg, \
142                                     int flags); }
143 29      AUE_RECVFROM    STD     { int recvfrom(int s, \
144                                     _Out_writes_bytes_(len) caddr_t buf, \
145                                     size_t len, int flags, \
146                                     _Out_writes_bytes_opt_(*fromlenaddr) \
147                                     struct sockaddr *from, \
148                                     _Inout_opt_ \
149                                     __socklen_t *fromlenaddr); }
150 30      AUE_ACCEPT      STD     { int accept(int s, \
151                                     _Out_writes_bytes_opt_(*anamelen) \
152                                     struct sockaddr *name, \
153                                     _Inout_opt_ \
154                                     __socklen_t *anamelen); }
155 31      AUE_GETPEERNAME STD     { int getpeername(int fdes, \
156                                     _Out_writes_bytes_(*alen) \
157                                     struct sockaddr *asa, \
158                                     _Inout_opt_ \
159                                     __socklen_t *alen); }
160 32      AUE_GETSOCKNAME STD     { int getsockname(int fdes, \
161                                     _Out_writes_bytes_(*alen) \
162                                     struct sockaddr *asa, \
163                                     _Inout_ __socklen_t *alen); }
164 33      AUE_ACCESS      STD     { int access(_In_z_ char *path, int amode); }
165 34      AUE_CHFLAGS     STD     { int chflags(_In_z_ const char *path, \
166                                     u_long flags); }
167 35      AUE_FCHFLAGS    STD     { int fchflags(int fd, u_long flags); }
168 36      AUE_SYNC        STD     { int sync(void); }
169 37      AUE_KILL        STD     { int kill(int pid, int signum); }
170 38      AUE_STAT        COMPAT  { int stat(_In_z_ char *path, \
171                                     _Out_ struct ostat *ub); }
172 39      AUE_GETPPID     STD     { pid_t getppid(void); }
173 40      AUE_LSTAT       COMPAT  { int lstat(_In_z_ char *path, \
174                                     _Out_ struct ostat *ub); }
175 41      AUE_DUP         STD     { int dup(u_int fd); }
176 42      AUE_PIPE        COMPAT10        { int pipe(void); }
177 43      AUE_GETEGID     STD     { gid_t getegid(void); }
178 44      AUE_PROFILE     STD     { int profil( \
179                                     _Out_writes_bytes_(size) caddr_t samples, \
180                                     size_t size, size_t offset, u_int scale); }
181 45      AUE_KTRACE      STD     { int ktrace(_In_z_ const char *fname, \
182                                     int ops, int facs, int pid); }
183 46      AUE_SIGACTION   COMPAT  { int sigaction(int signum, \
184                                     _In_opt_ struct osigaction *nsa, \
185                                     _Out_opt_ struct osigaction *osa); }
186 47      AUE_GETGID      STD     { gid_t getgid(void); }
187 48      AUE_SIGPROCMASK COMPAT  { int sigprocmask(int how, osigset_t mask); }
188 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
189 ; us the mask, not a pointer to it, and we return the old mask as the
190 ; (int) return value.
191 49      AUE_GETLOGIN    STD     { int getlogin( \
192                                     _Out_writes_z_(namelen) char *namebuf, \
193                                     u_int namelen); }
194 50      AUE_SETLOGIN    STD     { int setlogin(_In_z_ char *namebuf); }
195 51      AUE_ACCT        STD     { int acct(_In_z_ char *path); }
196 52      AUE_SIGPENDING  COMPAT  { int sigpending(void); }
197 53      AUE_SIGALTSTACK STD     { int sigaltstack(_In_opt_ stack_t *ss, \
198                                     _Out_opt_ stack_t *oss); }
199 54      AUE_IOCTL       STD     { int ioctl(int fd, u_long com, \
200                                     _Inout_opt_ caddr_t data); }
201 55      AUE_REBOOT      STD     { int reboot(int opt); }
202 56      AUE_REVOKE      STD     { int revoke(_In_z_ char *path); }
203 57      AUE_SYMLINK     STD     { int symlink(_In_z_ char *path, \
204                                     _In_z_ char *link); }
205 58      AUE_READLINK    STD     { ssize_t readlink(_In_z_ char *path, \
206                                     _Out_writes_z_(count) char *buf, \
207                                     size_t count); }
208 59      AUE_EXECVE      STD     { int execve( \
209                                     _In_z_ char *fname, \
210                                     _In_z_ char **argv, \
211                                     _In_z_ char **envv); }
212 60      AUE_UMASK       STD     { int umask(int newmask); }
213 61      AUE_CHROOT      STD     { int chroot(_In_z_ char *path); }
214 62      AUE_FSTAT       COMPAT  { int fstat(int fd, _Out_ struct ostat *sb); }
215 63      AUE_NULL        COMPAT  { int getkerninfo(int op, \
216                                     _Out_writes_bytes_opt(*size) char *where, \
217                                     _Inout_opt_ size_t *size, \
218                                     int arg); } getkerninfo getkerninfo_args int
219 64      AUE_NULL        COMPAT  { int getpagesize(void); } getpagesize \
220                                     getpagesize_args int
221 65      AUE_MSYNC       STD     { int msync(_In_ void *addr, size_t len, \
222                                     int flags); }
223 66      AUE_VFORK       STD     { int vfork(void); }
224 67      AUE_NULL        OBSOL   vread
225 68      AUE_NULL        OBSOL   vwrite
226 69      AUE_SBRK        STD     { int sbrk(int incr); }
227 70      AUE_SSTK        STD     { int sstk(int incr); }
228 71      AUE_MMAP        COMPAT  { int mmap(_In_ void *addr, int len, int prot, \
229                                     int flags, int fd, long pos); }
230 72      AUE_O_VADVISE   COMPAT11        { int vadvise(int anom); }
231 73      AUE_MUNMAP      STD     { int munmap(_In_ void *addr, size_t len); }
232 74      AUE_MPROTECT    STD     { int mprotect(_In_ void *addr, \
233                                     size_t len, int prot); }
234 75      AUE_MADVISE     STD     { int madvise(_In_ void *addr, \
235                                     size_t len, int behav); }
236 76      AUE_NULL        OBSOL   vhangup
237 77      AUE_NULL        OBSOL   vlimit
238 78      AUE_MINCORE     STD     { int mincore( \
239                                     _In_ const void *addr, \
240                                     size_t len, \
241                                     _Out_writes_bytes_(len/PAGE_SIZE) \
242                                     char *vec); }
243 79      AUE_GETGROUPS   STD     { int getgroups(u_int gidsetsize, \
244                                     _Out_writes_opt_(gidsetsize) \
245                                     gid_t *gidset); }
246 80      AUE_SETGROUPS   STD     { int setgroups(u_int gidsetsize, \
247                                     _In_reads_(gidsetsize) gid_t *gidset); }
248 81      AUE_GETPGRP     STD     { int getpgrp(void); }
249 82      AUE_SETPGRP     STD     { int setpgid(int pid, int pgid); }
250 83      AUE_SETITIMER   STD     { int setitimer(u_int which, \
251                                     _In_ struct itimerval *itv, \
252                                     _Out_opt_ struct itimerval *oitv); }
253 84      AUE_WAIT4       COMPAT  { int wait(void); }
254 85      AUE_SWAPON      STD     { int swapon(_In_z_ char *name); }
255 86      AUE_GETITIMER   STD     { int getitimer(u_int which, \
256                                     _Out_ struct itimerval *itv); }
257 87      AUE_SYSCTL      COMPAT  { int gethostname( \
258                                     _Out_writes_z_(len) char *hostname, \
259                                     u_int len); } gethostname \
260                                     gethostname_args int
261 88      AUE_SYSCTL      COMPAT  { int sethostname( \
262                                     _In_reads_z_(len) char *hostname, \
263                                     u_int len); } sethostname \
264                                     sethostname_args int
265 89      AUE_GETDTABLESIZE       STD     { int getdtablesize(void); }
266 90      AUE_DUP2        STD     { int dup2(u_int from, u_int to); }
267 91      AUE_NULL        UNIMPL  getdopt
268 92      AUE_FCNTL       STD     { int fcntl(int fd, int cmd, long arg); }
269 ; XXX should be { int fcntl(int fd, int cmd, ...); }
270 ; but we're not ready for varargs.
271 93      AUE_SELECT      STD     { int select(int nd, \
272                                     _Inout_opt_ fd_set *in, \
273                                     _Inout_opt_ fd_set *ou, \
274                                     _Inout_opt_ fd_set *ex, \
275                                     _In_opt_ struct timeval *tv); }
276 94      AUE_NULL        UNIMPL  setdopt
277 95      AUE_FSYNC       STD     { int fsync(int fd); }
278 96      AUE_SETPRIORITY STD     { int setpriority(int which, int who, \
279                                     int prio); }
280 97      AUE_SOCKET      STD     { int socket(int domain, int type, \
281                                     int protocol); }
282 98      AUE_CONNECT     STD     { int connect(int s, \
283                                     _In_reads_bytes_(namelen) caddr_t name, \
284                                     int namelen); }
285 99      AUE_ACCEPT      COMPAT|NOARGS { int accept(int s, \
286                                     _Out_writes_bytes_opt_(*anamelen) \
287                                     caddr_t name, int *anamelen); } \
288                                     accept accept_args int
289 100     AUE_GETPRIORITY STD     { int getpriority(int which, int who); }
290 101     AUE_SEND        COMPAT  { int send(int s, \
291                                     _In_reads_bytes_(len) caddr_t buf, \
292                                     int len, \
293                                     int flags); }
294 102     AUE_RECV        COMPAT  { int recv(int s, \
295                                     _Out_writes_bytes_(len) caddr_t buf, \
296                                     int len, int flags); }
297 103     AUE_SIGRETURN   COMPAT  { int sigreturn( \
298                                     _In_ struct osigcontext *sigcntxp); }
299 104     AUE_BIND        STD     { int bind(int s, \
300                                     _In_reads_bytes_(namelen) caddr_t name, \
301                                     int namelen); }
302 105     AUE_SETSOCKOPT  STD     { int setsockopt(int s, int level, int name, \
303                                     _In_reads_bytes_opt_(valsize) caddr_t val, \
304                                     int valsize); }
305 106     AUE_LISTEN      STD     { int listen(int s, int backlog); }
306 107     AUE_NULL        OBSOL   vtimes
307 108     AUE_NULL        COMPAT  { int sigvec(int signum, \
308                                     _In_opt_ struct sigvec *nsv, \
309                                     _Out_opt_ struct sigvec *osv); }
310 109     AUE_NULL        COMPAT  { int sigblock(int mask); }
311 110     AUE_NULL        COMPAT  { int sigsetmask(int mask); }
312 111     AUE_NULL        COMPAT  { int sigsuspend(osigset_t mask); }
313 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
314 ; us the mask, not a pointer to it.
315 112     AUE_NULL        COMPAT  { int sigstack(_In_opt_ struct sigstack *nss, \
316                                     _Out_opt_ struct sigstack *oss); }
317 113     AUE_RECVMSG     COMPAT  { int recvmsg(int s, \
318                                     _Inout_ struct omsghdr *msg, \
319                                     int flags); }
320 114     AUE_SENDMSG     COMPAT  { int sendmsg(int s, _In_ caddr_t msg, \
321                                     int flags); }
322 115     AUE_NULL        OBSOL   vtrace
323 116     AUE_GETTIMEOFDAY        STD     { int gettimeofday( \
324                                     _Out_ struct timeval *tp, \
325                                     _Out_opt_ struct timezone *tzp); }
326 117     AUE_GETRUSAGE   STD     { int getrusage(int who, \
327                                     _Out_ struct rusage *rusage); }
328 118     AUE_GETSOCKOPT  STD     { int getsockopt(int s, int level, int name, \
329                                     _Out_writes_bytes_opt_(*avalsize) \
330                                     caddr_t val, _Inout_  int *avalsize); }
331 119     AUE_NULL        UNIMPL  resuba (BSD/OS 2.x)
332 120     AUE_READV       STD     { int readv(int fd, \
333                                    _Inout_updates_(iovcnt) struct iovec *iovp, \
334                                    u_int iovcnt); }
335 121     AUE_WRITEV      STD     { int writev(int fd, \
336                                     _In_reads_opt_(iovcnt) struct iovec *iovp, \
337                                     u_int iovcnt); }
338 122     AUE_SETTIMEOFDAY        STD     { int settimeofday( \
339                                     _In_ struct timeval *tv, \
340                                     _In_opt_ struct timezone *tzp); }
341 123     AUE_FCHOWN      STD     { int fchown(int fd, int uid, int gid); }
342 124     AUE_FCHMOD      STD     { int fchmod(int fd, int mode); }
343 125     AUE_RECVFROM    COMPAT|NOARGS { int recvfrom(int s, \
344                                     _Out_writes_(len) caddr_t buf, \
345                                     size_t len, int flags, \
346                                     _Out_writes_bytes_(*fromlenaddr) \
347                                     caddr_t from, \
348                                     _Inout_ int *fromlenaddr); } \
349                                     recvfrom recvfrom_args int
350 126     AUE_SETREUID    STD     { int setreuid(int ruid, int euid); }
351 127     AUE_SETREGID    STD     { int setregid(int rgid, int egid); }
352 128     AUE_RENAME      STD     { int rename(_In_z_ char *from, \
353                                     _In_z_ char *to); }
354 129     AUE_TRUNCATE    COMPAT  { int truncate(_In_z_ char *path, \
355                                     long length); }
356 130     AUE_FTRUNCATE   COMPAT  { int ftruncate(int fd, long length); }
357 131     AUE_FLOCK       STD     { int flock(int fd, int how); }
358 132     AUE_MKFIFO      STD     { int mkfifo(_In_z_ char *path, int mode); }
359 133     AUE_SENDTO      STD     { int sendto(int s, \
360                                     _In_reads_bytes_(len) caddr_t buf, \
361                                     size_t len,  int flags, \
362                                     _In_reads_bytes_opt_(tolen) caddr_t to, \
363                                     int tolen); }
364 134     AUE_SHUTDOWN    STD     { int shutdown(int s, int how); }
365 135     AUE_SOCKETPAIR  STD     { int socketpair(int domain, int type, \
366                                     int protocol, _Out_writes_(2) int *rsv); }
367 136     AUE_MKDIR       STD     { int mkdir(_In_z_ char *path, int mode); }
368 137     AUE_RMDIR       STD     { int rmdir(_In_z_ char *path); }
369 138     AUE_UTIMES      STD     { int utimes(_In_z_ char *path, \
370                                     _In_ struct timeval *tptr); }
371 139     AUE_NULL        OBSOL   4.2 sigreturn
372 140     AUE_ADJTIME     STD     { int adjtime(_In_ struct timeval *delta, \
373                                     _Out_opt_ struct timeval *olddelta); }
374 141     AUE_GETPEERNAME COMPAT  { int getpeername(int fdes, \
375                                     _Out_writes_bytes_(*alen) \
376                                     caddr_t asa, \
377                                     _Inout_opt_ int *alen); }
378 142     AUE_SYSCTL      COMPAT  { long gethostid(void); }
379 143     AUE_SYSCTL      COMPAT  { int sethostid(long hostid); }
380 144     AUE_GETRLIMIT   COMPAT  { int getrlimit(u_int which, _Out_ struct \
381                                     orlimit *rlp); }
382 145     AUE_SETRLIMIT   COMPAT  { int setrlimit(u_int which, \
383                                     _Out_ struct orlimit *rlp); }
384 146     AUE_KILLPG      COMPAT  { int killpg(int pgid, int signum); }
385 147     AUE_SETSID      STD     { int setsid(void); }
386 148     AUE_QUOTACTL    STD     { int quotactl( \
387                                     _In_z_ char *path, int cmd, int uid, \
388                                     _In_ caddr_t arg); }
389 149     AUE_O_QUOTA     COMPAT  { int quota(void); }
390 150     AUE_GETSOCKNAME COMPAT|NOARGS { int getsockname(int fdec, \
391                                     _Out_writes_bytes_(*alen) \
392                                     caddr_t asa, \
393                                     _Inout_ int *alen); } getsockname \
394                                     getsockname_args int
395
396 ; Syscalls 151-180 inclusive are reserved for vendor-specific
397 ; system calls.  (This includes various calls added for compatibity
398 ; with other Unix variants.)
399 ; Some of these calls are now supported by BSD...
400 151     AUE_NULL        UNIMPL  sem_lock (BSD/OS 2.x)
401 152     AUE_NULL        UNIMPL  sem_wakeup (BSD/OS 2.x)
402 153     AUE_NULL        UNIMPL  asyncdaemon (BSD/OS 2.x)
403 ; 154 is initialised by the NLM code, if present.
404 154     AUE_NULL        NOSTD   { int nlm_syscall(int debug_level, \
405                                     int grace_period, int addr_count, \
406                                     _In_reads_(addr_count) \
407                                     char **addrs); }
408 ; 155 is initialized by the NFS code, if present.
409 155     AUE_NFS_SVC     NOSTD   { int nfssvc(int flag, _In_ caddr_t argp); }
410 156     AUE_GETDIRENTRIES       COMPAT  { int getdirentries(int fd, \
411                                     _Out_writes_bytes_(count) char *buf, \
412                                     u_int count, _Out_ long *basep); }
413 157     AUE_STATFS      COMPAT4 { int statfs(_In_z_ char *path, \
414                                     _Out_ struct ostatfs *buf); }
415 158     AUE_FSTATFS     COMPAT4 { int fstatfs(int fd, \
416                                     _Out_ struct ostatfs *buf); }
417 159     AUE_NULL        UNIMPL  nosys
418 160     AUE_LGETFH      STD { int lgetfh(_In_z_ char *fname, \
419                                     _Out_ struct fhandle *fhp); }
420 161     AUE_NFS_GETFH   STD     { int getfh(_In_z_ char *fname, \
421                                     _Out_ struct fhandle *fhp); }
422 162     AUE_SYSCTL      COMPAT4 { int getdomainname( \
423                                     _Out_writes_z_(len) char *domainname, \
424                                     int len); }
425 163     AUE_SYSCTL      COMPAT4 { int setdomainname( \
426                                     _In_reads_z_(len) char *domainname, \
427                                     int len); }
428 164     AUE_NULL        COMPAT4 { int uname(_Out_ struct utsname *name); }
429 165     AUE_SYSARCH     STD     { int sysarch(int op, _In_z_ char *parms); }
430 166     AUE_RTPRIO      STD     { int rtprio(int function, pid_t pid, \
431                                     _Inout_ struct rtprio *rtp); }
432 167     AUE_NULL        UNIMPL  nosys
433 168     AUE_NULL        UNIMPL  nosys
434 169     AUE_SEMSYS      NOSTD   { int semsys(int which, int a2, int a3, \
435                                     int a4, int a5); }
436 ; XXX should be { int semsys(int which, ...); }
437 170     AUE_MSGSYS      NOSTD   { int msgsys(int which, int a2, int a3, \
438                                     int a4, int a5, int a6); }
439 ; XXX should be { int msgsys(int which, ...); }
440 171     AUE_SHMSYS      NOSTD   { int shmsys(int which, int a2, int a3, \
441                                     int a4); }
442 ; XXX should be { int shmsys(int which, ...); }
443 172     AUE_NULL        UNIMPL  nosys
444 173     AUE_PREAD       COMPAT6 { ssize_t pread(int fd, \
445                                     _Out_writes_bytes_(nbyte) void *buf, \
446                                     size_t nbyte, int pad, off_t offset); }
447 174     AUE_PWRITE      COMPAT6 { ssize_t pwrite(int fd, \
448                                     _In_reads_bytes_(nbyte) \
449                                     const void *buf, \
450                                     size_t nbyte, int pad, off_t offset); }
451 175     AUE_SETFIB      STD     { int setfib(int fibnum); }
452 176     AUE_NTP_ADJTIME STD     { int ntp_adjtime(_Inout_ struct timex *tp); }
453 177     AUE_NULL        UNIMPL  sfork (BSD/OS 2.x)
454 178     AUE_NULL        UNIMPL  getdescriptor (BSD/OS 2.x)
455 179     AUE_NULL        UNIMPL  setdescriptor (BSD/OS 2.x)
456 180     AUE_NULL        UNIMPL  nosys
457
458 ; Syscalls 181-199 are used by/reserved for BSD
459 181     AUE_SETGID      STD     { int setgid(gid_t gid); }
460 182     AUE_SETEGID     STD     { int setegid(gid_t egid); }
461 183     AUE_SETEUID     STD     { int seteuid(uid_t euid); }
462 184     AUE_NULL        OBSOL   lfs_bmapv
463 185     AUE_NULL        OBSOL   lfs_markv
464 186     AUE_NULL        OBSOL   lfs_segclean
465 187     AUE_NULL        OBSOL   lfs_segwait
466 188     AUE_STAT        COMPAT11 { int stat(_In_z_ char *path, \
467                                     _Out_ struct freebsd11_stat *ub); }
468 189     AUE_FSTAT       COMPAT11 { int fstat(int fd, \
469                                     _Out_ struct freebsd11_stat *sb); }
470 190     AUE_LSTAT       COMPAT11 { int lstat(_In_z_ char *path, \
471                                     _Out_ struct freebsd11_stat *ub); }
472 191     AUE_PATHCONF    STD     { int pathconf(_In_z_ char *path, int name); }
473 192     AUE_FPATHCONF   STD     { int fpathconf(int fd, int name); }
474 193     AUE_NULL        UNIMPL  nosys
475 194     AUE_GETRLIMIT   STD     { int getrlimit(u_int which, \
476                                     _Out_ struct rlimit *rlp); } getrlimit \
477                                     __getrlimit_args int
478 195     AUE_SETRLIMIT   STD     { int setrlimit(u_int which, \
479                                     _In_ struct rlimit *rlp); } setrlimit \
480                                     __setrlimit_args int
481 196     AUE_GETDIRENTRIES       COMPAT11 { int getdirentries(int fd, \
482                                     _Out_writes_bytes_(count) char *buf, \
483                                     u_int count, _Out_ long *basep); }
484 197     AUE_MMAP        COMPAT6 { caddr_t mmap(_In_ caddr_t addr, size_t len, \
485                                     int prot, int flags, int fd, int pad, \
486                                     off_t pos); }
487 198     AUE_NULL        NOPROTO { int nosys(void); } __syscall \
488                                     __syscall_args int
489 199     AUE_LSEEK       COMPAT6 { off_t lseek(int fd, int pad, \
490                                     off_t offset, int whence); }
491 200     AUE_TRUNCATE    COMPAT6 { int truncate(_In_z_ char *path, int pad, \
492                                     off_t length); }
493 201     AUE_FTRUNCATE   COMPAT6 { int ftruncate(int fd, int pad, \
494                                     off_t length); }
495 202     AUE_SYSCTL      STD     { int __sysctl( \
496                                     _In_reads_(namelen) int *name, \
497                                     u_int namelen, \
498                                     _Out_writes_bytes_opt_(*oldlenp) \
499                                     void *old, \
500                                     _Inout_opt_ size_t *oldlenp, \
501                                     _In_reads_bytes_opt_(newlen) \
502                                     void *new, \
503                                     size_t newlen); } \
504                                     __sysctl sysctl_args int
505 203     AUE_MLOCK       STD     { int mlock(_In_ const void *addr, \
506                                     size_t len); }
507 204     AUE_MUNLOCK     STD     { int munlock(_In_ const void *addr, \
508                                     size_t len); }
509 205     AUE_UNDELETE    STD     { int undelete(_In_z_ char *path); }
510 206     AUE_FUTIMES     STD     { int futimes(int fd, \
511                                     _In_reads_(2) struct timeval *tptr); }
512 207     AUE_GETPGID     STD     { int getpgid(pid_t pid); }
513 208     AUE_NULL        UNIMPL  nosys
514 209     AUE_POLL        STD     { int poll( \
515                                     _Inout_updates_(nfds) \
516                                     struct pollfd *fds, \
517                                     u_int nfds, int timeout); }
518 ;
519 ; The following are reserved for loadable syscalls
520 ;
521 210     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
522 211     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
523 212     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
524 213     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
525 214     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
526 215     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
527 216     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
528 217     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
529 218     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
530 219     AUE_NULL        NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
531
532 220     AUE_SEMCTL      COMPAT7|NOSTD { int __semctl(int semid, int semnum, \
533                                     int cmd, union semun_old *arg); }
534 221     AUE_SEMGET      NOSTD   { int semget(key_t key, int nsems, \
535                                     int semflg); }
536 222     AUE_SEMOP       NOSTD   { int semop(int semid, \
537                                     _In_reads_(nsops) struct sembuf *sops, \
538                                     size_t nsops); }
539 223     AUE_NULL        OBSOL   semconfig
540 224     AUE_MSGCTL      COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \
541                                     struct msqid_ds_old *buf); }
542 225     AUE_MSGGET      NOSTD   { int msgget(key_t key, int msgflg); }
543 226     AUE_MSGSND      NOSTD   { int msgsnd(int msqid, \
544                                     _In_reads_bytes_(msgsz) const void *msgp, \
545                                     size_t msgsz, int msgflg); }
546 227     AUE_MSGRCV      NOSTD   { ssize_t msgrcv(int msqid, \
547                                     _Out_writes_bytes_(msgsz) void *msgp, \
548                                     size_t msgsz, long msgtyp, int msgflg); }
549 228     AUE_SHMAT       NOSTD   { int shmat(int shmid, \
550                                     _In_ const void *shmaddr, \
551                                     int shmflg); }
552 229     AUE_SHMCTL      COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \
553                                     struct shmid_ds_old *buf); }
554 230     AUE_SHMDT       NOSTD   { int shmdt(_In_ const void *shmaddr); }
555 231     AUE_SHMGET      NOSTD   { int shmget(key_t key, size_t size, \
556                                     int shmflg); }
557 ;
558 232     AUE_NULL        STD     { int clock_gettime(clockid_t clock_id, \
559                                     _Out_ struct timespec *tp); }
560 233     AUE_CLOCK_SETTIME       STD     { int clock_settime(clockid_t clock_id, \
561                                     _In_ const struct timespec *tp); }
562 234     AUE_NULL        STD     { int clock_getres(clockid_t clock_id, \
563                                     _Out_ struct timespec *tp); }
564 235     AUE_NULL        STD     { int ktimer_create( \
565                                     clockid_t clock_id, \
566                                     _In_ struct sigevent *evp, \
567                                     _Out_ int *timerid); }
568 236     AUE_NULL        STD     { int ktimer_delete(int timerid); }
569 237     AUE_NULL        STD     { int ktimer_settime(int timerid, \
570                                     int flags, \
571                                     _In_ const struct itimerspec *value, \
572                                     _Out_opt_ struct itimerspec *ovalue); }
573 238     AUE_NULL        STD     { int ktimer_gettime(int timerid, \
574                                     _Out_ struct itimerspec *value); }
575 239     AUE_NULL        STD     { int ktimer_getoverrun(int timerid); }
576 240     AUE_NULL        STD     { int nanosleep( \
577                                     _In_ const struct timespec *rqtp, \
578                                     _Out_opt_ struct timespec *rmtp); }
579 241     AUE_NULL        STD     { int ffclock_getcounter( \
580                                     _Out_ ffcounter *ffcount); }
581 242     AUE_NULL        STD     { int ffclock_setestimate( \
582                                     _In_ struct ffclock_estimate *cest); }
583 243     AUE_NULL        STD     { int ffclock_getestimate( \
584                                     _Out_ struct ffclock_estimate *cest); }
585 244     AUE_NULL        STD     { int clock_nanosleep(clockid_t clock_id, \
586                                     int flags, \
587                                     _In_ const struct timespec *rqtp, \
588                                     _Out_opt_ struct timespec *rmtp); }
589 245     AUE_NULL        UNIMPL  nosys
590 246     AUE_NULL        UNIMPL  nosys
591 247     AUE_NULL        STD     { int clock_getcpuclockid2(id_t id, \
592                                     int which, _Out_ clockid_t *clock_id); }
593 248     AUE_NULL        STD     { int ntp_gettime( \
594                                     _Out_ struct ntptimeval *ntvp); }
595 249     AUE_NULL        UNIMPL  nosys
596 ; syscall numbers initially used in OpenBSD
597 250     AUE_MINHERIT    STD     { int minherit( \
598                                     _In_ void *addr, \
599                                     size_t len, int inherit); }
600 251     AUE_RFORK       STD     { int rfork(int flags); }
601 252     AUE_POLL        OBSOL   openbsd_poll
602 253     AUE_ISSETUGID   STD     { int issetugid(void); }
603 254     AUE_LCHOWN      STD     { int lchown(_In_z_ char *path, int uid, \
604                                     int gid); }
605 255     AUE_AIO_READ    STD     { int aio_read( \
606                                     _Inout_ struct aiocb *aiocbp); }
607 256     AUE_AIO_WRITE   STD     { int aio_write( \
608                                     _Inout_ struct aiocb *aiocbp); }
609 257     AUE_LIO_LISTIO  STD     { int lio_listio(int mode, \
610                                     _Inout_updates_(nent) \
611                                     struct aiocb* const *acb_list, \
612                                     int nent, \
613                                     _In_opt_ struct sigevent *sig); }
614 258     AUE_NULL        UNIMPL  nosys
615 259     AUE_NULL        UNIMPL  nosys
616 260     AUE_NULL        UNIMPL  nosys
617 261     AUE_NULL        UNIMPL  nosys
618 262     AUE_NULL        UNIMPL  nosys
619 263     AUE_NULL        UNIMPL  nosys
620 264     AUE_NULL        UNIMPL  nosys
621 265     AUE_NULL        UNIMPL  nosys
622 266     AUE_NULL        UNIMPL  nosys
623 267     AUE_NULL        UNIMPL  nosys
624 268     AUE_NULL        UNIMPL  nosys
625 269     AUE_NULL        UNIMPL  nosys
626 270     AUE_NULL        UNIMPL  nosys
627 271     AUE_NULL        UNIMPL  nosys
628 272     AUE_O_GETDENTS  COMPAT11 { int getdents(int fd, \
629                                     _Out_writes_bytes_(count) char *buf, \
630                                     size_t count); }
631 273     AUE_NULL        UNIMPL  nosys
632 274     AUE_LCHMOD      STD     { int lchmod(_In_z_ char *path, mode_t mode); }
633 275     AUE_NULL        OBSOL   netbsd_lchown
634 276     AUE_LUTIMES     STD     { int lutimes(_In_z_ char *path, \
635                                     _In_ struct timeval *tptr); }
636 277     AUE_NULL        OBSOL   netbsd_msync
637 278     AUE_STAT        COMPAT11 { int nstat(_In_z_ char *path, \
638                                     _Out_ struct nstat *ub); }
639 279     AUE_FSTAT       COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); }
640 280     AUE_LSTAT       COMPAT11 { int nlstat(_In_z_ char *path, \
641                                     _Out_ struct nstat *ub); }
642 281     AUE_NULL        UNIMPL  nosys
643 282     AUE_NULL        UNIMPL  nosys
644 283     AUE_NULL        UNIMPL  nosys
645 284     AUE_NULL        UNIMPL  nosys
646 285     AUE_NULL        UNIMPL  nosys
647 286     AUE_NULL        UNIMPL  nosys
648 287     AUE_NULL        UNIMPL  nosys
649 288     AUE_NULL        UNIMPL  nosys
650 289     AUE_PREADV      STD     { ssize_t preadv(int fd, \
651                                     _In_reads_(iovcnt) \
652                                     struct iovec *iovp, \
653                                     u_int iovcnt, off_t offset); }
654 290     AUE_PWRITEV     STD     { ssize_t pwritev(int fd, \
655                                     _In_reads_(iovcnt) struct iovec *iovp, \
656                                     u_int iovcnt, off_t offset); }
657 291     AUE_NULL        UNIMPL  nosys
658 292     AUE_NULL        UNIMPL  nosys
659 293     AUE_NULL        UNIMPL  nosys
660 294     AUE_NULL        UNIMPL  nosys
661 295     AUE_NULL        UNIMPL  nosys
662 296     AUE_NULL        UNIMPL  nosys
663 297     AUE_FHSTATFS    COMPAT4 { int fhstatfs( \
664                                     _In_ const struct fhandle *u_fhp, \
665                                     _Out_ struct ostatfs *buf); }
666 298     AUE_FHOPEN      STD     { int fhopen( \
667                                     _In_ const struct fhandle *u_fhp, \
668                                     int flags); }
669 299     AUE_FHSTAT      COMPAT11 { int fhstat( \
670                                     _In_ const struct fhandle *u_fhp, \
671                                     _Out_ struct freebsd11_stat *sb); }
672 300     AUE_NULL        STD     { int modnext(int modid); }
673 301     AUE_NULL        STD     { int modstat(int modid, \
674                                     _Out_ struct module_stat* stat); }
675 302     AUE_NULL        STD     { int modfnext(int modid); }
676 303     AUE_NULL        STD     { int modfind(_In_z_ const char *name); }
677 304     AUE_MODLOAD     STD     { int kldload(_In_z_ const char *file); }
678 305     AUE_MODUNLOAD   STD     { int kldunload(int fileid); }
679 306     AUE_NULL        STD     { int kldfind(_In_z_ const char *file); }
680 307     AUE_NULL        STD     { int kldnext(int fileid); }
681 308     AUE_NULL        STD     { int kldstat(int fileid, \
682                                     _Out_ struct kld_file_stat *stat); }
683 309     AUE_NULL        STD     { int kldfirstmod(int fileid); }
684 310     AUE_GETSID      STD     { int getsid(pid_t pid); }
685 311     AUE_SETRESUID   STD     { int setresuid(uid_t ruid, uid_t euid, \
686                                     uid_t suid); }
687 312     AUE_SETRESGID   STD     { int setresgid(gid_t rgid, gid_t egid, \
688                                     gid_t sgid); }
689 313     AUE_NULL        OBSOL   signanosleep
690 314     AUE_AIO_RETURN  STD     { ssize_t aio_return( \
691                                     _Inout_ struct aiocb *aiocbp); }
692 315     AUE_AIO_SUSPEND STD     { int aio_suspend( \
693                                     _Inout_updates_(nent) \
694                                     struct aiocb * const * aiocbp, \
695                                     int nent, \
696                                     _In_opt_ \
697                                     const struct timespec *timeout); }
698 316     AUE_AIO_CANCEL  STD     { int aio_cancel(int fd, \
699                                     _In_opt_ struct aiocb *aiocbp); }
700 317     AUE_AIO_ERROR   STD     { int aio_error( \
701                                     _In_ struct aiocb *aiocbp); }
702 318     AUE_AIO_READ    COMPAT6 { int aio_read( \
703                                     _Inout_  struct oaiocb *aiocbp); }
704 319     AUE_AIO_WRITE   COMPAT6 { int aio_write( \
705                                     _Inout_ struct oaiocb *aiocbp); }
706 320     AUE_LIO_LISTIO  COMPAT6 { int lio_listio(int mode, \
707                                     _Inout_updates_(nent) \
708                                     struct oaiocb * const *acb_list, \
709                                     int nent, \
710                                     _In_opt_ struct osigevent *sig); }
711 321     AUE_NULL        STD     { int yield(void); }
712 322     AUE_NULL        OBSOL   thr_sleep
713 323     AUE_NULL        OBSOL   thr_wakeup
714 324     AUE_MLOCKALL    STD     { int mlockall(int how); }
715 325     AUE_MUNLOCKALL  STD     { int munlockall(void); }
716 326     AUE_GETCWD      STD     { int __getcwd( \
717                                     _Out_writes_z_(buflen) char *buf, \
718                                     size_t buflen); }
719 327     AUE_NULL        STD     { int sched_setparam (pid_t pid, \
720                                     _In_ const struct sched_param *param); }
721 328     AUE_NULL        STD     { int sched_getparam (pid_t pid, \
722                                     _Out_ struct sched_param *param); }
723 329     AUE_NULL        STD     { int sched_setscheduler (pid_t pid, int \
724                                     policy, _In_ const struct sched_param \
725                                     *param); }
726 330     AUE_NULL        STD     { int sched_getscheduler (pid_t pid); }
727 331     AUE_NULL        STD     { int sched_yield (void); }
728 332     AUE_NULL        STD     { int sched_get_priority_max (int policy); }
729 333     AUE_NULL        STD     { int sched_get_priority_min (int policy); }
730 334     AUE_NULL        STD     { int sched_rr_get_interval (pid_t pid, \
731                                     _Out_ struct timespec *interval); }
732 335     AUE_NULL        STD     { int utrace( \
733                                    _In_reads_bytes_(len) const void *addr, \
734                                     size_t len); }
735 336     AUE_SENDFILE    COMPAT4 { int sendfile(int fd, int s, \
736                                     off_t offset, size_t nbytes, \
737                                     _In_opt_ struct sf_hdtr *hdtr, \
738                                     _Out_opt_ off_t *sbytes, int flags); }
739 337     AUE_NULL        STD     { int kldsym(int fileid, int cmd, \
740                                     _In_ void *data); }
741 338     AUE_JAIL        STD     { int jail( \
742                                     _In_ struct jail *jail); }
743
744 339     AUE_NULL        NOSTD|NOTSTATIC { int nnpfs_syscall(int operation, \
745                                     char *a_pathP, int a_opcode, \
746                                     void *a_paramsP, \
747                                     int a_followSymlinks); }
748 340     AUE_SIGPROCMASK STD     { int sigprocmask(int how, \
749                                     _In_opt_ const sigset_t *set, \
750                                     _Out_opt_ sigset_t *oset); }
751 341     AUE_SIGSUSPEND  STD     { int sigsuspend( \
752                                     _In_ const sigset_t *sigmask); }
753 342     AUE_SIGACTION   COMPAT4 { int sigaction(int sig, \
754                                     _In_opt_ const struct sigaction *act, \
755                                     _Out_opt_ struct sigaction *oact); }
756 343     AUE_SIGPENDING  STD     { int sigpending(_In_ sigset_t *set); }
757 344     AUE_SIGRETURN   COMPAT4 { int sigreturn( \
758                                     _In_ const struct ucontext4 *sigcntxp); }
759 345     AUE_SIGWAIT     STD     { int sigtimedwait(_In_ const sigset_t *set, \
760                                     _Out_opt_ siginfo_t *info, \
761                                     _In_opt_ const struct timespec *timeout); }
762 346     AUE_NULL        STD     { int sigwaitinfo(_In_ const sigset_t *set, \
763                                     _Out_opt_ siginfo_t *info); }
764 347     AUE_ACL_GET_FILE        STD     { int __acl_get_file( \
765                                     _In_z_ const char *path, \
766                                     acl_type_t type, \
767                                     _Out_ struct acl *aclp); }
768 348     AUE_ACL_SET_FILE        STD     { int __acl_set_file( \
769                                     _In_z_ const char *path, \
770                                     acl_type_t type, _In_ struct acl *aclp); }
771 349     AUE_ACL_GET_FD  STD     { int __acl_get_fd(int filedes, \
772                                     acl_type_t type, _Out_ struct acl *aclp); }
773 350     AUE_ACL_SET_FD  STD     { int __acl_set_fd(int filedes, \
774                                     acl_type_t type, _In_ struct acl *aclp); }
775 351     AUE_ACL_DELETE_FILE     STD     { int __acl_delete_file( \
776                                     _In_z_ const char *path, \
777                                     acl_type_t type); }
778 352     AUE_ACL_DELETE_FD       STD     { int __acl_delete_fd(int filedes, \
779                                     acl_type_t type); }
780 353     AUE_ACL_CHECK_FILE      STD     { int __acl_aclcheck_file( \
781                                     _In_z_ const char *path, \
782                                     acl_type_t type, _In_ struct acl *aclp); }
783 354     AUE_ACL_CHECK_FD        STD     { int __acl_aclcheck_fd(int filedes, \
784                                     acl_type_t type, _In_ struct acl *aclp); }
785 355     AUE_EXTATTRCTL  STD     { int extattrctl(_In_z_ const char *path, \
786                                     int cmd, _In_z_opt_ const char *filename, \
787                                     int attrnamespace, \
788                                     _In_z_ const char *attrname); }
789 356     AUE_EXTATTR_SET_FILE    STD     { ssize_t extattr_set_file( \
790                                     _In_z_ const char *path, \
791                                     int attrnamespace, \
792                                     _In_z_ const char *attrname, \
793                                     _In_reads_bytes_(nbytes) void *data, \
794                                     size_t nbytes); }
795 357     AUE_EXTATTR_GET_FILE    STD     { ssize_t extattr_get_file( \
796                                     _In_z_ const char *path, \
797                                     int attrnamespace, \
798                                     _In_z_ const char *attrname, \
799                                     _Out_writes_bytes_(nbytes) void *data, \
800                                     size_t nbytes); }
801 358     AUE_EXTATTR_DELETE_FILE STD     { int extattr_delete_file( \
802                                     _In_z_ const char *path, \
803                                     int attrnamespace, \
804                                     _In_z_ const char *attrname); }
805 359     AUE_AIO_WAITCOMPLETE    STD     { ssize_t aio_waitcomplete( \
806                                     _Outptr_result_maybenull_ \
807                                     struct aiocb **aiocbp, \
808                                     _In_opt_ struct timespec *timeout); }
809 360     AUE_GETRESUID   STD     { int getresuid(_Out_opt_ uid_t *ruid, \
810                                     _Out_opt_ uid_t *euid, \
811                                     _Out_opt_ uid_t *suid); }
812 361     AUE_GETRESGID   STD     { int getresgid(_Out_opt_ gid_t *rgid, \
813                                     _Out_opt_ gid_t *egid, \
814                                     _Out_opt_ gid_t *sgid); }
815 362     AUE_KQUEUE      STD     { int kqueue(void); }
816 363     AUE_KEVENT      COMPAT11 { int kevent(int fd, \
817                                     _In_reads_opt_(nchanges) \
818                                     struct kevent_freebsd11 *changelist, \
819                                     int nchanges, \
820                                     _Out_writes_opt_(nevents) \
821                                     struct kevent_freebsd11 *eventlist, \
822                                     int nevents, \
823                                     _In_opt_ const struct timespec *timeout); }
824 364     AUE_NULL        OBSOL   __cap_get_proc
825 365     AUE_NULL        OBSOL   __cap_set_proc
826 366     AUE_NULL        OBSOL   __cap_get_fd
827 367     AUE_NULL        OBSOL   __cap_get_file
828 368     AUE_NULL        OBSOL   __cap_set_fd
829 369     AUE_NULL        OBSOL   __cap_set_file
830 370     AUE_NULL        UNIMPL  nosys
831 371     AUE_EXTATTR_SET_FD      STD     { ssize_t extattr_set_fd(int fd, \
832                                     int attrnamespace, \
833                                     _In_z_ const char *attrname, \
834                                     _In_reads_bytes_(nbytes) void *data, \
835                                     size_t nbytes); }
836 372     AUE_EXTATTR_GET_FD      STD     { ssize_t extattr_get_fd(int fd, \
837                                     int attrnamespace, \
838                                     _In_z_ const char *attrname, \
839                                     _Out_writes_bytes_(nbytes) void *data, \
840                                     size_t nbytes); }
841 373     AUE_EXTATTR_DELETE_FD   STD     { int extattr_delete_fd(int fd, \
842                                     int attrnamespace, \
843                                     _In_z_ const char *attrname); }
844 374     AUE_SETUGID     STD     { int __setugid(int flag); }
845 375     AUE_NULL        OBSOL   nfsclnt
846 376     AUE_EACCESS     STD     { int eaccess(_In_z_ char *path, int amode); }
847 377     AUE_NULL        NOSTD|NOTSTATIC { int afs3_syscall(long syscall, \
848                                     long parm1, long parm2, long parm3, \
849                                     long parm4, long parm5, long parm6); }
850 378     AUE_NMOUNT      STD     { int nmount( \
851                                     _In_reads_(iovcnt) struct iovec *iovp, \
852                                     unsigned int iovcnt, int flags); }
853 379     AUE_NULL        OBSOL   kse_exit
854 380     AUE_NULL        OBSOL   kse_wakeup
855 381     AUE_NULL        OBSOL   kse_create
856 382     AUE_NULL        OBSOL   kse_thr_interrupt
857 383     AUE_NULL        OBSOL   kse_release
858 384     AUE_NULL        STD     { int __mac_get_proc( \
859                                     _In_ struct mac *mac_p); }
860 385     AUE_NULL        STD     { int __mac_set_proc( \
861                                     _In_ struct mac *mac_p); }
862 386     AUE_NULL        STD     { int __mac_get_fd(int fd, \
863                                     _In_ struct mac *mac_p); }
864 387     AUE_NULL        STD     { int __mac_get_file( \
865                                     _In_z_ const char *path_p, \
866                                     _In_ struct mac *mac_p); }
867 388     AUE_NULL        STD     { int __mac_set_fd(int fd, \
868                                     _In_ struct mac *mac_p); }
869 389     AUE_NULL        STD     { int __mac_set_file( \
870                                     _In_z_ const char *path_p, \
871                                     _In_ struct mac *mac_p); }
872 390     AUE_NULL        STD     { int kenv(int what, \
873                                     _In_z_opt_ const char *name, \
874                                     _Inout_updates_opt_(len) \
875                                     char *value, int len); }
876 391     AUE_LCHFLAGS    STD     { int lchflags(_In_z_ const char *path, \
877                                     u_long flags); }
878 392     AUE_NULL        STD     { int uuidgen( \
879                                     _Out_writes_(count) struct uuid *store, \
880                                     int count); }
881 393     AUE_SENDFILE    STD     { int sendfile(int fd, int s, \
882                                     off_t offset, \
883                                     size_t nbytes, \
884                                     _In_opt_ struct sf_hdtr *hdtr, \
885                                     _Out_opt_ off_t *sbytes, int flags); }
886 394     AUE_NULL        STD     { int mac_syscall( \
887                                     _In_z_ const char *policy, \
888                                     int call, \
889                                     _In_opt_ void *arg); }
890 395     AUE_GETFSSTAT   COMPAT11 { int getfsstat( \
891                                     _Out_writes_bytes_opt_(bufsize) \
892                                     struct freebsd11_statfs *buf, \
893                                     long bufsize, int mode); }
894 396     AUE_STATFS      COMPAT11 { int statfs(_In_z_ char *path, \
895                                     _Out_ struct freebsd11_statfs *buf); }
896 397     AUE_FSTATFS     COMPAT11 { int fstatfs(int fd, \
897                                     _Out_ struct freebsd11_statfs *buf); }
898 398     AUE_FHSTATFS    COMPAT11 { int fhstatfs( \
899                                     _In_ const struct fhandle *u_fhp, \
900                                     _Out_ struct freebsd11_statfs *buf); }
901 399     AUE_NULL        UNIMPL  nosys
902 400     AUE_SEMCLOSE    NOSTD   { int ksem_close(semid_t id); }
903 401     AUE_SEMPOST     NOSTD   { int ksem_post(semid_t id); }
904 402     AUE_SEMWAIT     NOSTD   { int ksem_wait(semid_t id); }
905 403     AUE_SEMTRYWAIT  NOSTD   { int ksem_trywait(semid_t id); }
906 404     AUE_SEMINIT     NOSTD   { int ksem_init(_Out_ semid_t *idp, \
907                                     unsigned int value); }
908 405     AUE_SEMOPEN     NOSTD   { int ksem_open(_Out_ semid_t *idp, \
909                                     _In_z_ const char *name, int oflag, \
910                                     mode_t mode, unsigned int value); }
911 406     AUE_SEMUNLINK   NOSTD   { int ksem_unlink( \
912                                     _In_z_ const char *name); }
913 407     AUE_SEMGETVALUE NOSTD   { int ksem_getvalue(semid_t id, \
914                                     _Out_ int *val); }
915 408     AUE_SEMDESTROY  NOSTD   { int ksem_destroy(semid_t id); }
916 409     AUE_NULL        STD     { int __mac_get_pid(pid_t pid, \
917                                     _In_ struct mac *mac_p); }
918 410     AUE_NULL        STD     { int __mac_get_link( \
919                                     _In_z_ const char *path_p, \
920                                     _In_ struct mac *mac_p); }
921 411     AUE_NULL        STD     { int __mac_set_link( \
922                                     _In_z_ const char *path_p, \
923                                     _In_ struct mac *mac_p); }
924 412     AUE_EXTATTR_SET_LINK    STD     { ssize_t extattr_set_link( \
925                                     _In_z_ const char *path, \
926                                     int attrnamespace, \
927                                     _In_z_ const char *attrname, \
928                                     _In_reads_bytes_(nbytes) void *data, \
929                                     size_t nbytes); }
930 413     AUE_EXTATTR_GET_LINK    STD     { ssize_t extattr_get_link( \
931                                     _In_z_ const char *path, \
932                                     int attrnamespace, \
933                                     _In_z_ const char *attrname, \
934                                     _Out_writes_bytes_(nbytes) void *data, \
935                                     size_t nbytes); }
936 414     AUE_EXTATTR_DELETE_LINK STD     { int extattr_delete_link( \
937                                     _In_z_ const char *path, \
938                                     int attrnamespace, \
939                                     _In_z_ const char *attrname); }
940 415     AUE_NULL        STD     { int __mac_execve(_In_z_ char *fname, \
941                                     _In_ char **argv, \
942                                     _In_ char **envv, \
943                                     _In_ struct mac *mac_p); }
944 416     AUE_SIGACTION   STD     { int sigaction(int sig, \
945                                     _In_opt_ const struct sigaction *act, \
946                                     _Out_opt_ struct sigaction *oact); }
947 417     AUE_SIGRETURN   STD     { int sigreturn( \
948                                     _In_ const struct __ucontext *sigcntxp); }
949 418     AUE_NULL        UNIMPL  __xstat
950 419     AUE_NULL        UNIMPL  __xfstat
951 420     AUE_NULL        UNIMPL  __xlstat
952 421     AUE_NULL        STD     { int getcontext( \
953                                     _Out_ struct __ucontext *ucp); }
954 422     AUE_NULL        STD     { int setcontext( \
955                                     _In_ const struct __ucontext *ucp); }
956 423     AUE_NULL        STD     { int swapcontext( \
957                                     _Out_ struct __ucontext *oucp, \
958                                     _In_ const struct __ucontext *ucp); }
959 424     AUE_SWAPOFF     STD     { int swapoff(_In_z_ const char *name); }
960 425     AUE_ACL_GET_LINK        STD     { int __acl_get_link( \
961                                     _In_z_ const char *path, acl_type_t type, \
962                                     _Out_ struct acl *aclp); }
963 426     AUE_ACL_SET_LINK        STD     { int __acl_set_link( \
964                                     _In_z_ const char *path, acl_type_t type, \
965                                     _In_ struct acl *aclp); }
966 427     AUE_ACL_DELETE_LINK     STD     { int __acl_delete_link( \
967                                     _In_z_ const char *path, \
968                                     acl_type_t type); }
969 428     AUE_ACL_CHECK_LINK      STD     { int __acl_aclcheck_link( \
970                                     _In_z_ const char *path, acl_type_t type, \
971                                     _In_ struct acl *aclp); }
972 429     AUE_SIGWAIT     STD     { int sigwait(_In_ const sigset_t *set, \
973                                     _Out_ int *sig); }
974 430     AUE_THR_CREATE  STD     { int thr_create(_In_ ucontext_t *ctx, \
975                                     _Out_ long *id, int flags); }
976 431     AUE_THR_EXIT    STD     { void thr_exit(_Out_opt_ long *state); }
977 432     AUE_NULL        STD     { int thr_self(_Out_ long *id); }
978 433     AUE_THR_KILL    STD     { int thr_kill(long id, int sig); }
979 434     AUE_NULL        UNIMPL  nosys
980 435     AUE_NULL        UNIMPL  nosys
981 436     AUE_JAIL_ATTACH STD     { int jail_attach(int jid); }
982 437     AUE_EXTATTR_LIST_FD     STD     { ssize_t extattr_list_fd(int fd, \
983                                     int attrnamespace, \
984                                     _Out_writes_bytes_opt_(nbytes) \
985                                     void *data, \
986                                     size_t nbytes); }
987 438     AUE_EXTATTR_LIST_FILE   STD     { ssize_t extattr_list_file( \
988                                     _In_z_ const char *path, \
989                                     int attrnamespace, \
990                                     _Out_writes_bytes_opt_(nbytes) \
991                                     void *data, size_t nbytes); }
992 439     AUE_EXTATTR_LIST_LINK   STD     { ssize_t extattr_list_link( \
993                                     _In_z_ const char *path, \
994                                     int attrnamespace, \
995                                     _Out_writes_bytes_opt_(nbytes) \
996                                     void *data, size_t nbytes); }
997 440     AUE_NULL        OBSOL   kse_switchin
998 441     AUE_SEMWAIT     NOSTD   { int ksem_timedwait(semid_t id, \
999                                     _In_opt_ const struct timespec *abstime); }
1000 442     AUE_NULL        STD     { int thr_suspend( \
1001                                     _In_opt_ const struct timespec *timeout); }
1002 443     AUE_NULL        STD     { int thr_wake(long id); }
1003 444     AUE_MODUNLOAD   STD     { int kldunloadf(int fileid, int flags); }
1004 445     AUE_AUDIT       STD     { int audit( \
1005                                     _In_reads_bytes_(length) \
1006                                     const void *record, \
1007                                     u_int length); }
1008 446     AUE_AUDITON     STD     { int auditon(int cmd, \
1009                                     _In_opt_ void *data, \
1010                                     u_int length); }
1011 447     AUE_GETAUID     STD     { int getauid(_Out_ uid_t *auid); }
1012 448     AUE_SETAUID     STD     { int setauid(_In_ uid_t *auid); }
1013 449     AUE_GETAUDIT    STD     { int getaudit( \
1014                                     _Out_ struct auditinfo *auditinfo); }
1015 450     AUE_SETAUDIT    STD     { int setaudit( \
1016                                     _In_ struct auditinfo *auditinfo); }
1017 451     AUE_GETAUDIT_ADDR       STD     { int getaudit_addr( \
1018                                     _Out_writes_bytes_(length) \
1019                                     struct auditinfo_addr *auditinfo_addr, \
1020                                     u_int length); }
1021 452     AUE_SETAUDIT_ADDR       STD     { int setaudit_addr( \
1022                                     _In_reads_bytes_(length) \
1023                                     struct auditinfo_addr *auditinfo_addr, \
1024                                     u_int length); }
1025 453     AUE_AUDITCTL    STD     { int auditctl(_In_z_ char *path); }
1026 454     AUE_NULL        STD     { int _umtx_op(_Inout_ void *obj, int op, \
1027                                     u_long val, _In_ void *uaddr1, \
1028                                     _In_ void *uaddr2); }
1029 455     AUE_THR_NEW     STD     { int thr_new(_In_ struct thr_param *param, \
1030                                     int param_size); }
1031 456     AUE_NULL        STD     { int sigqueue(pid_t pid, int signum, \
1032                                     _In_ void *value); }
1033
1034 457     AUE_MQ_OPEN     NOSTD   { int kmq_open( \
1035                                     _In_z_ const char *path, \
1036                                     int flags, \
1037                                     mode_t mode, \
1038                                     _In_opt_ const struct mq_attr *attr); }
1039 458     AUE_MQ_SETATTR  NOSTD   { int kmq_setattr(int mqd, \
1040                                     _In_opt_ const struct mq_attr *attr, \
1041                                     _Out_opt_ struct mq_attr *oattr); }
1042 459     AUE_MQ_TIMEDRECEIVE     NOSTD   { int kmq_timedreceive( \
1043                                     int mqd, \
1044                                     _Out_writes_bytes_(msg_len) char *msg_ptr, \
1045                                     size_t msg_len, \
1046                                     _Out_opt_ unsigned *msg_prio, \
1047                                     _In_opt_ \
1048                                     const struct timespec *abs_timeout); }
1049 460     AUE_MQ_TIMEDSEND        NOSTD   { int kmq_timedsend(int mqd, \
1050                                     _In_reads_bytes_(msg_len) \
1051                                     const char *msg_ptr, size_t msg_len, \
1052                                     unsigned msg_prio, \
1053                                     _In_opt_ \
1054                                     const struct timespec *abs_timeout); }
1055 461     AUE_MQ_NOTIFY   NOSTD   { int kmq_notify(int mqd, \
1056                                     _In_opt_ const struct sigevent *sigev); }
1057 462     AUE_MQ_UNLINK   NOSTD   { int kmq_unlink(_In_z_ const char *path); }
1058 463     AUE_NULL        STD     { int abort2(_In_z_ const char *why, \
1059                                     int nargs, \
1060                                     _In_reads_(nargs) void **args); }
1061 464     AUE_NULL        STD     { int thr_set_name(long id, \
1062                                     _In_z_ const char *name); }
1063 465     AUE_AIO_FSYNC   STD     { int aio_fsync(int op, \
1064                                     _In_ struct aiocb *aiocbp); }
1065 466     AUE_RTPRIO      STD     { int rtprio_thread(int function, \
1066                                     lwpid_t lwpid, \
1067                                     _Inout_ struct rtprio *rtp); }
1068 467     AUE_NULL        UNIMPL  nosys
1069 468     AUE_NULL        UNIMPL  nosys
1070 469     AUE_NULL        UNIMPL  __getpath_fromfd
1071 470     AUE_NULL        UNIMPL  __getpath_fromaddr
1072 471     AUE_SCTP_PEELOFF        NOSTD   { int sctp_peeloff(int sd, \
1073                                     uint32_t name); }
1074 472     AUE_SCTP_GENERIC_SENDMSG        NOSTD   { int sctp_generic_sendmsg( \
1075                                     int sd, \
1076                                     _In_reads_bytes_(mlen) caddr_t msg, \
1077                                     int mlen, \
1078                                     _In_reads_bytes_(tolen) \
1079                                     caddr_t to, \
1080                                     __socklen_t tolen, \
1081                                     _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1082                                     int flags); }
1083 473     AUE_SCTP_GENERIC_SENDMSG_IOV    NOSTD   { \
1084                                 int sctp_generic_sendmsg_iov( \
1085                                     int sd, \
1086                                     _In_reads_(iovlen) struct iovec *iov, \
1087                                     int iovlen, \
1088                                     _In_reads_bytes_(tolen) \
1089                                     caddr_t to, \
1090                                     __socklen_t tolen, \
1091                                     _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1092                                     int flags); }
1093 474     AUE_SCTP_GENERIC_RECVMSG        NOSTD   { int sctp_generic_recvmsg( \
1094                                     int sd, \
1095                                     _In_reads_(iovlen) struct iovec *iov, \
1096                                     int iovlen, \
1097                                     _Out_writes_bytes_(*fromlenaddr) \
1098                                     struct sockaddr *from, \
1099                                     _Out_ __socklen_t *fromlenaddr, \
1100                                     _In_opt_ struct sctp_sndrcvinfo *sinfo, \
1101                                     _Out_opt_ int *msg_flags); }
1102 475     AUE_PREAD       STD     { ssize_t pread(int fd, \
1103                                     _Out_writes_bytes_(nbyte) void *buf, \
1104                                     size_t nbyte, off_t offset); }
1105 476     AUE_PWRITE      STD     { ssize_t pwrite(int fd, \
1106                                     _In_reads_bytes_(nbyte) \
1107                                     const void *buf, \
1108                                     size_t nbyte, off_t offset); }
1109 477     AUE_MMAP        STD     { caddr_t mmap(_In_ caddr_t addr, size_t len, \
1110                                     int prot, int flags, int fd, off_t pos); }
1111 478     AUE_LSEEK       STD     { off_t lseek(int fd, off_t offset, \
1112                                     int whence); }
1113 479     AUE_TRUNCATE    STD     { int truncate(_In_z_ char *path,  \
1114                                     off_t length); }
1115 480     AUE_FTRUNCATE   STD     { int ftruncate(int fd, off_t length); }
1116 481     AUE_THR_KILL2   STD     { int thr_kill2(pid_t pid, long id, int sig); }
1117 482     AUE_SHMOPEN     STD     { int shm_open( \
1118                                     _In_z_ const char *path, \
1119                                     int flags, \
1120                                     mode_t mode); }
1121 483     AUE_SHMUNLINK   STD     { int shm_unlink(_In_z_ const char *path); }
1122 484     AUE_NULL        STD     { int cpuset(_Out_ cpusetid_t *setid); }
1123 485     AUE_NULL        STD     { int cpuset_setid(cpuwhich_t which, id_t id, \
1124                                     cpusetid_t setid); }
1125 486     AUE_NULL        STD     { int cpuset_getid(cpulevel_t level, \
1126                                     cpuwhich_t which, id_t id, \
1127                                     _Out_ cpusetid_t *setid); }
1128 487     AUE_NULL        STD     { int cpuset_getaffinity(cpulevel_t level, \
1129                                     cpuwhich_t which, id_t id, \
1130                                     size_t cpusetsize, \
1131                                     _Out_ cpuset_t *mask); }
1132 488     AUE_NULL        STD     { int cpuset_setaffinity(cpulevel_t level, \
1133                                     cpuwhich_t which, id_t id, \
1134                                     size_t cpusetsize, \
1135                                     _Out_ const cpuset_t *mask); }
1136 489     AUE_FACCESSAT   STD     { int faccessat(int fd, _In_z_ char *path, \
1137                                     int amode, int flag); }
1138 490     AUE_FCHMODAT    STD     { int fchmodat(int fd, \
1139                                     _In_z_ char *path, mode_t mode, \
1140                                     int flag); }
1141 491     AUE_FCHOWNAT    STD     { int fchownat(int fd, _In_z_ char *path, \
1142                                     uid_t uid, gid_t gid, int flag); }
1143 492     AUE_FEXECVE     STD     { int fexecve(int fd, \
1144                                     _In_ char **argv, \
1145                                     _In_ char **envv); }
1146 493     AUE_FSTATAT     COMPAT11 { int fstatat(int fd, _In_z_ char *path, \
1147                                     _Out_ struct freebsd11_stat *buf, \
1148                                     int flag); }
1149 494     AUE_FUTIMESAT   STD     { int futimesat(int fd, \
1150                                     _In_z_ char *path, \
1151                                     _In_reads_(2) struct timeval *times); }
1152 495     AUE_LINKAT      STD     { int linkat(int fd1, \
1153                                     _In_z_ char *path1, \
1154                                     int fd2, \
1155                                     _In_z_ char *path2, \
1156                                     int flag); }
1157 496     AUE_MKDIRAT     STD     { int mkdirat(int fd, _In_z_ char *path, \
1158                                 mode_t mode); }
1159 497     AUE_MKFIFOAT    STD     { int mkfifoat(int fd, \
1160                                 _In_z_ char *path, mode_t mode); }
1161 498     AUE_MKNODAT     COMPAT11 { int mknodat(int fd, _In_z_ char *path, \
1162                                     mode_t mode, \
1163                                     uint32_t dev); }
1164 ; XXX: see the comment for open
1165 499     AUE_OPENAT_RWTC STD     { int openat(int fd, _In_z_ char *path,  \
1166                                     int flag, mode_t mode); }
1167 500     AUE_READLINKAT  STD     { int readlinkat(int fd, \
1168                                     _In_z_ char *path, \
1169                                     _Out_writes_bytes_(bufsize) char *buf, \
1170                                     size_t bufsize); }
1171 501     AUE_RENAMEAT    STD     { int renameat(int oldfd, \
1172                                     _In_z_ char *old, \
1173                                     int newfd, _In_z_ char *new); }
1174 502     AUE_SYMLINKAT   STD     { int symlinkat(_In_z_ char *path1, int fd, \
1175                                     _In_z_ char *path2); }
1176 503     AUE_UNLINKAT    STD     { int unlinkat(int fd, _In_z_ char *path, \
1177                                     int flag); }
1178 504     AUE_POSIX_OPENPT        STD     { int posix_openpt(int flags); }
1179 ; 505 is initialised by the kgssapi code, if present.
1180 505     AUE_NULL        NOSTD   { int gssd_syscall(_In_z_ char *path); }
1181 506     AUE_JAIL_GET    STD     { int jail_get( \
1182                                     _In_reads_(iovcnt) struct iovec *iovp, \
1183                                     unsigned int iovcnt, int flags); }
1184 507     AUE_JAIL_SET    STD     { int jail_set( \
1185                                     _In_reads_(iovcnt) struct iovec *iovp, \
1186                                     unsigned int iovcnt, int flags); }
1187 508     AUE_JAIL_REMOVE STD     { int jail_remove(int jid); }
1188 509     AUE_CLOSEFROM   STD     { int closefrom(int lowfd); }
1189 510     AUE_SEMCTL      NOSTD   { int __semctl(int semid, int semnum, \
1190                                     int cmd, _Inout_ union semun *arg); }
1191 511     AUE_MSGCTL      NOSTD   { int msgctl(int msqid, int cmd, \
1192                                     _Inout_opt_ struct msqid_ds *buf); }
1193 512     AUE_SHMCTL      NOSTD   { int shmctl(int shmid, int cmd, \
1194                                     _Inout_opt_ struct shmid_ds *buf); }
1195 513     AUE_LPATHCONF   STD     { int lpathconf(_In_z_ char *path, \
1196                                     int name); }
1197 514     AUE_NULL        OBSOL   cap_new
1198 515     AUE_CAP_RIGHTS_GET      STD     { int __cap_rights_get(int version, \
1199                                     int fd, _Out_ cap_rights_t *rightsp); }
1200 516     AUE_CAP_ENTER   STD     { int cap_enter(void); }
1201 517     AUE_CAP_GETMODE STD     { int cap_getmode(_Out_ u_int *modep); }
1202 518     AUE_PDFORK      STD     { int pdfork(_Out_ int *fdp, int flags); }
1203 519     AUE_PDKILL      STD     { int pdkill(int fd, int signum); }
1204 520     AUE_PDGETPID    STD     { int pdgetpid(int fd, _Out_ pid_t *pidp); }
1205 521     AUE_PDWAIT      UNIMPL  pdwait4
1206 522     AUE_SELECT      STD     { int pselect(int nd, \
1207                                     _Inout_opt_ fd_set *in, \
1208                                     _Inout_opt_ fd_set *ou, \
1209                                     _Inout_opt_ fd_set *ex, \
1210                                     _In_opt_ const struct timespec *ts, \
1211                                     _In_opt_ const sigset_t *sm); }
1212 523     AUE_GETLOGINCLASS       STD     { int getloginclass( \
1213                                     _Out_writes_z_(namelen) char *namebuf, \
1214                                     size_t namelen); }
1215 524     AUE_SETLOGINCLASS       STD     { int setloginclass( \
1216                                     _In_z_ const char *namebuf); }
1217 525     AUE_NULL        STD     { int rctl_get_racct( \
1218                                     _In_reads_bytes_(inbuflen) \
1219                                     const void *inbufp, size_t inbuflen, \
1220                                     _Out_writes_bytes_(outbuflen) \
1221                                     void *outbufp, size_t outbuflen); }
1222 526     AUE_NULL        STD     { int rctl_get_rules( \
1223                                     _In_reads_bytes_(inbuflen) \
1224                                     const void *inbufp, size_t inbuflen, \
1225                                     _Out_writes_bytes_(outbuflen) \
1226                                     void *outbufp, size_t outbuflen); }
1227 527     AUE_NULL        STD     { int rctl_get_limits( \
1228                                     _In_reads_bytes_(inbuflen) \
1229                                     const void *inbufp, size_t inbuflen, \
1230                                     _Out_writes_bytes_(outbuflen) \
1231                                     void *outbufp, size_t outbuflen); }
1232 528     AUE_NULL        STD     { int rctl_add_rule( \
1233                                     _In_reads_bytes_(inbuflen) \
1234                                     const void *inbufp, size_t inbuflen, \
1235                                     _Out_writes_bytes_(outbuflen) \
1236                                     void *outbufp, size_t outbuflen); }
1237 529     AUE_NULL        STD     { int rctl_remove_rule( \
1238                                     _In_reads_bytes_(inbuflen) \
1239                                     const void *inbufp, size_t inbuflen, \
1240                                     _Out_writes_bytes_(outbuflen) \
1241                                     void *outbufp, size_t outbuflen); }
1242 530     AUE_POSIX_FALLOCATE     STD     { int posix_fallocate(int fd, \
1243                                     off_t offset, off_t len); }
1244 531     AUE_POSIX_FADVISE       STD     { int posix_fadvise(int fd, \
1245                                     off_t offset, \
1246                                     off_t len, int advice); }
1247 532     AUE_WAIT6       STD     { int wait6(idtype_t idtype, id_t id, \
1248                                     _Out_opt_ int *status, int options, \
1249                                     _Out_opt_ struct __wrusage *wrusage, \
1250                                     _Out_opt_ siginfo_t *info); }
1251 533     AUE_CAP_RIGHTS_LIMIT    STD     { int cap_rights_limit(int fd, \
1252                                     _In_ cap_rights_t *rightsp); }
1253 534     AUE_CAP_IOCTLS_LIMIT    STD     { int cap_ioctls_limit(int fd, \
1254                                     _In_reads_(ncmds) const u_long *cmds, \
1255                                     size_t ncmds); }
1256 535     AUE_CAP_IOCTLS_GET      STD     { ssize_t cap_ioctls_get(int fd, \
1257                                     _Out_writes_(maxcmds) u_long *cmds, \
1258                                     size_t maxcmds); }
1259 536     AUE_CAP_FCNTLS_LIMIT    STD     { int cap_fcntls_limit(int fd, \
1260                                     uint32_t fcntlrights); }
1261 537     AUE_CAP_FCNTLS_GET      STD     { int cap_fcntls_get(int fd, \
1262                                     _Out_ uint32_t *fcntlrightsp); }
1263 538     AUE_BINDAT      STD     { int bindat(int fd, int s, \
1264                                     _In_reads_bytes_(namelen) \
1265                                     caddr_t name, \
1266                                     int namelen); }
1267 539     AUE_CONNECTAT   STD     { int connectat(int fd, int s, \
1268                                     _In_reads_bytes_(namelen) \
1269                                     caddr_t name, \
1270                                     int namelen); }
1271 540     AUE_CHFLAGSAT   STD     { int chflagsat(int fd, \
1272                                     _In_z_ const char *path, \
1273                                     u_long flags, int atflag); }
1274 541     AUE_ACCEPT      STD     { int accept4(int s, \
1275                                     _Out_writes_bytes_opt_(*anamelen) \
1276                                     struct sockaddr *name, \
1277                                     _Inout_opt_ \
1278                                     __socklen_t *anamelen, \
1279                                     int flags); }
1280 542     AUE_PIPE        STD     { int pipe2(_Out_writes_(2) int *fildes, \
1281                                     int flags); }
1282 543     AUE_AIO_MLOCK   STD     { int aio_mlock(_In_ struct aiocb *aiocbp); }
1283 544     AUE_PROCCTL     STD     { int procctl(idtype_t idtype, id_t id, \
1284                                     int com, _In_opt_ void *data); }
1285 545     AUE_POLL        STD     { int ppoll( \
1286                                     _Inout_updates_(nfds) struct pollfd *fds, \
1287                                     u_int nfds, \
1288                                     _In_opt_ const struct timespec *ts, \
1289                                     _In_opt_ const sigset_t *set); }
1290 546     AUE_FUTIMES     STD     { int futimens(int fd, \
1291                                     _In_reads_(2) \
1292                                     struct timespec *times); }
1293 547     AUE_FUTIMESAT   STD     { int utimensat(int fd, \
1294                                     _In_z_ char *path, \
1295                                     _In_reads_(2) \
1296                                     struct timespec *times, \
1297                                     int flag); }
1298 548     AUE_NULL        OBSOL   numa_getaffinity
1299 549     AUE_NULL        OBSOL   numa_setaffinity
1300 550     AUE_FSYNC       STD     { int fdatasync(int fd); }
1301 551     AUE_FSTAT       STD     { int fstat(int fd, _Out_ struct stat *sb); }
1302 552     AUE_FSTATAT     STD     { int fstatat(int fd, _In_z_ char *path, \
1303                                     _Out_ struct stat *buf, int flag); }
1304 553     AUE_FHSTAT      STD     { int fhstat(_In_ const struct fhandle *u_fhp, \
1305                                     _Out_ struct stat *sb); }
1306 554     AUE_GETDIRENTRIES STD { ssize_t getdirentries(int fd, \
1307                                     _Out_writes_bytes_(count) char *buf, \
1308                                     size_t count, _Out_ off_t *basep); }
1309 555     AUE_STATFS      STD     { int statfs(_In_z_ char *path, \
1310                                     _Out_ struct statfs *buf); }
1311 556     AUE_FSTATFS     STD     { int fstatfs(int fd, \
1312                                     _Out_ struct statfs *buf); }
1313 557     AUE_GETFSSTAT   STD     { int getfsstat( \
1314                                     _Out_writes_bytes_opt_(bufsize) \
1315                                     struct statfs *buf, \
1316                                     long bufsize, int mode); }
1317 558     AUE_FHSTATFS    STD     { int fhstatfs( \
1318                                     _In_ const struct fhandle *u_fhp, \
1319                                     _Out_ struct statfs *buf); }
1320 559     AUE_MKNODAT     STD     { int mknodat(int fd, _In_z_ char *path, \
1321                                     mode_t mode, dev_t dev); }
1322 560     AUE_KEVENT      STD     { int kevent(int fd, \
1323                                     _In_reads_opt_(nchanges) \
1324                                     struct kevent *changelist, \
1325                                     int nchanges, \
1326                                     _Out_writes_opt_(nevents) \
1327                                     struct kevent *eventlist, int nevents, \
1328                                     _In_opt_ const struct timespec *timeout); }
1329 561     AUE_NULL        STD     { int cpuset_getdomain(cpulevel_t level, \
1330                                     cpuwhich_t which, id_t id, \
1331                                     size_t domainsetsize, \
1332                                     _Out_writes_bytes_(domainsetsize) \
1333                                     domainset_t *mask, \
1334                                     _Out_ int *policy); }
1335 562     AUE_NULL        STD     { int cpuset_setdomain(cpulevel_t level, \
1336                                     cpuwhich_t which, id_t id, \
1337                                     size_t domainsetsize, \
1338                                     _In_ domainset_t *mask, \
1339                                     int policy); }
1340 563     AUE_NULL        STD     { int getrandom( \
1341                                     _Out_writes_bytes_(buflen) void *buf, \
1342                                     size_t buflen, unsigned int flags); }
1343
1344 ; Please copy any additions and changes to the following compatability tables:
1345 ; sys/compat/freebsd32/syscalls.master
1346 ; vim: syntax=off