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