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 870 AUE_NULL STD { int nosys(void); } syscall nosys_args int 881 AUE_EXIT STD { void sys_exit(int rval); } exit \ 89 sys_exit_args void 902 AUE_FORK STD { int fork(void); } 913 AUE_READ STD { ssize_t read(int fd, \ 92 _Out_writes_bytes_(nbyte) void *buf, \ 93 size_t nbyte); } 944 AUE_WRITE STD { ssize_t write(int fd, \ 95 _In_reads_bytes_(nbyte) const void *buf, \ 96 size_t nbyte); } 975 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'. 1046 AUE_CLOSE STD { int close(int fd); } 1057 AUE_WAIT4 STD { int wait4(int pid, \ 106 _Out_opt_ int *status, \ 107 int options, \ 108 _Out_opt_ struct rusage *rusage); } 1098 AUE_CREAT COMPAT { int creat(_In_z_ char *path, int mode); } 1109 AUE_LINK STD { int link(_In_z_ char *path, \ 111 _In_z_ char *link); } 11210 AUE_UNLINK STD { int unlink(_In_z_ char *path); } 11311 AUE_NULL OBSOL execv 11412 AUE_CHDIR STD { int chdir(_In_z_ char *path); } 11513 AUE_FCHDIR STD { int fchdir(int fd); } 11614 AUE_MKNOD COMPAT11 { int mknod(_In_z_ char *path, int mode, \ 117 int dev); } 11815 AUE_CHMOD STD { int chmod(_In_z_ char *path, int mode); } 11916 AUE_CHOWN STD { int chown(_In_z_ char *path, \ 120 int uid, int gid); } 12117 AUE_NULL STD { caddr_t break(_In_ char *nsize); } 12218 AUE_GETFSSTAT COMPAT4 { int getfsstat( \ 123 _Out_writes_bytes_opt_(bufsize) \ 124 struct ostatfs *buf, \ 125 long bufsize, int mode); } 12619 AUE_LSEEK COMPAT { long lseek(int fd, long offset, \ 127 int whence); } 12820 AUE_GETPID STD { pid_t getpid(void); } 12921 AUE_MOUNT STD { int mount(_In_z_ char *type, \ 130 _In_z_ char *path, int flags, \ 131 _In_opt_ caddr_t data); } 132; XXX `path' should have type `const char *' but we're not ready for that. 13322 AUE_UMOUNT STD { int unmount(_In_z_ char *path, int flags); } 13423 AUE_SETUID STD { int setuid(uid_t uid); } 13524 AUE_GETUID STD { uid_t getuid(void); } 13625 AUE_GETEUID STD { uid_t geteuid(void); } 13726 AUE_PTRACE STD { int ptrace(int req, pid_t pid, \ 138 _Inout_opt_ caddr_t addr, int data); } 13927 AUE_RECVMSG STD { int recvmsg(int s, \ 140 _Inout_ struct msghdr *msg, int flags); } 14128 AUE_SENDMSG STD { int sendmsg(int s, _In_ struct msghdr *msg, \ 142 int flags); } 14329 AUE_RECVFROM STD { int recvfrom(int s, \ 144 _Out_writes_bytes_(len) caddr_t buf, \ 145 size_t len, int flags, \ 146 _Out_writes_bytes_opt_(*fromlenaddr) \ 147 struct sockaddr * __restrict from, \ 148 _Inout_opt_ \ 149 __socklen_t * __restrict fromlenaddr); } 15030 AUE_ACCEPT STD { int accept(int s, \ 151 _Out_writes_bytes_opt_(*anamelen) \ 152 struct sockaddr * __restrict name, \ 153 _Inout_opt_ \ 154 __socklen_t * __restrict anamelen); } 15531 AUE_GETPEERNAME STD { int getpeername(int fdes, \ 156 _Out_writes_bytes_(*alen) \ 157 struct sockaddr * __restrict asa, \ 158 _Inout_opt_ \ 159 __socklen_t * __restrict alen); } 16032 AUE_GETSOCKNAME STD { int getsockname(int fdes, \ 161 _Out_writes_bytes_(*alen) \ 162 struct sockaddr * __restrict asa, \ 163 _Inout_ __socklen_t * __restrict alen); } 16433 AUE_ACCESS STD { int access(_In_z_ char *path, int amode); } 16534 AUE_CHFLAGS STD { int chflags(_In_z_ const char *path, \ 166 u_long flags); } 16735 AUE_FCHFLAGS STD { int fchflags(int fd, u_long flags); } 16836 AUE_SYNC STD { int sync(void); } 16937 AUE_KILL STD { int kill(int pid, int signum); } 17038 AUE_STAT COMPAT { int stat(_In_z_ char *path, \ 171 _Out_ struct ostat *ub); } 17239 AUE_GETPPID STD { pid_t getppid(void); } 17340 AUE_LSTAT COMPAT { int lstat(_In_z_ char *path, \ 174 _Out_ struct ostat *ub); } 17541 AUE_DUP STD { int dup(u_int fd); } 17642 AUE_PIPE COMPAT10 { int pipe(void); } 17743 AUE_GETEGID STD { gid_t getegid(void); } 17844 AUE_PROFILE STD { int profil( \ 179 _Out_writes_bytes_(size) caddr_t samples, \ 180 size_t size, size_t offset, u_int scale); } 18145 AUE_KTRACE STD { int ktrace(_In_z_ const char *fname, \ 182 int ops, int facs, int pid); } 18346 AUE_SIGACTION COMPAT { int sigaction(int signum, \ 184 _In_opt_ struct osigaction *nsa, \ 185 _Out_opt_ struct osigaction *osa); } 18647 AUE_GETGID STD { gid_t getgid(void); } 18748 AUE_SIGPROCMASK COMPAT { int sigprocmask(int how, osigset_t mask); } 188; XXX note nonstandard (bogus) calling convention - the libc stub passes 189; us the mask, not a pointer to it, and we return the old mask as the 190; (int) return value. 19149 AUE_GETLOGIN STD { int getlogin( \ 192 _Out_writes_z_(namelen) char *namebuf, \ 193 u_int namelen); } 19450 AUE_SETLOGIN STD { int setlogin(_In_z_ char *namebuf); } 19551 AUE_ACCT STD { int acct(_In_z_ char *path); } 19652 AUE_SIGPENDING COMPAT { int sigpending(void); } 19753 AUE_SIGALTSTACK STD { int sigaltstack(_In_opt_ stack_t *ss, \ 198 _Out_opt_ stack_t *oss); } 19954 AUE_IOCTL STD { int ioctl(int fd, u_long com, \ 200 _Inout_opt_ caddr_t data); } 20155 AUE_REBOOT STD { int reboot(int opt); } 20256 AUE_REVOKE STD { int revoke(_In_z_ char *path); } 20357 AUE_SYMLINK STD { int symlink(_In_z_ char *path, \ 204 _In_z_ char *link); } 20558 AUE_READLINK STD { ssize_t readlink(_In_z_ char *path, \ 206 _Out_writes_z_(count) char *buf, \ 207 size_t count); } 20859 AUE_EXECVE STD { int execve( \ 209 _In_z_ char *fname, \ 210 _In_z_ char **argv, \ 211 _In_z_ char **envv); } 21260 AUE_UMASK STD { int umask(int newmask); } 21361 AUE_CHROOT STD { int chroot(_In_z_ char *path); } 21462 AUE_FSTAT COMPAT { int fstat(int fd, _Out_ struct ostat *sb); } 21563 AUE_NULL COMPAT { int getkerninfo(int op, \ 216 _Out_writes_bytes_opt(*size) char *where, \ 217 _Inout_opt_ size_t *size, \ 218 int arg); } getkerninfo getkerninfo_args int 21964 AUE_NULL COMPAT { int getpagesize(void); } getpagesize \ 220 getpagesize_args int 22165 AUE_MSYNC STD { int msync(_In_ void *addr, size_t len, \ 222 int flags); } 22366 AUE_VFORK STD { int vfork(void); } 22467 AUE_NULL OBSOL vread 22568 AUE_NULL OBSOL vwrite 22669 AUE_SBRK STD { int sbrk(int incr); } 22770 AUE_SSTK STD { int sstk(int incr); } 22871 AUE_MMAP COMPAT { int mmap(_In_ void *addr, int len, int prot, \ 229 int flags, int fd, long pos); } 23072 AUE_O_VADVISE COMPAT11 { int vadvise(int anom); } 23173 AUE_MUNMAP STD { int munmap(_In_ void *addr, size_t len); } 23274 AUE_MPROTECT STD { int mprotect(_In_ void *addr, \ 233 size_t len, int prot); } 23475 AUE_MADVISE STD { int madvise(_In_ void *addr, \ 235 size_t len, int behav); } 23676 AUE_NULL OBSOL vhangup 23777 AUE_NULL OBSOL vlimit 23878 AUE_MINCORE STD { int mincore( \ 239 _In_ const void *addr, \ 240 size_t len, \ 241 _Out_writes_bytes_(len/PAGE_SIZE) \ 242 char *vec); } 24379 AUE_GETGROUPS STD { int getgroups(u_int gidsetsize, \ 244 _Out_writes_opt_(gidsetsize) \ 245 gid_t *gidset); } 24680 AUE_SETGROUPS STD { int setgroups(u_int gidsetsize, \ 247 _In_reads_(gidsetsize) gid_t *gidset); } 24881 AUE_GETPGRP STD { int getpgrp(void); } 24982 AUE_SETPGRP STD { int setpgid(int pid, int pgid); } 25083 AUE_SETITIMER STD { int setitimer(u_int which, \ 251 _In_ struct itimerval *itv, \ 252 _Out_opt_ struct itimerval *oitv); } 25384 AUE_WAIT4 COMPAT { int wait(void); } 25485 AUE_SWAPON STD { int swapon(_In_z_ char *name); } 25586 AUE_GETITIMER STD { int getitimer(u_int which, \ 256 _Out_ struct itimerval *itv); } 25787 AUE_SYSCTL COMPAT { int gethostname( \ 258 _Out_writes_z_(len) char *hostname, \ 259 u_int len); } gethostname \ 260 gethostname_args int 26188 AUE_SYSCTL COMPAT { int sethostname( \ 262 _In_reads_z_(len) char *hostname, \ 263 u_int len); } sethostname \ 264 sethostname_args int 26589 AUE_GETDTABLESIZE STD { int getdtablesize(void); } 26690 AUE_DUP2 STD { int dup2(u_int from, u_int to); } 26791 AUE_NULL UNIMPL getdopt 26892 AUE_FCNTL STD { int fcntl(int fd, int cmd, long arg); } 269; XXX should be { int fcntl(int fd, int cmd, ...); } 270; but we're not ready for varargs. 27193 AUE_SELECT STD { int select(int nd, \ 272 _Inout_opt_ fd_set *in, \ 273 _Inout_opt_ fd_set *ou, \ 274 _Inout_opt_ fd_set *ex, \ 275 _In_opt_ struct timeval *tv); } 27694 AUE_NULL UNIMPL setdopt 27795 AUE_FSYNC STD { int fsync(int fd); } 27896 AUE_SETPRIORITY STD { int setpriority(int which, int who, \ 279 int prio); } 28097 AUE_SOCKET STD { int socket(int domain, int type, \ 281 int protocol); } 28298 AUE_CONNECT STD { int connect(int s, \ 283 _In_reads_bytes_(namelen) caddr_t name, \ 284 int namelen); } 28599 AUE_ACCEPT COMPAT|NOARGS { int accept(int s, \ 286 _Out_writes_bytes_opt_(*anamelen) \ 287 caddr_t name, int *anamelen); } \ 288 accept accept_args int 289100 AUE_GETPRIORITY STD { int getpriority(int which, int who); } 290101 AUE_SEND COMPAT { int send(int s, \ 291 _In_reads_bytes_(len) caddr_t buf, \ 292 int len, \ 293 int flags); } 294102 AUE_RECV COMPAT { int recv(int s, \ 295 _Out_writes_bytes_(len) caddr_t buf, \ 296 int len, int flags); } 297103 AUE_SIGRETURN COMPAT { int sigreturn( \ 298 _In_ struct osigcontext *sigcntxp); } 299104 AUE_BIND STD { int bind(int s, \ 300 _In_reads_bytes_(namelen) caddr_t name, \ 301 int namelen); } 302105 AUE_SETSOCKOPT STD { int setsockopt(int s, int level, int name, \ 303 _In_reads_bytes_opt_(valsize) caddr_t val, \ 304 int valsize); } 305106 AUE_LISTEN STD { int listen(int s, int backlog); } 306107 AUE_NULL OBSOL vtimes 307108 AUE_NULL COMPAT { int sigvec(int signum, \ 308 _In_opt_ struct sigvec *nsv, \ 309 _Out_opt_ struct sigvec *osv); } 310109 AUE_NULL COMPAT { int sigblock(int mask); } 311110 AUE_NULL COMPAT { int sigsetmask(int mask); } 312111 AUE_NULL COMPAT { int sigsuspend(osigset_t mask); } 313; XXX note nonstandard (bogus) calling convention - the libc stub passes 314; us the mask, not a pointer to it. 315112 AUE_NULL COMPAT { int sigstack(_In_opt_ struct sigstack *nss, \ 316 _Out_opt_ struct sigstack *oss); } 317113 AUE_RECVMSG COMPAT { int recvmsg(int s, \ 318 _Inout_ struct omsghdr *msg, \ 319 int flags); } 320114 AUE_SENDMSG COMPAT { int sendmsg(int s, _In_ caddr_t msg, \ 321 int flags); } 322115 AUE_NULL OBSOL vtrace 323116 AUE_GETTIMEOFDAY STD { int gettimeofday( \ 324 _Out_ struct timeval *tp, \ 325 _Out_opt_ struct timezone *tzp); } 326117 AUE_GETRUSAGE STD { int getrusage(int who, \ 327 _Out_ struct rusage *rusage); } 328118 AUE_GETSOCKOPT STD { int getsockopt(int s, int level, int name, \ 329 _Out_writes_bytes_opt_(*avalsize) \ 330 caddr_t val, _Inout_ int *avalsize); } 331119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 332120 AUE_READV STD { int readv(int fd, \ 333 _Inout_updates_(iovcnt) struct iovec *iovp, \ 334 u_int iovcnt); } 335121 AUE_WRITEV STD { int writev(int fd, \ 336 _In_reads_opt_(iovcnt) struct iovec *iovp, \ 337 u_int iovcnt); } 338122 AUE_SETTIMEOFDAY STD { int settimeofday( \ 339 _In_ struct timeval *tv, \ 340 _In_opt_ struct timezone *tzp); } 341123 AUE_FCHOWN STD { int fchown(int fd, int uid, int gid); } 342124 AUE_FCHMOD STD { int fchmod(int fd, int mode); } 343125 AUE_RECVFROM COMPAT|NOARGS { int recvfrom(int s, \ 344 _Out_writes_(len) caddr_t buf, \ 345 size_t len, int flags, \ 346 _Out_writes_bytes_(*fromlenaddr) \ 347 caddr_t from, \ 348 _Inout_ int *fromlenaddr); } \ 349 recvfrom recvfrom_args int 350126 AUE_SETREUID STD { int setreuid(int ruid, int euid); } 351127 AUE_SETREGID STD { int setregid(int rgid, int egid); } 352128 AUE_RENAME STD { int rename(_In_z_ char *from, \ 353 _In_z_ char *to); } 354129 AUE_TRUNCATE COMPAT { int truncate(_In_z_ char *path, \ 355 long length); } 356130 AUE_FTRUNCATE COMPAT { int ftruncate(int fd, long length); } 357131 AUE_FLOCK STD { int flock(int fd, int how); } 358132 AUE_MKFIFO STD { int mkfifo(_In_z_ char *path, int mode); } 359133 AUE_SENDTO STD { int sendto(int s, \ 360 _In_reads_bytes_(len) caddr_t buf, \ 361 size_t len, int flags, \ 362 _In_reads_bytes_opt_(tolen) caddr_t to, \ 363 int tolen); } 364134 AUE_SHUTDOWN STD { int shutdown(int s, int how); } 365135 AUE_SOCKETPAIR STD { int socketpair(int domain, int type, \ 366 int protocol, _Out_writes_(2) int *rsv); } 367136 AUE_MKDIR STD { int mkdir(_In_z_ char *path, int mode); } 368137 AUE_RMDIR STD { int rmdir(_In_z_ char *path); } 369138 AUE_UTIMES STD { int utimes(_In_z_ char *path, \ 370 _In_ struct timeval *tptr); } 371139 AUE_NULL OBSOL 4.2 sigreturn 372140 AUE_ADJTIME STD { int adjtime(_In_ struct timeval *delta, \ 373 _Out_opt_ struct timeval *olddelta); } 374141 AUE_GETPEERNAME COMPAT { int getpeername(int fdes, \ 375 _Out_writes_bytes_(*alen) \ 376 caddr_t asa, \ 377 _Inout_opt_ int *alen); } 378142 AUE_SYSCTL COMPAT { long gethostid(void); } 379143 AUE_SYSCTL COMPAT { int sethostid(long hostid); } 380144 AUE_GETRLIMIT COMPAT { int getrlimit(u_int which, _Out_ struct \ 381 orlimit *rlp); } 382145 AUE_SETRLIMIT COMPAT { int setrlimit(u_int which, \ 383 _Out_ struct orlimit *rlp); } 384146 AUE_KILLPG COMPAT { int killpg(int pgid, int signum); } 385147 AUE_SETSID STD { int setsid(void); } 386148 AUE_QUOTACTL STD { int quotactl( \ 387 _In_z_ char *path, int cmd, int uid, \ 388 _In_ caddr_t arg); } 389149 AUE_O_QUOTA COMPAT { int quota(void); } 390150 AUE_GETSOCKNAME COMPAT|NOARGS { int getsockname(int fdec, \ 391 _Out_writes_bytes_(*alen) \ 392 caddr_t asa, \ 393 _Inout_ int *alen); } getsockname \ 394 getsockname_args int 395 396; Syscalls 151-180 inclusive are reserved for vendor-specific 397; system calls. (This includes various calls added for compatibity 398; with other Unix variants.) 399; Some of these calls are now supported by BSD... 400151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 401152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 402153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 403; 154 is initialised by the NLM code, if present. 404154 AUE_NULL NOSTD { int nlm_syscall(int debug_level, \ 405 int grace_period, int addr_count, \ 406 _In_reads_(addr_count) \ 407 char **addrs); } 408; 155 is initialized by the NFS code, if present. 409155 AUE_NFS_SVC NOSTD { int nfssvc(int flag, _In_ caddr_t argp); } 410156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, \ 411 _Out_writes_bytes_(count) char *buf, \ 412 u_int count, _Out_ long *basep); } 413157 AUE_STATFS COMPAT4 { int statfs(_In_z_ char *path, \ 414 _Out_ struct ostatfs *buf); } 415158 AUE_FSTATFS COMPAT4 { int fstatfs(int fd, \ 416 _Out_ struct ostatfs *buf); } 417159 AUE_NULL UNIMPL nosys 418160 AUE_LGETFH STD { int lgetfh(_In_z_ char *fname, \ 419 _Out_ struct fhandle *fhp); } 420161 AUE_NFS_GETFH STD { int getfh(_In_z_ char *fname, \ 421 _Out_ struct fhandle *fhp); } 422162 AUE_SYSCTL COMPAT4 { int getdomainname( \ 423 _Out_writes_z_(len) char *domainname, \ 424 int len); } 425163 AUE_SYSCTL COMPAT4 { int setdomainname( \ 426 _In_reads_z_(len) char *domainname, \ 427 int len); } 428164 AUE_NULL COMPAT4 { int uname(_Out_ struct utsname *name); } 429165 AUE_SYSARCH STD { int sysarch(int op, _In_z_ char *parms); } 430166 AUE_RTPRIO STD { int rtprio(int function, pid_t pid, \ 431 _Inout_ struct rtprio *rtp); } 432167 AUE_NULL UNIMPL nosys 433168 AUE_NULL UNIMPL nosys 434169 AUE_SEMSYS NOSTD { int semsys(int which, int a2, int a3, \ 435 int a4, int a5); } 436; XXX should be { int semsys(int which, ...); } 437170 AUE_MSGSYS NOSTD { int msgsys(int which, int a2, int a3, \ 438 int a4, int a5, int a6); } 439; XXX should be { int msgsys(int which, ...); } 440171 AUE_SHMSYS NOSTD { int shmsys(int which, int a2, int a3, \ 441 int a4); } 442; XXX should be { int shmsys(int which, ...); } 443172 AUE_NULL UNIMPL nosys 444173 AUE_PREAD COMPAT6 { ssize_t pread(int fd, \ 445 _Out_writes_bytes_(nbyte) void *buf, \ 446 size_t nbyte, int pad, off_t offset); } 447174 AUE_PWRITE COMPAT6 { ssize_t pwrite(int fd, \ 448 _In_reads_bytes_(nbyte) \ 449 const void *buf, \ 450 size_t nbyte, int pad, off_t offset); } 451175 AUE_SETFIB STD { int setfib(int fibnum); } 452176 AUE_NTP_ADJTIME STD { int ntp_adjtime(_Inout_ struct timex *tp); } 453177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 454178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 455179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 456180 AUE_NULL UNIMPL nosys 457 458; Syscalls 181-199 are used by/reserved for BSD 459181 AUE_SETGID STD { int setgid(gid_t gid); } 460182 AUE_SETEGID STD { int setegid(gid_t egid); } 461183 AUE_SETEUID STD { int seteuid(uid_t euid); } 462184 AUE_NULL UNIMPL lfs_bmapv 463185 AUE_NULL UNIMPL lfs_markv 464186 AUE_NULL UNIMPL lfs_segclean 465187 AUE_NULL UNIMPL lfs_segwait 466188 AUE_STAT COMPAT11 { int stat(_In_z_ char *path, \ 467 _Out_ struct freebsd11_stat *ub); } 468189 AUE_FSTAT COMPAT11 { int fstat(int fd, \ 469 _Out_ struct freebsd11_stat *sb); } 470190 AUE_LSTAT COMPAT11 { int lstat(_In_z_ char *path, \ 471 _Out_ struct freebsd11_stat *ub); } 472191 AUE_PATHCONF STD { int pathconf(_In_z_ char *path, int name); } 473192 AUE_FPATHCONF STD { int fpathconf(int fd, int name); } 474193 AUE_NULL UNIMPL nosys 475194 AUE_GETRLIMIT STD { int getrlimit(u_int which, \ 476 _Out_ struct rlimit *rlp); } getrlimit \ 477 __getrlimit_args int 478195 AUE_SETRLIMIT STD { int setrlimit(u_int which, \ 479 _In_ struct rlimit *rlp); } setrlimit \ 480 __setrlimit_args int 481196 AUE_GETDIRENTRIES COMPAT11 { int getdirentries(int fd, \ 482 _Out_writes_bytes_(count) char *buf, \ 483 u_int count, _Out_ long *basep); } 484197 AUE_MMAP COMPAT6 { caddr_t mmap(_In_ caddr_t addr, size_t len, \ 485 int prot, int flags, int fd, int pad, \ 486 off_t pos); } 487198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 488 __syscall_args int 489199 AUE_LSEEK COMPAT6 { off_t lseek(int fd, int pad, \ 490 off_t offset, int whence); } 491200 AUE_TRUNCATE COMPAT6 { int truncate(_In_z_ char *path, int pad, \ 492 off_t length); } 493201 AUE_FTRUNCATE COMPAT6 { int ftruncate(int fd, int pad, \ 494 off_t length); } 495202 AUE_SYSCTL STD { int __sysctl( \ 496 _In_reads_(namelen) int *name, \ 497 u_int namelen, \ 498 _Out_writes_bytes_opt_(*oldlenp) \ 499 void *old, \ 500 _Inout_opt_ size_t *oldlenp, \ 501 _In_reads_bytes_opt_(newlen) \ 502 void *new, \ 503 size_t newlen); } \ 504 __sysctl sysctl_args int 505203 AUE_MLOCK STD { int mlock(_In_ const void *addr, \ 506 size_t len); } 507204 AUE_MUNLOCK STD { int munlock(_In_ const void *addr, \ 508 size_t len); } 509205 AUE_UNDELETE STD { int undelete(_In_z_ char *path); } 510206 AUE_FUTIMES STD { int futimes(int fd, \ 511 _In_reads_(2) struct timeval *tptr); } 512207 AUE_GETPGID STD { int getpgid(pid_t pid); } 513208 AUE_NULL UNIMPL nosys 514209 AUE_POLL STD { int poll( \ 515 _Inout_updates_(nfds) \ 516 struct pollfd *fds, \ 517 u_int nfds, int timeout); } 518; 519; The following are reserved for loadable syscalls 520; 521210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 522211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 523212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 524213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 525214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 526215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 527216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 528217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 529218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 530219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 531 532220 AUE_SEMCTL COMPAT7|NOSTD { int __semctl(int semid, int semnum, \ 533 int cmd, union semun_old *arg); } 534221 AUE_SEMGET NOSTD { int semget(key_t key, int nsems, \ 535 int semflg); } 536222 AUE_SEMOP NOSTD { int semop(int semid, \ 537 _In_reads_(nsops) struct sembuf *sops, \ 538 size_t nsops); } 539223 AUE_NULL UNIMPL semconfig 540224 AUE_MSGCTL COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \ 541 struct msqid_ds_old *buf); } 542225 AUE_MSGGET NOSTD { int msgget(key_t key, int msgflg); } 543226 AUE_MSGSND NOSTD { int msgsnd(int msqid, \ 544 _In_reads_bytes_(msgsz) const void *msgp, \ 545 size_t msgsz, int msgflg); } 546227 AUE_MSGRCV NOSTD { ssize_t msgrcv(int msqid, \ 547 _Out_writes_bytes_(msgsz) void *msgp, \ 548 size_t msgsz, long msgtyp, int msgflg); } 549228 AUE_SHMAT NOSTD { int shmat(int shmid, \ 550 _In_ const void *shmaddr, \ 551 int shmflg); } 552229 AUE_SHMCTL COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \ 553 struct shmid_ds_old *buf); } 554230 AUE_SHMDT NOSTD { int shmdt(_In_ const void *shmaddr); } 555231 AUE_SHMGET NOSTD { int shmget(key_t key, size_t size, \ 556 int shmflg); } 557; 558232 AUE_NULL STD { int clock_gettime(clockid_t clock_id, \ 559 _Out_ struct timespec *tp); } 560233 AUE_CLOCK_SETTIME STD { int clock_settime(clockid_t clock_id, \ 561 _In_ const struct timespec *tp); } 562234 AUE_NULL STD { int clock_getres(clockid_t clock_id, \ 563 _Out_ struct timespec *tp); } 564235 AUE_NULL STD { int ktimer_create( \ 565 clockid_t clock_id, \ 566 _In_ struct sigevent *evp, \ 567 _Out_ int *timerid); } 568236 AUE_NULL STD { int ktimer_delete(int timerid); } 569237 AUE_NULL STD { int ktimer_settime(int timerid, \ 570 int flags, \ 571 _In_ const struct itimerspec *value, \ 572 _Out_opt_ struct itimerspec *ovalue); } 573238 AUE_NULL STD { int ktimer_gettime(int timerid, \ 574 _Out_ struct itimerspec *value); } 575239 AUE_NULL STD { int ktimer_getoverrun(int timerid); } 576240 AUE_NULL STD { int nanosleep( \ 577 _In_ const struct timespec *rqtp, \ 578 _Out_opt_ struct timespec *rmtp); } 579241 AUE_NULL STD { int ffclock_getcounter( \ 580 _Out_ ffcounter *ffcount); } 581242 AUE_NULL STD { int ffclock_setestimate( \ 582 _In_ struct ffclock_estimate *cest); } 583243 AUE_NULL STD { int ffclock_getestimate( \ 584 _Out_ struct ffclock_estimate *cest); } 585244 AUE_NULL STD { int clock_nanosleep(clockid_t clock_id, \ 586 int flags, \ 587 _In_ const struct timespec *rqtp, \ 588 _Out_opt_ struct timespec *rmtp); } 589245 AUE_NULL UNIMPL nosys 590246 AUE_NULL UNIMPL nosys 591247 AUE_NULL STD { int clock_getcpuclockid2(id_t id, \ 592 int which, _Out_ clockid_t *clock_id); } 593248 AUE_NULL STD { int ntp_gettime( \ 594 _Out_ struct ntptimeval *ntvp); } 595249 AUE_NULL UNIMPL nosys 596; syscall numbers initially used in OpenBSD 597250 AUE_MINHERIT STD { int minherit( \ 598 _In_ void *addr, \ 599 size_t len, int inherit); } 600251 AUE_RFORK STD { int rfork(int flags); } 601252 AUE_POLL OBSOL openbsd_poll 602253 AUE_ISSETUGID STD { int issetugid(void); } 603254 AUE_LCHOWN STD { int lchown(_In_z_ char *path, int uid, \ 604 int gid); } 605255 AUE_AIO_READ STD { int aio_read( \ 606 _Inout_ struct aiocb *aiocbp); } 607256 AUE_AIO_WRITE STD { int aio_write( \ 608 _Inout_ struct aiocb *aiocbp); } 609257 AUE_LIO_LISTIO STD { int lio_listio(int mode, \ 610 _Inout_updates_(nent) \ 611 struct aiocb* const *acb_list, \ 612 int nent, \ 613 _In_opt_ struct sigevent *sig); } 614258 AUE_NULL UNIMPL nosys 615259 AUE_NULL UNIMPL nosys 616260 AUE_NULL UNIMPL nosys 617261 AUE_NULL UNIMPL nosys 618262 AUE_NULL UNIMPL nosys 619263 AUE_NULL UNIMPL nosys 620264 AUE_NULL UNIMPL nosys 621265 AUE_NULL UNIMPL nosys 622266 AUE_NULL UNIMPL nosys 623267 AUE_NULL UNIMPL nosys 624268 AUE_NULL UNIMPL nosys 625269 AUE_NULL UNIMPL nosys 626270 AUE_NULL UNIMPL nosys 627271 AUE_NULL UNIMPL nosys 628272 AUE_O_GETDENTS COMPAT11 { int getdents(int fd, \ 629 _Out_writes_bytes_(count) char *buf, \ 630 size_t count); } 631273 AUE_NULL UNIMPL nosys 632274 AUE_LCHMOD STD { int lchmod(_In_z_ char *path, mode_t mode); } 633275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 634 gid_t gid); } netbsd_lchown lchown_args \ 635 int 636276 AUE_LUTIMES STD { int lutimes(_In_z_ char *path, \ 637 _In_ struct timeval *tptr); } 638277 AUE_MSYNC NOPROTO { int msync(_In_ void *addr, size_t len, \ 639 int flags); } netbsd_msync msync_args int 640278 AUE_STAT COMPAT11 { int nstat(_In_z_ char *path, \ 641 _Out_ struct nstat *ub); } 642279 AUE_FSTAT COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); } 643280 AUE_LSTAT COMPAT11 { int nlstat(_In_z_ char *path, \ 644 _Out_ struct nstat *ub); } 645281 AUE_NULL UNIMPL nosys 646282 AUE_NULL UNIMPL nosys 647283 AUE_NULL UNIMPL nosys 648284 AUE_NULL UNIMPL nosys 649285 AUE_NULL UNIMPL nosys 650286 AUE_NULL UNIMPL nosys 651287 AUE_NULL UNIMPL nosys 652288 AUE_NULL UNIMPL nosys 653289 AUE_PREADV STD { ssize_t preadv(int fd, \ 654 _In_reads_(iovcnt) \ 655 struct iovec *iovp, \ 656 u_int iovcnt, off_t offset); } 657290 AUE_PWRITEV STD { ssize_t pwritev(int fd, \ 658 _In_reads_(iovcnt) struct iovec *iovp, \ 659 u_int iovcnt, off_t offset); } 660291 AUE_NULL UNIMPL nosys 661292 AUE_NULL UNIMPL nosys 662293 AUE_NULL UNIMPL nosys 663294 AUE_NULL UNIMPL nosys 664295 AUE_NULL UNIMPL nosys 665296 AUE_NULL UNIMPL nosys 666297 AUE_FHSTATFS COMPAT4 { int fhstatfs( \ 667 _In_ const struct fhandle *u_fhp, \ 668 _Out_ struct ostatfs *buf); } 669298 AUE_FHOPEN STD { int fhopen( \ 670 _In_ const struct fhandle *u_fhp, \ 671 int flags); } 672299 AUE_FHSTAT COMPAT11 { int fhstat( \ 673 _In_ const struct fhandle *u_fhp, \ 674 _Out_ struct freebsd11_stat *sb); } 675300 AUE_NULL STD { int modnext(int modid); } 676301 AUE_NULL STD { int modstat(int modid, \ 677 _Out_ struct module_stat* stat); } 678302 AUE_NULL STD { int modfnext(int modid); } 679303 AUE_NULL STD { int modfind(_In_z_ const char *name); } 680304 AUE_MODLOAD STD { int kldload(_In_z_ const char *file); } 681305 AUE_MODUNLOAD STD { int kldunload(int fileid); } 682306 AUE_NULL STD { int kldfind(_In_z_ const char *file); } 683307 AUE_NULL STD { int kldnext(int fileid); } 684308 AUE_NULL STD { int kldstat(int fileid, \ 685 _Out_ struct kld_file_stat *stat); } 686309 AUE_NULL STD { int kldfirstmod(int fileid); } 687310 AUE_GETSID STD { int getsid(pid_t pid); } 688311 AUE_SETRESUID STD { int setresuid(uid_t ruid, uid_t euid, \ 689 uid_t suid); } 690312 AUE_SETRESGID STD { int setresgid(gid_t rgid, gid_t egid, \ 691 gid_t sgid); } 692313 AUE_NULL OBSOL signanosleep 693314 AUE_AIO_RETURN STD { ssize_t aio_return( \ 694 _Inout_ struct aiocb *aiocbp); } 695315 AUE_AIO_SUSPEND STD { int aio_suspend( \ 696 _Inout_updates_(nent) \ 697 struct aiocb * const * aiocbp, \ 698 int nent, \ 699 _In_opt_ \ 700 const struct timespec *timeout); } 701316 AUE_AIO_CANCEL STD { int aio_cancel(int fd, \ 702 _In_opt_ struct aiocb *aiocbp); } 703317 AUE_AIO_ERROR STD { int aio_error( \ 704 _In_ struct aiocb *aiocbp); } 705318 AUE_AIO_READ COMPAT6 { int aio_read( \ 706 _Inout_ struct oaiocb *aiocbp); } 707319 AUE_AIO_WRITE COMPAT6 { int aio_write( \ 708 _Inout_ struct oaiocb *aiocbp); } 709320 AUE_LIO_LISTIO COMPAT6 { int lio_listio(int mode, \ 710 _Inout_updates_(nent) \ 711 struct oaiocb * const *acb_list, \ 712 int nent, \ 713 _In_opt_ struct osigevent *sig); } 714321 AUE_NULL STD { int yield(void); } 715322 AUE_NULL OBSOL thr_sleep 716323 AUE_NULL OBSOL thr_wakeup 717324 AUE_MLOCKALL STD { int mlockall(int how); } 718325 AUE_MUNLOCKALL STD { int munlockall(void); } 719326 AUE_GETCWD STD { int __getcwd( \ 720 _Out_writes_z_(buflen) char *buf, \ 721 size_t buflen); } 722327 AUE_NULL STD { int sched_setparam (pid_t pid, \ 723 _In_ const struct sched_param *param); } 724328 AUE_NULL STD { int sched_getparam (pid_t pid, \ 725 _Out_ struct sched_param *param); } 726329 AUE_NULL STD { int sched_setscheduler (pid_t pid, int \ 727 policy, _In_ const struct sched_param \ 728 *param); } 729330 AUE_NULL STD { int sched_getscheduler (pid_t pid); } 730331 AUE_NULL STD { int sched_yield (void); } 731332 AUE_NULL STD { int sched_get_priority_max (int policy); } 732333 AUE_NULL STD { int sched_get_priority_min (int policy); } 733334 AUE_NULL STD { int sched_rr_get_interval (pid_t pid, \ 734 _Out_ struct timespec *interval); } 735335 AUE_NULL STD { int utrace( \ 736 _In_reads_bytes_(len) const void *addr, \ 737 size_t len); } 738336 AUE_SENDFILE COMPAT4 { int sendfile(int fd, int s, \ 739 off_t offset, size_t nbytes, \ 740 _In_opt_ struct sf_hdtr *hdtr, \ 741 _Out_opt_ off_t *sbytes, int flags); } 742337 AUE_NULL STD { int kldsym(int fileid, int cmd, \ 743 _In_ void *data); } 744338 AUE_JAIL STD { int jail( \ 745 _In_ struct jail *jail); } 746 747339 AUE_NULL NOSTD|NOTSTATIC { int nnpfs_syscall(int operation, \ 748 char *a_pathP, int a_opcode, \ 749 void *a_paramsP, \ 750 int a_followSymlinks); } 751340 AUE_SIGPROCMASK STD { int sigprocmask(int how, \ 752 _In_opt_ const sigset_t *set, \ 753 _Out_opt_ sigset_t *oset); } 754341 AUE_SIGSUSPEND STD { int sigsuspend( \ 755 _In_ const sigset_t *sigmask); } 756342 AUE_SIGACTION COMPAT4 { int sigaction(int sig, \ 757 _In_opt_ const struct sigaction *act, \ 758 _Out_opt_ struct sigaction *oact); } 759343 AUE_SIGPENDING STD { int sigpending(_In_ sigset_t *set); } 760344 AUE_SIGRETURN COMPAT4 { int sigreturn( \ 761 _In_ const struct ucontext4 *sigcntxp); } 762345 AUE_SIGWAIT STD { int sigtimedwait(_In_ const sigset_t *set, \ 763 _Out_opt_ siginfo_t *info, \ 764 _In_opt_ const struct timespec *timeout); } 765346 AUE_NULL STD { int sigwaitinfo(_In_ const sigset_t *set, \ 766 _Out_opt_ siginfo_t *info); } 767347 AUE_ACL_GET_FILE STD { int __acl_get_file( \ 768 _In_z_ const char *path, \ 769 acl_type_t type, \ 770 _Out_ struct acl *aclp); } 771348 AUE_ACL_SET_FILE STD { int __acl_set_file( \ 772 _In_z_ const char *path, \ 773 acl_type_t type, _In_ struct acl *aclp); } 774349 AUE_ACL_GET_FD STD { int __acl_get_fd(int filedes, \ 775 acl_type_t type, _Out_ struct acl *aclp); } 776350 AUE_ACL_SET_FD STD { int __acl_set_fd(int filedes, \ 777 acl_type_t type, _In_ struct acl *aclp); } 778351 AUE_ACL_DELETE_FILE STD { int __acl_delete_file( \ 779 _In_z_ const char *path, \ 780 acl_type_t type); } 781352 AUE_ACL_DELETE_FD STD { int __acl_delete_fd(int filedes, \ 782 acl_type_t type); } 783353 AUE_ACL_CHECK_FILE STD { int __acl_aclcheck_file( \ 784 _In_z_ const char *path, \ 785 acl_type_t type, _In_ struct acl *aclp); } 786354 AUE_ACL_CHECK_FD STD { int __acl_aclcheck_fd(int filedes, \ 787 acl_type_t type, _In_ struct acl *aclp); } 788355 AUE_EXTATTRCTL STD { int extattrctl(_In_z_ const char *path, \ 789 int cmd, _In_z_opt_ const char *filename, \ 790 int attrnamespace, \ 791 _In_z_ const char *attrname); } 792356 AUE_EXTATTR_SET_FILE STD { ssize_t extattr_set_file( \ 793 _In_z_ const char *path, \ 794 int attrnamespace, \ 795 _In_z_ const char *attrname, \ 796 _In_reads_bytes_(nbytes) void *data, \ 797 size_t nbytes); } 798357 AUE_EXTATTR_GET_FILE STD { ssize_t extattr_get_file( \ 799 _In_z_ const char *path, \ 800 int attrnamespace, \ 801 _In_z_ const char *attrname, \ 802 _Out_writes_bytes_(nbytes) void *data, \ 803 size_t nbytes); } 804358 AUE_EXTATTR_DELETE_FILE STD { int extattr_delete_file( \ 805 _In_z_ const char *path, \ 806 int attrnamespace, \ 807 _In_z_ const char *attrname); } 808359 AUE_AIO_WAITCOMPLETE STD { ssize_t aio_waitcomplete( \ 809 _Outptr_result_maybenull_ \ 810 struct aiocb **aiocbp, \ 811 _In_opt_ struct timespec *timeout); } 812360 AUE_GETRESUID STD { int getresuid(_Out_opt_ uid_t *ruid, \ 813 _Out_opt_ uid_t *euid, \ 814 _Out_opt_ uid_t *suid); } 815361 AUE_GETRESGID STD { int getresgid(_Out_opt_ gid_t *rgid, \ 816 _Out_opt_ gid_t *egid, \ 817 _Out_opt_ gid_t *sgid); } 818362 AUE_KQUEUE STD { int kqueue(void); } 819363 AUE_KEVENT COMPAT11 { int kevent(int fd, \ 820 _In_reads_opt_(nchanges) \ 821 struct kevent_freebsd11 *changelist, \ 822 int nchanges, \ 823 _Out_writes_opt_(nevents) \ 824 struct kevent_freebsd11 *eventlist, \ 825 int nevents, \ 826 _In_opt_ const struct timespec *timeout); } 827364 AUE_NULL UNIMPL __cap_get_proc 828365 AUE_NULL UNIMPL __cap_set_proc 829366 AUE_NULL UNIMPL __cap_get_fd 830367 AUE_NULL UNIMPL __cap_get_file 831368 AUE_NULL UNIMPL __cap_set_fd 832369 AUE_NULL UNIMPL __cap_set_file 833370 AUE_NULL UNIMPL nosys 834371 AUE_EXTATTR_SET_FD STD { ssize_t extattr_set_fd(int fd, \ 835 int attrnamespace, \ 836 _In_z_ const char *attrname, \ 837 _In_reads_bytes_(nbytes) void *data, \ 838 size_t nbytes); } 839372 AUE_EXTATTR_GET_FD STD { ssize_t extattr_get_fd(int fd, \ 840 int attrnamespace, \ 841 _In_z_ const char *attrname, \ 842 _Out_writes_bytes_(nbytes) void *data, \ 843 size_t nbytes); } 844373 AUE_EXTATTR_DELETE_FD STD { int extattr_delete_fd(int fd, \ 845 int attrnamespace, \ 846 _In_z_ const char *attrname); } 847374 AUE_SETUGID STD { int __setugid(int flag); } 848375 AUE_NULL UNIMPL nfsclnt 849376 AUE_EACCESS STD { int eaccess(_In_z_ char *path, int amode); } 850377 AUE_NULL NOSTD|NOTSTATIC { int afs3_syscall(long syscall, \ 851 long parm1, long parm2, long parm3, \ 852 long parm4, long parm5, long parm6); } 853378 AUE_NMOUNT STD { int nmount( \ 854 _In_reads_(iovcnt) struct iovec *iovp, \ 855 unsigned int iovcnt, int flags); } 856379 AUE_NULL UNIMPL kse_exit 857380 AUE_NULL UNIMPL kse_wakeup 858381 AUE_NULL UNIMPL kse_create 859382 AUE_NULL UNIMPL kse_thr_interrupt 860383 AUE_NULL UNIMPL kse_release 861384 AUE_NULL STD { int __mac_get_proc( \ 862 _In_ struct mac *mac_p); } 863385 AUE_NULL STD { int __mac_set_proc( \ 864 _In_ struct mac *mac_p); } 865386 AUE_NULL STD { int __mac_get_fd(int fd, \ 866 _In_ struct mac *mac_p); } 867387 AUE_NULL STD { int __mac_get_file( \ 868 _In_z_ const char *path_p, \ 869 _In_ struct mac *mac_p); } 870388 AUE_NULL STD { int __mac_set_fd(int fd, \ 871 _In_ struct mac *mac_p); } 872389 AUE_NULL STD { int __mac_set_file( \ 873 _In_z_ const char *path_p, \ 874 _In_ struct mac *mac_p); } 875390 AUE_NULL STD { int kenv(int what, \ 876 _In_z_opt_ const char *name, \ 877 _Inout_updates_opt_(len) \ 878 char *value, int len); } 879391 AUE_LCHFLAGS STD { int lchflags(_In_z_ const char *path, \ 880 u_long flags); } 881392 AUE_NULL STD { int uuidgen( \ 882 _Out_writes_(count) struct uuid *store, \ 883 int count); } 884393 AUE_SENDFILE STD { int sendfile(int fd, int s, \ 885 off_t offset, \ 886 size_t nbytes, \ 887 _In_opt_ struct sf_hdtr *hdtr, \ 888 _Out_opt_ off_t *sbytes, int flags); } 889394 AUE_NULL STD { int mac_syscall( \ 890 _In_z_ const char *policy, \ 891 int call, \ 892 _In_opt_ void *arg); } 893395 AUE_GETFSSTAT COMPAT11 { int getfsstat( \ 894 _Out_writes_bytes_opt_(bufsize) \ 895 struct freebsd11_statfs *buf, \ 896 long bufsize, int mode); } 897396 AUE_STATFS COMPAT11 { int statfs(_In_z_ char *path, \ 898 _Out_ struct freebsd11_statfs *buf); } 899397 AUE_FSTATFS COMPAT11 { int fstatfs(int fd, \ 900 _Out_ struct freebsd11_statfs *buf); } 901398 AUE_FHSTATFS COMPAT11 { int fhstatfs( \ 902 _In_ const struct fhandle *u_fhp, \ 903 _Out_ struct freebsd11_statfs *buf); } 904399 AUE_NULL UNIMPL nosys 905400 AUE_SEMCLOSE NOSTD { int ksem_close(semid_t id); } 906401 AUE_SEMPOST NOSTD { int ksem_post(semid_t id); } 907402 AUE_SEMWAIT NOSTD { int ksem_wait(semid_t id); } 908403 AUE_SEMTRYWAIT NOSTD { int ksem_trywait(semid_t id); } 909404 AUE_SEMINIT NOSTD { int ksem_init(_Out_ semid_t *idp, \ 910 unsigned int value); } 911405 AUE_SEMOPEN NOSTD { int ksem_open(_Out_ semid_t *idp, \ 912 _In_z_ const char *name, int oflag, \ 913 mode_t mode, unsigned int value); } 914406 AUE_SEMUNLINK NOSTD { int ksem_unlink( \ 915 _In_z_ const char *name); } 916407 AUE_SEMGETVALUE NOSTD { int ksem_getvalue(semid_t id, \ 917 _Out_ int *val); } 918408 AUE_SEMDESTROY NOSTD { int ksem_destroy(semid_t id); } 919409 AUE_NULL STD { int __mac_get_pid(pid_t pid, \ 920 _In_ struct mac *mac_p); } 921410 AUE_NULL STD { int __mac_get_link( \ 922 _In_z_ const char *path_p, \ 923 _In_ struct mac *mac_p); } 924411 AUE_NULL STD { int __mac_set_link( \ 925 _In_z_ const char *path_p, \ 926 _In_ struct mac *mac_p); } 927412 AUE_EXTATTR_SET_LINK STD { ssize_t extattr_set_link( \ 928 _In_z_ const char *path, \ 929 int attrnamespace, \ 930 _In_z_ const char *attrname, \ 931 _In_reads_bytes_(nbytes) void *data, \ 932 size_t nbytes); } 933413 AUE_EXTATTR_GET_LINK STD { ssize_t extattr_get_link( \ 934 _In_z_ const char *path, \ 935 int attrnamespace, \ 936 _In_z_ const char *attrname, \ 937 _Out_writes_bytes_(nbytes) void *data, \ 938 size_t nbytes); } 939414 AUE_EXTATTR_DELETE_LINK STD { int extattr_delete_link( \ 940 _In_z_ const char *path, \ 941 int attrnamespace, \ 942 _In_z_ const char *attrname); } 943415 AUE_NULL STD { int __mac_execve(_In_z_ char *fname, \ 944 _In_ char **argv, \ 945 _In_ char **envv, \ 946 _In_ struct mac *mac_p); } 947416 AUE_SIGACTION STD { int sigaction(int sig, \ 948 _In_opt_ const struct sigaction *act, \ 949 _Out_opt_ struct sigaction *oact); } 950417 AUE_SIGRETURN STD { int sigreturn( \ 951 _In_ const struct __ucontext *sigcntxp); } 952418 AUE_NULL UNIMPL __xstat 953419 AUE_NULL UNIMPL __xfstat 954420 AUE_NULL UNIMPL __xlstat 955421 AUE_NULL STD { int getcontext( \ 956 _Out_ struct __ucontext *ucp); } 957422 AUE_NULL STD { int setcontext( \ 958 _In_ const struct __ucontext *ucp); } 959423 AUE_NULL STD { int swapcontext( \ 960 _Out_ struct __ucontext *oucp, \ 961 _In_ const struct __ucontext *ucp); } 962424 AUE_SWAPOFF STD { int swapoff(_In_z_ const char *name); } 963425 AUE_ACL_GET_LINK STD { int __acl_get_link( \ 964 _In_z_ const char *path, acl_type_t type, \ 965 _Out_ struct acl *aclp); } 966426 AUE_ACL_SET_LINK STD { int __acl_set_link( \ 967 _In_z_ const char *path, acl_type_t type, \ 968 _In_ struct acl *aclp); } 969427 AUE_ACL_DELETE_LINK STD { int __acl_delete_link( \ 970 _In_z_ const char *path, \ 971 acl_type_t type); } 972428 AUE_ACL_CHECK_LINK STD { int __acl_aclcheck_link( \ 973 _In_z_ const char *path, acl_type_t type, \ 974 _In_ struct acl *aclp); } 975429 AUE_SIGWAIT STD { int sigwait(_In_ const sigset_t *set, \ 976 _Out_ int *sig); } 977430 AUE_THR_CREATE STD { int thr_create(_In_ ucontext_t *ctx, \ 978 _Out_ long *id, int flags); } 979431 AUE_THR_EXIT STD { void thr_exit(_Out_opt_ long *state); } 980432 AUE_NULL STD { int thr_self(_Out_ long *id); } 981433 AUE_THR_KILL STD { int thr_kill(long id, int sig); } 982434 AUE_NULL UNIMPL nosys 983435 AUE_NULL UNIMPL nosys 984436 AUE_JAIL_ATTACH STD { int jail_attach(int jid); } 985437 AUE_EXTATTR_LIST_FD STD { ssize_t extattr_list_fd(int fd, \ 986 int attrnamespace, \ 987 _Out_writes_bytes_opt_(nbytes) \ 988 void *data, \ 989 size_t nbytes); } 990438 AUE_EXTATTR_LIST_FILE STD { ssize_t extattr_list_file( \ 991 _In_z_ const char *path, \ 992 int attrnamespace, \ 993 _Out_writes_bytes_opt_(nbytes) \ 994 void *data, size_t nbytes); } 995439 AUE_EXTATTR_LIST_LINK STD { ssize_t extattr_list_link( \ 996 _In_z_ const char *path, \ 997 int attrnamespace, \ 998 _Out_writes_bytes_opt_(nbytes) \ 999 void *data, size_t nbytes); } 1000440 AUE_NULL UNIMPL kse_switchin 1001441 AUE_SEMWAIT NOSTD { int ksem_timedwait(semid_t id, \ 1002 _In_opt_ const struct timespec *abstime); } 1003442 AUE_NULL STD { int thr_suspend( \ 1004 _In_opt_ const struct timespec *timeout); } 1005443 AUE_NULL STD { int thr_wake(long id); } 1006444 AUE_MODUNLOAD STD { int kldunloadf(int fileid, int flags); } 1007445 AUE_AUDIT STD { int audit( \ 1008 _In_reads_bytes_(length) \ 1009 const void *record, \ 1010 u_int length); } 1011446 AUE_AUDITON STD { int auditon(int cmd, \ 1012 _In_opt_ void *data, \ 1013 u_int length); } 1014447 AUE_GETAUID STD { int getauid(_Out_ uid_t *auid); } 1015448 AUE_SETAUID STD { int setauid(_In_ uid_t *auid); } 1016449 AUE_GETAUDIT STD { int getaudit( \ 1017 _Out_ struct auditinfo *auditinfo); } 1018450 AUE_SETAUDIT STD { int setaudit( \ 1019 _In_ struct auditinfo *auditinfo); } 1020451 AUE_GETAUDIT_ADDR STD { int getaudit_addr( \ 1021 _Out_writes_bytes_(length) \ 1022 struct auditinfo_addr *auditinfo_addr, \ 1023 u_int length); } 1024452 AUE_SETAUDIT_ADDR STD { int setaudit_addr( \ 1025 _In_reads_bytes_(length) \ 1026 struct auditinfo_addr *auditinfo_addr, \ 1027 u_int length); } 1028453 AUE_AUDITCTL STD { int auditctl(_In_z_ char *path); } 1029454 AUE_NULL STD { int _umtx_op(_Inout_ void *obj, int op, \ 1030 u_long val, _In_ void *uaddr1, \ 1031 _In_ void *uaddr2); } 1032455 AUE_THR_NEW STD { int thr_new(_In_ struct thr_param *param, \ 1033 int param_size); } 1034456 AUE_NULL STD { int sigqueue(pid_t pid, int signum, \ 1035 _In_ void *value); } 1036 1037457 AUE_MQ_OPEN NOSTD { int kmq_open( \ 1038 _In_z_ const char *path, \ 1039 int flags, \ 1040 mode_t mode, \ 1041 _In_opt_ const struct mq_attr *attr); } 1042458 AUE_MQ_SETATTR NOSTD { int kmq_setattr(int mqd, \ 1043 _In_opt_ const struct mq_attr *attr, \ 1044 _Out_opt_ struct mq_attr *oattr); } 1045459 AUE_MQ_TIMEDRECEIVE NOSTD { int kmq_timedreceive( \ 1046 int mqd, \ 1047 _Out_writes_bytes_(msg_len) char *msg_ptr, \ 1048 size_t msg_len, \ 1049 _Out_opt_ unsigned *msg_prio, \ 1050 _In_opt_ \ 1051 const struct timespec *abs_timeout); } 1052460 AUE_MQ_TIMEDSEND NOSTD { int kmq_timedsend(int mqd, \ 1053 _In_reads_bytes_(msg_len) \ 1054 const char *msg_ptr, size_t msg_len, \ 1055 unsigned msg_prio, \ 1056 _In_opt_ \ 1057 const struct timespec *abs_timeout); } 1058461 AUE_MQ_NOTIFY NOSTD { int kmq_notify(int mqd, \ 1059 _In_opt_ const struct sigevent *sigev); } 1060462 AUE_MQ_UNLINK NOSTD { int kmq_unlink(_In_z_ const char *path); } 1061463 AUE_NULL STD { int abort2(_In_z_ const char *why, \ 1062 int nargs, \ 1063 _In_reads_(nargs) void **args); } 1064464 AUE_NULL STD { int thr_set_name(long id, \ 1065 _In_z_ const char *name); } 1066465 AUE_AIO_FSYNC STD { int aio_fsync(int op, \ 1067 _In_ struct aiocb *aiocbp); } 1068466 AUE_RTPRIO STD { int rtprio_thread(int function, \ 1069 lwpid_t lwpid, \ 1070 _Inout_ struct rtprio *rtp); } 1071467 AUE_NULL UNIMPL nosys 1072468 AUE_NULL UNIMPL nosys 1073469 AUE_NULL UNIMPL __getpath_fromfd 1074470 AUE_NULL UNIMPL __getpath_fromaddr 1075471 AUE_SCTP_PEELOFF NOSTD { int sctp_peeloff(int sd, \ 1076 uint32_t name); } 1077472 AUE_SCTP_GENERIC_SENDMSG NOSTD { int sctp_generic_sendmsg( \ 1078 int sd, \ 1079 _In_reads_bytes_(mlen) caddr_t msg, \ 1080 int mlen, \ 1081 _In_reads_bytes_(tolen) \ 1082 caddr_t to, \ 1083 __socklen_t tolen, \ 1084 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1085 int flags); } 1086473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD { \ 1087 int sctp_generic_sendmsg_iov( \ 1088 int sd, \ 1089 _In_reads_(iovlen) struct iovec *iov, \ 1090 int iovlen, \ 1091 _In_reads_bytes_(tolen) \ 1092 caddr_t to, \ 1093 __socklen_t tolen, \ 1094 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1095 int flags); } 1096474 AUE_SCTP_GENERIC_RECVMSG NOSTD { int sctp_generic_recvmsg( \ 1097 int sd, \ 1098 _In_reads_(iovlen) struct iovec *iov, \ 1099 int iovlen, \ 1100 _Out_writes_bytes_(*fromlenaddr) \ 1101 struct sockaddr *from, \ 1102 _Out_ __socklen_t *fromlenaddr, \ 1103 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1104 _Out_opt_ int *msg_flags); } 1105475 AUE_PREAD STD { ssize_t pread(int fd, \ 1106 _Out_writes_bytes_(nbyte) void *buf, \ 1107 size_t nbyte, off_t offset); } 1108476 AUE_PWRITE STD { ssize_t pwrite(int fd, \ 1109 _In_reads_bytes_(nbyte) \ 1110 const void *buf, \ 1111 size_t nbyte, off_t offset); } 1112477 AUE_MMAP STD { caddr_t mmap(_In_ caddr_t addr, size_t len, \ 1113 int prot, int flags, int fd, off_t pos); } 1114478 AUE_LSEEK STD { off_t lseek(int fd, off_t offset, \ 1115 int whence); } 1116479 AUE_TRUNCATE STD { int truncate(_In_z_ char *path, \ 1117 off_t length); } 1118480 AUE_FTRUNCATE STD { int ftruncate(int fd, off_t length); } 1119481 AUE_THR_KILL2 STD { int thr_kill2(pid_t pid, long id, int sig); } 1120482 AUE_SHMOPEN STD { int shm_open( \ 1121 _In_z_ const char *path, \ 1122 int flags, \ 1123 mode_t mode); } 1124483 AUE_SHMUNLINK STD { int shm_unlink(_In_z_ const char *path); } 1125484 AUE_NULL STD { int cpuset(_Out_ cpusetid_t *setid); } 1126485 AUE_NULL STD { int cpuset_setid(cpuwhich_t which, id_t id, \ 1127 cpusetid_t setid); } 1128486 AUE_NULL STD { int cpuset_getid(cpulevel_t level, \ 1129 cpuwhich_t which, id_t id, \ 1130 _Out_ cpusetid_t *setid); } 1131487 AUE_NULL STD { int cpuset_getaffinity(cpulevel_t level, \ 1132 cpuwhich_t which, id_t id, \ 1133 size_t cpusetsize, \ 1134 _Out_ cpuset_t *mask); } 1135488 AUE_NULL STD { int cpuset_setaffinity(cpulevel_t level, \ 1136 cpuwhich_t which, id_t id, \ 1137 size_t cpusetsize, \ 1138 _Out_ const cpuset_t *mask); } 1139489 AUE_FACCESSAT STD { int faccessat(int fd, _In_z_ char *path, \ 1140 int amode, int flag); } 1141490 AUE_FCHMODAT STD { int fchmodat(int fd, \ 1142 _In_z_ char *path, mode_t mode, \ 1143 int flag); } 1144491 AUE_FCHOWNAT STD { int fchownat(int fd, _In_z_ char *path, \ 1145 uid_t uid, gid_t gid, int flag); } 1146492 AUE_FEXECVE STD { int fexecve(int fd, \ 1147 _In_ char **argv, \ 1148 _In_ char **envv); } 1149493 AUE_FSTATAT COMPAT11 { int fstatat(int fd, _In_z_ char *path, \ 1150 _Out_ struct freebsd11_stat *buf, \ 1151 int flag); } 1152494 AUE_FUTIMESAT STD { int futimesat(int fd, \ 1153 _In_z_ char *path, \ 1154 _In_reads_(2) struct timeval *times); } 1155495 AUE_LINKAT STD { int linkat(int fd1, \ 1156 _In_z_ char *path1, \ 1157 int fd2, \ 1158 _In_z_ char *path2, \ 1159 int flag); } 1160496 AUE_MKDIRAT STD { int mkdirat(int fd, _In_z_ char *path, \ 1161 mode_t mode); } 1162497 AUE_MKFIFOAT STD { int mkfifoat(int fd, \ 1163 _In_z_ char *path, mode_t mode); } 1164498 AUE_MKNODAT COMPAT11 { int mknodat(int fd, _In_z_ char *path, \ 1165 mode_t mode, \ 1166 uint32_t dev); } 1167; XXX: see the comment for open 1168499 AUE_OPENAT_RWTC STD { int openat(int fd, _In_z_ char *path, \ 1169 int flag, mode_t mode); } 1170500 AUE_READLINKAT STD { int readlinkat(int fd, \ 1171 _In_z_ char *path, \ 1172 _Out_writes_bytes_(bufsize) char *buf, \ 1173 size_t bufsize); } 1174501 AUE_RENAMEAT STD { int renameat(int oldfd, \ 1175 _In_z_ char *old, \ 1176 int newfd, _In_z_ char *new); } 1177502 AUE_SYMLINKAT STD { int symlinkat(_In_z_ char *path1, int fd, \ 1178 _In_z_ char *path2); } 1179503 AUE_UNLINKAT STD { int unlinkat(int fd, _In_z_ char *path, \ 1180 int flag); } 1181504 AUE_POSIX_OPENPT STD { int posix_openpt(int flags); } 1182; 505 is initialised by the kgssapi code, if present. 1183505 AUE_NULL NOSTD { int gssd_syscall(_In_z_ char *path); } 1184506 AUE_JAIL_GET STD { int jail_get( \ 1185 _In_reads_(iovcnt) struct iovec *iovp, \ 1186 unsigned int iovcnt, int flags); } 1187507 AUE_JAIL_SET STD { int jail_set( \ 1188 _In_reads_(iovcnt) struct iovec *iovp, \ 1189 unsigned int iovcnt, int flags); } 1190508 AUE_JAIL_REMOVE STD { int jail_remove(int jid); } 1191509 AUE_CLOSEFROM STD { int closefrom(int lowfd); } 1192510 AUE_SEMCTL NOSTD { int __semctl(int semid, int semnum, \ 1193 int cmd, _Inout_ union semun *arg); } 1194511 AUE_MSGCTL NOSTD { int msgctl(int msqid, int cmd, \ 1195 _Inout_opt_ struct msqid_ds *buf); } 1196512 AUE_SHMCTL NOSTD { int shmctl(int shmid, int cmd, \ 1197 _Inout_opt_ struct shmid_ds *buf); } 1198513 AUE_LPATHCONF STD { int lpathconf(_In_z_ char *path, \ 1199 int name); } 1200514 AUE_NULL OBSOL cap_new 1201515 AUE_CAP_RIGHTS_GET STD { int __cap_rights_get(int version, \ 1202 int fd, _Out_ cap_rights_t *rightsp); } 1203516 AUE_CAP_ENTER STD { int cap_enter(void); } 1204517 AUE_CAP_GETMODE STD { int cap_getmode(_Out_ u_int *modep); } 1205518 AUE_PDFORK STD { int pdfork(_Out_ int *fdp, int flags); } 1206519 AUE_PDKILL STD { int pdkill(int fd, int signum); } 1207520 AUE_PDGETPID STD { int pdgetpid(int fd, _Out_ pid_t *pidp); } 1208521 AUE_PDWAIT UNIMPL pdwait4 1209522 AUE_SELECT STD { int pselect(int nd, \ 1210 _Inout_opt_ fd_set *in, \ 1211 _Inout_opt_ fd_set *ou, \ 1212 _Inout_opt_ fd_set *ex, \ 1213 _In_opt_ const struct timespec *ts, \ 1214 _In_opt_ const sigset_t *sm); } 1215523 AUE_GETLOGINCLASS STD { int getloginclass( \ 1216 _Out_writes_z_(namelen) char *namebuf, \ 1217 size_t namelen); } 1218524 AUE_SETLOGINCLASS STD { int setloginclass( \ 1219 _In_z_ const char *namebuf); } 1220525 AUE_NULL STD { int rctl_get_racct( \ 1221 _In_reads_bytes_(inbuflen) \ 1222 const void *inbufp, size_t inbuflen, \ 1223 _Out_writes_bytes_(outbuflen) \ 1224 void *outbufp, size_t outbuflen); } 1225526 AUE_NULL STD { int rctl_get_rules( \ 1226 _In_reads_bytes_(inbuflen) \ 1227 const void *inbufp, size_t inbuflen, \ 1228 _Out_writes_bytes_(outbuflen) \ 1229 void *outbufp, size_t outbuflen); } 1230527 AUE_NULL STD { int rctl_get_limits( \ 1231 _In_reads_bytes_(inbuflen) \ 1232 const void *inbufp, size_t inbuflen, \ 1233 _Out_writes_bytes_(outbuflen) \ 1234 void *outbufp, size_t outbuflen); } 1235528 AUE_NULL STD { int rctl_add_rule( \ 1236 _In_reads_bytes_(inbuflen) \ 1237 const void *inbufp, size_t inbuflen, \ 1238 _Out_writes_bytes_(outbuflen) \ 1239 void *outbufp, size_t outbuflen); } 1240529 AUE_NULL STD { int rctl_remove_rule( \ 1241 _In_reads_bytes_(inbuflen) \ 1242 const void *inbufp, size_t inbuflen, \ 1243 _Out_writes_bytes_(outbuflen) \ 1244 void *outbufp, size_t outbuflen); } 1245530 AUE_POSIX_FALLOCATE STD { int posix_fallocate(int fd, \ 1246 off_t offset, off_t len); } 1247531 AUE_POSIX_FADVISE STD { int posix_fadvise(int fd, \ 1248 off_t offset, \ 1249 off_t len, int advice); } 1250532 AUE_WAIT6 STD { int wait6(idtype_t idtype, id_t id, \ 1251 _Out_opt_ int *status, int options, \ 1252 _Out_opt_ struct __wrusage *wrusage, \ 1253 _Out_opt_ siginfo_t *info); } 1254533 AUE_CAP_RIGHTS_LIMIT STD { int cap_rights_limit(int fd, \ 1255 _In_ cap_rights_t *rightsp); } 1256534 AUE_CAP_IOCTLS_LIMIT STD { int cap_ioctls_limit(int fd, \ 1257 _In_reads_(ncmds) const u_long *cmds, \ 1258 size_t ncmds); } 1259535 AUE_CAP_IOCTLS_GET STD { ssize_t cap_ioctls_get(int fd, \ 1260 _Out_writes_(maxcmds) u_long *cmds, \ 1261 size_t maxcmds); } 1262536 AUE_CAP_FCNTLS_LIMIT STD { int cap_fcntls_limit(int fd, \ 1263 uint32_t fcntlrights); } 1264537 AUE_CAP_FCNTLS_GET STD { int cap_fcntls_get(int fd, \ 1265 _Out_ uint32_t *fcntlrightsp); } 1266538 AUE_BINDAT STD { int bindat(int fd, int s, \ 1267 _In_reads_bytes_(namelen) \ 1268 caddr_t name, \ 1269 int namelen); } 1270539 AUE_CONNECTAT STD { int connectat(int fd, int s, \ 1271 _In_reads_bytes_(namelen) \ 1272 caddr_t name, \ 1273 int namelen); } 1274540 AUE_CHFLAGSAT STD { int chflagsat(int fd, \ 1275 _In_z_ const char *path, \ 1276 u_long flags, int atflag); } 1277541 AUE_ACCEPT STD { int accept4(int s, \ 1278 _Out_writes_bytes_opt_(*anamelen) \ 1279 struct sockaddr * __restrict name, \ 1280 _Inout_opt_ \ 1281 __socklen_t * __restrict anamelen, \ 1282 int flags); } 1283542 AUE_PIPE STD { int pipe2(_Out_writes_(2) int *fildes, \ 1284 int flags); } 1285543 AUE_AIO_MLOCK STD { int aio_mlock(_In_ struct aiocb *aiocbp); } 1286544 AUE_PROCCTL STD { int procctl(idtype_t idtype, id_t id, \ 1287 int com, _In_opt_ void *data); } 1288545 AUE_POLL STD { int ppoll( \ 1289 _Inout_updates_(nfds) struct pollfd *fds, \ 1290 u_int nfds, \ 1291 _In_opt_ const struct timespec *ts, \ 1292 _In_opt_ const sigset_t *set); } 1293546 AUE_FUTIMES STD { int futimens(int fd, \ 1294 _In_reads_(2) \ 1295 struct timespec *times); } 1296547 AUE_FUTIMESAT STD { int utimensat(int fd, \ 1297 _In_z_ char *path, \ 1298 _In_reads_(2) \ 1299 struct timespec *times, \ 1300 int flag); } 1301548 AUE_NULL UNIMPL numa_getaffinity 1302549 AUE_NULL UNIMPL numa_setaffinity 1303550 AUE_FSYNC STD { int fdatasync(int fd); } 1304551 AUE_FSTAT STD { int fstat(int fd, _Out_ struct stat *sb); } 1305552 AUE_FSTATAT STD { int fstatat(int fd, _In_z_ char *path, \ 1306 _Out_ struct stat *buf, int flag); } 1307553 AUE_FHSTAT STD { int fhstat(_In_ const struct fhandle *u_fhp, \ 1308 _Out_ struct stat *sb); } 1309554 AUE_GETDIRENTRIES STD { ssize_t getdirentries(int fd, \ 1310 _Out_writes_bytes_(count) char *buf, \ 1311 size_t count, _Out_ off_t *basep); } 1312555 AUE_STATFS STD { int statfs(_In_z_ char *path, \ 1313 _Out_ struct statfs *buf); } 1314556 AUE_FSTATFS STD { int fstatfs(int fd, \ 1315 _Out_ struct statfs *buf); } 1316557 AUE_GETFSSTAT STD { int getfsstat( \ 1317 _Out_writes_bytes_opt_(bufsize) \ 1318 struct statfs *buf, \ 1319 long bufsize, int mode); } 1320558 AUE_FHSTATFS STD { int fhstatfs( \ 1321 _In_ const struct fhandle *u_fhp, \ 1322 _Out_ struct statfs *buf); } 1323559 AUE_MKNODAT STD { int mknodat(int fd, _In_z_ char *path, \ 1324 mode_t mode, dev_t dev); } 1325560 AUE_KEVENT STD { int kevent(int fd, \ 1326 _In_reads_opt_(nchanges) \ 1327 struct kevent *changelist, \ 1328 int nchanges, \ 1329 _Out_writes_opt_(nevents) \ 1330 struct kevent *eventlist, int nevents, \ 1331 _In_opt_ const struct timespec *timeout); } 1332561 AUE_NULL STD { int cpuset_getdomain(cpulevel_t level, \ 1333 cpuwhich_t which, id_t id, \ 1334 size_t domainsetsize, \ 1335 _Out_writes_bytes_(domainsetsize) \ 1336 domainset_t *mask, \ 1337 _Out_ int *policy); } 1338562 AUE_NULL STD { int cpuset_setdomain(cpulevel_t level, \ 1339 cpuwhich_t which, id_t id, \ 1340 size_t domainsetsize, \ 1341 _In_ domainset_t *mask, \ 1342 int policy); } 1343563 AUE_NULL STD { int getrandom( \ 1344 _Out_writes_bytes_(buflen) void *buf, \ 1345 size_t buflen, unsigned int flags); } 1346 1347; Please copy any additions and changes to the following compatability tables: 1348; sys/compat/freebsd32/syscalls.master 1349; vim: syntax=off 1350