2 ; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94
4 ; System call name/number master file.
5 ; Processed to created init_sysent.c, syscalls.c and syscall.h.
7 ; New FreeBSD system calls should be added to the bottom of this file.
9 ; Columns: number audit type name alt{name,tag,rtyp}/comments
10 ; number system call number, must be in order
11 ; audit the audit event associated with the system call
12 ; A value of AUE_NULL means no auditing, but it also means that
13 ; there is no audit event for the call at this time. For the
14 ; case where the event exists, but we don't want auditing, the
15 ; event should be #defined to AUE_NULL in audit_kevents.h.
16 ; type one of STD, OBSOL, RESERVED, UNIMPL, COMPAT, COMPAT4, COMPAT6,
17 ; COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD
18 ; The COMPAT* options may be combined with one or more NO*
19 ; options separated by '|' with no spaces (e.g. COMPAT|NOARGS)
20 ; The CAPENABLED option may be ORed into a type.
21 ; name pseudo-prototype of syscall routine
22 ; If one of the following alts is different, then all appear:
23 ; altname name of system call if different
24 ; alttag name of args struct tag if different from [o]`name'"_args"
25 ; altrtyp return type if not int (bogus - syscalls always return int)
26 ; for UNIMPL/OBSOL, name continues with comments
30 ; COMPAT included on COMPAT #ifdef
31 ; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat)
32 ; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat)
33 ; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat)
34 ; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat)
35 ; COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat)
36 ; COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat)
37 ; OBSOL obsolete, not included in system, only specifies name
38 ; RESERVED reserved for local or vendor use (not for FreeBSD)
39 ; UNIMPL not implemented, placeholder only
40 ; NOSTD implemented but as a lkm that can be statically
41 ; compiled in; sysent entry will be filled with lkmressys
42 ; so the SYSCALL_MODULE macro works
43 ; NOARGS same as STD except do not create structure in sys/sysproto.h
44 ; NODEF same as STD except only have the entry in the syscall table
45 ; added. Meaning - do not create structure or function
46 ; prototype in sys/sysproto.h
47 ; NOPROTO same as STD except do not create structure or
48 ; function prototype in sys/sysproto.h. Does add a
49 ; definition to syscall.h besides adding a sysent.
50 ; NOTSTATIC syscall is loadable
51 ; CAPENABLED syscall is allowed in capability mode
54 ; SAL 2.0 annotations are used to specify how system calls treat
55 ; arguments that are passed using pointers. There are three basic
58 ; _In_ Object pointed to will be read and not modified.
59 ; _Out_ Object pointed to will be written and not read.
60 ; _Inout_ Object pointed to will be written and read.
62 ; These annotations are used alone when the pointer refers to a single
63 ; object i.e. scalar types, structs, and pointers, and not NULL. Adding
64 ; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also
67 ; For pointers to arrays, additional suffixes are added:
69 ; _In_z_, _Out_z_, _Inout_z_:
70 ; for a NUL terminated array e.g. a string.
71 ; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n):
72 ; for a NUL terminated array e.g. a string, of known length n bytes.
73 ; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n):
74 ; for an array of n elements.
75 ; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n):
76 ; for a buffer of n-bytes.
78 ; Please copy any additions and changes to the following compatability tables:
79 ; sys/compat/freebsd32/syscalls.master
81 ; #ifdef's, etc. may be included, and are copied to the output files.
83 #include <sys/param.h>
84 #include <sys/sysent.h>
85 #include <sys/sysproto.h>
89 } syscall nosys_args int
90 1 AUE_EXIT STD|CAPENABLED {
94 } exit sys_exit_args void
95 2 AUE_FORK STD|CAPENABLED {
98 3 AUE_READ STD|CAPENABLED {
101 _Out_writes_bytes_(nbyte) void *buf,
105 4 AUE_WRITE STD|CAPENABLED {
108 _In_reads_bytes_(nbyte) const void *buf,
112 5 AUE_OPEN_RWTC STD {
114 _In_z_ const char *path,
119 ; XXX should be { int open(const char *path, int flags, ...); }
120 ; but we're not ready for varargs.
121 6 AUE_CLOSE STD|CAPENABLED {
129 _Out_opt_ int *status,
131 _Out_opt_ struct rusage *rusage
136 _In_z_ const char *path,
142 _In_z_ const char *path,
143 _In_z_ const char *link
148 _In_z_ const char *path
151 11 AUE_NULL OBSOL execv
154 _In_z_ const char *path
162 14 AUE_MKNOD COMPAT11 {
164 _In_z_ const char *path,
171 _In_z_ const char *path,
177 _In_z_ const char *path,
182 17 AUE_NULL STD|CAPENABLED {
187 18 AUE_GETFSSTAT COMPAT4 {
189 _Out_writes_bytes_opt_(bufsize) struct ostatfs *buf,
194 19 AUE_LSEEK COMPAT|CAPENABLED {
201 20 AUE_GETPID STD|CAPENABLED {
206 _In_z_ const char *type,
207 _In_z_ const char *path,
214 _In_z_ const char *path,
218 23 AUE_SETUID STD|CAPENABLED {
223 24 AUE_GETUID STD|CAPENABLED {
226 25 AUE_GETEUID STD|CAPENABLED {
233 _Inout_opt_ caddr_t addr,
237 27 AUE_RECVMSG STD|CAPENABLED {
240 _Inout_ struct msghdr *msg,
244 28 AUE_SENDMSG STD|CAPENABLED {
247 _In_ const struct msghdr *msg,
251 29 AUE_RECVFROM STD|CAPENABLED {
254 _Out_writes_bytes_(len) void *buf,
257 _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from,
258 _Inout_opt_ __socklen_t *fromlenaddr
261 30 AUE_ACCEPT STD|CAPENABLED {
264 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
265 _Inout_opt_ __socklen_t *anamelen
268 31 AUE_GETPEERNAME STD|CAPENABLED {
271 _Out_writes_bytes_(*alen) struct sockaddr *asa,
272 _Inout_opt_ __socklen_t *alen
275 32 AUE_GETSOCKNAME STD|CAPENABLED {
278 _Out_writes_bytes_(*alen) struct sockaddr *asa,
279 _Inout_ __socklen_t *alen
284 _In_z_ const char *path,
290 _In_z_ const char *path,
294 35 AUE_FCHFLAGS STD|CAPENABLED {
300 36 AUE_SYNC STD|CAPENABLED {
303 37 AUE_KILL STD|CAPENABLED {
311 _In_z_ const char *path,
312 _Out_ struct ostat *ub
315 39 AUE_GETPPID STD|CAPENABLED {
318 40 AUE_LSTAT COMPAT {
320 _In_z_ const char *path,
321 _Out_ struct ostat *ub
324 41 AUE_DUP STD|CAPENABLED {
329 42 AUE_PIPE COMPAT10|CAPENABLED {
332 43 AUE_GETEGID STD|CAPENABLED {
335 44 AUE_PROFILE STD|CAPENABLED {
337 _Out_writes_bytes_(size) char *samples,
345 _In_z_ const char *fname,
351 46 AUE_SIGACTION COMPAT|CAPENABLED {
354 _In_opt_ struct osigaction *nsa,
355 _Out_opt_ struct osigaction *osa
358 47 AUE_GETGID STD|CAPENABLED {
361 48 AUE_SIGPROCMASK COMPAT|CAPENABLED {
367 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
368 ; us the mask, not a pointer to it, and we return the old mask as the
369 ; (int) return value.
370 49 AUE_GETLOGIN STD|CAPENABLED {
372 _Out_writes_z_(namelen) char *namebuf,
376 50 AUE_SETLOGIN STD {
378 _In_z_ const char *namebuf
383 _In_z_ const char *path
386 52 AUE_SIGPENDING COMPAT|CAPENABLED {
387 int sigpending(void);
389 53 AUE_SIGALTSTACK STD|CAPENABLED {
391 _In_opt_ const stack_t *ss,
392 _Out_opt_ stack_t *oss
395 54 AUE_IOCTL STD|CAPENABLED {
399 _Inout_opt_ char *data
409 _In_z_ const char *path
414 _In_z_ const char *path,
415 _In_z_ const char *link
418 58 AUE_READLINK STD {
420 _In_z_ const char *path,
421 _Out_writes_z_(count) char *buf,
427 _In_z_ const char *fname,
432 60 AUE_UMASK STD|CAPENABLED {
439 _In_z_ const char *path
442 62 AUE_FSTAT COMPAT|CAPENABLED {
445 _Out_ struct ostat *sb
451 _Out_writes_bytes_opt(*size) char *where,
452 _Inout_opt_ size_t *size,
456 64 AUE_NULL COMPAT|CAPENABLED {
457 int getpagesize(void);
459 65 AUE_MSYNC STD|CAPENABLED {
469 67 AUE_NULL OBSOL vread
470 68 AUE_NULL OBSOL vwrite
471 69 AUE_SBRK STD|CAPENABLED {
476 70 AUE_SSTK STD|CAPENABLED {
481 71 AUE_MMAP COMPAT|CAPENABLED {
491 72 AUE_O_VADVISE COMPAT11 {
496 73 AUE_MUNMAP STD|CAPENABLED {
502 74 AUE_MPROTECT STD|CAPENABLED {
504 _In_ const void *addr,
509 75 AUE_MADVISE STD|CAPENABLED {
516 76 AUE_NULL OBSOL vhangup
517 77 AUE_NULL OBSOL vlimit
518 78 AUE_MINCORE STD|CAPENABLED {
520 _In_ const void *addr,
522 _Out_writes_bytes_(len/PAGE_SIZE) char *vec
525 79 AUE_GETGROUPS STD|CAPENABLED {
528 _Out_writes_opt_(gidsetsize) gid_t *gidset
531 80 AUE_SETGROUPS STD {
534 _In_reads_(gidsetsize) const gid_t *gidset
537 81 AUE_GETPGRP STD|CAPENABLED {
546 83 AUE_SETITIMER STD|CAPENABLED {
549 _In_ const struct itimerval *itv,
550 _Out_opt_ struct itimerval *oitv
553 84 AUE_WAIT4 COMPAT {
558 _In_z_ const char *name
561 86 AUE_GETITIMER STD|CAPENABLED {
564 _Out_ struct itimerval *itv
567 87 AUE_SYSCTL COMPAT|CAPENABLED {
569 _Out_writes_z_(len) char *hostname,
573 88 AUE_SYSCTL COMPAT {
575 _In_reads_z_(len) char *hostname,
579 89 AUE_GETDTABLESIZE STD|CAPENABLED {
580 int getdtablesize(void);
582 90 AUE_DUP2 STD|CAPENABLED {
589 92 AUE_FCNTL STD|CAPENABLED {
596 ; XXX should be { int fcntl(int fd, int cmd, ...); }
597 ; but we're not ready for varargs.
598 93 AUE_SELECT STD|CAPENABLED {
601 _Inout_opt_ fd_set *in,
602 _Inout_opt_ fd_set *ou,
603 _Inout_opt_ fd_set *ex,
604 _In_opt_ struct timeval *tv
608 95 AUE_FSYNC STD|CAPENABLED {
613 96 AUE_SETPRIORITY STD|CAPENABLED {
620 97 AUE_SOCKET STD|CAPENABLED {
630 _In_reads_bytes_(namelen) const struct sockaddr *name,
634 99 AUE_ACCEPT COMPAT|CAPENABLED {
637 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
641 100 AUE_GETPRIORITY STD|CAPENABLED {
647 101 AUE_SEND COMPAT|CAPENABLED {
650 _In_reads_bytes_(len) const void *buf,
655 102 AUE_RECV COMPAT|CAPENABLED {
658 _Out_writes_bytes_(len) void *buf,
663 103 AUE_SIGRETURN COMPAT|CAPENABLED {
665 _In_ struct osigcontext *sigcntxp
671 _In_reads_bytes_(namelen) const struct sockaddr *name,
675 105 AUE_SETSOCKOPT STD|CAPENABLED {
680 _In_reads_bytes_opt_(valsize) const void *val,
684 106 AUE_LISTEN STD|CAPENABLED {
690 107 AUE_NULL OBSOL vtimes
691 108 AUE_NULL COMPAT|CAPENABLED {
694 _In_opt_ struct sigvec *nsv,
695 _Out_opt_ struct sigvec *osv
698 109 AUE_NULL COMPAT|CAPENABLED {
703 110 AUE_NULL COMPAT|CAPENABLED {
708 111 AUE_NULL COMPAT|CAPENABLED {
713 ; XXX note nonstandard (bogus) calling convention - the libc stub passes
714 ; us the mask, not a pointer to it.
715 112 AUE_NULL COMPAT|CAPENABLED {
717 _In_opt_ struct sigstack *nss,
718 _Out_opt_ struct sigstack *oss
721 113 AUE_RECVMSG COMPAT|CAPENABLED {
724 _Inout_ struct omsghdr *msg,
728 114 AUE_SENDMSG COMPAT|CAPENABLED {
731 _In_ const void *msg,
735 115 AUE_NULL OBSOL vtrace
736 116 AUE_GETTIMEOFDAY STD|CAPENABLED {
738 _Out_ struct timeval *tp,
739 _Out_opt_ struct timezone *tzp
742 117 AUE_GETRUSAGE STD|CAPENABLED {
745 _Out_ struct rusage *rusage
748 118 AUE_GETSOCKOPT STD|CAPENABLED {
753 _Out_writes_bytes_opt_(*avalsize) void *val,
754 _Inout_ int *avalsize
757 119 AUE_NULL RESERVED
758 120 AUE_READV STD|CAPENABLED {
761 _Inout_updates_(iovcnt) struct iovec *iovp,
765 121 AUE_WRITEV STD|CAPENABLED {
768 _In_reads_opt_(iovcnt) struct iovec *iovp,
772 122 AUE_SETTIMEOFDAY STD {
774 _In_ const struct timeval *tv,
775 _In_opt_ const struct timezone *tzp
778 123 AUE_FCHOWN STD|CAPENABLED {
785 124 AUE_FCHMOD STD|CAPENABLED {
791 125 AUE_RECVFROM COMPAT|NOARGS|CAPENABLED {
794 _Out_writes_(len) void *buf,
797 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
798 _Inout_ int *fromlenaddr
800 } recvfrom recvfrom_args int
801 126 AUE_SETREUID STD|CAPENABLED {
807 127 AUE_SETREGID STD|CAPENABLED {
815 _In_z_ const char *from,
816 _In_z_ const char *to
819 129 AUE_TRUNCATE COMPAT {
821 _In_z_ const char *path,
825 130 AUE_FTRUNCATE COMPAT|CAPENABLED {
831 131 AUE_FLOCK STD|CAPENABLED {
839 _In_z_ const char *path,
843 133 AUE_SENDTO STD|CAPENABLED {
846 _In_reads_bytes_(len) const void *buf,
849 _In_reads_bytes_opt_(tolen) const struct sockaddr *to,
853 134 AUE_SHUTDOWN STD|CAPENABLED {
859 135 AUE_SOCKETPAIR STD|CAPENABLED {
864 _Out_writes_(2) int *rsv
869 _In_z_ const char *path,
875 _In_z_ const char *path
880 _In_z_ const char *path,
881 _In_ const struct timeval *tptr
884 139 AUE_NULL OBSOL 4.2 sigreturn
885 140 AUE_ADJTIME STD {
887 _In_ const struct timeval *delta,
888 _Out_opt_ struct timeval *olddelta
891 141 AUE_GETPEERNAME COMPAT|CAPENABLED {
894 _Out_writes_bytes_(*alen) struct sockaddr *asa,
895 _Inout_opt_ int *alen
898 142 AUE_SYSCTL COMPAT|CAPENABLED {
899 long gethostid(void);
901 143 AUE_SYSCTL COMPAT {
906 144 AUE_GETRLIMIT COMPAT|CAPENABLED {
909 _Out_ struct orlimit *rlp
912 145 AUE_SETRLIMIT COMPAT|CAPENABLED {
915 _Out_ struct orlimit *rlp
918 146 AUE_KILLPG COMPAT {
924 147 AUE_SETSID STD|CAPENABLED {
927 148 AUE_QUOTACTL STD {
929 _In_z_ const char *path,
935 149 AUE_O_QUOTA COMPAT {
938 150 AUE_GETSOCKNAME COMPAT|NOARGS|CAPENABLED {
941 _Out_writes_bytes_(*alen) struct sockaddr *asa,
944 } getsockname getsockname_args int
945 151-153 AUE_NULL RESERVED
946 ; 154 is initialised by the NLM code, if present.
952 _In_reads_(addr_count) char **addrs
955 ; 155 is initialized by the NFS code, if present.
956 155 AUE_NFS_SVC NOSTD {
962 156 AUE_GETDIRENTRIES COMPAT|CAPENABLED {
965 _Out_writes_bytes_(count) char *buf,
970 157 AUE_STATFS COMPAT4 {
972 _In_z_ const char *path,
973 _Out_ struct ostatfs *buf
976 158 AUE_FSTATFS COMPAT4|CAPENABLED {
979 _Out_ struct ostatfs *buf
982 159 AUE_NULL RESERVED
985 _In_z_ const char *fname,
986 _Out_ struct fhandle *fhp
989 161 AUE_NFS_GETFH STD {
991 _In_z_ const char *fname,
992 _Out_ struct fhandle *fhp
995 162 AUE_SYSCTL COMPAT4|CAPENABLED {
997 _Out_writes_z_(len) char *domainname,
1001 163 AUE_SYSCTL COMPAT4 {
1003 _In_reads_z_(len) char *domainname,
1007 164 AUE_NULL COMPAT4 {
1009 _Out_ struct utsname *name
1012 165 AUE_SYSARCH STD|CAPENABLED {
1018 166 AUE_RTPRIO STD|CAPENABLED {
1022 _Inout_ struct rtprio *rtp
1025 167-168 AUE_NULL RESERVED
1026 169 AUE_SEMSYS NOSTD {
1035 ; XXX should be { int semsys(int which, ...); }
1036 170 AUE_MSGSYS NOSTD {
1046 ; XXX should be { int msgsys(int which, ...); }
1047 171 AUE_SHMSYS NOSTD {
1055 ; XXX should be { int shmsys(int which, ...); }
1056 172 AUE_NULL RESERVED
1057 173 AUE_PREAD COMPAT6|CAPENABLED {
1060 _Out_writes_bytes_(nbyte) void *buf,
1066 174 AUE_PWRITE COMPAT6|CAPENABLED {
1069 _In_reads_bytes_(nbyte) const void *buf,
1075 175 AUE_SETFIB STD {
1080 176 AUE_NTP_ADJTIME STD {
1082 _Inout_ struct timex *tp
1085 177-180 AUE_NULL RESERVED
1086 181 AUE_SETGID STD|CAPENABLED {
1091 182 AUE_SETEGID STD|CAPENABLED {
1096 183 AUE_SETEUID STD|CAPENABLED {
1101 184 AUE_NULL OBSOL lfs_bmapv
1102 185 AUE_NULL OBSOL lfs_markv
1103 186 AUE_NULL OBSOL lfs_segclean
1104 187 AUE_NULL OBSOL lfs_segwait
1105 188 AUE_STAT COMPAT11 {
1107 _In_z_ const char *path,
1108 _Out_ struct freebsd11_stat *ub
1111 189 AUE_FSTAT COMPAT11|CAPENABLED {
1114 _Out_ struct freebsd11_stat *sb
1117 190 AUE_LSTAT COMPAT11 {
1119 _In_z_ const char *path,
1120 _Out_ struct freebsd11_stat *ub
1123 191 AUE_PATHCONF STD {
1125 _In_z_ const char *path,
1129 192 AUE_FPATHCONF STD|CAPENABLED {
1135 193 AUE_NULL RESERVED
1136 194 AUE_GETRLIMIT STD|CAPENABLED {
1139 _Out_ struct rlimit *rlp
1141 } getrlimit __getrlimit_args int
1142 195 AUE_SETRLIMIT STD|CAPENABLED {
1145 _In_ struct rlimit *rlp
1147 } setrlimit __setrlimit_args int
1148 196 AUE_GETDIRENTRIES COMPAT11|CAPENABLED {
1151 _Out_writes_bytes_(count) char *buf,
1156 197 AUE_MMAP COMPAT6|CAPENABLED {
1167 198 AUE_NULL NOPROTO {
1169 } __syscall __syscall_args int
1170 199 AUE_LSEEK COMPAT6|CAPENABLED {
1178 200 AUE_TRUNCATE COMPAT6 {
1180 _In_z_ const char *path,
1185 201 AUE_FTRUNCATE COMPAT6|CAPENABLED {
1192 202 AUE_SYSCTL STD|CAPENABLED {
1194 _In_reads_(namelen) int *name,
1196 _Out_writes_bytes_opt_(*oldlenp) void *old,
1197 _Inout_opt_ size_t *oldlenp,
1198 _In_reads_bytes_opt_(newlen) const void *new,
1201 } __sysctl sysctl_args int
1202 203 AUE_MLOCK STD|CAPENABLED {
1204 _In_ const void *addr,
1208 204 AUE_MUNLOCK STD|CAPENABLED {
1210 _In_ const void *addr,
1214 205 AUE_UNDELETE STD {
1216 _In_z_ const char *path
1219 206 AUE_FUTIMES STD|CAPENABLED {
1222 _In_reads_(2) const struct timeval *tptr
1225 207 AUE_GETPGID STD|CAPENABLED {
1230 208 AUE_NULL RESERVED
1231 209 AUE_POLL STD|CAPENABLED {
1233 _Inout_updates_(nfds) struct pollfd *fds,
1239 ; The following are reserved for loadable syscalls
1241 210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1242 211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1243 212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1244 213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1245 214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1246 215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1247 216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1248 217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1249 218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1250 219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int
1252 220 AUE_SEMCTL COMPAT7|NOSTD {
1257 union semun_old *arg
1260 221 AUE_SEMGET NOSTD {
1267 222 AUE_SEMOP NOSTD {
1270 _In_reads_(nsops) struct sembuf *sops,
1274 223 AUE_NULL OBSOL semconfig
1275 224 AUE_MSGCTL COMPAT7|NOSTD {
1279 struct msqid_ds_old *buf
1282 225 AUE_MSGGET NOSTD {
1288 226 AUE_MSGSND NOSTD {
1291 _In_reads_bytes_(msgsz) const void *msgp,
1296 227 AUE_MSGRCV NOSTD {
1299 _Out_writes_bytes_(msgsz) void *msgp,
1305 228 AUE_SHMAT NOSTD {
1308 _In_ const void *shmaddr,
1312 229 AUE_SHMCTL COMPAT7|NOSTD {
1316 struct shmid_ds_old *buf
1319 230 AUE_SHMDT NOSTD {
1321 _In_ const void *shmaddr
1324 231 AUE_SHMGET NOSTD {
1331 232 AUE_NULL STD|CAPENABLED {
1334 _Out_ struct timespec *tp
1337 233 AUE_CLOCK_SETTIME STD {
1340 _In_ const struct timespec *tp
1343 234 AUE_NULL STD|CAPENABLED {
1346 _Out_ struct timespec *tp
1349 235 AUE_NULL STD|CAPENABLED {
1352 _In_ struct sigevent *evp,
1356 236 AUE_NULL STD|CAPENABLED {
1361 237 AUE_NULL STD|CAPENABLED {
1365 _In_ const struct itimerspec *value,
1366 _Out_opt_ struct itimerspec *ovalue
1369 238 AUE_NULL STD|CAPENABLED {
1372 _Out_ struct itimerspec *value
1375 239 AUE_NULL STD|CAPENABLED {
1376 int ktimer_getoverrun(
1380 240 AUE_NULL STD|CAPENABLED {
1382 _In_ const struct timespec *rqtp,
1383 _Out_opt_ struct timespec *rmtp
1387 int ffclock_getcounter(
1388 _Out_ ffcounter *ffcount
1392 int ffclock_setestimate(
1393 _In_ struct ffclock_estimate *cest
1397 int ffclock_getestimate(
1398 _Out_ struct ffclock_estimate *cest
1402 int clock_nanosleep(
1405 _In_ const struct timespec *rqtp,
1406 _Out_opt_ struct timespec *rmtp
1409 245-246 AUE_NULL RESERVED
1411 int clock_getcpuclockid2(
1414 _Out_ clockid_t *clock_id
1417 248 AUE_NULL STD|CAPENABLED {
1419 _Out_ struct ntptimeval *ntvp
1422 249 AUE_NULL RESERVED
1423 250 AUE_MINHERIT STD|CAPENABLED {
1435 252 AUE_POLL OBSOL openbsd_poll
1436 253 AUE_ISSETUGID STD|CAPENABLED {
1437 int issetugid(void);
1439 254 AUE_LCHOWN STD {
1441 _In_z_ const char *path,
1446 255 AUE_AIO_READ STD|CAPENABLED {
1448 _Inout_ struct aiocb *aiocbp
1451 256 AUE_AIO_WRITE STD|CAPENABLED {
1453 _Inout_ struct aiocb *aiocbp
1456 257 AUE_LIO_LISTIO STD|CAPENABLED {
1459 _Inout_updates_(nent) struct aiocb * const *acb_list,
1461 _In_opt_ struct sigevent *sig
1464 258-271 AUE_NULL RESERVED
1465 272 AUE_O_GETDENTS COMPAT11|CAPENABLED {
1468 _Out_writes_bytes_(count) char *buf,
1472 273 AUE_NULL RESERVED
1473 274 AUE_LCHMOD STD {
1475 _In_z_ const char *path,
1479 275 AUE_NULL OBSOL netbsd_lchown
1480 276 AUE_LUTIMES STD {
1482 _In_z_ const char *path,
1483 _In_ const struct timeval *tptr
1486 277 AUE_NULL OBSOL netbsd_msync
1487 278 AUE_STAT COMPAT11 {
1489 _In_z_ const char *path,
1490 _Out_ struct nstat *ub
1493 279 AUE_FSTAT COMPAT11 {
1496 _Out_ struct nstat *sb
1499 280 AUE_LSTAT COMPAT11 {
1501 _In_z_ const char *path,
1502 _Out_ struct nstat *ub
1505 281-288 AUE_NULL RESERVED
1506 289 AUE_PREADV STD|CAPENABLED {
1509 _In_reads_(iovcnt) struct iovec *iovp,
1514 290 AUE_PWRITEV STD|CAPENABLED {
1517 _In_reads_(iovcnt) struct iovec *iovp,
1522 291-296 AUE_NULL RESERVED
1523 297 AUE_FHSTATFS COMPAT4 {
1525 _In_ const struct fhandle *u_fhp,
1526 _Out_ struct ostatfs *buf
1529 298 AUE_FHOPEN STD {
1531 _In_ const struct fhandle *u_fhp,
1535 299 AUE_FHSTAT COMPAT11 {
1537 _In_ const struct fhandle *u_fhp,
1538 _Out_ struct freebsd11_stat *sb
1549 _Out_ struct module_stat *stat
1559 _In_z_ const char *name
1562 304 AUE_MODLOAD STD {
1564 _In_z_ const char *file
1567 305 AUE_MODUNLOAD STD {
1574 _In_z_ const char *file
1585 _Out_ struct kld_file_stat *stat
1593 310 AUE_GETSID STD|CAPENABLED {
1598 311 AUE_SETRESUID STD|CAPENABLED {
1605 312 AUE_SETRESGID STD|CAPENABLED {
1612 313 AUE_NULL OBSOL signanosleep
1613 314 AUE_AIO_RETURN STD|CAPENABLED {
1615 _Inout_ struct aiocb *aiocbp
1618 315 AUE_AIO_SUSPEND STD|CAPENABLED {
1620 _Inout_updates_(nent) struct aiocb * const * aiocbp,
1622 _In_opt_ const struct timespec *timeout
1625 316 AUE_AIO_CANCEL STD|CAPENABLED {
1628 _In_opt_ struct aiocb *aiocbp
1631 317 AUE_AIO_ERROR STD|CAPENABLED {
1633 _In_ struct aiocb *aiocbp
1636 318 AUE_AIO_READ COMPAT6|CAPENABLED {
1638 _Inout_ struct oaiocb *aiocbp
1641 319 AUE_AIO_WRITE COMPAT6|CAPENABLED {
1643 _Inout_ struct oaiocb *aiocbp
1646 320 AUE_LIO_LISTIO COMPAT6|CAPENABLED {
1649 _Inout_updates_(nent) struct oaiocb * const *acb_list,
1651 _In_opt_ struct osigevent *sig
1654 321 AUE_NULL STD|CAPENABLED {
1657 322 AUE_NULL OBSOL thr_sleep
1658 323 AUE_NULL OBSOL thr_wakeup
1659 324 AUE_MLOCKALL STD|CAPENABLED {
1664 325 AUE_MUNLOCKALL STD|CAPENABLED {
1665 int munlockall(void);
1667 326 AUE_GETCWD STD {
1669 _Out_writes_z_(buflen) char *buf,
1673 327 AUE_NULL STD|CAPENABLED {
1676 _In_ const struct sched_param *param
1679 328 AUE_NULL STD|CAPENABLED {
1682 _Out_ struct sched_param *param
1685 329 AUE_NULL STD|CAPENABLED {
1686 int sched_setscheduler(
1689 _In_ const struct sched_param *param
1692 330 AUE_NULL STD|CAPENABLED {
1693 int sched_getscheduler(
1697 331 AUE_NULL STD|CAPENABLED {
1698 int sched_yield(void);
1700 332 AUE_NULL STD|CAPENABLED {
1701 int sched_get_priority_max(
1705 333 AUE_NULL STD|CAPENABLED {
1706 int sched_get_priority_min(
1710 334 AUE_NULL STD|CAPENABLED {
1711 int sched_rr_get_interval(
1713 _Out_ struct timespec *interval
1716 335 AUE_NULL STD|CAPENABLED {
1718 _In_reads_bytes_(len) const void *addr,
1722 336 AUE_SENDFILE COMPAT4|CAPENABLED {
1728 _In_opt_ struct sf_hdtr *hdtr,
1729 _Out_opt_ off_t *sbytes,
1742 _In_ struct jail *jail
1745 339 AUE_NULL NOSTD|NOTSTATIC {
1751 int a_followSymlinks
1754 340 AUE_SIGPROCMASK STD|CAPENABLED {
1757 _In_opt_ const sigset_t *set,
1758 _Out_opt_ sigset_t *oset
1761 341 AUE_SIGSUSPEND STD|CAPENABLED {
1763 _In_ const sigset_t *sigmask
1766 342 AUE_SIGACTION COMPAT4|CAPENABLED {
1769 _In_opt_ const struct sigaction *act,
1770 _Out_opt_ struct sigaction *oact
1773 343 AUE_SIGPENDING STD|CAPENABLED {
1778 344 AUE_SIGRETURN COMPAT4|CAPENABLED {
1780 _In_ const struct ucontext4 *sigcntxp
1783 345 AUE_SIGWAIT STD|CAPENABLED {
1785 _In_ const sigset_t *set,
1786 _Out_opt_ siginfo_t *info,
1787 _In_opt_ const struct timespec *timeout
1790 346 AUE_NULL STD|CAPENABLED {
1792 _In_ const sigset_t *set,
1793 _Out_opt_ siginfo_t *info
1796 347 AUE_ACL_GET_FILE STD {
1798 _In_z_ const char *path,
1800 _Out_ struct acl *aclp
1803 348 AUE_ACL_SET_FILE STD {
1805 _In_z_ const char *path,
1807 _In_ struct acl *aclp
1810 349 AUE_ACL_GET_FD STD|CAPENABLED {
1814 _Out_ struct acl *aclp
1817 350 AUE_ACL_SET_FD STD|CAPENABLED {
1821 _In_ struct acl *aclp
1824 351 AUE_ACL_DELETE_FILE STD {
1825 int __acl_delete_file(
1826 _In_z_ const char *path,
1830 352 AUE_ACL_DELETE_FD STD|CAPENABLED {
1831 int __acl_delete_fd(
1836 353 AUE_ACL_CHECK_FILE STD {
1837 int __acl_aclcheck_file(
1838 _In_z_ const char *path,
1840 _In_ struct acl *aclp
1843 354 AUE_ACL_CHECK_FD STD|CAPENABLED {
1844 int __acl_aclcheck_fd(
1847 _In_ struct acl *aclp
1850 355 AUE_EXTATTRCTL STD {
1852 _In_z_ const char *path,
1854 _In_z_opt_ const char *filename,
1856 _In_z_ const char *attrname
1859 356 AUE_EXTATTR_SET_FILE STD {
1860 ssize_t extattr_set_file(
1861 _In_z_ const char *path,
1863 _In_z_ const char *attrname,
1864 _In_reads_bytes_(nbytes) void *data,
1868 357 AUE_EXTATTR_GET_FILE STD {
1869 ssize_t extattr_get_file(
1870 _In_z_ const char *path,
1872 _In_z_ const char *attrname,
1873 _Out_writes_bytes_(nbytes) void *data,
1877 358 AUE_EXTATTR_DELETE_FILE STD {
1878 int extattr_delete_file(
1879 _In_z_ const char *path,
1881 _In_z_ const char *attrname
1884 359 AUE_AIO_WAITCOMPLETE STD|CAPENABLED {
1885 ssize_t aio_waitcomplete(
1886 _Outptr_result_maybenull_ struct aiocb **aiocbp,
1887 _In_opt_ struct timespec *timeout
1890 360 AUE_GETRESUID STD|CAPENABLED {
1892 _Out_opt_ uid_t *ruid,
1893 _Out_opt_ uid_t *euid,
1894 _Out_opt_ uid_t *suid
1897 361 AUE_GETRESGID STD|CAPENABLED {
1899 _Out_opt_ gid_t *rgid,
1900 _Out_opt_ gid_t *egid,
1901 _Out_opt_ gid_t *sgid
1904 362 AUE_KQUEUE STD|CAPENABLED {
1907 363 AUE_KEVENT COMPAT11|CAPENABLED {
1910 _In_reads_opt_(nchanges) const struct freebsd11_kevent *changelist,
1912 _Out_writes_opt_(nevents) struct freebsd11_kevent *eventlist,
1914 _In_opt_ const struct timespec *timeout
1917 364 AUE_NULL OBSOL __cap_get_proc
1918 365 AUE_NULL OBSOL __cap_set_proc
1919 366 AUE_NULL OBSOL __cap_get_fd
1920 367 AUE_NULL OBSOL __cap_get_file
1921 368 AUE_NULL OBSOL __cap_set_fd
1922 369 AUE_NULL OBSOL __cap_set_file
1923 370 AUE_NULL RESERVED
1924 371 AUE_EXTATTR_SET_FD STD|CAPENABLED {
1925 ssize_t extattr_set_fd(
1928 _In_z_ const char *attrname,
1929 _In_reads_bytes_(nbytes) void *data,
1933 372 AUE_EXTATTR_GET_FD STD|CAPENABLED {
1934 ssize_t extattr_get_fd(
1937 _In_z_ const char *attrname,
1938 _Out_writes_bytes_(nbytes) void *data,
1942 373 AUE_EXTATTR_DELETE_FD STD|CAPENABLED {
1943 int extattr_delete_fd(
1946 _In_z_ const char *attrname
1949 374 AUE_SETUGID STD {
1954 375 AUE_NULL OBSOL nfsclnt
1955 376 AUE_EACCESS STD {
1957 _In_z_ const char *path,
1961 377 AUE_NULL NOSTD|NOTSTATIC {
1972 378 AUE_NMOUNT STD {
1974 _In_reads_(iovcnt) struct iovec *iovp,
1975 unsigned int iovcnt,
1979 379 AUE_NULL OBSOL kse_exit
1980 380 AUE_NULL OBSOL kse_wakeup
1981 381 AUE_NULL OBSOL kse_create
1982 382 AUE_NULL OBSOL kse_thr_interrupt
1983 383 AUE_NULL OBSOL kse_release
1984 384 AUE_NULL STD|CAPENABLED {
1986 _In_ struct mac *mac_p
1989 385 AUE_NULL STD|CAPENABLED {
1991 _In_ struct mac *mac_p
1994 386 AUE_NULL STD|CAPENABLED {
1997 _In_ struct mac *mac_p
2002 _In_z_ const char *path_p,
2003 _In_ struct mac *mac_p
2006 388 AUE_NULL STD|CAPENABLED {
2009 _In_ struct mac *mac_p
2014 _In_z_ const char *path_p,
2015 _In_ struct mac *mac_p
2021 _In_z_opt_ const char *name,
2022 _Inout_updates_opt_(len) char *value,
2026 391 AUE_LCHFLAGS STD {
2028 _In_z_ const char *path,
2032 392 AUE_NULL STD|CAPENABLED {
2034 _Out_writes_(count) struct uuid *store,
2038 393 AUE_SENDFILE STD|CAPENABLED {
2044 _In_opt_ struct sf_hdtr *hdtr,
2045 _Out_opt_ off_t *sbytes,
2051 _In_z_ const char *policy,
2056 395 AUE_GETFSSTAT COMPAT11 {
2058 _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf,
2063 396 AUE_STATFS COMPAT11 {
2065 _In_z_ const char *path,
2066 _Out_ struct freebsd11_statfs *buf
2069 397 AUE_FSTATFS COMPAT11|CAPENABLED {
2072 _Out_ struct freebsd11_statfs *buf
2075 398 AUE_FHSTATFS COMPAT11 {
2077 _In_ const struct fhandle *u_fhp,
2078 _Out_ struct freebsd11_statfs *buf
2081 399 AUE_NULL RESERVED
2082 400 AUE_SEMCLOSE NOSTD {
2087 401 AUE_SEMPOST NOSTD {
2092 402 AUE_SEMWAIT NOSTD {
2097 403 AUE_SEMTRYWAIT NOSTD {
2102 404 AUE_SEMINIT NOSTD {
2108 405 AUE_SEMOPEN NOSTD {
2111 _In_z_ const char *name,
2117 406 AUE_SEMUNLINK NOSTD {
2119 _In_z_ const char *name
2122 407 AUE_SEMGETVALUE NOSTD {
2128 408 AUE_SEMDESTROY NOSTD {
2136 _In_ struct mac *mac_p
2141 _In_z_ const char *path_p,
2142 _In_ struct mac *mac_p
2147 _In_z_ const char *path_p,
2148 _In_ struct mac *mac_p
2151 412 AUE_EXTATTR_SET_LINK STD {
2152 ssize_t extattr_set_link(
2153 _In_z_ const char *path,
2155 _In_z_ const char *attrname,
2156 _In_reads_bytes_(nbytes) void *data,
2160 413 AUE_EXTATTR_GET_LINK STD {
2161 ssize_t extattr_get_link(
2162 _In_z_ const char *path,
2164 _In_z_ const char *attrname,
2165 _Out_writes_bytes_(nbytes) void *data,
2169 414 AUE_EXTATTR_DELETE_LINK STD {
2170 int extattr_delete_link(
2171 _In_z_ const char *path,
2173 _In_z_ const char *attrname
2178 _In_z_ const char *fname,
2181 _In_ struct mac *mac_p
2184 416 AUE_SIGACTION STD|CAPENABLED {
2187 _In_opt_ const struct sigaction *act,
2188 _Out_opt_ struct sigaction *oact
2191 417 AUE_SIGRETURN STD|CAPENABLED {
2193 _In_ const struct __ucontext *sigcntxp
2196 418-420 AUE_NULL RESERVED
2197 421 AUE_NULL STD|CAPENABLED {
2199 _Out_ struct __ucontext *ucp
2202 422 AUE_NULL STD|CAPENABLED {
2204 _In_ const struct __ucontext *ucp
2209 _Out_ struct __ucontext *oucp,
2210 _In_ const struct __ucontext *ucp
2213 424 AUE_SWAPOFF STD {
2215 _In_z_ const char *name
2218 425 AUE_ACL_GET_LINK STD {
2220 _In_z_ const char *path,
2222 _Out_ struct acl *aclp
2225 426 AUE_ACL_SET_LINK STD {
2227 _In_z_ const char *path,
2229 _In_ struct acl *aclp
2232 427 AUE_ACL_DELETE_LINK STD {
2233 int __acl_delete_link(
2234 _In_z_ const char *path,
2238 428 AUE_ACL_CHECK_LINK STD {
2239 int __acl_aclcheck_link(
2240 _In_z_ const char *path,
2242 _In_ struct acl *aclp
2245 429 AUE_SIGWAIT STD|CAPENABLED {
2247 _In_ const sigset_t *set,
2251 430 AUE_THR_CREATE STD|CAPENABLED {
2253 _In_ ucontext_t *ctx,
2258 431 AUE_THR_EXIT STD|CAPENABLED {
2260 _Out_opt_ long *state
2263 432 AUE_NULL STD|CAPENABLED {
2268 433 AUE_THR_KILL STD|CAPENABLED {
2275 434 AUE_NULL COMPAT10 {
2277 _Inout_ struct umtx *umtx
2281 435 AUE_NULL COMPAT10 {
2283 _Inout_ struct umtx *umtx
2287 436 AUE_JAIL_ATTACH STD {
2292 437 AUE_EXTATTR_LIST_FD STD|CAPENABLED {
2293 ssize_t extattr_list_fd(
2296 _Out_writes_bytes_opt_(nbytes) void *data,
2300 438 AUE_EXTATTR_LIST_FILE STD {
2301 ssize_t extattr_list_file(
2302 _In_z_ const char *path,
2304 _Out_writes_bytes_opt_(nbytes) void *data,
2308 439 AUE_EXTATTR_LIST_LINK STD {
2309 ssize_t extattr_list_link(
2310 _In_z_ const char *path,
2312 _Out_writes_bytes_opt_(nbytes)
2317 440 AUE_NULL OBSOL kse_switchin
2318 441 AUE_SEMWAIT NOSTD {
2321 _In_opt_ const struct timespec *abstime
2324 442 AUE_NULL STD|CAPENABLED {
2326 _In_opt_ const struct timespec *timeout
2329 443 AUE_NULL STD|CAPENABLED {
2334 444 AUE_MODUNLOAD STD {
2342 _In_reads_bytes_(length) const void *record,
2346 446 AUE_AUDITON STD {
2349 _In_opt_ void *data,
2353 447 AUE_GETAUID STD|CAPENABLED {
2358 448 AUE_SETAUID STD|CAPENABLED {
2363 449 AUE_GETAUDIT STD|CAPENABLED {
2365 _Out_ struct auditinfo *auditinfo
2368 450 AUE_SETAUDIT STD|CAPENABLED {
2370 _In_ struct auditinfo *auditinfo
2373 451 AUE_GETAUDIT_ADDR STD|CAPENABLED {
2375 _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2379 452 AUE_SETAUDIT_ADDR STD|CAPENABLED {
2381 _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr,
2385 453 AUE_AUDITCTL STD {
2387 _In_z_ const char *path
2390 454 AUE_NULL STD|CAPENABLED {
2399 455 AUE_THR_NEW STD|CAPENABLED {
2401 _In_ struct thr_param *param,
2405 456 AUE_NULL STD|CAPENABLED {
2413 457 AUE_MQ_OPEN NOSTD {
2415 _In_z_ const char *path,
2418 _In_opt_ const struct mq_attr *attr
2421 458 AUE_MQ_SETATTR NOSTD|CAPENABLED {
2424 _In_opt_ const struct mq_attr *attr,
2425 _Out_opt_ struct mq_attr *oattr
2428 459 AUE_MQ_TIMEDRECEIVE NOSTD|CAPENABLED {
2429 int kmq_timedreceive(
2431 _Out_writes_bytes_(msg_len) char *msg_ptr,
2433 _Out_opt_ unsigned *msg_prio,
2434 _In_opt_ const struct timespec *abs_timeout
2437 460 AUE_MQ_TIMEDSEND NOSTD|CAPENABLED {
2440 _In_reads_bytes_(msg_len) const char *msg_ptr,
2443 _In_opt_ const struct timespec *abs_timeout
2446 461 AUE_MQ_NOTIFY NOSTD|CAPENABLED {
2449 _In_opt_ const struct sigevent *sigev
2452 462 AUE_MQ_UNLINK NOSTD {
2454 _In_z_ const char *path
2457 463 AUE_NULL STD|CAPENABLED {
2459 _In_z_ const char *why,
2461 _In_reads_(nargs) void **args
2464 464 AUE_NULL STD|CAPENABLED {
2467 _In_z_ const char *name
2470 465 AUE_AIO_FSYNC STD|CAPENABLED {
2473 _In_ struct aiocb *aiocbp
2476 466 AUE_RTPRIO STD|CAPENABLED {
2480 _Inout_ struct rtprio *rtp
2483 467-470 AUE_NULL RESERVED
2484 471 AUE_SCTP_PEELOFF NOSTD|CAPENABLED {
2490 472 AUE_SCTP_GENERIC_SENDMSG NOSTD|CAPENABLED {
2491 int sctp_generic_sendmsg(
2493 _In_reads_bytes_(mlen) void *msg,
2495 _In_reads_bytes_(tolen) const struct sockaddr *to,
2497 _In_opt_ struct sctp_sndrcvinfo *sinfo,
2501 473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD|CAPENABLED {
2502 int sctp_generic_sendmsg_iov(
2504 _In_reads_(iovlen) struct iovec *iov,
2506 _In_reads_bytes_(tolen) const struct sockaddr *to,
2508 _In_opt_ struct sctp_sndrcvinfo *sinfo,
2512 474 AUE_SCTP_GENERIC_RECVMSG NOSTD|CAPENABLED {
2513 int sctp_generic_recvmsg(
2515 _In_reads_(iovlen) struct iovec *iov,
2517 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from,
2518 _Out_ __socklen_t *fromlenaddr,
2519 _In_opt_ struct sctp_sndrcvinfo *sinfo,
2520 _Out_opt_ int *msg_flags
2523 475 AUE_PREAD STD|CAPENABLED {
2526 _Out_writes_bytes_(nbyte) void *buf,
2531 476 AUE_PWRITE STD|CAPENABLED {
2534 _In_reads_bytes_(nbyte) const void *buf,
2539 477 AUE_MMAP STD|CAPENABLED {
2549 478 AUE_LSEEK STD|CAPENABLED {
2556 479 AUE_TRUNCATE STD {
2558 _In_z_ const char *path,
2562 480 AUE_FTRUNCATE STD|CAPENABLED {
2568 481 AUE_THR_KILL2 STD {
2575 482 AUE_SHMOPEN COMPAT12|CAPENABLED {
2577 _In_z_ const char *path,
2582 483 AUE_SHMUNLINK STD {
2584 _In_z_ const char *path
2589 _Out_ cpusetid_t *setid
2604 _Out_ cpusetid_t *setid
2607 487 AUE_NULL STD|CAPENABLED {
2608 int cpuset_getaffinity(
2613 _Out_ cpuset_t *mask
2616 488 AUE_NULL STD|CAPENABLED {
2617 int cpuset_setaffinity(
2622 _Out_ const cpuset_t *mask
2625 489 AUE_FACCESSAT STD|CAPENABLED {
2628 _In_z_ const char *path,
2633 490 AUE_FCHMODAT STD|CAPENABLED {
2636 _In_z_ const char *path,
2641 491 AUE_FCHOWNAT STD|CAPENABLED {
2644 _In_z_ const char *path,
2650 492 AUE_FEXECVE STD|CAPENABLED {
2657 493 AUE_FSTATAT COMPAT11|CAPENABLED {
2660 _In_z_ const char *path,
2661 _Out_ struct freebsd11_stat *buf,
2665 494 AUE_FUTIMESAT STD|CAPENABLED {
2668 _In_z_ const char *path,
2669 _In_reads_(2) const struct timeval *times
2672 495 AUE_LINKAT STD|CAPENABLED {
2675 _In_z_ const char *path1,
2677 _In_z_ const char *path2,
2681 496 AUE_MKDIRAT STD|CAPENABLED {
2684 _In_z_ const char *path,
2688 497 AUE_MKFIFOAT STD|CAPENABLED {
2691 _In_z_ const char *path,
2695 498 AUE_MKNODAT COMPAT11|CAPENABLED {
2698 _In_z_ const char *path,
2703 ; XXX: see the comment for open
2704 499 AUE_OPENAT_RWTC STD|CAPENABLED {
2707 _In_z_ const char *path,
2712 500 AUE_READLINKAT STD|CAPENABLED {
2715 _In_z_ const char *path,
2716 _Out_writes_bytes_(bufsize) char *buf,
2720 501 AUE_RENAMEAT STD|CAPENABLED {
2723 _In_z_ const char *old,
2725 _In_z_ const char *new
2728 502 AUE_SYMLINKAT STD|CAPENABLED {
2730 _In_z_ const char *path1,
2732 _In_z_ const char *path2
2735 503 AUE_UNLINKAT STD|CAPENABLED {
2738 _In_z_ const char *path,
2742 504 AUE_POSIX_OPENPT STD {
2747 ; 505 is initialised by the kgssapi code, if present.
2748 505 AUE_NULL NOSTD {
2750 _In_z_ const char *path
2753 506 AUE_JAIL_GET STD {
2755 _In_reads_(iovcnt) struct iovec *iovp,
2756 unsigned int iovcnt,
2760 507 AUE_JAIL_SET STD {
2762 _In_reads_(iovcnt) struct iovec *iovp,
2763 unsigned int iovcnt,
2767 508 AUE_JAIL_REMOVE STD {
2772 509 AUE_CLOSEFROM COMPAT12|CAPENABLED {
2777 510 AUE_SEMCTL NOSTD {
2782 _Inout_ union semun *arg
2785 511 AUE_MSGCTL NOSTD {
2789 _Inout_opt_ struct msqid_ds *buf
2792 512 AUE_SHMCTL NOSTD {
2796 _Inout_opt_ struct shmid_ds *buf
2799 513 AUE_LPATHCONF STD {
2801 _In_z_ const char *path,
2805 514 AUE_NULL OBSOL cap_new
2806 515 AUE_CAP_RIGHTS_GET STD|CAPENABLED {
2807 int __cap_rights_get(
2810 _Out_ cap_rights_t *rightsp
2813 516 AUE_CAP_ENTER STD|CAPENABLED {
2814 int cap_enter(void);
2816 517 AUE_CAP_GETMODE STD|CAPENABLED {
2821 518 AUE_PDFORK STD|CAPENABLED {
2827 519 AUE_PDKILL STD|CAPENABLED {
2833 520 AUE_PDGETPID STD|CAPENABLED {
2839 521 AUE_NULL RESERVED
2840 522 AUE_SELECT STD|CAPENABLED {
2843 _Inout_opt_ fd_set *in,
2844 _Inout_opt_ fd_set *ou,
2845 _Inout_opt_ fd_set *ex,
2846 _In_opt_ const struct timespec *ts,
2847 _In_opt_ const sigset_t *sm
2850 523 AUE_GETLOGINCLASS STD|CAPENABLED {
2852 _Out_writes_z_(namelen) char *namebuf,
2856 524 AUE_SETLOGINCLASS STD {
2858 _In_z_ const char *namebuf
2863 _In_reads_bytes_(inbuflen) const void *inbufp,
2865 _Out_writes_bytes_(outbuflen) void *outbufp,
2871 _In_reads_bytes_(inbuflen) const void *inbufp,
2873 _Out_writes_bytes_(outbuflen) void *outbufp,
2878 int rctl_get_limits(
2879 _In_reads_bytes_(inbuflen) const void *inbufp,
2881 _Out_writes_bytes_(outbuflen) void *outbufp,
2887 _In_reads_bytes_(inbuflen) const void *inbufp,
2889 _Out_writes_bytes_(outbuflen) void *outbufp,
2894 int rctl_remove_rule(
2895 _In_reads_bytes_(inbuflen) const void *inbufp,
2897 _Out_writes_bytes_(outbuflen) void *outbufp,
2901 530 AUE_POSIX_FALLOCATE STD|CAPENABLED {
2902 int posix_fallocate(
2908 531 AUE_POSIX_FADVISE STD {
2920 _Out_opt_ int *status,
2922 _Out_opt_ struct __wrusage *wrusage,
2923 _Out_opt_ siginfo_t *info
2926 533 AUE_CAP_RIGHTS_LIMIT STD|CAPENABLED {
2927 int cap_rights_limit(
2929 _In_ cap_rights_t *rightsp
2932 534 AUE_CAP_IOCTLS_LIMIT STD|CAPENABLED {
2933 int cap_ioctls_limit(
2935 _In_reads_(ncmds) const u_long *cmds,
2939 535 AUE_CAP_IOCTLS_GET STD|CAPENABLED {
2940 ssize_t cap_ioctls_get(
2942 _Out_writes_(maxcmds) u_long *cmds,
2946 536 AUE_CAP_FCNTLS_LIMIT STD|CAPENABLED {
2947 int cap_fcntls_limit(
2949 uint32_t fcntlrights
2952 537 AUE_CAP_FCNTLS_GET STD|CAPENABLED {
2955 _Out_ uint32_t *fcntlrightsp
2958 538 AUE_BINDAT STD|CAPENABLED {
2962 _In_reads_bytes_(namelen) const struct sockaddr *name,
2966 539 AUE_CONNECTAT STD|CAPENABLED {
2970 _In_reads_bytes_(namelen) const struct sockaddr *name,
2974 540 AUE_CHFLAGSAT STD|CAPENABLED {
2977 _In_z_ const char *path,
2982 541 AUE_ACCEPT STD|CAPENABLED {
2985 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name,
2986 _Inout_opt_ __socklen_t *anamelen,
2990 542 AUE_PIPE STD|CAPENABLED {
2992 _Out_writes_(2) int *fildes,
2996 543 AUE_AIO_MLOCK STD {
2998 _In_ struct aiocb *aiocbp
3001 544 AUE_PROCCTL STD {
3009 545 AUE_POLL STD|CAPENABLED {
3011 _Inout_updates_(nfds) struct pollfd *fds,
3013 _In_opt_ const struct timespec *ts,
3014 _In_opt_ const sigset_t *set
3017 546 AUE_FUTIMES STD|CAPENABLED {
3020 _In_reads_(2) const struct timespec *times
3023 547 AUE_FUTIMESAT STD|CAPENABLED {
3026 _In_z_ const char *path,
3027 _In_reads_(2) const struct timespec *times,
3031 548 AUE_NULL OBSOL numa_getaffinity
3032 549 AUE_NULL OBSOL numa_setaffinity
3033 550 AUE_FSYNC STD|CAPENABLED {
3038 551 AUE_FSTAT STD|CAPENABLED {
3041 _Out_ struct stat *sb
3044 552 AUE_FSTATAT STD|CAPENABLED {
3047 _In_z_ const char *path,
3048 _Out_ struct stat *buf,
3052 553 AUE_FHSTAT STD {
3054 _In_ const struct fhandle *u_fhp,
3055 _Out_ struct stat *sb
3058 554 AUE_GETDIRENTRIES STD|CAPENABLED {
3059 ssize_t getdirentries(
3061 _Out_writes_bytes_(count) char *buf,
3066 555 AUE_STATFS STD {
3068 _In_z_ const char *path,
3069 _Out_ struct statfs *buf
3072 556 AUE_FSTATFS STD|CAPENABLED {
3075 _Out_ struct statfs *buf
3078 557 AUE_GETFSSTAT STD {
3080 _Out_writes_bytes_opt_(bufsize) struct statfs *buf,
3085 558 AUE_FHSTATFS STD {
3087 _In_ const struct fhandle *u_fhp,
3088 _Out_ struct statfs *buf
3091 559 AUE_MKNODAT STD|CAPENABLED {
3094 _In_z_ const char *path,
3099 560 AUE_KEVENT STD|CAPENABLED {
3102 _In_reads_opt_(nchanges) const struct kevent *changelist,
3104 _Out_writes_opt_(nevents) struct kevent *eventlist,
3106 _In_opt_ const struct timespec *timeout
3109 561 AUE_NULL STD|CAPENABLED {
3110 int cpuset_getdomain(
3114 size_t domainsetsize,
3115 _Out_writes_bytes_(domainsetsize) domainset_t *mask,
3119 562 AUE_NULL STD|CAPENABLED {
3120 int cpuset_setdomain(
3124 size_t domainsetsize,
3125 _In_ domainset_t *mask,
3129 563 AUE_NULL STD|CAPENABLED {
3131 _Out_writes_bytes_(buflen) void *buf,
3140 _Out_ struct fhandle *fhp,
3146 _In_ struct fhandle *fhp,
3147 _In_z_ const char *to
3152 _In_ struct fhandle *fhp,
3154 _In_z_ const char *to,
3159 _In_ struct fhandle *fhp,
3160 _Out_writes_(bufsize) char *buf,
3164 568 AUE_UNLINKAT STD|CAPENABLED {
3167 _In_z_ const char *path,
3172 569 AUE_NULL STD|CAPENABLED {
3173 ssize_t copy_file_range(
3175 _Inout_opt_ off_t *inoffp,
3177 _Inout_opt_ off_t *outoffp,
3182 570 AUE_SYSCTL STD|CAPENABLED {
3184 _In_reads_(namelen) const char *name,
3186 _Out_writes_bytes_opt_(*oldlenp) void *old,
3187 _Inout_opt_ size_t *oldlenp,
3188 _In_reads_bytes_opt_(newlen) void *new,
3192 571 AUE_SHMOPEN STD|CAPENABLED {
3194 _In_z_ const char *path,
3198 _In_z_ const char *name
3201 572 AUE_SHMRENAME STD {
3203 _In_z_ const char *path_from,
3204 _In_z_ const char *path_to,
3208 573 AUE_NULL STD|CAPENABLED {
3211 _Inout_opt_ uint32_t *ptr
3214 574 AUE_REALPATHAT STD {
3217 _In_z_ const char *path,
3218 _Out_writes_z_(size) char *buf,
3223 575 AUE_CLOSERANGE STD|CAPENABLED {
3230 ; 576 is initialised by the krpc code, if present.
3231 576 AUE_NULL NOSTD {
3234 _In_z_ const char *path
3237 577 AUE_SPECIALFD STD|CAPENABLED {
3240 _In_reads_bytes_(len) const void *req,
3244 578 AUE_AIO_WRITEV STD|CAPENABLED {
3246 _Inout_ struct aiocb *aiocbp
3249 579 AUE_AIO_READV STD|CAPENABLED {
3251 _Inout_ struct aiocb *aiocbp
3254 580 AUE_FSPACECTL STD|CAPENABLED {
3258 _In_ const struct spacectl_range *rqsr,
3260 _Out_opt_ struct spacectl_range *rmsr,
3263 581 AUE_NULL STD|CAPENABLED {
3264 int sched_getcpu(void);
3267 ; Please copy any additions and changes to the following compatability tables:
3268 ; sys/compat/freebsd32/syscalls.master