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 { int obreak(_In_ char *nsize); } break \ 122 obreak_args int 12318 AUE_GETFSSTAT COMPAT4 { int getfsstat( \ 124 _Out_writes_bytes_opt_(bufsize) \ 125 struct ostatfs *buf, \ 126 long bufsize, int mode); } 12719 AUE_LSEEK COMPAT { long lseek(int fd, long offset, \ 128 int whence); } 12920 AUE_GETPID STD { pid_t getpid(void); } 13021 AUE_MOUNT STD { int mount(_In_z_ char *type, \ 131 _In_z_ char *path, int flags, \ 132 _In_opt_ caddr_t data); } 133; XXX `path' should have type `const char *' but we're not ready for that. 13422 AUE_UMOUNT STD { int unmount(_In_z_ char *path, int flags); } 13523 AUE_SETUID STD { int setuid(uid_t uid); } 13624 AUE_GETUID STD { uid_t getuid(void); } 13725 AUE_GETEUID STD { uid_t geteuid(void); } 13826 AUE_PTRACE STD { int ptrace(int req, pid_t pid, \ 139 _Inout_opt_ caddr_t addr, int data); } 14027 AUE_RECVMSG STD { int recvmsg(int s, \ 141 _Inout_ struct msghdr *msg, int flags); } 14228 AUE_SENDMSG STD { int sendmsg(int s, _In_ struct msghdr *msg, \ 143 int flags); } 14429 AUE_RECVFROM STD { int recvfrom(int s, \ 145 _Out_writes_bytes_(len) caddr_t buf, \ 146 size_t len, int flags, \ 147 _Out_writes_bytes_opt_(*fromlenaddr) \ 148 struct sockaddr * __restrict from, \ 149 _Inout_opt_ \ 150 __socklen_t * __restrict fromlenaddr); } 15130 AUE_ACCEPT STD { int accept(int s, \ 152 _Out_writes_bytes_opt_(*anamelen) \ 153 struct sockaddr * __restrict name, \ 154 _Inout_opt_ \ 155 __socklen_t * __restrict anamelen); } 15631 AUE_GETPEERNAME STD { int getpeername(int fdes, \ 157 _Out_writes_bytes_(*alen) \ 158 struct sockaddr * __restrict asa, \ 159 _Inout_opt_ \ 160 __socklen_t * __restrict alen); } 16132 AUE_GETSOCKNAME STD { int getsockname(int fdes, \ 162 _Out_writes_bytes_(*alen) \ 163 struct sockaddr * __restrict asa, \ 164 _Inout_ __socklen_t * __restrict alen); } 16533 AUE_ACCESS STD { int access(_In_z_ char *path, int amode); } 16634 AUE_CHFLAGS STD { int chflags(_In_z_ const char *path, \ 167 u_long flags); } 16835 AUE_FCHFLAGS STD { int fchflags(int fd, u_long flags); } 16936 AUE_SYNC STD { int sync(void); } 17037 AUE_KILL STD { int kill(int pid, int signum); } 17138 AUE_STAT COMPAT { int stat(_In_z_ char *path, \ 172 _Out_ struct ostat *ub); } 17339 AUE_GETPPID STD { pid_t getppid(void); } 17440 AUE_LSTAT COMPAT { int lstat(_In_z_ char *path, \ 175 _Out_ struct ostat *ub); } 17641 AUE_DUP STD { int dup(u_int fd); } 17742 AUE_PIPE COMPAT10 { int pipe(void); } 17843 AUE_GETEGID STD { gid_t getegid(void); } 17944 AUE_PROFILE STD { int profil( \ 180 _Out_writes_bytes_(size) caddr_t samples, \ 181 size_t size, size_t offset, u_int scale); } 18245 AUE_KTRACE STD { int ktrace(_In_z_ const char *fname, \ 183 int ops, int facs, int pid); } 18446 AUE_SIGACTION COMPAT { int sigaction(int signum, \ 185 _In_opt_ struct osigaction *nsa, \ 186 _Out_opt_ struct osigaction *osa); } 18747 AUE_GETGID STD { gid_t getgid(void); } 18848 AUE_SIGPROCMASK COMPAT { int sigprocmask(int how, osigset_t mask); } 189; XXX note nonstandard (bogus) calling convention - the libc stub passes 190; us the mask, not a pointer to it, and we return the old mask as the 191; (int) return value. 19249 AUE_GETLOGIN STD { int getlogin( \ 193 _Out_writes_z_(namelen) char *namebuf, \ 194 u_int namelen); } 19550 AUE_SETLOGIN STD { int setlogin(_In_z_ char *namebuf); } 19651 AUE_ACCT STD { int acct(_In_z_ char *path); } 19752 AUE_SIGPENDING COMPAT { int sigpending(void); } 19853 AUE_SIGALTSTACK STD { int sigaltstack(_In_opt_ stack_t *ss, \ 199 _Out_opt_ stack_t *oss); } 20054 AUE_IOCTL STD { int ioctl(int fd, u_long com, \ 201 _Inout_opt_ caddr_t data); } 20255 AUE_REBOOT STD { int reboot(int opt); } 20356 AUE_REVOKE STD { int revoke(_In_z_ char *path); } 20457 AUE_SYMLINK STD { int symlink(_In_z_ char *path, \ 205 _In_z_ char *link); } 20658 AUE_READLINK STD { ssize_t readlink(_In_z_ char *path, \ 207 _Out_writes_z_(count) char *buf, \ 208 size_t count); } 20959 AUE_EXECVE STD { int execve( \ 210 _In_z_ char *fname, \ 211 _In_z_ char **argv, \ 212 _In_z_ char **envv); } 21360 AUE_UMASK STD { int umask(int newmask); } umask umask_args \ 214 int 21561 AUE_CHROOT STD { int chroot(_In_z_ char *path); } 21662 AUE_FSTAT COMPAT { int fstat(int fd, _Out_ struct ostat *sb); } 21763 AUE_NULL COMPAT { int getkerninfo(int op, \ 218 _Out_writes_bytes_opt(*size) char *where, \ 219 _Inout_opt_ size_t *size, \ 220 int arg); } getkerninfo getkerninfo_args int 22164 AUE_NULL COMPAT { int getpagesize(void); } getpagesize \ 222 getpagesize_args int 22365 AUE_MSYNC STD { int msync(_In_ void *addr, size_t len, \ 224 int flags); } 22566 AUE_VFORK STD { int vfork(void); } 22667 AUE_NULL OBSOL vread 22768 AUE_NULL OBSOL vwrite 22869 AUE_SBRK STD { int sbrk(int incr); } 22970 AUE_SSTK STD { int sstk(int incr); } 23071 AUE_MMAP COMPAT { int mmap(_In_ void *addr, int len, int prot, \ 231 int flags, int fd, long pos); } 23272 AUE_O_VADVISE COMPAT11 { int vadvise(int anom); } 23373 AUE_MUNMAP STD { int munmap(_In_ void *addr, size_t len); } 23474 AUE_MPROTECT STD { int mprotect(_In_ void *addr, \ 235 size_t len, int prot); } 23675 AUE_MADVISE STD { int madvise(_In_ void *addr, \ 237 size_t len, int behav); } 23876 AUE_NULL OBSOL vhangup 23977 AUE_NULL OBSOL vlimit 24078 AUE_MINCORE STD { int mincore( \ 241 _In_ const void *addr, \ 242 size_t len, \ 243 _Out_writes_bytes_(len/PAGE_SIZE) \ 244 char *vec); } 24579 AUE_GETGROUPS STD { int getgroups(u_int gidsetsize, \ 246 _Out_writes_opt_(gidsetsize) \ 247 gid_t *gidset); } 24880 AUE_SETGROUPS STD { int setgroups(u_int gidsetsize, \ 249 _In_reads_(gidsetsize) gid_t *gidset); } 25081 AUE_GETPGRP STD { int getpgrp(void); } 25182 AUE_SETPGRP STD { int setpgid(int pid, int pgid); } 25283 AUE_SETITIMER STD { int setitimer(u_int which, \ 253 _In_ struct itimerval *itv, \ 254 _Out_opt_ struct itimerval *oitv); } 25584 AUE_WAIT4 COMPAT { int wait(void); } 25685 AUE_SWAPON STD { int swapon(_In_z_ char *name); } 25786 AUE_GETITIMER STD { int getitimer(u_int which, \ 258 _Out_ struct itimerval *itv); } 25987 AUE_SYSCTL COMPAT { int gethostname( \ 260 _Out_writes_z_(len) char *hostname, \ 261 u_int len); } gethostname \ 262 gethostname_args int 26388 AUE_SYSCTL COMPAT { int sethostname( \ 264 _In_reads_z_(len) char *hostname, \ 265 u_int len); } sethostname \ 266 sethostname_args int 26789 AUE_GETDTABLESIZE STD { int getdtablesize(void); } 26890 AUE_DUP2 STD { int dup2(u_int from, u_int to); } 26991 AUE_NULL UNIMPL getdopt 27092 AUE_FCNTL STD { int fcntl(int fd, int cmd, long arg); } 271; XXX should be { int fcntl(int fd, int cmd, ...); } 272; but we're not ready for varargs. 27393 AUE_SELECT STD { int select(int nd, \ 274 _Inout_opt_ fd_set *in, \ 275 _Inout_opt_ fd_set *ou, \ 276 _Inout_opt_ fd_set *ex, \ 277 _In_opt_ struct timeval *tv); } 27894 AUE_NULL UNIMPL setdopt 27995 AUE_FSYNC STD { int fsync(int fd); } 28096 AUE_SETPRIORITY STD { int setpriority(int which, int who, \ 281 int prio); } 28297 AUE_SOCKET STD { int socket(int domain, int type, \ 283 int protocol); } 28498 AUE_CONNECT STD { int connect(int s, \ 285 _In_reads_bytes_(namelen) caddr_t name, \ 286 int namelen); } 28799 AUE_ACCEPT COMPAT|NOARGS { int accept(int s, \ 288 _Out_writes_bytes_opt_(*anamelen) \ 289 caddr_t name, int *anamelen); } \ 290 accept accept_args int 291100 AUE_GETPRIORITY STD { int getpriority(int which, int who); } 292101 AUE_SEND COMPAT { int send(int s, \ 293 _In_reads_bytes_(len) caddr_t buf, \ 294 int len, \ 295 int flags); } 296102 AUE_RECV COMPAT { int recv(int s, \ 297 _Out_writes_bytes_(len) caddr_t buf, \ 298 int len, int flags); } 299103 AUE_SIGRETURN COMPAT { int sigreturn( \ 300 _In_ struct osigcontext *sigcntxp); } 301104 AUE_BIND STD { int bind(int s, \ 302 _In_reads_bytes_(namelen) caddr_t name, \ 303 int namelen); } 304105 AUE_SETSOCKOPT STD { int setsockopt(int s, int level, int name, \ 305 _In_reads_bytes_opt_(valsize) caddr_t val, \ 306 int valsize); } 307106 AUE_LISTEN STD { int listen(int s, int backlog); } 308107 AUE_NULL OBSOL vtimes 309108 AUE_NULL COMPAT { int sigvec(int signum, \ 310 _In_opt_ struct sigvec *nsv, \ 311 _Out_opt_ struct sigvec *osv); } 312109 AUE_NULL COMPAT { int sigblock(int mask); } 313110 AUE_NULL COMPAT { int sigsetmask(int mask); } 314111 AUE_NULL COMPAT { int sigsuspend(osigset_t mask); } 315; XXX note nonstandard (bogus) calling convention - the libc stub passes 316; us the mask, not a pointer to it. 317112 AUE_NULL COMPAT { int sigstack(_In_opt_ struct sigstack *nss, \ 318 _Out_opt_ struct sigstack *oss); } 319113 AUE_RECVMSG COMPAT { int recvmsg(int s, \ 320 _Inout_ struct omsghdr *msg, \ 321 int flags); } 322114 AUE_SENDMSG COMPAT { int sendmsg(int s, _In_ caddr_t msg, \ 323 int flags); } 324115 AUE_NULL OBSOL vtrace 325116 AUE_GETTIMEOFDAY STD { int gettimeofday( \ 326 _Out_ struct timeval *tp, \ 327 _Out_opt_ struct timezone *tzp); } 328117 AUE_GETRUSAGE STD { int getrusage(int who, \ 329 _Out_ struct rusage *rusage); } 330118 AUE_GETSOCKOPT STD { int getsockopt(int s, int level, int name, \ 331 _Out_writes_bytes_opt_(*avalsize) \ 332 caddr_t val, _Inout_ int *avalsize); } 333119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 334120 AUE_READV STD { int readv(int fd, \ 335 _Inout_updates_(iovcnt) struct iovec *iovp, \ 336 u_int iovcnt); } 337121 AUE_WRITEV STD { int writev(int fd, \ 338 _In_reads_opt_(iovcnt) struct iovec *iovp, \ 339 u_int iovcnt); } 340122 AUE_SETTIMEOFDAY STD { int settimeofday( \ 341 _In_ struct timeval *tv, \ 342 _In_opt_ struct timezone *tzp); } 343123 AUE_FCHOWN STD { int fchown(int fd, int uid, int gid); } 344124 AUE_FCHMOD STD { int fchmod(int fd, int mode); } 345125 AUE_RECVFROM COMPAT|NOARGS { int recvfrom(int s, \ 346 _Out_writes_(len) caddr_t buf, \ 347 size_t len, int flags, \ 348 _Out_writes_bytes_(*fromlenaddr) \ 349 caddr_t from, \ 350 _Inout_ int *fromlenaddr); } \ 351 recvfrom recvfrom_args int 352126 AUE_SETREUID STD { int setreuid(int ruid, int euid); } 353127 AUE_SETREGID STD { int setregid(int rgid, int egid); } 354128 AUE_RENAME STD { int rename(_In_z_ char *from, \ 355 _In_z_ char *to); } 356129 AUE_TRUNCATE COMPAT { int truncate(_In_z_ char *path, \ 357 long length); } 358130 AUE_FTRUNCATE COMPAT { int ftruncate(int fd, long length); } 359131 AUE_FLOCK STD { int flock(int fd, int how); } 360132 AUE_MKFIFO STD { int mkfifo(_In_z_ char *path, int mode); } 361133 AUE_SENDTO STD { int sendto(int s, \ 362 _In_reads_bytes_(len) caddr_t buf, \ 363 size_t len, int flags, \ 364 _In_reads_bytes_opt_(tolen) caddr_t to, \ 365 int tolen); } 366134 AUE_SHUTDOWN STD { int shutdown(int s, int how); } 367135 AUE_SOCKETPAIR STD { int socketpair(int domain, int type, \ 368 int protocol, _Out_writes_(2) int *rsv); } 369136 AUE_MKDIR STD { int mkdir(_In_z_ char *path, int mode); } 370137 AUE_RMDIR STD { int rmdir(_In_z_ char *path); } 371138 AUE_UTIMES STD { int utimes(_In_z_ char *path, \ 372 _In_ struct timeval *tptr); } 373139 AUE_NULL OBSOL 4.2 sigreturn 374140 AUE_ADJTIME STD { int adjtime(_In_ struct timeval *delta, \ 375 _Out_opt_ struct timeval *olddelta); } 376141 AUE_GETPEERNAME COMPAT { int getpeername(int fdes, \ 377 _Out_writes_bytes_(*alen) \ 378 caddr_t asa, \ 379 _Inout_opt_ int *alen); } 380142 AUE_SYSCTL COMPAT { long gethostid(void); } 381143 AUE_SYSCTL COMPAT { int sethostid(long hostid); } 382144 AUE_GETRLIMIT COMPAT { int getrlimit(u_int which, _Out_ struct \ 383 orlimit *rlp); } 384145 AUE_SETRLIMIT COMPAT { int setrlimit(u_int which, \ 385 _Out_ struct orlimit *rlp); } 386146 AUE_KILLPG COMPAT { int killpg(int pgid, int signum); } 387147 AUE_SETSID STD { int setsid(void); } 388148 AUE_QUOTACTL STD { int quotactl( \ 389 _In_z_ char *path, int cmd, int uid, \ 390 _In_ caddr_t arg); } 391149 AUE_O_QUOTA COMPAT { int quota(void); } 392150 AUE_GETSOCKNAME COMPAT|NOARGS { int getsockname(int fdec, \ 393 _Out_writes_bytes_(*alen) \ 394 caddr_t asa, \ 395 _Inout_ int *alen); } getsockname \ 396 getsockname_args int 397 398; Syscalls 151-180 inclusive are reserved for vendor-specific 399; system calls. (This includes various calls added for compatibity 400; with other Unix variants.) 401; Some of these calls are now supported by BSD... 402151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 403152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 404153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 405; 154 is initialised by the NLM code, if present. 406154 AUE_NULL NOSTD { int nlm_syscall(int debug_level, \ 407 int grace_period, int addr_count, \ 408 _In_reads_(addr_count) \ 409 char **addrs); } 410; 155 is initialized by the NFS code, if present. 411155 AUE_NFS_SVC NOSTD { int nfssvc(int flag, _In_ caddr_t argp); } 412156 AUE_GETDIRENTRIES COMPAT { int getdirentries(int fd, \ 413 _Out_writes_bytes_(count) char *buf, \ 414 u_int count, _Out_ long *basep); } 415157 AUE_STATFS COMPAT4 { int statfs(_In_z_ char *path, \ 416 _Out_ struct ostatfs *buf); } 417158 AUE_FSTATFS COMPAT4 { int fstatfs(int fd, \ 418 _Out_ struct ostatfs *buf); } 419159 AUE_NULL UNIMPL nosys 420160 AUE_LGETFH STD { int lgetfh(_In_z_ char *fname, \ 421 _Out_ struct fhandle *fhp); } 422161 AUE_NFS_GETFH STD { int getfh(_In_z_ char *fname, \ 423 _Out_ struct fhandle *fhp); } 424162 AUE_SYSCTL COMPAT4 { int getdomainname( \ 425 _Out_writes_z_(len) char *domainname, \ 426 int len); } 427163 AUE_SYSCTL COMPAT4 { int setdomainname( \ 428 _In_reads_z_(len) char *domainname, \ 429 int len); } 430164 AUE_NULL COMPAT4 { int uname(_Out_ struct utsname *name); } 431165 AUE_SYSARCH STD { int sysarch(int op, _In_z_ char *parms); } 432166 AUE_RTPRIO STD { int rtprio(int function, pid_t pid, \ 433 _Inout_ struct rtprio *rtp); } 434167 AUE_NULL UNIMPL nosys 435168 AUE_NULL UNIMPL nosys 436169 AUE_SEMSYS NOSTD { int semsys(int which, int a2, int a3, \ 437 int a4, int a5); } 438; XXX should be { int semsys(int which, ...); } 439170 AUE_MSGSYS NOSTD { int msgsys(int which, int a2, int a3, \ 440 int a4, int a5, int a6); } 441; XXX should be { int msgsys(int which, ...); } 442171 AUE_SHMSYS NOSTD { int shmsys(int which, int a2, int a3, \ 443 int a4); } 444; XXX should be { int shmsys(int which, ...); } 445172 AUE_NULL UNIMPL nosys 446173 AUE_PREAD COMPAT6 { ssize_t pread(int fd, \ 447 _Out_writes_bytes_(nbyte) void *buf, \ 448 size_t nbyte, int pad, off_t offset); } 449174 AUE_PWRITE COMPAT6 { ssize_t pwrite(int fd, \ 450 _In_reads_bytes_(nbyte) \ 451 const void *buf, \ 452 size_t nbyte, int pad, off_t offset); } 453175 AUE_SETFIB STD { int setfib(int fibnum); } 454176 AUE_NTP_ADJTIME STD { int ntp_adjtime(_Inout_ struct timex *tp); } 455177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 456178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 457179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 458180 AUE_NULL UNIMPL nosys 459 460; Syscalls 181-199 are used by/reserved for BSD 461181 AUE_SETGID STD { int setgid(gid_t gid); } 462182 AUE_SETEGID STD { int setegid(gid_t egid); } 463183 AUE_SETEUID STD { int seteuid(uid_t euid); } 464184 AUE_NULL UNIMPL lfs_bmapv 465185 AUE_NULL UNIMPL lfs_markv 466186 AUE_NULL UNIMPL lfs_segclean 467187 AUE_NULL UNIMPL lfs_segwait 468188 AUE_STAT COMPAT11 { int stat(_In_z_ char *path, \ 469 _Out_ struct freebsd11_stat *ub); } 470189 AUE_FSTAT COMPAT11 { int fstat(int fd, \ 471 _Out_ struct freebsd11_stat *sb); } 472190 AUE_LSTAT COMPAT11 { int lstat(_In_z_ char *path, \ 473 _Out_ struct freebsd11_stat *ub); } 474191 AUE_PATHCONF STD { int pathconf(_In_z_ char *path, int name); } 475192 AUE_FPATHCONF STD { int fpathconf(int fd, int name); } 476193 AUE_NULL UNIMPL nosys 477194 AUE_GETRLIMIT STD { int getrlimit(u_int which, \ 478 _Out_ struct rlimit *rlp); } getrlimit \ 479 __getrlimit_args int 480195 AUE_SETRLIMIT STD { int setrlimit(u_int which, \ 481 _In_ struct rlimit *rlp); } setrlimit \ 482 __setrlimit_args int 483196 AUE_GETDIRENTRIES COMPAT11 { int getdirentries(int fd, \ 484 _Out_writes_bytes_(count) char *buf, \ 485 u_int count, _Out_ long *basep); } 486197 AUE_MMAP COMPAT6 { caddr_t mmap(_In_ caddr_t addr, size_t len, \ 487 int prot, int flags, int fd, int pad, \ 488 off_t pos); } 489198 AUE_NULL NOPROTO { int nosys(void); } __syscall \ 490 __syscall_args int 491199 AUE_LSEEK COMPAT6 { off_t lseek(int fd, int pad, \ 492 off_t offset, int whence); } 493200 AUE_TRUNCATE COMPAT6 { int truncate(_In_z_ char *path, int pad, \ 494 off_t length); } 495201 AUE_FTRUNCATE COMPAT6 { int ftruncate(int fd, int pad, \ 496 off_t length); } 497202 AUE_SYSCTL STD { int __sysctl( \ 498 _In_reads_(namelen) int *name, \ 499 u_int namelen, \ 500 _Out_writes_bytes_opt_(*oldlenp) \ 501 void *old, \ 502 _Inout_opt_ size_t *oldlenp, \ 503 _In_reads_bytes_opt_(newlen) \ 504 void *new, \ 505 size_t newlen); } \ 506 __sysctl sysctl_args int 507203 AUE_MLOCK STD { int mlock(_In_ const void *addr, \ 508 size_t len); } 509204 AUE_MUNLOCK STD { int munlock(_In_ const void *addr, \ 510 size_t len); } 511205 AUE_UNDELETE STD { int undelete(_In_z_ char *path); } 512206 AUE_FUTIMES STD { int futimes(int fd, \ 513 _In_reads_(2) struct timeval *tptr); } 514207 AUE_GETPGID STD { int getpgid(pid_t pid); } 515208 AUE_NULL UNIMPL nosys 516209 AUE_POLL STD { int poll( \ 517 _Inout_updates_(nfds) \ 518 struct pollfd *fds, \ 519 u_int nfds, int timeout); } 520; 521; The following are reserved for loadable syscalls 522; 523210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 524211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 525212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 526213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 527214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 528215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 529216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 530217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 531218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 532219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 533 534220 AUE_SEMCTL COMPAT7|NOSTD { int __semctl(int semid, int semnum, \ 535 int cmd, union semun_old *arg); } 536221 AUE_SEMGET NOSTD { int semget(key_t key, int nsems, \ 537 int semflg); } 538222 AUE_SEMOP NOSTD { int semop(int semid, \ 539 _In_reads_(nsops) struct sembuf *sops, \ 540 size_t nsops); } 541223 AUE_NULL UNIMPL semconfig 542224 AUE_MSGCTL COMPAT7|NOSTD { int msgctl(int msqid, int cmd, \ 543 struct msqid_ds_old *buf); } 544225 AUE_MSGGET NOSTD { int msgget(key_t key, int msgflg); } 545226 AUE_MSGSND NOSTD { int msgsnd(int msqid, \ 546 _In_reads_bytes_(msgsz) const void *msgp, \ 547 size_t msgsz, int msgflg); } 548227 AUE_MSGRCV NOSTD { ssize_t msgrcv(int msqid, \ 549 _Out_writes_bytes_(msgsz) void *msgp, \ 550 size_t msgsz, long msgtyp, int msgflg); } 551228 AUE_SHMAT NOSTD { int shmat(int shmid, \ 552 _In_ const void *shmaddr, \ 553 int shmflg); } 554229 AUE_SHMCTL COMPAT7|NOSTD { int shmctl(int shmid, int cmd, \ 555 struct shmid_ds_old *buf); } 556230 AUE_SHMDT NOSTD { int shmdt(_In_ const void *shmaddr); } 557231 AUE_SHMGET NOSTD { int shmget(key_t key, size_t size, \ 558 int shmflg); } 559; 560232 AUE_NULL STD { int clock_gettime(clockid_t clock_id, \ 561 _Out_ struct timespec *tp); } 562233 AUE_CLOCK_SETTIME STD { int clock_settime(clockid_t clock_id, \ 563 _In_ const struct timespec *tp); } 564234 AUE_NULL STD { int clock_getres(clockid_t clock_id, \ 565 _Out_ struct timespec *tp); } 566235 AUE_NULL STD { int ktimer_create( \ 567 clockid_t clock_id, \ 568 _In_ struct sigevent *evp, \ 569 _Out_ int *timerid); } 570236 AUE_NULL STD { int ktimer_delete(int timerid); } 571237 AUE_NULL STD { int ktimer_settime(int timerid, \ 572 int flags, \ 573 _In_ const struct itimerspec *value, \ 574 _Out_opt_ struct itimerspec *ovalue); } 575238 AUE_NULL STD { int ktimer_gettime(int timerid, \ 576 _Out_ struct itimerspec *value); } 577239 AUE_NULL STD { int ktimer_getoverrun(int timerid); } 578240 AUE_NULL STD { int nanosleep( \ 579 _In_ const struct timespec *rqtp, \ 580 _Out_opt_ struct timespec *rmtp); } 581241 AUE_NULL STD { int ffclock_getcounter( \ 582 _Out_ ffcounter *ffcount); } 583242 AUE_NULL STD { int ffclock_setestimate( \ 584 _In_ struct ffclock_estimate *cest); } 585243 AUE_NULL STD { int ffclock_getestimate( \ 586 _Out_ struct ffclock_estimate *cest); } 587244 AUE_NULL STD { int clock_nanosleep(clockid_t clock_id, \ 588 int flags, \ 589 _In_ const struct timespec *rqtp, \ 590 _Out_opt_ struct timespec *rmtp); } 591245 AUE_NULL UNIMPL nosys 592246 AUE_NULL UNIMPL nosys 593247 AUE_NULL STD { int clock_getcpuclockid2(id_t id, \ 594 int which, _Out_ clockid_t *clock_id); } 595248 AUE_NULL STD { int ntp_gettime( \ 596 _Out_ struct ntptimeval *ntvp); } 597249 AUE_NULL UNIMPL nosys 598; syscall numbers initially used in OpenBSD 599250 AUE_MINHERIT STD { int minherit( \ 600 _In_ void *addr, \ 601 size_t len, int inherit); } 602251 AUE_RFORK STD { int rfork(int flags); } 603252 AUE_POLL OBSOL openbsd_poll 604253 AUE_ISSETUGID STD { int issetugid(void); } 605254 AUE_LCHOWN STD { int lchown(_In_z_ char *path, int uid, \ 606 int gid); } 607255 AUE_AIO_READ STD { int aio_read( \ 608 _Inout_ struct aiocb *aiocbp); } 609256 AUE_AIO_WRITE STD { int aio_write( \ 610 _Inout_ struct aiocb *aiocbp); } 611257 AUE_LIO_LISTIO STD { int lio_listio(int mode, \ 612 _Inout_updates_(nent) \ 613 struct aiocb* const *acb_list, \ 614 int nent, \ 615 _In_opt_ struct sigevent *sig); } 616258 AUE_NULL UNIMPL nosys 617259 AUE_NULL UNIMPL nosys 618260 AUE_NULL UNIMPL nosys 619261 AUE_NULL UNIMPL nosys 620262 AUE_NULL UNIMPL nosys 621263 AUE_NULL UNIMPL nosys 622264 AUE_NULL UNIMPL nosys 623265 AUE_NULL UNIMPL nosys 624266 AUE_NULL UNIMPL nosys 625267 AUE_NULL UNIMPL nosys 626268 AUE_NULL UNIMPL nosys 627269 AUE_NULL UNIMPL nosys 628270 AUE_NULL UNIMPL nosys 629271 AUE_NULL UNIMPL nosys 630272 AUE_O_GETDENTS COMPAT11 { int getdents(int fd, \ 631 _Out_writes_bytes_(count) char *buf, \ 632 size_t count); } 633273 AUE_NULL UNIMPL nosys 634274 AUE_LCHMOD STD { int lchmod(_In_z_ char *path, mode_t mode); } 635275 AUE_LCHOWN NOPROTO { int lchown(char *path, uid_t uid, \ 636 gid_t gid); } netbsd_lchown lchown_args \ 637 int 638276 AUE_LUTIMES STD { int lutimes(_In_z_ char *path, \ 639 _In_ struct timeval *tptr); } 640277 AUE_MSYNC NOPROTO { int msync(_In_ void *addr, size_t len, \ 641 int flags); } netbsd_msync msync_args int 642278 AUE_STAT COMPAT11 { int nstat(_In_z_ char *path, \ 643 _Out_ struct nstat *ub); } 644279 AUE_FSTAT COMPAT11 { int nfstat(int fd, _Out_ struct nstat *sb); } 645280 AUE_LSTAT COMPAT11 { int nlstat(_In_z_ char *path, \ 646 _Out_ struct nstat *ub); } 647281 AUE_NULL UNIMPL nosys 648282 AUE_NULL UNIMPL nosys 649283 AUE_NULL UNIMPL nosys 650284 AUE_NULL UNIMPL nosys 651285 AUE_NULL UNIMPL nosys 652286 AUE_NULL UNIMPL nosys 653287 AUE_NULL UNIMPL nosys 654288 AUE_NULL UNIMPL nosys 655289 AUE_PREADV STD { ssize_t preadv(int fd, \ 656 _In_reads_(iovcnt) \ 657 struct iovec *iovp, \ 658 u_int iovcnt, off_t offset); } 659290 AUE_PWRITEV STD { ssize_t pwritev(int fd, \ 660 _In_reads_(iovcnt) struct iovec *iovp, \ 661 u_int iovcnt, off_t offset); } 662291 AUE_NULL UNIMPL nosys 663292 AUE_NULL UNIMPL nosys 664293 AUE_NULL UNIMPL nosys 665294 AUE_NULL UNIMPL nosys 666295 AUE_NULL UNIMPL nosys 667296 AUE_NULL UNIMPL nosys 668297 AUE_FHSTATFS COMPAT4 { int fhstatfs( \ 669 _In_ const struct fhandle *u_fhp, \ 670 _Out_ struct ostatfs *buf); } 671298 AUE_FHOPEN STD { int fhopen( \ 672 _In_ const struct fhandle *u_fhp, \ 673 int flags); } 674299 AUE_FHSTAT COMPAT11 { int fhstat( \ 675 _In_ const struct fhandle *u_fhp, \ 676 _Out_ struct freebsd11_stat *sb); } 677300 AUE_NULL STD { int modnext(int modid); } 678301 AUE_NULL STD { int modstat(int modid, \ 679 _Out_ struct module_stat* stat); } 680302 AUE_NULL STD { int modfnext(int modid); } 681303 AUE_NULL STD { int modfind(_In_z_ const char *name); } 682304 AUE_MODLOAD STD { int kldload(_In_z_ const char *file); } 683305 AUE_MODUNLOAD STD { int kldunload(int fileid); } 684306 AUE_NULL STD { int kldfind(_In_z_ const char *file); } 685307 AUE_NULL STD { int kldnext(int fileid); } 686308 AUE_NULL STD { int kldstat(int fileid, \ 687 _Out_ struct kld_file_stat *stat); } 688309 AUE_NULL STD { int kldfirstmod(int fileid); } 689310 AUE_GETSID STD { int getsid(pid_t pid); } 690311 AUE_SETRESUID STD { int setresuid(uid_t ruid, uid_t euid, \ 691 uid_t suid); } 692312 AUE_SETRESGID STD { int setresgid(gid_t rgid, gid_t egid, \ 693 gid_t sgid); } 694313 AUE_NULL OBSOL signanosleep 695314 AUE_AIO_RETURN STD { ssize_t aio_return( \ 696 _Inout_ struct aiocb *aiocbp); } 697315 AUE_AIO_SUSPEND STD { int aio_suspend( \ 698 _Inout_updates_(nent) \ 699 struct aiocb * const * aiocbp, \ 700 int nent, \ 701 _In_opt_ \ 702 const struct timespec *timeout); } 703316 AUE_AIO_CANCEL STD { int aio_cancel(int fd, \ 704 _In_opt_ struct aiocb *aiocbp); } 705317 AUE_AIO_ERROR STD { int aio_error( \ 706 _In_ struct aiocb *aiocbp); } 707318 AUE_AIO_READ COMPAT6 { int aio_read( \ 708 _Inout_ struct oaiocb *aiocbp); } 709319 AUE_AIO_WRITE COMPAT6 { int aio_write( \ 710 _Inout_ struct oaiocb *aiocbp); } 711320 AUE_LIO_LISTIO COMPAT6 { int lio_listio(int mode, \ 712 _Inout_updates_(nent) \ 713 struct oaiocb * const *acb_list, \ 714 int nent, \ 715 _In_opt_ struct osigevent *sig); } 716321 AUE_NULL STD { int yield(void); } 717322 AUE_NULL OBSOL thr_sleep 718323 AUE_NULL OBSOL thr_wakeup 719324 AUE_MLOCKALL STD { int mlockall(int how); } 720325 AUE_MUNLOCKALL STD { int munlockall(void); } 721326 AUE_GETCWD STD { int __getcwd( \ 722 _Out_writes_z_(buflen) char *buf, \ 723 size_t buflen); } 724327 AUE_NULL STD { int sched_setparam (pid_t pid, \ 725 _In_ const struct sched_param *param); } 726328 AUE_NULL STD { int sched_getparam (pid_t pid, \ 727 _Out_ struct sched_param *param); } 728329 AUE_NULL STD { int sched_setscheduler (pid_t pid, int \ 729 policy, _In_ const struct sched_param \ 730 *param); } 731330 AUE_NULL STD { int sched_getscheduler (pid_t pid); } 732331 AUE_NULL STD { int sched_yield (void); } 733332 AUE_NULL STD { int sched_get_priority_max (int policy); } 734333 AUE_NULL STD { int sched_get_priority_min (int policy); } 735334 AUE_NULL STD { int sched_rr_get_interval (pid_t pid, \ 736 _Out_ struct timespec *interval); } 737335 AUE_NULL STD { int utrace( \ 738 _In_reads_bytes_(len) const void *addr, \ 739 size_t len); } 740336 AUE_SENDFILE COMPAT4 { int sendfile(int fd, int s, \ 741 off_t offset, size_t nbytes, \ 742 _In_opt_ struct sf_hdtr *hdtr, \ 743 _Out_opt_ off_t *sbytes, int flags); } 744337 AUE_NULL STD { int kldsym(int fileid, int cmd, \ 745 _In_ void *data); } 746338 AUE_JAIL STD { int jail( \ 747 _In_ struct jail *jail); } 748 749339 AUE_NULL NOSTD|NOTSTATIC { int nnpfs_syscall(int operation, \ 750 char *a_pathP, int a_opcode, \ 751 void *a_paramsP, \ 752 int a_followSymlinks); } 753340 AUE_SIGPROCMASK STD { int sigprocmask(int how, \ 754 _In_opt_ const sigset_t *set, \ 755 _Out_opt_ sigset_t *oset); } 756341 AUE_SIGSUSPEND STD { int sigsuspend( \ 757 _In_ const sigset_t *sigmask); } 758342 AUE_SIGACTION COMPAT4 { int sigaction(int sig, \ 759 _In_opt_ const struct sigaction *act, \ 760 _Out_opt_ struct sigaction *oact); } 761343 AUE_SIGPENDING STD { int sigpending(_In_ sigset_t *set); } 762344 AUE_SIGRETURN COMPAT4 { int sigreturn( \ 763 _In_ const struct ucontext4 *sigcntxp); } 764345 AUE_SIGWAIT STD { int sigtimedwait(_In_ const sigset_t *set, \ 765 _Out_opt_ siginfo_t *info, \ 766 _In_opt_ const struct timespec *timeout); } 767346 AUE_NULL STD { int sigwaitinfo(_In_ const sigset_t *set, \ 768 _Out_opt_ siginfo_t *info); } 769347 AUE_ACL_GET_FILE STD { int __acl_get_file( \ 770 _In_z_ const char *path, \ 771 acl_type_t type, \ 772 _Out_ struct acl *aclp); } 773348 AUE_ACL_SET_FILE STD { int __acl_set_file( \ 774 _In_z_ const char *path, \ 775 acl_type_t type, _In_ struct acl *aclp); } 776349 AUE_ACL_GET_FD STD { int __acl_get_fd(int filedes, \ 777 acl_type_t type, _Out_ struct acl *aclp); } 778350 AUE_ACL_SET_FD STD { int __acl_set_fd(int filedes, \ 779 acl_type_t type, _In_ struct acl *aclp); } 780351 AUE_ACL_DELETE_FILE STD { int __acl_delete_file( \ 781 _In_z_ const char *path, \ 782 acl_type_t type); } 783352 AUE_ACL_DELETE_FD STD { int __acl_delete_fd(int filedes, \ 784 acl_type_t type); } 785353 AUE_ACL_CHECK_FILE STD { int __acl_aclcheck_file( \ 786 _In_z_ const char *path, \ 787 acl_type_t type, _In_ struct acl *aclp); } 788354 AUE_ACL_CHECK_FD STD { int __acl_aclcheck_fd(int filedes, \ 789 acl_type_t type, _In_ struct acl *aclp); } 790355 AUE_EXTATTRCTL STD { int extattrctl(_In_z_ const char *path, \ 791 int cmd, _In_z_opt_ const char *filename, \ 792 int attrnamespace, \ 793 _In_z_ const char *attrname); } 794356 AUE_EXTATTR_SET_FILE STD { ssize_t extattr_set_file( \ 795 _In_z_ const char *path, \ 796 int attrnamespace, \ 797 _In_z_ const char *attrname, \ 798 _In_reads_bytes_(nbytes) void *data, \ 799 size_t nbytes); } 800357 AUE_EXTATTR_GET_FILE STD { ssize_t extattr_get_file( \ 801 _In_z_ const char *path, \ 802 int attrnamespace, \ 803 _In_z_ const char *attrname, \ 804 _Out_writes_bytes_(nbytes) void *data, \ 805 size_t nbytes); } 806358 AUE_EXTATTR_DELETE_FILE STD { int extattr_delete_file( \ 807 _In_z_ const char *path, \ 808 int attrnamespace, \ 809 _In_z_ const char *attrname); } 810359 AUE_AIO_WAITCOMPLETE STD { ssize_t aio_waitcomplete( \ 811 _Outptr_result_maybenull_ \ 812 struct aiocb **aiocbp, \ 813 _In_opt_ struct timespec *timeout); } 814360 AUE_GETRESUID STD { int getresuid(_Out_opt_ uid_t *ruid, \ 815 _Out_opt_ uid_t *euid, \ 816 _Out_opt_ uid_t *suid); } 817361 AUE_GETRESGID STD { int getresgid(_Out_opt_ gid_t *rgid, \ 818 _Out_opt_ gid_t *egid, \ 819 _Out_opt_ gid_t *sgid); } 820362 AUE_KQUEUE STD { int kqueue(void); } 821363 AUE_KEVENT COMPAT11 { int kevent(int fd, \ 822 _In_reads_opt_(nchanges) \ 823 struct kevent_freebsd11 *changelist, \ 824 int nchanges, \ 825 _Out_writes_opt_(nevents) \ 826 struct kevent_freebsd11 *eventlist, \ 827 int nevents, \ 828 _In_opt_ const struct timespec *timeout); } 829364 AUE_NULL UNIMPL __cap_get_proc 830365 AUE_NULL UNIMPL __cap_set_proc 831366 AUE_NULL UNIMPL __cap_get_fd 832367 AUE_NULL UNIMPL __cap_get_file 833368 AUE_NULL UNIMPL __cap_set_fd 834369 AUE_NULL UNIMPL __cap_set_file 835370 AUE_NULL UNIMPL nosys 836371 AUE_EXTATTR_SET_FD STD { ssize_t extattr_set_fd(int fd, \ 837 int attrnamespace, \ 838 _In_z_ const char *attrname, \ 839 _In_reads_bytes_(nbytes) void *data, \ 840 size_t nbytes); } 841372 AUE_EXTATTR_GET_FD STD { ssize_t extattr_get_fd(int fd, \ 842 int attrnamespace, \ 843 _In_z_ const char *attrname, \ 844 _Out_writes_bytes_(nbytes) void *data, \ 845 size_t nbytes); } 846373 AUE_EXTATTR_DELETE_FD STD { int extattr_delete_fd(int fd, \ 847 int attrnamespace, \ 848 _In_z_ const char *attrname); } 849374 AUE_SETUGID STD { int __setugid(int flag); } 850375 AUE_NULL UNIMPL nfsclnt 851376 AUE_EACCESS STD { int eaccess(_In_z_ char *path, int amode); } 852377 AUE_NULL NOSTD|NOTSTATIC { int afs3_syscall(long syscall, \ 853 long parm1, long parm2, long parm3, \ 854 long parm4, long parm5, long parm6); } 855378 AUE_NMOUNT STD { int nmount( \ 856 _In_reads_(iovcnt) struct iovec *iovp, \ 857 unsigned int iovcnt, int flags); } 858379 AUE_NULL UNIMPL kse_exit 859380 AUE_NULL UNIMPL kse_wakeup 860381 AUE_NULL UNIMPL kse_create 861382 AUE_NULL UNIMPL kse_thr_interrupt 862383 AUE_NULL UNIMPL kse_release 863384 AUE_NULL STD { int __mac_get_proc( \ 864 _In_ struct mac *mac_p); } 865385 AUE_NULL STD { int __mac_set_proc( \ 866 _In_ struct mac *mac_p); } 867386 AUE_NULL STD { int __mac_get_fd(int fd, \ 868 _In_ struct mac *mac_p); } 869387 AUE_NULL STD { int __mac_get_file( \ 870 _In_z_ const char *path_p, \ 871 _In_ struct mac *mac_p); } 872388 AUE_NULL STD { int __mac_set_fd(int fd, \ 873 _In_ struct mac *mac_p); } 874389 AUE_NULL STD { int __mac_set_file( \ 875 _In_z_ const char *path_p, \ 876 _In_ struct mac *mac_p); } 877390 AUE_NULL STD { int kenv(int what, \ 878 _In_z_opt_ const char *name, \ 879 _Inout_updates_opt_(len) \ 880 char *value, int len); } 881391 AUE_LCHFLAGS STD { int lchflags(_In_z_ const char *path, \ 882 u_long flags); } 883392 AUE_NULL STD { int uuidgen( \ 884 _Out_writes_(count) struct uuid *store, \ 885 int count); } 886393 AUE_SENDFILE STD { int sendfile(int fd, int s, \ 887 off_t offset, \ 888 size_t nbytes, \ 889 _In_opt_ struct sf_hdtr *hdtr, \ 890 _Out_opt_ off_t *sbytes, int flags); } 891394 AUE_NULL STD { int mac_syscall( \ 892 _In_z_ const char *policy, \ 893 int call, \ 894 _In_opt_ void *arg); } 895395 AUE_GETFSSTAT COMPAT11 { int getfsstat( \ 896 _Out_writes_bytes_opt_(bufsize) \ 897 struct freebsd11_statfs *buf, \ 898 long bufsize, int mode); } 899396 AUE_STATFS COMPAT11 { int statfs(_In_z_ char *path, \ 900 _Out_ struct freebsd11_statfs *buf); } 901397 AUE_FSTATFS COMPAT11 { int fstatfs(int fd, \ 902 _Out_ struct freebsd11_statfs *buf); } 903398 AUE_FHSTATFS COMPAT11 { int fhstatfs( \ 904 _In_ const struct fhandle *u_fhp, \ 905 _Out_ struct freebsd11_statfs *buf); } 906399 AUE_NULL UNIMPL nosys 907400 AUE_SEMCLOSE NOSTD { int ksem_close(semid_t id); } 908401 AUE_SEMPOST NOSTD { int ksem_post(semid_t id); } 909402 AUE_SEMWAIT NOSTD { int ksem_wait(semid_t id); } 910403 AUE_SEMTRYWAIT NOSTD { int ksem_trywait(semid_t id); } 911404 AUE_SEMINIT NOSTD { int ksem_init(_Out_ semid_t *idp, \ 912 unsigned int value); } 913405 AUE_SEMOPEN NOSTD { int ksem_open(_Out_ semid_t *idp, \ 914 _In_z_ const char *name, int oflag, \ 915 mode_t mode, unsigned int value); } 916406 AUE_SEMUNLINK NOSTD { int ksem_unlink( \ 917 _In_z_ const char *name); } 918407 AUE_SEMGETVALUE NOSTD { int ksem_getvalue(semid_t id, \ 919 _Out_ int *val); } 920408 AUE_SEMDESTROY NOSTD { int ksem_destroy(semid_t id); } 921409 AUE_NULL STD { int __mac_get_pid(pid_t pid, \ 922 _In_ struct mac *mac_p); } 923410 AUE_NULL STD { int __mac_get_link( \ 924 _In_z_ const char *path_p, \ 925 _In_ struct mac *mac_p); } 926411 AUE_NULL STD { int __mac_set_link( \ 927 _In_z_ const char *path_p, \ 928 _In_ struct mac *mac_p); } 929412 AUE_EXTATTR_SET_LINK STD { ssize_t extattr_set_link( \ 930 _In_z_ const char *path, \ 931 int attrnamespace, \ 932 _In_z_ const char *attrname, \ 933 _In_reads_bytes_(nbytes) void *data, \ 934 size_t nbytes); } 935413 AUE_EXTATTR_GET_LINK STD { ssize_t extattr_get_link( \ 936 _In_z_ const char *path, \ 937 int attrnamespace, \ 938 _In_z_ const char *attrname, \ 939 _Out_writes_bytes_(nbytes) void *data, \ 940 size_t nbytes); } 941414 AUE_EXTATTR_DELETE_LINK STD { int extattr_delete_link( \ 942 _In_z_ const char *path, \ 943 int attrnamespace, \ 944 _In_z_ const char *attrname); } 945415 AUE_NULL STD { int __mac_execve(_In_z_ char *fname, \ 946 _In_ char **argv, \ 947 _In_ char **envv, \ 948 _In_ struct mac *mac_p); } 949416 AUE_SIGACTION STD { int sigaction(int sig, \ 950 _In_opt_ const struct sigaction *act, \ 951 _Out_opt_ struct sigaction *oact); } 952417 AUE_SIGRETURN STD { int sigreturn( \ 953 _In_ const struct __ucontext *sigcntxp); } 954418 AUE_NULL UNIMPL __xstat 955419 AUE_NULL UNIMPL __xfstat 956420 AUE_NULL UNIMPL __xlstat 957421 AUE_NULL STD { int getcontext( \ 958 _Out_ struct __ucontext *ucp); } 959422 AUE_NULL STD { int setcontext( \ 960 _In_ const struct __ucontext *ucp); } 961423 AUE_NULL STD { int swapcontext( \ 962 _Out_ struct __ucontext *oucp, \ 963 _In_ const struct __ucontext *ucp); } 964424 AUE_SWAPOFF STD { int swapoff(_In_z_ const char *name); } 965425 AUE_ACL_GET_LINK STD { int __acl_get_link( \ 966 _In_z_ const char *path, acl_type_t type, \ 967 _Out_ struct acl *aclp); } 968426 AUE_ACL_SET_LINK STD { int __acl_set_link( \ 969 _In_z_ const char *path, acl_type_t type, \ 970 _In_ struct acl *aclp); } 971427 AUE_ACL_DELETE_LINK STD { int __acl_delete_link( \ 972 _In_z_ const char *path, \ 973 acl_type_t type); } 974428 AUE_ACL_CHECK_LINK STD { int __acl_aclcheck_link( \ 975 _In_z_ const char *path, acl_type_t type, \ 976 _In_ struct acl *aclp); } 977429 AUE_SIGWAIT STD { int sigwait(_In_ const sigset_t *set, \ 978 _Out_ int *sig); } 979430 AUE_THR_CREATE STD { int thr_create(_In_ ucontext_t *ctx, \ 980 _Out_ long *id, int flags); } 981431 AUE_THR_EXIT STD { void thr_exit(_Out_opt_ long *state); } 982432 AUE_NULL STD { int thr_self(_Out_ long *id); } 983433 AUE_THR_KILL STD { int thr_kill(long id, int sig); } 984434 AUE_NULL UNIMPL nosys 985435 AUE_NULL UNIMPL nosys 986436 AUE_JAIL_ATTACH STD { int jail_attach(int jid); } 987437 AUE_EXTATTR_LIST_FD STD { ssize_t extattr_list_fd(int fd, \ 988 int attrnamespace, \ 989 _Out_writes_bytes_opt_(nbytes) \ 990 void *data, \ 991 size_t nbytes); } 992438 AUE_EXTATTR_LIST_FILE STD { ssize_t extattr_list_file( \ 993 _In_z_ const char *path, \ 994 int attrnamespace, \ 995 _Out_writes_bytes_opt_(nbytes) \ 996 void *data, size_t nbytes); } 997439 AUE_EXTATTR_LIST_LINK STD { ssize_t extattr_list_link( \ 998 _In_z_ const char *path, \ 999 int attrnamespace, \ 1000 _Out_writes_bytes_opt_(nbytes) \ 1001 void *data, size_t nbytes); } 1002440 AUE_NULL UNIMPL kse_switchin 1003441 AUE_SEMWAIT NOSTD { int ksem_timedwait(semid_t id, \ 1004 _In_opt_ const struct timespec *abstime); } 1005442 AUE_NULL STD { int thr_suspend( \ 1006 _In_opt_ const struct timespec *timeout); } 1007443 AUE_NULL STD { int thr_wake(long id); } 1008444 AUE_MODUNLOAD STD { int kldunloadf(int fileid, int flags); } 1009445 AUE_AUDIT STD { int audit( \ 1010 _In_reads_bytes_(length) \ 1011 const void *record, \ 1012 u_int length); } 1013446 AUE_AUDITON STD { int auditon(int cmd, \ 1014 _In_opt_ void *data, \ 1015 u_int length); } 1016447 AUE_GETAUID STD { int getauid(_Out_ uid_t *auid); } 1017448 AUE_SETAUID STD { int setauid(_In_ uid_t *auid); } 1018449 AUE_GETAUDIT STD { int getaudit( \ 1019 _Out_ struct auditinfo *auditinfo); } 1020450 AUE_SETAUDIT STD { int setaudit( \ 1021 _In_ struct auditinfo *auditinfo); } 1022451 AUE_GETAUDIT_ADDR STD { int getaudit_addr( \ 1023 _Out_writes_bytes_(length) \ 1024 struct auditinfo_addr *auditinfo_addr, \ 1025 u_int length); } 1026452 AUE_SETAUDIT_ADDR STD { int setaudit_addr( \ 1027 _In_reads_bytes_(length) \ 1028 struct auditinfo_addr *auditinfo_addr, \ 1029 u_int length); } 1030453 AUE_AUDITCTL STD { int auditctl(_In_z_ char *path); } 1031454 AUE_NULL STD { int _umtx_op(_Inout_ void *obj, int op, \ 1032 u_long val, _In_ void *uaddr1, \ 1033 _In_ void *uaddr2); } 1034455 AUE_THR_NEW STD { int thr_new(_In_ struct thr_param *param, \ 1035 int param_size); } 1036456 AUE_NULL STD { int sigqueue(pid_t pid, int signum, \ 1037 _In_ void *value); } 1038 1039457 AUE_MQ_OPEN NOSTD { int kmq_open( \ 1040 _In_z_ const char *path, \ 1041 int flags, \ 1042 mode_t mode, \ 1043 _In_opt_ const struct mq_attr *attr); } 1044458 AUE_MQ_SETATTR NOSTD { int kmq_setattr(int mqd, \ 1045 _In_opt_ const struct mq_attr *attr, \ 1046 _Out_opt_ struct mq_attr *oattr); } 1047459 AUE_MQ_TIMEDRECEIVE NOSTD { int kmq_timedreceive( \ 1048 int mqd, \ 1049 _Out_writes_bytes_(msg_len) char *msg_ptr, \ 1050 size_t msg_len, \ 1051 _Out_opt_ unsigned *msg_prio, \ 1052 _In_opt_ \ 1053 const struct timespec *abs_timeout); } 1054460 AUE_MQ_TIMEDSEND NOSTD { int kmq_timedsend(int mqd, \ 1055 _In_reads_bytes_(msg_len) \ 1056 const char *msg_ptr, size_t msg_len, \ 1057 unsigned msg_prio, \ 1058 _In_opt_ \ 1059 const struct timespec *abs_timeout); } 1060461 AUE_MQ_NOTIFY NOSTD { int kmq_notify(int mqd, \ 1061 _In_opt_ const struct sigevent *sigev); } 1062462 AUE_MQ_UNLINK NOSTD { int kmq_unlink(_In_z_ const char *path); } 1063463 AUE_NULL STD { int abort2(_In_z_ const char *why, \ 1064 int nargs, \ 1065 _In_reads_(nargs) void **args); } 1066464 AUE_NULL STD { int thr_set_name(long id, \ 1067 _In_z_ const char *name); } 1068465 AUE_AIO_FSYNC STD { int aio_fsync(int op, \ 1069 _In_ struct aiocb *aiocbp); } 1070466 AUE_RTPRIO STD { int rtprio_thread(int function, \ 1071 lwpid_t lwpid, \ 1072 _Inout_ struct rtprio *rtp); } 1073467 AUE_NULL UNIMPL nosys 1074468 AUE_NULL UNIMPL nosys 1075469 AUE_NULL UNIMPL __getpath_fromfd 1076470 AUE_NULL UNIMPL __getpath_fromaddr 1077471 AUE_SCTP_PEELOFF NOSTD { int sctp_peeloff(int sd, \ 1078 uint32_t name); } 1079472 AUE_SCTP_GENERIC_SENDMSG NOSTD { int sctp_generic_sendmsg( \ 1080 int sd, \ 1081 _In_reads_bytes_(mlen) caddr_t msg, \ 1082 int mlen, \ 1083 _In_reads_bytes_(tolen) \ 1084 caddr_t to, \ 1085 __socklen_t tolen, \ 1086 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1087 int flags); } 1088473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD { \ 1089 int sctp_generic_sendmsg_iov( \ 1090 int sd, \ 1091 _In_reads_(iovlen) struct iovec *iov, \ 1092 int iovlen, \ 1093 _In_reads_bytes_(tolen) \ 1094 caddr_t to, \ 1095 __socklen_t tolen, \ 1096 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1097 int flags); } 1098474 AUE_SCTP_GENERIC_RECVMSG NOSTD { int sctp_generic_recvmsg( \ 1099 int sd, \ 1100 _In_reads_(iovlen) struct iovec *iov, \ 1101 int iovlen, \ 1102 _Out_writes_bytes_(*fromlenaddr) \ 1103 struct sockaddr *from, \ 1104 _Out_ __socklen_t *fromlenaddr, \ 1105 _In_opt_ struct sctp_sndrcvinfo *sinfo, \ 1106 _Out_opt_ int *msg_flags); } 1107475 AUE_PREAD STD { ssize_t pread(int fd, \ 1108 _Out_writes_bytes_(nbyte) void *buf, \ 1109 size_t nbyte, off_t offset); } 1110476 AUE_PWRITE STD { ssize_t pwrite(int fd, \ 1111 _In_reads_bytes_(nbyte) \ 1112 const void *buf, \ 1113 size_t nbyte, off_t offset); } 1114477 AUE_MMAP STD { caddr_t mmap(_In_ caddr_t addr, size_t len, \ 1115 int prot, int flags, int fd, off_t pos); } 1116478 AUE_LSEEK STD { off_t lseek(int fd, off_t offset, \ 1117 int whence); } 1118479 AUE_TRUNCATE STD { int truncate(_In_z_ char *path, \ 1119 off_t length); } 1120480 AUE_FTRUNCATE STD { int ftruncate(int fd, off_t length); } 1121481 AUE_THR_KILL2 STD { int thr_kill2(pid_t pid, long id, int sig); } 1122482 AUE_SHMOPEN STD { int shm_open( \ 1123 _In_z_ const char *path, \ 1124 int flags, \ 1125 mode_t mode); } 1126483 AUE_SHMUNLINK STD { int shm_unlink(_In_z_ const char *path); } 1127484 AUE_NULL STD { int cpuset(_Out_ cpusetid_t *setid); } 1128485 AUE_NULL STD { int cpuset_setid(cpuwhich_t which, id_t id, \ 1129 cpusetid_t setid); } 1130486 AUE_NULL STD { int cpuset_getid(cpulevel_t level, \ 1131 cpuwhich_t which, id_t id, \ 1132 _Out_ cpusetid_t *setid); } 1133487 AUE_NULL STD { int cpuset_getaffinity(cpulevel_t level, \ 1134 cpuwhich_t which, id_t id, \ 1135 size_t cpusetsize, \ 1136 _Out_ cpuset_t *mask); } 1137488 AUE_NULL STD { int cpuset_setaffinity(cpulevel_t level, \ 1138 cpuwhich_t which, id_t id, \ 1139 size_t cpusetsize, \ 1140 _Out_ const cpuset_t *mask); } 1141489 AUE_FACCESSAT STD { int faccessat(int fd, _In_z_ char *path, \ 1142 int amode, int flag); } 1143490 AUE_FCHMODAT STD { int fchmodat(int fd, \ 1144 _In_z_ char *path, mode_t mode, \ 1145 int flag); } 1146491 AUE_FCHOWNAT STD { int fchownat(int fd, _In_z_ char *path, \ 1147 uid_t uid, gid_t gid, int flag); } 1148492 AUE_FEXECVE STD { int fexecve(int fd, \ 1149 _In_ char **argv, \ 1150 _In_ char **envv); } 1151493 AUE_FSTATAT COMPAT11 { int fstatat(int fd, _In_z_ char *path, \ 1152 _Out_ struct freebsd11_stat *buf, \ 1153 int flag); } 1154494 AUE_FUTIMESAT STD { int futimesat(int fd, \ 1155 _In_z_ char *path, \ 1156 _In_reads_(2) struct timeval *times); } 1157495 AUE_LINKAT STD { int linkat(int fd1, \ 1158 _In_z_ char *path1, \ 1159 int fd2, \ 1160 _In_z_ char *path2, \ 1161 int flag); } 1162496 AUE_MKDIRAT STD { int mkdirat(int fd, _In_z_ char *path, \ 1163 mode_t mode); } 1164497 AUE_MKFIFOAT STD { int mkfifoat(int fd, \ 1165 _In_z_ char *path, mode_t mode); } 1166498 AUE_MKNODAT COMPAT11 { int mknodat(int fd, _In_z_ char *path, \ 1167 mode_t mode, \ 1168 uint32_t dev); } 1169; XXX: see the comment for open 1170499 AUE_OPENAT_RWTC STD { int openat(int fd, _In_z_ char *path, \ 1171 int flag, mode_t mode); } 1172500 AUE_READLINKAT STD { int readlinkat(int fd, \ 1173 _In_z_ char *path, \ 1174 _Out_writes_bytes_(bufsize) char *buf, \ 1175 size_t bufsize); } 1176501 AUE_RENAMEAT STD { int renameat(int oldfd, \ 1177 _In_z_ char *old, \ 1178 int newfd, _In_z_ char *new); } 1179502 AUE_SYMLINKAT STD { int symlinkat(_In_z_ char *path1, int fd, \ 1180 _In_z_ char *path2); } 1181503 AUE_UNLINKAT STD { int unlinkat(int fd, _In_z_ char *path, \ 1182 int flag); } 1183504 AUE_POSIX_OPENPT STD { int posix_openpt(int flags); } 1184; 505 is initialised by the kgssapi code, if present. 1185505 AUE_NULL NOSTD { int gssd_syscall(_In_z_ char *path); } 1186506 AUE_JAIL_GET STD { int jail_get( \ 1187 _In_reads_(iovcnt) struct iovec *iovp, \ 1188 unsigned int iovcnt, int flags); } 1189507 AUE_JAIL_SET STD { int jail_set( \ 1190 _In_reads_(iovcnt) struct iovec *iovp, \ 1191 unsigned int iovcnt, int flags); } 1192508 AUE_JAIL_REMOVE STD { int jail_remove(int jid); } 1193509 AUE_CLOSEFROM STD { int closefrom(int lowfd); } 1194510 AUE_SEMCTL NOSTD { int __semctl(int semid, int semnum, \ 1195 int cmd, _Inout_ union semun *arg); } 1196511 AUE_MSGCTL NOSTD { int msgctl(int msqid, int cmd, \ 1197 _Inout_opt_ struct msqid_ds *buf); } 1198512 AUE_SHMCTL NOSTD { int shmctl(int shmid, int cmd, \ 1199 _Inout_opt_ struct shmid_ds *buf); } 1200513 AUE_LPATHCONF STD { int lpathconf(_In_z_ char *path, \ 1201 int name); } 1202514 AUE_NULL OBSOL cap_new 1203515 AUE_CAP_RIGHTS_GET STD { int __cap_rights_get(int version, \ 1204 int fd, _Out_ cap_rights_t *rightsp); } 1205516 AUE_CAP_ENTER STD { int cap_enter(void); } 1206517 AUE_CAP_GETMODE STD { int cap_getmode(_Out_ u_int *modep); } 1207518 AUE_PDFORK STD { int pdfork(_Out_ int *fdp, int flags); } 1208519 AUE_PDKILL STD { int pdkill(int fd, int signum); } 1209520 AUE_PDGETPID STD { int pdgetpid(int fd, _Out_ pid_t *pidp); } 1210521 AUE_PDWAIT UNIMPL pdwait4 1211522 AUE_SELECT STD { int pselect(int nd, \ 1212 _Inout_opt_ fd_set *in, \ 1213 _Inout_opt_ fd_set *ou, \ 1214 _Inout_opt_ fd_set *ex, \ 1215 _In_opt_ const struct timespec *ts, \ 1216 _In_opt_ const sigset_t *sm); } 1217523 AUE_GETLOGINCLASS STD { int getloginclass( \ 1218 _Out_writes_z_(namelen) char *namebuf, \ 1219 size_t namelen); } 1220524 AUE_SETLOGINCLASS STD { int setloginclass( \ 1221 _In_z_ const char *namebuf); } 1222525 AUE_NULL STD { int rctl_get_racct( \ 1223 _In_reads_bytes_(inbuflen) \ 1224 const void *inbufp, size_t inbuflen, \ 1225 _Out_writes_bytes_(outbuflen) \ 1226 void *outbufp, size_t outbuflen); } 1227526 AUE_NULL STD { int rctl_get_rules( \ 1228 _In_reads_bytes_(inbuflen) \ 1229 const void *inbufp, size_t inbuflen, \ 1230 _Out_writes_bytes_(outbuflen) \ 1231 void *outbufp, size_t outbuflen); } 1232527 AUE_NULL STD { int rctl_get_limits( \ 1233 _In_reads_bytes_(inbuflen) \ 1234 const void *inbufp, size_t inbuflen, \ 1235 _Out_writes_bytes_(outbuflen) \ 1236 void *outbufp, size_t outbuflen); } 1237528 AUE_NULL STD { int rctl_add_rule( \ 1238 _In_reads_bytes_(inbuflen) \ 1239 const void *inbufp, size_t inbuflen, \ 1240 _Out_writes_bytes_(outbuflen) \ 1241 void *outbufp, size_t outbuflen); } 1242529 AUE_NULL STD { int rctl_remove_rule( \ 1243 _In_reads_bytes_(inbuflen) \ 1244 const void *inbufp, size_t inbuflen, \ 1245 _Out_writes_bytes_(outbuflen) \ 1246 void *outbufp, size_t outbuflen); } 1247530 AUE_POSIX_FALLOCATE STD { int posix_fallocate(int fd, \ 1248 off_t offset, off_t len); } 1249531 AUE_POSIX_FADVISE STD { int posix_fadvise(int fd, \ 1250 off_t offset, \ 1251 off_t len, int advice); } 1252532 AUE_WAIT6 STD { int wait6(idtype_t idtype, id_t id, \ 1253 _Out_opt_ int *status, int options, \ 1254 _Out_opt_ struct __wrusage *wrusage, \ 1255 _Out_opt_ siginfo_t *info); } 1256533 AUE_CAP_RIGHTS_LIMIT STD { int cap_rights_limit(int fd, \ 1257 _In_ cap_rights_t *rightsp); } 1258534 AUE_CAP_IOCTLS_LIMIT STD { int cap_ioctls_limit(int fd, \ 1259 _In_reads_(ncmds) const u_long *cmds, \ 1260 size_t ncmds); } 1261535 AUE_CAP_IOCTLS_GET STD { ssize_t cap_ioctls_get(int fd, \ 1262 _Out_writes_(maxcmds) u_long *cmds, \ 1263 size_t maxcmds); } 1264536 AUE_CAP_FCNTLS_LIMIT STD { int cap_fcntls_limit(int fd, \ 1265 uint32_t fcntlrights); } 1266537 AUE_CAP_FCNTLS_GET STD { int cap_fcntls_get(int fd, \ 1267 _Out_ uint32_t *fcntlrightsp); } 1268538 AUE_BINDAT STD { int bindat(int fd, int s, \ 1269 _In_reads_bytes_(namelen) \ 1270 caddr_t name, \ 1271 int namelen); } 1272539 AUE_CONNECTAT STD { int connectat(int fd, int s, \ 1273 _In_reads_bytes_(namelen) \ 1274 caddr_t name, \ 1275 int namelen); } 1276540 AUE_CHFLAGSAT STD { int chflagsat(int fd, \ 1277 _In_z_ const char *path, \ 1278 u_long flags, int atflag); } 1279541 AUE_ACCEPT STD { int accept4(int s, \ 1280 _Out_writes_bytes_opt_(*anamelen) \ 1281 struct sockaddr * __restrict name, \ 1282 _Inout_opt_ \ 1283 __socklen_t * __restrict anamelen, \ 1284 int flags); } 1285542 AUE_PIPE STD { int pipe2(_Out_writes_(2) int *fildes, \ 1286 int flags); } 1287543 AUE_AIO_MLOCK STD { int aio_mlock(_In_ struct aiocb *aiocbp); } 1288544 AUE_PROCCTL STD { int procctl(idtype_t idtype, id_t id, \ 1289 int com, _In_opt_ void *data); } 1290545 AUE_POLL STD { int ppoll( \ 1291 _Inout_updates_(nfds) struct pollfd *fds, \ 1292 u_int nfds, \ 1293 _In_opt_ const struct timespec *ts, \ 1294 _In_opt_ const sigset_t *set); } 1295546 AUE_FUTIMES STD { int futimens(int fd, \ 1296 _In_reads_(2) \ 1297 struct timespec *times); } 1298547 AUE_FUTIMESAT STD { int utimensat(int fd, \ 1299 _In_z_ char *path, \ 1300 _In_reads_(2) \ 1301 struct timespec *times, \ 1302 int flag); } 1303548 AUE_NULL UNIMPL numa_getaffinity 1304549 AUE_NULL UNIMPL numa_setaffinity 1305550 AUE_FSYNC STD { int fdatasync(int fd); } 1306551 AUE_FSTAT STD { int fstat(int fd, _Out_ struct stat *sb); } 1307552 AUE_FSTATAT STD { int fstatat(int fd, _In_z_ char *path, \ 1308 _Out_ struct stat *buf, int flag); } 1309553 AUE_FHSTAT STD { int fhstat(_In_ const struct fhandle *u_fhp, \ 1310 _Out_ struct stat *sb); } 1311554 AUE_GETDIRENTRIES STD { ssize_t getdirentries(int fd, \ 1312 _Out_writes_bytes_(count) char *buf, \ 1313 size_t count, _Out_ off_t *basep); } 1314555 AUE_STATFS STD { int statfs(_In_z_ char *path, \ 1315 _Out_ struct statfs *buf); } 1316556 AUE_FSTATFS STD { int fstatfs(int fd, \ 1317 _Out_ struct statfs *buf); } 1318557 AUE_GETFSSTAT STD { int getfsstat( \ 1319 _Out_writes_bytes_opt_(bufsize) \ 1320 struct statfs *buf, \ 1321 long bufsize, int mode); } 1322558 AUE_FHSTATFS STD { int fhstatfs( \ 1323 _In_ const struct fhandle *u_fhp, \ 1324 _Out_ struct statfs *buf); } 1325559 AUE_MKNODAT STD { int mknodat(int fd, _In_z_ char *path, \ 1326 mode_t mode, dev_t dev); } 1327560 AUE_KEVENT STD { int kevent(int fd, \ 1328 _In_reads_opt_(nchanges) \ 1329 struct kevent *changelist, \ 1330 int nchanges, \ 1331 _Out_writes_opt_(nevents) \ 1332 struct kevent *eventlist, int nevents, \ 1333 _In_opt_ const struct timespec *timeout); } 1334561 AUE_NULL STD { int cpuset_getdomain(cpulevel_t level, \ 1335 cpuwhich_t which, id_t id, \ 1336 size_t domainsetsize, \ 1337 _Out_writes_bytes_(domainsetsize) \ 1338 domainset_t *mask, \ 1339 _Out_ int *policy); } 1340562 AUE_NULL STD { int cpuset_setdomain(cpulevel_t level, \ 1341 cpuwhich_t which, id_t id, \ 1342 size_t domainsetsize, \ 1343 _In_ domainset_t *mask, \ 1344 int policy); } 1345563 AUE_NULL STD { int getrandom( \ 1346 _Out_writes_bytes_(buflen) void *buf, \ 1347 size_t buflen, unsigned int flags); } 1348 1349; Please copy any additions and changes to the following compatability tables: 1350; sys/compat/freebsd32/syscalls.master 1351; vim: syntax=off 1352