1; System call name/number master file. 2; Processed to created init_sysent.c, syscalls.c and syscall.h. 3 4; New FreeBSD system calls should be added to the bottom of this file. 5 6; Columns: number audit type name alt{name,tag,rtyp}/comments 7; number system call number, must be in order 8; audit the audit event associated with the system call 9; A value of AUE_NULL means no auditing, but it also means that 10; there is no audit event for the call at this time. For the 11; case where the event exists, but we don't want auditing, the 12; event should be #defined to AUE_NULL in audit_kevents.h. 13; type one of STD, OBSOL, RESERVED, UNIMPL, SYSMUX, COMPAT*, 14; NODEF, NOARGS, NOPROTO, NOSTD 15; The COMPAT* options may be combined with one or more NO* 16; options separated by '|' with no spaces (e.g. COMPAT|NOARGS) 17; The CAPENABLED option may be ORed into a type. 18; name pseudo-prototype of syscall routine 19; If one of the following alts is different, then all appear: 20; altname name of system call if different 21; alttag name of args struct tag if different from [o]`name'"_args" 22; altrtyp return type if not int (bogus - syscalls always return int) 23; for UNIMPL/OBSOL, name continues with comments 24 25; types: 26; STD always included 27; COMPAT included on COMPAT #ifdef 28; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat) 29; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat) 30; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat) 31; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat) 32; COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat) 33; COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat) 34; COMPAT13 included on COMPAT_FREEBSD13 #ifdef (FreeBSD 13 compat) 35; COMPAT14 included on COMPAT_FREEBSD14 #ifdef (FreeBSD 14 compat) 36; OBSOL obsolete, not included in system, only specifies name 37; RESERVED reserved for local or vendor use (not for FreeBSD) 38; UNIMPL not implemented, placeholder only 39; NOSTD implemented but as a lkm that can be statically 40; compiled in; sysent entry will be filled with lkmressys 41; so the SYSCALL_MODULE macro works 42; NOARGS same as STD except do not create structure in sys/sysproto.h 43; NODEF same as STD except only have the entry in the syscall table 44; added. Meaning - do not create structure or function 45; prototype in sys/sysproto.h 46; NOPROTO same as STD except do not create structure or 47; function prototype in sys/sysproto.h. Does add a 48; definition to syscall.h besides adding a sysent. 49; NOLIB don't create stubs in libc or libsys 50; NOTSTATIC syscall is loadable 51; SYSMUX syscall multiplexer. No prototype, argument struct, or 52; handler is declared or used. Handled in MD syscall code. 53; CAPENABLED syscall is allowed in capability mode 54; NORETURN the syscall does not return 55; 56; To support programmatic generation of both the default ABI and 32-bit compat 57; (freebsd32) we impose a number of restrictions on the types of system calls. 58; For integer types: 59; - Bare int and long are allowed (long is a sign of a bad interface). 60; - Use u_int and u_long rather than "unsigned (int|long)". 61; - size_t is allowed. 62; - typedefs are allowed, but new signed types that vary between 32- and 63; 64-bit ABIs must be added to config.known_abi_flags in 64; sys/tools/syscalls/config.lua so it knows they require handling. 65; - Always-64-bit types other than dev_t, id_t, and off_t must be added to 66; util.is64bitType in sys/tools/syscalls/tools/util.lua. 67; For pointers: 68; - Prefer structs to typedefs so an ABI-specific suffix (e.g., "32") can 69; be prepended (e.g., ucontext_t -> struct ucontext -> struct ucontext32). 70; - Pointers to objects (structs, unions, etc) containing any long, pointer, 71; or time_t arguments need _Contains_ annotations. Such objects should be 72; padded such that all 64-bit types are 64-bit aligned. 73 74; annotations: 75; SAL 2.0 annotations are used to specify how system calls treat 76; arguments that are passed using pointers. There are three basic 77; annotations. 78; 79; _In_ Object pointed to will be read and not modified. 80; _Out_ Object pointed to will be written and not read. 81; _Inout_ Object pointed to will be written and read. 82; 83; These annotations are used alone when the pointer refers to a single 84; object i.e. scalar types, structs, and pointers, and not NULL. Adding 85; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also 86; refer to NULL. 87; 88; For pointers to arrays, additional suffixes are added: 89; 90; _In_z_, _Out_z_, _Inout_z_: 91; for a NUL terminated array e.g. a string. 92; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n): 93; for a NUL terminated array e.g. a string, of known length n bytes. 94; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n): 95; for an array of n elements. 96; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n): 97; for a buffer of n-bytes. 98; 99; In addition to SAL annotations, pointers are annotated to indicate 100; that they point to types that change between ABIs. That means that 101; they contain long, pointer, or time_t types. This is indicated with 102; a _Contains_ annotation followed immediately by one or more of: 103; 104; long_ Object contains a direct (or typedef'd) long value and varies 105; between 32- and 64-bit ABIs. This includes size_t. 106; ptr_ Object contains pointers (or intptr_t) and varies between 107; 32- and 64-bit ABIs. 108; timet_ Object contains a time_t and varies between i386 and other 109; ABIs. 110 111; #include's, #defines's, etc. may be included, and are copied to a 112; limited set of output files. Before the first syscalls, #include lines will 113; be copied and %%ABI_HEADERS%% expanded. Between system call entries, 114; all lines beginning with # will be copied. Caveat Emptor. 115; WARNING: this functionality is deprecated. 116 117#include <sys/param.h> 118#include <sys/sysent.h> 119#include <sys/sysproto.h> 120%%ABI_HEADERS%% 121 1220 AUE_NULL SYSMUX { 123 int syscall( 124 int number, 125 ... 126 ); 127 } 1281 AUE_EXIT STD|CAPENABLED|NORETURN { 129 void _exit( 130 int rval 131 ); 132 } 1332 AUE_FORK STD|CAPENABLED { 134 int fork(void); 135 } 1363 AUE_READ STD|CAPENABLED { 137 ssize_t read( 138 int fd, 139 _Out_writes_bytes_(nbyte) void *buf, 140 size_t nbyte 141 ); 142 } 1434 AUE_WRITE STD|CAPENABLED { 144 ssize_t write( 145 int fd, 146 _In_reads_bytes_(nbyte) const void *buf, 147 size_t nbyte 148 ); 149 } 1505 AUE_OPEN_RWTC STD { 151 int open( 152 _In_z_ const char *path, 153 int flags, 154 mode_t mode 155 ); 156 } 157; XXX should be { int open(const char *path, int flags, ...); } 158; but we're not ready for varargs. 1596 AUE_CLOSE STD|CAPENABLED { 160 int close( 161 int fd 162 ); 163 } 1647 AUE_WAIT4 STD|CAPENABLED { 165 int wait4( 166 int pid, 167 _Out_opt_ int *status, 168 int options, 169 _Out_opt_ _Contains_long_timet_ struct rusage *rusage 170 ); 171 } 1728 AUE_CREAT COMPAT { 173 int creat( 174 _In_z_ const char *path, 175 int mode 176 ); 177 } 1789 AUE_LINK STD { 179 int link( 180 _In_z_ const char *path, 181 _In_z_ const char *link 182 ); 183 } 18410 AUE_UNLINK STD { 185 int unlink( 186 _In_z_ const char *path 187 ); 188 } 18911 AUE_NULL OBSOL execv 19012 AUE_CHDIR STD { 191 int chdir( 192 _In_z_ const char *path 193 ); 194 } 19513 AUE_FCHDIR STD { 196 int fchdir( 197 int fd 198 ); 199 } 20014 AUE_MKNOD COMPAT11 { 201 int mknod( 202 _In_z_ const char *path, 203 int mode, 204 uint32_t dev 205 ); 206 } 20715 AUE_CHMOD STD { 208 int chmod( 209 _In_z_ const char *path, 210 mode_t mode 211 ); 212 } 21316 AUE_CHOWN STD { 214 int chown( 215 _In_z_ const char *path, 216 int uid, 217 int gid 218 ); 219 } 22017 AUE_NULL STD|CAPENABLED { 221 void *break( 222 _In_ char *nsize 223 ); 224 } 22518 AUE_GETFSSTAT COMPAT4 { 226 int getfsstat( 227 _Out_writes_bytes_opt_(bufsize) _Contains_long_ struct ostatfs *buf, 228 long bufsize, 229 int mode 230 ); 231 } 23219 AUE_LSEEK COMPAT|CAPENABLED { 233 long lseek( 234 int fd, 235 long offset, 236 int whence 237 ); 238 } 23920 AUE_GETPID STD|CAPENABLED { 240 pid_t getpid(void); 241 } 24221 AUE_MOUNT STD { 243 int mount( 244 _In_z_ const char *type, 245 _In_z_ const char *path, 246 int flags, 247 _In_opt_ void *data 248 ); 249 } 25022 AUE_UMOUNT STD { 251 int unmount( 252 _In_z_ const char *path, 253 int flags 254 ); 255 } 25623 AUE_SETUID STD|CAPENABLED { 257 int setuid( 258 uid_t uid 259 ); 260 } 26124 AUE_GETUID STD|CAPENABLED { 262 uid_t getuid(void); 263 } 26425 AUE_GETEUID STD|CAPENABLED { 265 uid_t geteuid(void); 266 } 26726 AUE_PTRACE STD { 268 int ptrace( 269 int req, 270 pid_t pid, 271 _Inout_opt_ _Contains_long_ptr_ caddr_t addr, 272 int data 273 ); 274 } 27527 AUE_RECVMSG STD|CAPENABLED { 276 ssize_t recvmsg( 277 int s, 278 _Inout_ _Contains_ptr_ struct msghdr *msg, 279 int flags 280 ); 281 } 28228 AUE_SENDMSG STD|CAPENABLED { 283 ssize_t sendmsg( 284 int s, 285 _In_ _Contains_ptr_ const struct msghdr *msg, 286 int flags 287 ); 288 } 28929 AUE_RECVFROM STD|CAPENABLED { 290 ssize_t recvfrom( 291 int s, 292 _Out_writes_bytes_(len) void *buf, 293 size_t len, 294 int flags, 295 _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from, 296 _Inout_opt_ __socklen_t *fromlenaddr 297 ); 298 } 29930 AUE_ACCEPT STD|CAPENABLED { 300 int accept( 301 int s, 302 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 303 _Inout_opt_ __socklen_t *anamelen 304 ); 305 } 30631 AUE_GETPEERNAME STD|CAPENABLED { 307 int getpeername( 308 int fdes, 309 _Out_writes_bytes_(*alen) struct sockaddr *asa, 310 _Inout_opt_ __socklen_t *alen 311 ); 312 } 31332 AUE_GETSOCKNAME STD|CAPENABLED { 314 int getsockname( 315 int fdes, 316 _Out_writes_bytes_(*alen) struct sockaddr *asa, 317 _Inout_ __socklen_t *alen 318 ); 319 } 32033 AUE_ACCESS STD { 321 int access( 322 _In_z_ const char *path, 323 int amode 324 ); 325 } 32634 AUE_CHFLAGS STD { 327 int chflags( 328 _In_z_ const char *path, 329 u_long flags 330 ); 331 } 33235 AUE_FCHFLAGS STD|CAPENABLED { 333 int fchflags( 334 int fd, 335 u_long flags 336 ); 337 } 33836 AUE_SYNC STD|CAPENABLED { 339 int sync(void); 340 } 34137 AUE_KILL STD|CAPENABLED { 342 int kill( 343 int pid, 344 int signum 345 ); 346 } 34738 AUE_STAT COMPAT { 348 int stat( 349 _In_z_ const char *path, 350 _Out_ _Contains_timet_ struct ostat *ub 351 ); 352 } 35339 AUE_GETPPID STD|CAPENABLED { 354 pid_t getppid(void); 355 } 35640 AUE_LSTAT COMPAT { 357 int lstat( 358 _In_z_ const char *path, 359 _Out_ _Contains_timet_ struct ostat *ub 360 ); 361 } 36241 AUE_DUP STD|CAPENABLED { 363 int dup( 364 u_int fd 365 ); 366 } 36742 AUE_PIPE COMPAT10|CAPENABLED { 368 int pipe(void); 369 } 37043 AUE_GETEGID STD|CAPENABLED { 371 gid_t getegid(void); 372 } 37344 AUE_PROFILE STD|CAPENABLED { 374 int profil( 375 _Out_writes_bytes_(size) char *samples, 376 size_t size, 377 size_t offset, 378 u_int scale 379 ); 380 } 38145 AUE_KTRACE STD { 382 int ktrace( 383 _In_z_ const char *fname, 384 int ops, 385 int facs, 386 int pid 387 ); 388 } 38946 AUE_SIGACTION COMPAT|CAPENABLED { 390 int sigaction( 391 int signum, 392 _In_opt_ _Contains_ptr_ struct osigaction *nsa, 393 _Out_opt_ _Contains_ptr_ struct osigaction *osa 394 ); 395 } 39647 AUE_GETGID STD|CAPENABLED { 397 gid_t getgid(void); 398 } 39948 AUE_SIGPROCMASK COMPAT|CAPENABLED { 400 int sigprocmask( 401 int how, 402 osigset_t mask 403 ); 404 } 405; XXX note nonstandard (bogus) calling convention - the libc stub passes 406; us the mask, not a pointer to it, and we return the old mask as the 407; (int) return value. 40849 AUE_GETLOGIN STD|CAPENABLED { 409 int getlogin( 410 _Out_writes_z_(namelen) char *namebuf, 411 u_int namelen 412 ); 413 } 41450 AUE_SETLOGIN STD { 415 int setlogin( 416 _In_z_ const char *namebuf 417 ); 418 } 41951 AUE_ACCT STD { 420 int acct( 421 _In_z_ const char *path 422 ); 423 } 42452 AUE_SIGPENDING COMPAT|CAPENABLED { 425 int sigpending(void); 426 } 42753 AUE_SIGALTSTACK STD|CAPENABLED { 428 int sigaltstack( 429 _In_opt_ _Contains_long_ptr_ const struct sigaltstack *ss, 430 _Out_opt_ _Contains_long_ptr_ struct sigaltstack *oss 431 ); 432 } 43354 AUE_IOCTL STD|CAPENABLED { 434 int ioctl( 435 int fd, 436 u_long com, 437 _Inout_opt_ _Contains_long_ptr_ char *data 438 ); 439 } 44055 AUE_REBOOT STD { 441 int reboot( 442 int opt 443 ); 444 } 44556 AUE_REVOKE STD { 446 int revoke( 447 _In_z_ const char *path 448 ); 449 } 45057 AUE_SYMLINK STD { 451 int symlink( 452 _In_z_ const char *path, 453 _In_z_ const char *link 454 ); 455 } 45658 AUE_READLINK STD { 457 ssize_t readlink( 458 _In_z_ const char *path, 459 _Out_writes_z_(count) char *buf, 460 size_t count 461 ); 462 } 46359 AUE_EXECVE STD { 464 int execve( 465 _In_z_ const char *fname, 466 _In_z_ char **argv, 467 _In_z_ char **envv 468 ); 469 } 47060 AUE_UMASK STD|CAPENABLED { 471 mode_t umask( 472 mode_t newmask 473 ); 474 } 47561 AUE_CHROOT STD { 476 int chroot( 477 _In_z_ const char *path 478 ); 479 } 48062 AUE_FSTAT COMPAT|CAPENABLED { 481 int fstat( 482 int fd, 483 _Out_ _Contains_timet_ struct ostat *sb 484 ); 485 } 48663 AUE_NULL COMPAT { 487 int getkerninfo( 488 int op, 489 _Out_writes_bytes_opt(*size) char *where, 490 _Inout_opt_ size_t *size, 491 int arg 492 ); 493 } 49464 AUE_NULL COMPAT|CAPENABLED { 495 int getpagesize(void); 496 } 49765 AUE_MSYNC STD|CAPENABLED { 498 int msync( 499 _In_ void *addr, 500 size_t len, 501 int flags 502 ); 503 } 50466 AUE_VFORK STD|CAPENABLED { 505 int vfork(void); 506 } 50767 AUE_NULL OBSOL vread 50868 AUE_NULL OBSOL vwrite 50969 AUE_NULL OBSOL sbrk 51070 AUE_NULL OBSOL sstk 51171 AUE_MMAP COMPAT|CAPENABLED { 512 void *mmap( 513 _In_ void *addr, 514 int len, 515 int prot, 516 int flags, 517 int fd, 518 long pos 519 ); 520 } 52172 AUE_O_VADVISE COMPAT11 { 522 int vadvise( 523 int anom 524 ); 525 } 52673 AUE_MUNMAP STD|CAPENABLED { 527 int munmap( 528 _In_ void *addr, 529 size_t len 530 ); 531 } 53274 AUE_MPROTECT STD|CAPENABLED { 533 int mprotect( 534 _In_ void *addr, 535 size_t len, 536 int prot 537 ); 538 } 53975 AUE_MADVISE STD|CAPENABLED { 540 int madvise( 541 _In_ void *addr, 542 size_t len, 543 int behav 544 ); 545 } 54676 AUE_NULL OBSOL vhangup 54777 AUE_NULL OBSOL vlimit 54878 AUE_MINCORE STD|CAPENABLED { 549 int mincore( 550 _In_ const void *addr, 551 size_t len, 552 _Out_writes_bytes_(len/PAGE_SIZE) char *vec 553 ); 554 } 55579 AUE_GETGROUPS STD|CAPENABLED { 556 int getgroups( 557 int gidsetsize, 558 _Out_writes_opt_(gidsetsize) gid_t *gidset 559 ); 560 } 56180 AUE_SETGROUPS STD { 562 int setgroups( 563 int gidsetsize, 564 _In_reads_(gidsetsize) const gid_t *gidset 565 ); 566 } 56781 AUE_GETPGRP STD|CAPENABLED { 568 int getpgrp(void); 569 } 57082 AUE_SETPGRP STD { 571 int setpgid( 572 int pid, 573 int pgid 574 ); 575 } 57683 AUE_SETITIMER STD|CAPENABLED { 577 int setitimer( 578 int which, 579 _In_ _Contains_timet_ const struct itimerval *itv, 580 _Out_opt_ _Contains_timet_ struct itimerval *oitv 581 ); 582 } 58384 AUE_WAIT4 COMPAT { 584 int wait(void); 585 } 58685 AUE_SWAPON STD { 587 int swapon( 588 _In_z_ const char *name 589 ); 590 } 59186 AUE_GETITIMER STD|CAPENABLED { 592 int getitimer( 593 int which, 594 _Out_ _Contains_timet_ struct itimerval *itv 595 ); 596 } 59787 AUE_SYSCTL COMPAT|CAPENABLED { 598 int gethostname( 599 _Out_writes_z_(len) char *hostname, 600 u_int len 601 ); 602 } 60388 AUE_SYSCTL COMPAT { 604 int sethostname( 605 _In_reads_z_(len) char *hostname, 606 u_int len 607 ); 608 } 60989 AUE_GETDTABLESIZE STD|CAPENABLED { 610 int getdtablesize(void); 611 } 61290 AUE_DUP2 STD|CAPENABLED { 613 int dup2( 614 u_int from, 615 u_int to 616 ); 617 } 61891 AUE_NULL RESERVED 61992 AUE_FCNTL STD|CAPENABLED { 620 int fcntl( 621 int fd, 622 int cmd, 623 intptr_t arg 624 ); 625 } 626; XXX should be { int fcntl(int fd, int cmd, ...); } 627; but we're not ready for varargs. 62893 AUE_SELECT STD|CAPENABLED { 629 int select( 630 int nd, 631 _Inout_opt_ fd_set *in, 632 _Inout_opt_ fd_set *ou, 633 _Inout_opt_ fd_set *ex, 634 _In_opt_ _Contains_long_timet_ struct timeval *tv 635 ); 636 } 63794 AUE_NULL RESERVED 63895 AUE_FSYNC STD|CAPENABLED { 639 int fsync( 640 int fd 641 ); 642 } 64396 AUE_SETPRIORITY STD|CAPENABLED { 644 int setpriority( 645 int which, 646 int who, 647 int prio 648 ); 649 } 65097 AUE_SOCKET STD|CAPENABLED { 651 int socket( 652 int domain, 653 int type, 654 int protocol 655 ); 656 } 65798 AUE_CONNECT STD { 658 int connect( 659 int s, 660 _In_reads_bytes_(namelen) const struct sockaddr *name, 661 __socklen_t namelen 662 ); 663 } 66499 AUE_ACCEPT COMPAT|CAPENABLED { 665 int accept( 666 int s, 667 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 668 __socklen_t *anamelen 669 ); 670 } 671100 AUE_GETPRIORITY STD|CAPENABLED { 672 int getpriority( 673 int which, 674 int who 675 ); 676 } 677101 AUE_SEND COMPAT|CAPENABLED { 678 int send( 679 int s, 680 _In_reads_bytes_(len) const void *buf, 681 int len, 682 int flags 683 ); 684 } 685102 AUE_RECV COMPAT|CAPENABLED { 686 int recv( 687 int s, 688 _Out_writes_bytes_(len) void *buf, 689 int len, 690 int flags 691 ); 692 } 693103 AUE_SIGRETURN COMPAT|CAPENABLED { 694 int sigreturn( 695 _In_ struct osigcontext *sigcntxp 696 ); 697 } 698104 AUE_BIND STD { 699 int bind( 700 int s, 701 _In_reads_bytes_(namelen) const struct sockaddr *name, 702 __socklen_t namelen 703 ); 704 } 705105 AUE_SETSOCKOPT STD|CAPENABLED { 706 int setsockopt( 707 int s, 708 int level, 709 int name, 710 _In_reads_bytes_opt_(valsize) const void *val, 711 __socklen_t valsize 712 ); 713 } 714106 AUE_LISTEN STD|CAPENABLED { 715 int listen( 716 int s, 717 int backlog 718 ); 719 } 720107 AUE_NULL OBSOL vtimes 721108 AUE_NULL COMPAT|CAPENABLED { 722 int sigvec( 723 int signum, 724 _In_opt_ _Contains_ptr_ struct sigvec *nsv, 725 _Out_opt_ _Contains_ptr_ struct sigvec *osv 726 ); 727 } 728109 AUE_NULL COMPAT|CAPENABLED { 729 int sigblock( 730 int mask 731 ); 732 } 733110 AUE_NULL COMPAT|CAPENABLED { 734 int sigsetmask( 735 int mask 736 ); 737 } 738111 AUE_NULL COMPAT|CAPENABLED { 739 int sigsuspend( 740 osigset_t mask 741 ); 742 } 743; XXX note nonstandard (bogus) calling convention - the libc stub passes 744; us the mask, not a pointer to it. 745112 AUE_NULL COMPAT|CAPENABLED { 746 int sigstack( 747 _In_opt_ _Contains_ptr_ struct sigstack *nss, 748 _Out_opt_ _Contains_ptr_ struct sigstack *oss 749 ); 750 } 751113 AUE_RECVMSG COMPAT|CAPENABLED { 752 int recvmsg( 753 int s, 754 _Inout_ _Contains_ptr_ struct omsghdr *msg, 755 int flags 756 ); 757 } 758114 AUE_SENDMSG COMPAT|CAPENABLED { 759 int sendmsg( 760 int s, 761 _In_ _Contains_ptr_ const struct omsghdr *msg, 762 int flags 763 ); 764 } 765115 AUE_NULL OBSOL vtrace 766116 AUE_GETTIMEOFDAY STD|CAPENABLED { 767 int gettimeofday( 768 _Out_ _Contains_long_timet_ struct timeval *tp, 769 _Out_opt_ struct timezone *tzp 770 ); 771 } 772117 AUE_GETRUSAGE STD|CAPENABLED { 773 int getrusage( 774 int who, 775 _Out_ _Contains_long_ struct rusage *rusage 776 ); 777 } 778118 AUE_GETSOCKOPT STD|CAPENABLED { 779 int getsockopt( 780 int s, 781 int level, 782 int name, 783 _Out_writes_bytes_opt_(*avalsize) void *val, 784 _Inout_ __socklen_t *avalsize 785 ); 786 } 787119 AUE_NULL RESERVED 788120 AUE_READV STD|CAPENABLED { 789 ssize_t readv( 790 int fd, 791 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 792 u_int iovcnt 793 ); 794 } 795121 AUE_WRITEV STD|CAPENABLED { 796 ssize_t writev( 797 int fd, 798 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 799 u_int iovcnt 800 ); 801 } 802122 AUE_SETTIMEOFDAY STD { 803 int settimeofday( 804 _In_ _Contains_long_timet_ const struct timeval *tv, 805 _In_opt_ const struct timezone *tzp 806 ); 807 } 808123 AUE_FCHOWN STD|CAPENABLED { 809 int fchown( 810 int fd, 811 int uid, 812 int gid 813 ); 814 } 815124 AUE_FCHMOD STD|CAPENABLED { 816 int fchmod( 817 int fd, 818 mode_t mode 819 ); 820 } 821125 AUE_RECVFROM COMPAT|CAPENABLED { 822 int recvfrom( 823 int s, 824 _Out_writes_(len) void *buf, 825 size_t len, 826 int flags, 827 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 828 _Inout_ __socklen_t *fromlenaddr 829 ); 830 } 831126 AUE_SETREUID STD|CAPENABLED { 832 int setreuid( 833 int ruid, 834 int euid 835 ); 836 } 837127 AUE_SETREGID STD|CAPENABLED { 838 int setregid( 839 int rgid, 840 int egid 841 ); 842 } 843128 AUE_RENAME STD { 844 int rename( 845 _In_z_ const char *from, 846 _In_z_ const char *to 847 ); 848 } 849129 AUE_TRUNCATE COMPAT { 850 int truncate( 851 _In_z_ const char *path, 852 long length 853 ); 854 } 855130 AUE_FTRUNCATE COMPAT|CAPENABLED { 856 int ftruncate( 857 int fd, 858 long length 859 ); 860 } 861131 AUE_FLOCK STD|CAPENABLED { 862 int flock( 863 int fd, 864 int how 865 ); 866 } 867132 AUE_MKFIFO STD { 868 int mkfifo( 869 _In_z_ const char *path, 870 mode_t mode 871 ); 872 } 873133 AUE_SENDTO STD|CAPENABLED { 874 ssize_t sendto( 875 int s, 876 _In_reads_bytes_(len) const void *buf, 877 size_t len, 878 int flags, 879 _In_reads_bytes_opt_(tolen) const struct sockaddr *to, 880 __socklen_t tolen 881 ); 882 } 883134 AUE_SHUTDOWN STD|CAPENABLED { 884 int shutdown( 885 int s, 886 int how 887 ); 888 } 889135 AUE_SOCKETPAIR STD|CAPENABLED { 890 int socketpair( 891 int domain, 892 int type, 893 int protocol, 894 _Out_writes_(2) int *rsv 895 ); 896 } 897136 AUE_MKDIR STD { 898 int mkdir( 899 _In_z_ const char *path, 900 mode_t mode 901 ); 902 } 903137 AUE_RMDIR STD { 904 int rmdir( 905 _In_z_ const char *path 906 ); 907 } 908138 AUE_UTIMES STD { 909 int utimes( 910 _In_z_ const char *path, 911 _In_ _Contains_long_timet_ const struct timeval *tptr 912 ); 913 } 914139 AUE_NULL OBSOL sigreturn 915140 AUE_ADJTIME STD { 916 int adjtime( 917 _In_ _Contains_long_timet_ const struct timeval *delta, 918 _Out_opt_ _Contains_long_timet_ struct timeval *olddelta 919 ); 920 } 921141 AUE_GETPEERNAME COMPAT|CAPENABLED { 922 int getpeername( 923 int fdes, 924 _Out_writes_bytes_(*alen) struct sockaddr *asa, 925 _Inout_opt_ __socklen_t *alen 926 ); 927 } 928142 AUE_SYSCTL COMPAT|CAPENABLED { 929 long gethostid(void); 930 } 931143 AUE_SYSCTL COMPAT { 932 int sethostid( 933 long hostid 934 ); 935 } 936144 AUE_GETRLIMIT COMPAT|CAPENABLED { 937 int getrlimit( 938 u_int which, 939 _Out_ struct orlimit *rlp 940 ); 941 } 942145 AUE_SETRLIMIT COMPAT|CAPENABLED { 943 int setrlimit( 944 u_int which, 945 _Out_ struct orlimit *rlp 946 ); 947 } 948146 AUE_KILLPG COMPAT { 949 int killpg( 950 int pgid, 951 int signum 952 ); 953 } 954147 AUE_SETSID STD|CAPENABLED { 955 int setsid(void); 956 } 957148 AUE_QUOTACTL STD { 958 int quotactl( 959 _In_z_ const char *path, 960 int cmd, 961 int uid, 962 _In_ void *arg 963 ); 964 } 965149 AUE_O_QUOTA COMPAT { 966 int quota(void); 967 } 968150 AUE_GETSOCKNAME COMPAT|CAPENABLED { 969 int getsockname( 970 int fdes, 971 _Out_writes_bytes_(*alen) struct sockaddr *asa, 972 _Inout_ __socklen_t *alen 973 ); 974 } 975151-153 AUE_NULL RESERVED 976; 154 is initialised by the NLM code, if present. 977154 AUE_NULL NOSTD { 978 int nlm_syscall( 979 int debug_level, 980 int grace_period, 981 int addr_count, 982 _In_reads_(addr_count) char **addrs 983 ); 984 } 985; 155 is initialized by the NFS code, if present. 986155 AUE_NFS_SVC NOSTD { 987 int nfssvc( 988 int flag, 989 _In_ void *argp 990 ); 991 } 992156 AUE_GETDIRENTRIES COMPAT|CAPENABLED { 993 int getdirentries( 994 int fd, 995 _Out_writes_bytes_(count) char *buf, 996 u_int count, 997 _Out_opt_ long *basep 998 ); 999 } 1000157 AUE_STATFS COMPAT4 { 1001 int statfs( 1002 _In_z_ const char *path, 1003 _Out_ _Contains_long_ struct ostatfs *buf 1004 ); 1005 } 1006158 AUE_FSTATFS COMPAT4|CAPENABLED { 1007 int fstatfs( 1008 int fd, 1009 _Out_ _Contains_long_ struct ostatfs *buf 1010 ); 1011 } 1012159 AUE_NULL RESERVED 1013160 AUE_LGETFH STD { 1014 int lgetfh( 1015 _In_z_ const char *fname, 1016 _Out_ struct fhandle *fhp 1017 ); 1018 } 1019161 AUE_NFS_GETFH STD { 1020 int getfh( 1021 _In_z_ const char *fname, 1022 _Out_ struct fhandle *fhp 1023 ); 1024 } 1025162 AUE_SYSCTL COMPAT4|CAPENABLED { 1026 int getdomainname( 1027 _Out_writes_z_(len) char *domainname, 1028 int len 1029 ); 1030 } 1031163 AUE_SYSCTL COMPAT4 { 1032 int setdomainname( 1033 _In_reads_z_(len) char *domainname, 1034 int len 1035 ); 1036 } 1037164 AUE_NULL COMPAT4 { 1038 int uname( 1039 _Out_ struct utsname *name 1040 ); 1041 } 1042165 AUE_SYSARCH STD|CAPENABLED { 1043 int sysarch( 1044 int op, 1045 _In_z_ char *parms 1046 ); 1047 } 1048166 AUE_RTPRIO STD|CAPENABLED { 1049 int rtprio( 1050 int function, 1051 pid_t pid, 1052 _Inout_ struct rtprio *rtp 1053 ); 1054 } 1055167-168 AUE_NULL RESERVED 1056169 AUE_SEMSYS NOSTD { 1057 int semsys( 1058 int which, 1059 int a2, 1060 int a3, 1061 int a4, 1062 int a5 1063 ); 1064 } 1065; XXX should be { int semsys(int which, ...); } 1066170 AUE_MSGSYS NOSTD { 1067 int msgsys( 1068 int which, 1069 int a2, 1070 int a3, 1071 int a4, 1072 int a5, 1073 int a6 1074 ); 1075 } 1076; XXX should be { int msgsys(int which, ...); } 1077171 AUE_SHMSYS NOSTD { 1078 int shmsys( 1079 int which, 1080 int a2, 1081 int a3, 1082 int a4 1083 ); 1084 } 1085; XXX should be { int shmsys(int which, ...); } 1086172 AUE_NULL RESERVED 1087173 AUE_PREAD COMPAT6|CAPENABLED { 1088 ssize_t pread( 1089 int fd, 1090 _Out_writes_bytes_(nbyte) void *buf, 1091 size_t nbyte, 1092 int pad, 1093 off_t offset 1094 ); 1095 } 1096174 AUE_PWRITE COMPAT6|CAPENABLED { 1097 ssize_t pwrite( 1098 int fd, 1099 _In_reads_bytes_(nbyte) const void *buf, 1100 size_t nbyte, 1101 int pad, 1102 off_t offset 1103 ); 1104 } 1105175 AUE_SETFIB STD { 1106 int setfib( 1107 int fibnum 1108 ); 1109 } 1110176 AUE_NTP_ADJTIME STD { 1111 int ntp_adjtime( 1112 _Inout_ _Contains_long_ struct timex *tp 1113 ); 1114 } 1115177-180 AUE_NULL RESERVED 1116181 AUE_SETGID STD|CAPENABLED { 1117 int setgid( 1118 gid_t gid 1119 ); 1120 } 1121182 AUE_SETEGID STD|CAPENABLED { 1122 int setegid( 1123 gid_t egid 1124 ); 1125 } 1126183 AUE_SETEUID STD|CAPENABLED { 1127 int seteuid( 1128 uid_t euid 1129 ); 1130 } 1131184 AUE_NULL OBSOL lfs_bmapv 1132185 AUE_NULL OBSOL lfs_markv 1133186 AUE_NULL OBSOL lfs_segclean 1134187 AUE_NULL OBSOL lfs_segwait 1135188 AUE_STAT COMPAT11 { 1136 int stat( 1137 _In_z_ const char *path, 1138 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1139 ); 1140 } 1141189 AUE_FSTAT COMPAT11|CAPENABLED { 1142 int fstat( 1143 int fd, 1144 _Out_ _Contains_timet_ struct freebsd11_stat *sb 1145 ); 1146 } 1147190 AUE_LSTAT COMPAT11 { 1148 int lstat( 1149 _In_z_ const char *path, 1150 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1151 ); 1152 } 1153191 AUE_PATHCONF STD { 1154 int pathconf( 1155 _In_z_ const char *path, 1156 int name 1157 ); 1158 } 1159192 AUE_FPATHCONF STD|CAPENABLED { 1160 int fpathconf( 1161 int fd, 1162 int name 1163 ); 1164 } 1165193 AUE_NULL RESERVED 1166194 AUE_GETRLIMIT STD|CAPENABLED { 1167 int getrlimit( 1168 u_int which, 1169 _Out_ struct rlimit *rlp 1170 ); 1171 } 1172195 AUE_SETRLIMIT STD|CAPENABLED { 1173 int setrlimit( 1174 u_int which, 1175 _In_ struct rlimit *rlp 1176 ); 1177 } 1178196 AUE_GETDIRENTRIES COMPAT11|CAPENABLED { 1179 int getdirentries( 1180 int fd, 1181 _Out_writes_bytes_(count) char *buf, 1182 u_int count, 1183 _Out_opt_ long *basep 1184 ); 1185 } 1186197 AUE_MMAP COMPAT6|CAPENABLED { 1187 void *mmap( 1188 _In_ void *addr, 1189 size_t len, 1190 int prot, 1191 int flags, 1192 int fd, 1193 int pad, 1194 off_t pos 1195 ); 1196 } 1197198 AUE_NULL SYSMUX { 1198 int __syscall( 1199 int64_t number, 1200 ... 1201 ); 1202 } 1203199 AUE_LSEEK COMPAT6|CAPENABLED { 1204 off_t lseek( 1205 int fd, 1206 int pad, 1207 off_t offset, 1208 int whence 1209 ); 1210 } 1211200 AUE_TRUNCATE COMPAT6 { 1212 int truncate( 1213 _In_z_ const char *path, 1214 int pad, 1215 off_t length 1216 ); 1217 } 1218201 AUE_FTRUNCATE COMPAT6|CAPENABLED { 1219 int ftruncate( 1220 int fd, 1221 int pad, 1222 off_t length 1223 ); 1224 } 1225202 AUE_SYSCTL STD|CAPENABLED { 1226 int __sysctl( 1227 _In_reads_(namelen) const int *name, 1228 u_int namelen, 1229 _Out_writes_bytes_opt_(*oldlenp) void *old, 1230 _Inout_opt_ size_t *oldlenp, 1231 _In_reads_bytes_opt_(newlen) const void *new, 1232 size_t newlen 1233 ); 1234 } 1235203 AUE_MLOCK STD|CAPENABLED { 1236 int mlock( 1237 _In_ const void *addr, 1238 size_t len 1239 ); 1240 } 1241204 AUE_MUNLOCK STD|CAPENABLED { 1242 int munlock( 1243 _In_ const void *addr, 1244 size_t len 1245 ); 1246 } 1247205 AUE_UNDELETE STD { 1248 int undelete( 1249 _In_z_ const char *path 1250 ); 1251 } 1252206 AUE_FUTIMES STD|CAPENABLED { 1253 int futimes( 1254 int fd, 1255 _In_reads_(2) _Contains_long_timet_ const struct timeval *tptr 1256 ); 1257 } 1258207 AUE_GETPGID STD|CAPENABLED { 1259 int getpgid( 1260 pid_t pid 1261 ); 1262 } 1263208 AUE_NULL RESERVED 1264209 AUE_POLL STD|CAPENABLED { 1265 int poll( 1266 _Inout_updates_(nfds) struct pollfd *fds, 1267 u_int nfds, 1268 int timeout 1269 ); 1270 } 1271; 1272; The following are reserved for loadable syscalls 1273; 1274210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1275211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1276212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1277213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1278214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1279215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1280216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1281217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1282218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1283219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1284220 AUE_SEMCTL COMPAT7|NOSTD { 1285 int __semctl( 1286 int semid, 1287 int semnum, 1288 int cmd, 1289 _Contains_ptr_ union semun_old *arg 1290 ); 1291 } 1292221 AUE_SEMGET NOSTD { 1293 int semget( 1294 key_t key, 1295 int nsems, 1296 int semflg 1297 ); 1298 } 1299222 AUE_SEMOP NOSTD { 1300 int semop( 1301 int semid, 1302 _In_reads_(nsops) struct sembuf *sops, 1303 size_t nsops 1304 ); 1305 } 1306223 AUE_NULL OBSOL semconfig 1307224 AUE_MSGCTL COMPAT7|NOSTD { 1308 int msgctl( 1309 int msqid, 1310 int cmd, 1311 _Contains_long_ptr_timet_ struct msqid_ds_old *buf 1312 ); 1313 } 1314225 AUE_MSGGET NOSTD { 1315 int msgget( 1316 key_t key, 1317 int msgflg 1318 ); 1319 } 1320226 AUE_MSGSND NOSTD { 1321 int msgsnd( 1322 int msqid, 1323 _In_reads_bytes_(msgsz) _Contains_long_ const void *msgp, 1324 size_t msgsz, 1325 int msgflg 1326 ); 1327 } 1328227 AUE_MSGRCV NOSTD { 1329 ssize_t msgrcv( 1330 int msqid, 1331 _Out_writes_bytes_(msgsz) _Contains_long_ void *msgp, 1332 size_t msgsz, 1333 long msgtyp, 1334 int msgflg 1335 ); 1336 } 1337228 AUE_SHMAT NOSTD { 1338 void *shmat( 1339 int shmid, 1340 _In_ const void *shmaddr, 1341 int shmflg 1342 ); 1343 } 1344229 AUE_SHMCTL COMPAT7|NOSTD { 1345 int shmctl( 1346 int shmid, 1347 int cmd, 1348 _Inout_opt_ _Contains_long_ struct shmid_ds_old *buf 1349 ); 1350 } 1351230 AUE_SHMDT NOSTD { 1352 int shmdt( 1353 _In_ const void *shmaddr 1354 ); 1355 } 1356231 AUE_SHMGET NOSTD { 1357 int shmget( 1358 key_t key, 1359 size_t size, 1360 int shmflg 1361 ); 1362 } 1363232 AUE_NULL STD|CAPENABLED { 1364 int clock_gettime( 1365 clockid_t clock_id, 1366 _Out_ _Contains_long_timet_ struct timespec *tp 1367 ); 1368 } 1369233 AUE_CLOCK_SETTIME STD { 1370 int clock_settime( 1371 clockid_t clock_id, 1372 _In_ _Contains_long_timet_ const struct timespec *tp 1373 ); 1374 } 1375234 AUE_NULL STD|CAPENABLED { 1376 int clock_getres( 1377 clockid_t clock_id, 1378 _Out_ _Contains_long_timet_ struct timespec *tp 1379 ); 1380 } 1381235 AUE_NULL STD|CAPENABLED { 1382 int ktimer_create( 1383 clockid_t clock_id, 1384 _In_ _Contains_long_ptr_ struct sigevent *evp, 1385 _Out_ int *timerid 1386 ); 1387 } 1388236 AUE_NULL STD|CAPENABLED { 1389 int ktimer_delete( 1390 int timerid 1391 ); 1392 } 1393237 AUE_NULL STD|CAPENABLED { 1394 int ktimer_settime( 1395 int timerid, 1396 int flags, 1397 _In_ _Contains_long_timet_ const struct itimerspec *value, 1398 _Out_opt_ _Contains_long_timet_ struct itimerspec *ovalue 1399 ); 1400 } 1401238 AUE_NULL STD|CAPENABLED { 1402 int ktimer_gettime( 1403 int timerid, 1404 _Out_ _Contains_long_timet_ struct itimerspec *value 1405 ); 1406 } 1407239 AUE_NULL STD|CAPENABLED { 1408 int ktimer_getoverrun( 1409 int timerid 1410 ); 1411 } 1412240 AUE_NULL STD|CAPENABLED { 1413 int nanosleep( 1414 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1415 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1416 ); 1417 } 1418241 AUE_NULL STD { 1419 int ffclock_getcounter( 1420 _Out_ ffcounter *ffcount 1421 ); 1422 } 1423242 AUE_NULL STD { 1424 int ffclock_setestimate( 1425 _In_ _Contains_timet_ struct ffclock_estimate *cest 1426 ); 1427 } 1428243 AUE_NULL STD { 1429 int ffclock_getestimate( 1430 _Out_ _Contains_timet_ struct ffclock_estimate *cest 1431 ); 1432 } 1433244 AUE_NULL STD { 1434 int clock_nanosleep( 1435 clockid_t clock_id, 1436 int flags, 1437 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1438 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1439 ); 1440 } 1441245-246 AUE_NULL RESERVED 1442247 AUE_NULL STD { 1443 int clock_getcpuclockid2( 1444 id_t id, 1445 int which, 1446 _Out_ clockid_t *clock_id 1447 ); 1448 } 1449248 AUE_NULL STD|CAPENABLED { 1450 int ntp_gettime( 1451 _Out_ _Contains_long_timet_ struct ntptimeval *ntvp 1452 ); 1453 } 1454249 AUE_NULL RESERVED 1455250 AUE_MINHERIT STD|CAPENABLED { 1456 int minherit( 1457 _In_ void *addr, 1458 size_t len, 1459 int inherit 1460 ); 1461 } 1462251 AUE_RFORK STD|CAPENABLED { 1463 int rfork( 1464 int flags 1465 ); 1466 } 1467252 AUE_POLL OBSOL openbsd_poll 1468253 AUE_ISSETUGID STD|CAPENABLED { 1469 int issetugid(void); 1470 } 1471254 AUE_LCHOWN STD { 1472 int lchown( 1473 _In_z_ const char *path, 1474 int uid, 1475 int gid 1476 ); 1477 } 1478255 AUE_AIO_READ STD|CAPENABLED { 1479 int aio_read( 1480 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1481 ); 1482 } 1483256 AUE_AIO_WRITE STD|CAPENABLED { 1484 int aio_write( 1485 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1486 ); 1487 } 1488257 AUE_LIO_LISTIO STD|CAPENABLED { 1489 int lio_listio( 1490 int mode, 1491 _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const *acb_list, 1492 int nent, 1493 _In_opt_ _Contains_long_ptr_ struct sigevent *sig 1494 ); 1495 } 1496258-271 AUE_NULL RESERVED 1497272 AUE_O_GETDENTS COMPAT11|CAPENABLED { 1498 int getdents( 1499 int fd, 1500 _Out_writes_bytes_(count) char *buf, 1501 size_t count 1502 ); 1503 } 1504273 AUE_NULL RESERVED 1505274 AUE_LCHMOD STD { 1506 int lchmod( 1507 _In_z_ const char *path, 1508 mode_t mode 1509 ); 1510 } 1511275 AUE_NULL OBSOL netbsd_lchown 1512276 AUE_LUTIMES STD { 1513 int lutimes( 1514 _In_z_ const char *path, 1515 _In_ _Contains_long_timet_ const struct timeval *tptr 1516 ); 1517 } 1518277 AUE_NULL OBSOL netbsd_msync 1519278 AUE_STAT COMPAT11 { 1520 int nstat( 1521 _In_z_ const char *path, 1522 _Out_ _Contains_long_timet_ struct nstat *ub 1523 ); 1524 } 1525279 AUE_FSTAT COMPAT11 { 1526 int nfstat( 1527 int fd, 1528 _Out_ _Contains_long_timet_ struct nstat *sb 1529 ); 1530 } 1531280 AUE_LSTAT COMPAT11 { 1532 int nlstat( 1533 _In_z_ const char *path, 1534 _Out_ _Contains_long_timet_ struct nstat *ub 1535 ); 1536 } 1537281-288 AUE_NULL RESERVED 1538289 AUE_PREADV STD|CAPENABLED { 1539 ssize_t preadv( 1540 int fd, 1541 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1542 u_int iovcnt, 1543 off_t offset 1544 ); 1545 } 1546290 AUE_PWRITEV STD|CAPENABLED { 1547 ssize_t pwritev( 1548 int fd, 1549 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1550 u_int iovcnt, 1551 off_t offset 1552 ); 1553 } 1554291-296 AUE_NULL RESERVED 1555297 AUE_FHSTATFS COMPAT4 { 1556 int fhstatfs( 1557 _In_ const struct fhandle *u_fhp, 1558 _Out_ _Contains_long_ struct ostatfs *buf 1559 ); 1560 } 1561298 AUE_FHOPEN STD { 1562 int fhopen( 1563 _In_ const struct fhandle *u_fhp, 1564 int flags 1565 ); 1566 } 1567299 AUE_FHSTAT COMPAT11 { 1568 int fhstat( 1569 _In_ const struct fhandle *u_fhp, 1570 _Out_ _Contains_long_timet_ struct freebsd11_stat *sb 1571 ); 1572 } 1573300 AUE_NULL STD { 1574 int modnext( 1575 int modid 1576 ); 1577 } 1578301 AUE_NULL STD { 1579 int modstat( 1580 int modid, 1581 _Out_ _Contains_long_ struct module_stat *stat 1582 ); 1583 } 1584302 AUE_NULL STD { 1585 int modfnext( 1586 int modid 1587 ); 1588 } 1589303 AUE_NULL STD { 1590 int modfind( 1591 _In_z_ const char *name 1592 ); 1593 } 1594304 AUE_MODLOAD STD { 1595 int kldload( 1596 _In_z_ const char *file 1597 ); 1598 } 1599305 AUE_MODUNLOAD STD { 1600 int kldunload( 1601 int fileid 1602 ); 1603 } 1604306 AUE_NULL STD { 1605 int kldfind( 1606 _In_z_ const char *file 1607 ); 1608 } 1609307 AUE_NULL STD { 1610 int kldnext( 1611 int fileid 1612 ); 1613 } 1614308 AUE_NULL STD { 1615 int kldstat( 1616 int fileid, 1617 _Out_ _Contains_long_ptr_ struct kld_file_stat *stat 1618 ); 1619 } 1620309 AUE_NULL STD { 1621 int kldfirstmod( 1622 int fileid 1623 ); 1624 } 1625310 AUE_GETSID STD|CAPENABLED { 1626 int getsid( 1627 pid_t pid 1628 ); 1629 } 1630311 AUE_SETRESUID STD|CAPENABLED { 1631 int setresuid( 1632 uid_t ruid, 1633 uid_t euid, 1634 uid_t suid 1635 ); 1636 } 1637312 AUE_SETRESGID STD|CAPENABLED { 1638 int setresgid( 1639 gid_t rgid, 1640 gid_t egid, 1641 gid_t sgid 1642 ); 1643 } 1644313 AUE_NULL OBSOL signanosleep 1645314 AUE_AIO_RETURN STD|CAPENABLED { 1646 ssize_t aio_return( 1647 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1648 ); 1649 } 1650315 AUE_AIO_SUSPEND STD|CAPENABLED { 1651 int aio_suspend( 1652 _Inout_updates_(nent) _Contains_long_ptr_ const struct aiocb * const * aiocbp, 1653 int nent, 1654 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1655 ); 1656 } 1657316 AUE_AIO_CANCEL STD|CAPENABLED { 1658 int aio_cancel( 1659 int fd, 1660 _In_opt_ _Contains_long_ptr_ struct aiocb *aiocbp 1661 ); 1662 } 1663317 AUE_AIO_ERROR STD|CAPENABLED { 1664 int aio_error( 1665 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 1666 ); 1667 } 1668318 AUE_AIO_READ COMPAT6|CAPENABLED { 1669 int aio_read( 1670 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1671 ); 1672 } 1673319 AUE_AIO_WRITE COMPAT6|CAPENABLED { 1674 int aio_write( 1675 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1676 ); 1677 } 1678320 AUE_LIO_LISTIO COMPAT6|CAPENABLED { 1679 int lio_listio( 1680 int mode, 1681 _Inout_updates_(nent) _Contains_long_ptr_ struct oaiocb * const *acb_list, 1682 int nent, 1683 _In_opt_ _Contains_ptr_ struct osigevent *sig 1684 ); 1685 } 1686321 AUE_NULL STD|CAPENABLED|NOLIB { 1687 int yield(void); 1688 } 1689322 AUE_NULL OBSOL thr_sleep 1690323 AUE_NULL OBSOL thr_wakeup 1691324 AUE_MLOCKALL STD|CAPENABLED { 1692 int mlockall( 1693 int how 1694 ); 1695 } 1696325 AUE_MUNLOCKALL STD|CAPENABLED { 1697 int munlockall(void); 1698 } 1699326 AUE_GETCWD STD { 1700 int __getcwd( 1701 _Out_writes_z_(buflen) char *buf, 1702 size_t buflen 1703 ); 1704 } 1705327 AUE_NULL STD|CAPENABLED { 1706 int sched_setparam( 1707 pid_t pid, 1708 _In_ const struct sched_param *param 1709 ); 1710 } 1711328 AUE_NULL STD|CAPENABLED { 1712 int sched_getparam( 1713 pid_t pid, 1714 _Out_ struct sched_param *param 1715 ); 1716 } 1717329 AUE_NULL STD|CAPENABLED { 1718 int sched_setscheduler( 1719 pid_t pid, 1720 int policy, 1721 _In_ const struct sched_param *param 1722 ); 1723 } 1724330 AUE_NULL STD|CAPENABLED { 1725 int sched_getscheduler( 1726 pid_t pid 1727 ); 1728 } 1729331 AUE_NULL STD|CAPENABLED { 1730 int sched_yield(void); 1731 } 1732332 AUE_NULL STD|CAPENABLED { 1733 int sched_get_priority_max( 1734 int policy 1735 ); 1736 } 1737333 AUE_NULL STD|CAPENABLED { 1738 int sched_get_priority_min( 1739 int policy 1740 ); 1741 } 1742334 AUE_NULL STD|CAPENABLED { 1743 int sched_rr_get_interval( 1744 pid_t pid, 1745 _Out_ _Contains_long_timet_ struct timespec *interval 1746 ); 1747 } 1748335 AUE_NULL STD|CAPENABLED { 1749 int utrace( 1750 _In_reads_bytes_(len) const void *addr, 1751 size_t len 1752 ); 1753 } 1754336 AUE_SENDFILE COMPAT4|CAPENABLED { 1755 int sendfile( 1756 int fd, 1757 int s, 1758 off_t offset, 1759 size_t nbytes, 1760 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 1761 _Out_opt_ off_t *sbytes, 1762 int flags 1763 ); 1764 } 1765337 AUE_NULL STD { 1766 int kldsym( 1767 int fileid, 1768 int cmd, 1769 _In_ _Contains_long_ptr_ void *data 1770 ); 1771 } 1772338 AUE_JAIL STD { 1773 int jail( 1774 _In_ _Contains_ptr_ struct jail *jail 1775 ); 1776 } 1777339 AUE_NULL NOSTD|NOTSTATIC { 1778 int nnpfs_syscall( 1779 int operation, 1780 char *a_pathP, 1781 int a_opcode, 1782 void *a_paramsP, 1783 int a_followSymlinks 1784 ); 1785 } 1786340 AUE_SIGPROCMASK STD|CAPENABLED { 1787 int sigprocmask( 1788 int how, 1789 _In_opt_ const sigset_t *set, 1790 _Out_opt_ sigset_t *oset 1791 ); 1792 } 1793341 AUE_SIGSUSPEND STD|CAPENABLED { 1794 int sigsuspend( 1795 _In_ const sigset_t *sigmask 1796 ); 1797 } 1798342 AUE_SIGACTION COMPAT4|CAPENABLED { 1799 int sigaction( 1800 int sig, 1801 _In_opt_ _Contains_ptr_ const struct sigaction *act, 1802 _Out_opt_ _Contains_ptr_ struct sigaction *oact 1803 ); 1804 } 1805343 AUE_SIGPENDING STD|CAPENABLED { 1806 int sigpending( 1807 _In_ sigset_t *set 1808 ); 1809 } 1810344 AUE_SIGRETURN COMPAT4|CAPENABLED { 1811 int sigreturn( 1812 _In_ _Contains_long_ptr_ const struct freebsd4_ucontext *sigcntxp 1813 ); 1814 } 1815345 AUE_SIGWAIT STD|CAPENABLED { 1816 int sigtimedwait( 1817 _In_ const sigset_t *set, 1818 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info, 1819 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1820 ); 1821 } 1822346 AUE_NULL STD|CAPENABLED { 1823 int sigwaitinfo( 1824 _In_ const sigset_t *set, 1825 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 1826 ); 1827 } 1828347 AUE_ACL_GET_FILE STD { 1829 int __acl_get_file( 1830 _In_z_ const char *path, 1831 __acl_type_t type, 1832 _Out_ struct acl *aclp 1833 ); 1834 } 1835348 AUE_ACL_SET_FILE STD { 1836 int __acl_set_file( 1837 _In_z_ const char *path, 1838 __acl_type_t type, 1839 _In_ struct acl *aclp 1840 ); 1841 } 1842349 AUE_ACL_GET_FD STD|CAPENABLED { 1843 int __acl_get_fd( 1844 int filedes, 1845 __acl_type_t type, 1846 _Out_ struct acl *aclp 1847 ); 1848 } 1849350 AUE_ACL_SET_FD STD|CAPENABLED { 1850 int __acl_set_fd( 1851 int filedes, 1852 __acl_type_t type, 1853 _In_ struct acl *aclp 1854 ); 1855 } 1856351 AUE_ACL_DELETE_FILE STD { 1857 int __acl_delete_file( 1858 _In_z_ const char *path, 1859 __acl_type_t type 1860 ); 1861 } 1862352 AUE_ACL_DELETE_FD STD|CAPENABLED { 1863 int __acl_delete_fd( 1864 int filedes, 1865 __acl_type_t type 1866 ); 1867 } 1868353 AUE_ACL_CHECK_FILE STD { 1869 int __acl_aclcheck_file( 1870 _In_z_ const char *path, 1871 __acl_type_t type, 1872 _In_ struct acl *aclp 1873 ); 1874 } 1875354 AUE_ACL_CHECK_FD STD|CAPENABLED { 1876 int __acl_aclcheck_fd( 1877 int filedes, 1878 __acl_type_t type, 1879 _In_ struct acl *aclp 1880 ); 1881 } 1882355 AUE_EXTATTRCTL STD { 1883 int extattrctl( 1884 _In_z_ const char *path, 1885 int cmd, 1886 _In_z_opt_ const char *filename, 1887 int attrnamespace, 1888 _In_z_ const char *attrname 1889 ); 1890 } 1891356 AUE_EXTATTR_SET_FILE STD { 1892 ssize_t extattr_set_file( 1893 _In_z_ const char *path, 1894 int attrnamespace, 1895 _In_z_ const char *attrname, 1896 _In_reads_bytes_(nbytes) void *data, 1897 size_t nbytes 1898 ); 1899 } 1900357 AUE_EXTATTR_GET_FILE STD { 1901 ssize_t extattr_get_file( 1902 _In_z_ const char *path, 1903 int attrnamespace, 1904 _In_z_ const char *attrname, 1905 _Out_writes_bytes_(nbytes) void *data, 1906 size_t nbytes 1907 ); 1908 } 1909358 AUE_EXTATTR_DELETE_FILE STD { 1910 int extattr_delete_file( 1911 _In_z_ const char *path, 1912 int attrnamespace, 1913 _In_z_ const char *attrname 1914 ); 1915 } 1916359 AUE_AIO_WAITCOMPLETE STD|CAPENABLED { 1917 ssize_t aio_waitcomplete( 1918 _Outptr_result_maybenull_ struct aiocb **aiocbp, 1919 _In_opt_ _Contains_long_timet_ struct timespec *timeout 1920 ); 1921 } 1922360 AUE_GETRESUID STD|CAPENABLED { 1923 int getresuid( 1924 _Out_opt_ uid_t *ruid, 1925 _Out_opt_ uid_t *euid, 1926 _Out_opt_ uid_t *suid 1927 ); 1928 } 1929361 AUE_GETRESGID STD|CAPENABLED { 1930 int getresgid( 1931 _Out_opt_ gid_t *rgid, 1932 _Out_opt_ gid_t *egid, 1933 _Out_opt_ gid_t *sgid 1934 ); 1935 } 1936362 AUE_KQUEUE STD|CAPENABLED { 1937 int kqueue(void); 1938 } 1939363 AUE_KEVENT COMPAT11|CAPENABLED { 1940 int kevent( 1941 int fd, 1942 _In_reads_opt_(nchanges) _Contains_ptr_ const struct freebsd11_kevent *changelist, 1943 int nchanges, 1944 _Out_writes_opt_(nevents) _Contains_ptr_ struct freebsd11_kevent *eventlist, 1945 int nevents, 1946 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1947 ); 1948 } 1949364 AUE_NULL OBSOL __cap_get_proc 1950365 AUE_NULL OBSOL __cap_set_proc 1951366 AUE_NULL OBSOL __cap_get_fd 1952367 AUE_NULL OBSOL __cap_get_file 1953368 AUE_NULL OBSOL __cap_set_fd 1954369 AUE_NULL OBSOL __cap_set_file 1955370 AUE_NULL RESERVED 1956371 AUE_EXTATTR_SET_FD STD|CAPENABLED { 1957 ssize_t extattr_set_fd( 1958 int fd, 1959 int attrnamespace, 1960 _In_z_ const char *attrname, 1961 _In_reads_bytes_(nbytes) void *data, 1962 size_t nbytes 1963 ); 1964 } 1965372 AUE_EXTATTR_GET_FD STD|CAPENABLED { 1966 ssize_t extattr_get_fd( 1967 int fd, 1968 int attrnamespace, 1969 _In_z_ const char *attrname, 1970 _Out_writes_bytes_(nbytes) void *data, 1971 size_t nbytes 1972 ); 1973 } 1974373 AUE_EXTATTR_DELETE_FD STD|CAPENABLED { 1975 int extattr_delete_fd( 1976 int fd, 1977 int attrnamespace, 1978 _In_z_ const char *attrname 1979 ); 1980 } 1981374 AUE_SETUGID STD { 1982 int __setugid( 1983 int flag 1984 ); 1985 } 1986375 AUE_NULL OBSOL nfsclnt 1987376 AUE_EACCESS STD { 1988 int eaccess( 1989 _In_z_ const char *path, 1990 int amode 1991 ); 1992 } 1993377 AUE_NULL NOSTD|NOTSTATIC { 1994 int afs3_syscall( 1995 long syscall, 1996 long parm1, 1997 long parm2, 1998 long parm3, 1999 long parm4, 2000 long parm5, 2001 long parm6 2002 ); 2003 } 2004378 AUE_NMOUNT STD { 2005 int nmount( 2006 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2007 unsigned int iovcnt, 2008 int flags 2009 ); 2010 } 2011379 AUE_NULL OBSOL kse_exit 2012380 AUE_NULL OBSOL kse_wakeup 2013381 AUE_NULL OBSOL kse_create 2014382 AUE_NULL OBSOL kse_thr_interrupt 2015383 AUE_NULL OBSOL kse_release 2016384 AUE_NULL STD|CAPENABLED { 2017 int __mac_get_proc( 2018 _In_ _Contains_long_ptr_ struct mac *mac_p 2019 ); 2020 } 2021385 AUE_NULL STD|CAPENABLED { 2022 int __mac_set_proc( 2023 _In_ _Contains_long_ptr_ struct mac *mac_p 2024 ); 2025 } 2026386 AUE_NULL STD|CAPENABLED { 2027 int __mac_get_fd( 2028 int fd, 2029 _In_ _Contains_long_ptr_ struct mac *mac_p 2030 ); 2031 } 2032387 AUE_NULL STD { 2033 int __mac_get_file( 2034 _In_z_ const char *path_p, 2035 _In_ _Contains_long_ptr_ struct mac *mac_p 2036 ); 2037 } 2038388 AUE_NULL STD|CAPENABLED { 2039 int __mac_set_fd( 2040 int fd, 2041 _In_ _Contains_long_ptr_ struct mac *mac_p 2042 ); 2043 } 2044389 AUE_NULL STD { 2045 int __mac_set_file( 2046 _In_z_ const char *path_p, 2047 _In_ _Contains_long_ptr_ struct mac *mac_p 2048 ); 2049 } 2050390 AUE_NULL STD { 2051 int kenv( 2052 int what, 2053 _In_z_opt_ const char *name, 2054 _Inout_updates_opt_(len) char *value, 2055 int len 2056 ); 2057 } 2058391 AUE_LCHFLAGS STD { 2059 int lchflags( 2060 _In_z_ const char *path, 2061 u_long flags 2062 ); 2063 } 2064392 AUE_NULL STD|CAPENABLED { 2065 int uuidgen( 2066 _Out_writes_(count) struct uuid *store, 2067 int count 2068 ); 2069 } 2070393 AUE_SENDFILE STD|CAPENABLED { 2071 int sendfile( 2072 int fd, 2073 int s, 2074 off_t offset, 2075 size_t nbytes, 2076 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 2077 _Out_opt_ off_t *sbytes, 2078 int flags 2079 ); 2080 } 2081394 AUE_NULL STD { 2082 int mac_syscall( 2083 _In_z_ const char *policy, 2084 int call, 2085 _In_opt_ void *arg 2086 ); 2087 } 2088395 AUE_GETFSSTAT COMPAT11 { 2089 int getfsstat( 2090 _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf, 2091 long bufsize, 2092 int mode 2093 ); 2094 } 2095396 AUE_STATFS COMPAT11 { 2096 int statfs( 2097 _In_z_ const char *path, 2098 _Out_ struct freebsd11_statfs *buf 2099 ); 2100 } 2101397 AUE_FSTATFS COMPAT11|CAPENABLED { 2102 int fstatfs( 2103 int fd, 2104 _Out_ struct freebsd11_statfs *buf 2105 ); 2106 } 2107398 AUE_FHSTATFS COMPAT11 { 2108 int fhstatfs( 2109 _In_ const struct fhandle *u_fhp, 2110 _Out_ struct freebsd11_statfs *buf 2111 ); 2112 } 2113399 AUE_NULL RESERVED 2114400 AUE_SEMCLOSE NOSTD { 2115 int ksem_close( 2116 semid_t id 2117 ); 2118 } 2119401 AUE_SEMPOST NOSTD { 2120 int ksem_post( 2121 semid_t id 2122 ); 2123 } 2124402 AUE_SEMWAIT NOSTD { 2125 int ksem_wait( 2126 semid_t id 2127 ); 2128 } 2129403 AUE_SEMTRYWAIT NOSTD { 2130 int ksem_trywait( 2131 semid_t id 2132 ); 2133 } 2134404 AUE_SEMINIT NOSTD { 2135 int ksem_init( 2136 _Out_ semid_t *idp, 2137 unsigned int value 2138 ); 2139 } 2140405 AUE_SEMOPEN NOSTD { 2141 int ksem_open( 2142 _Out_ semid_t *idp, 2143 _In_z_ const char *name, 2144 int oflag, 2145 mode_t mode, 2146 unsigned int value 2147 ); 2148 } 2149406 AUE_SEMUNLINK NOSTD { 2150 int ksem_unlink( 2151 _In_z_ const char *name 2152 ); 2153 } 2154407 AUE_SEMGETVALUE NOSTD { 2155 int ksem_getvalue( 2156 semid_t id, 2157 _Out_ int *val 2158 ); 2159 } 2160408 AUE_SEMDESTROY NOSTD { 2161 int ksem_destroy( 2162 semid_t id 2163 ); 2164 } 2165409 AUE_NULL STD { 2166 int __mac_get_pid( 2167 pid_t pid, 2168 _In_ _Contains_long_ptr_ struct mac *mac_p 2169 ); 2170 } 2171410 AUE_NULL STD { 2172 int __mac_get_link( 2173 _In_z_ const char *path_p, 2174 _In_ _Contains_long_ptr_ struct mac *mac_p 2175 ); 2176 } 2177411 AUE_NULL STD { 2178 int __mac_set_link( 2179 _In_z_ const char *path_p, 2180 _In_ _Contains_long_ptr_ struct mac *mac_p 2181 ); 2182 } 2183412 AUE_EXTATTR_SET_LINK STD { 2184 ssize_t extattr_set_link( 2185 _In_z_ const char *path, 2186 int attrnamespace, 2187 _In_z_ const char *attrname, 2188 _In_reads_bytes_(nbytes) void *data, 2189 size_t nbytes 2190 ); 2191 } 2192413 AUE_EXTATTR_GET_LINK STD { 2193 ssize_t extattr_get_link( 2194 _In_z_ const char *path, 2195 int attrnamespace, 2196 _In_z_ const char *attrname, 2197 _Out_writes_bytes_(nbytes) void *data, 2198 size_t nbytes 2199 ); 2200 } 2201414 AUE_EXTATTR_DELETE_LINK STD { 2202 int extattr_delete_link( 2203 _In_z_ const char *path, 2204 int attrnamespace, 2205 _In_z_ const char *attrname 2206 ); 2207 } 2208415 AUE_NULL STD { 2209 int __mac_execve( 2210 _In_z_ const char *fname, 2211 _In_ char **argv, 2212 _In_ char **envv, 2213 _In_ _Contains_long_ptr_ struct mac *mac_p 2214 ); 2215 } 2216416 AUE_SIGACTION STD|CAPENABLED { 2217 int sigaction( 2218 int sig, 2219 _In_opt_ _Contains_ptr_ const struct sigaction *act, 2220 _Out_opt_ _Contains_ptr_ struct sigaction *oact 2221 ); 2222 } 2223417 AUE_SIGRETURN STD|CAPENABLED { 2224 int sigreturn( 2225 _In_ _Contains_long_ptr_ const struct __ucontext *sigcntxp 2226 ); 2227 } 2228418-420 AUE_NULL RESERVED 2229421 AUE_NULL STD|CAPENABLED { 2230 int getcontext( 2231 _Out_ _Contains_long_ptr_ struct __ucontext *ucp 2232 ); 2233 } 2234422 AUE_NULL STD|CAPENABLED { 2235 int setcontext( 2236 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2237 ); 2238 } 2239423 AUE_NULL STD { 2240 int swapcontext( 2241 _Out_ _Contains_long_ptr_ struct __ucontext *oucp, 2242 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2243 ); 2244 } 2245424 AUE_SWAPOFF COMPAT13 { 2246 int swapoff( 2247 _In_z_ const char *name 2248 ); 2249 } 2250425 AUE_ACL_GET_LINK STD { 2251 int __acl_get_link( 2252 _In_z_ const char *path, 2253 __acl_type_t type, 2254 _Out_ struct acl *aclp 2255 ); 2256 } 2257426 AUE_ACL_SET_LINK STD { 2258 int __acl_set_link( 2259 _In_z_ const char *path, 2260 __acl_type_t type, 2261 _In_ struct acl *aclp 2262 ); 2263 } 2264427 AUE_ACL_DELETE_LINK STD { 2265 int __acl_delete_link( 2266 _In_z_ const char *path, 2267 __acl_type_t type 2268 ); 2269 } 2270428 AUE_ACL_CHECK_LINK STD { 2271 int __acl_aclcheck_link( 2272 _In_z_ const char *path, 2273 __acl_type_t type, 2274 _In_ struct acl *aclp 2275 ); 2276 } 2277429 AUE_SIGWAIT STD|CAPENABLED { 2278 int sigwait( 2279 _In_ const sigset_t *set, 2280 _Out_ int *sig 2281 ); 2282 } 2283430 AUE_THR_CREATE STD|CAPENABLED { 2284 int thr_create( 2285 _In_ _Contains_long_ptr_ ucontext_t *ctx, 2286 _Out_ long *id, 2287 int flags 2288 ); 2289 } 2290431 AUE_THR_EXIT STD|CAPENABLED { 2291 void thr_exit( 2292 _Out_opt_ long *state 2293 ); 2294 } 2295432 AUE_NULL STD|CAPENABLED { 2296 int thr_self( 2297 _Out_ long *id 2298 ); 2299 } 2300433 AUE_THR_KILL STD|CAPENABLED { 2301 int thr_kill( 2302 long id, 2303 int sig 2304 ); 2305 } 2306434 AUE_NULL COMPAT10 { 2307 int _umtx_lock( 2308 _Inout_ struct umtx *umtx 2309 ); 2310 } 2311435 AUE_NULL COMPAT10 { 2312 int _umtx_unlock( 2313 _Inout_ struct umtx *umtx 2314 ); 2315 } 2316436 AUE_JAIL_ATTACH STD { 2317 int jail_attach( 2318 int jid 2319 ); 2320 } 2321437 AUE_EXTATTR_LIST_FD STD|CAPENABLED { 2322 ssize_t extattr_list_fd( 2323 int fd, 2324 int attrnamespace, 2325 _Out_writes_bytes_opt_(nbytes) void *data, 2326 size_t nbytes 2327 ); 2328 } 2329438 AUE_EXTATTR_LIST_FILE STD { 2330 ssize_t extattr_list_file( 2331 _In_z_ const char *path, 2332 int attrnamespace, 2333 _Out_writes_bytes_opt_(nbytes) void *data, 2334 size_t nbytes 2335 ); 2336 } 2337439 AUE_EXTATTR_LIST_LINK STD { 2338 ssize_t extattr_list_link( 2339 _In_z_ const char *path, 2340 int attrnamespace, 2341 _Out_writes_bytes_opt_(nbytes) void *data, 2342 size_t nbytes 2343 ); 2344 } 2345440 AUE_NULL OBSOL kse_switchin 2346441 AUE_SEMWAIT NOSTD { 2347 int ksem_timedwait( 2348 semid_t id, 2349 _In_opt_ _Contains_long_timet_ const struct timespec *abstime 2350 ); 2351 } 2352442 AUE_NULL STD|CAPENABLED { 2353 int thr_suspend( 2354 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 2355 ); 2356 } 2357443 AUE_NULL STD|CAPENABLED { 2358 int thr_wake( 2359 long id 2360 ); 2361 } 2362444 AUE_MODUNLOAD STD { 2363 int kldunloadf( 2364 int fileid, 2365 int flags 2366 ); 2367 } 2368445 AUE_AUDIT STD { 2369 int audit( 2370 _In_reads_bytes_(length) const void *record, 2371 u_int length 2372 ); 2373 } 2374446 AUE_AUDITON STD { 2375 int auditon( 2376 int cmd, 2377 _In_opt_ void *data, 2378 u_int length 2379 ); 2380 } 2381447 AUE_GETAUID STD|CAPENABLED { 2382 int getauid( 2383 _Out_ uid_t *auid 2384 ); 2385 } 2386448 AUE_SETAUID STD|CAPENABLED { 2387 int setauid( 2388 _In_ uid_t *auid 2389 ); 2390 } 2391449 AUE_GETAUDIT STD|CAPENABLED { 2392 int getaudit( 2393 _Out_ struct auditinfo *auditinfo 2394 ); 2395 } 2396450 AUE_SETAUDIT STD|CAPENABLED { 2397 int setaudit( 2398 _In_ struct auditinfo *auditinfo 2399 ); 2400 } 2401451 AUE_GETAUDIT_ADDR STD|CAPENABLED { 2402 int getaudit_addr( 2403 _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2404 u_int length 2405 ); 2406 } 2407452 AUE_SETAUDIT_ADDR STD|CAPENABLED { 2408 int setaudit_addr( 2409 _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2410 u_int length 2411 ); 2412 } 2413453 AUE_AUDITCTL STD { 2414 int auditctl( 2415 _In_z_ const char *path 2416 ); 2417 } 2418454 AUE_NULL STD|CAPENABLED { 2419 int _umtx_op( 2420 _Inout_ void *obj, 2421 int op, 2422 u_long val, 2423 _In_ void *uaddr1, 2424 _In_ void *uaddr2 2425 ); 2426 } 2427455 AUE_THR_NEW STD|CAPENABLED { 2428 int thr_new( 2429 _In_ _Contains_long_ptr_ struct thr_param *param, 2430 int param_size 2431 ); 2432 } 2433456 AUE_NULL STD|CAPENABLED { 2434 int sigqueue( 2435 pid_t pid, 2436 int signum, 2437 _In_ void *value 2438 ); 2439 } 2440457 AUE_MQ_OPEN NOSTD { 2441 int kmq_open( 2442 _In_z_ const char *path, 2443 int flags, 2444 mode_t mode, 2445 _In_opt_ _Contains_long_ const struct mq_attr *attr 2446 ); 2447 } 2448458 AUE_MQ_SETATTR NOSTD|CAPENABLED { 2449 int kmq_setattr( 2450 int mqd, 2451 _In_opt_ _Contains_long_ const struct mq_attr *attr, 2452 _Out_opt_ _Contains_long_ struct mq_attr *oattr 2453 ); 2454 } 2455459 AUE_MQ_TIMEDRECEIVE NOSTD|CAPENABLED { 2456 int kmq_timedreceive( 2457 int mqd, 2458 _Out_writes_bytes_(msg_len) char *msg_ptr, 2459 size_t msg_len, 2460 _Out_opt_ unsigned *msg_prio, 2461 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2462 ); 2463 } 2464460 AUE_MQ_TIMEDSEND NOSTD|CAPENABLED { 2465 int kmq_timedsend( 2466 int mqd, 2467 _In_reads_bytes_(msg_len) const char *msg_ptr, 2468 size_t msg_len, 2469 unsigned msg_prio, 2470 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2471 ); 2472 } 2473461 AUE_MQ_NOTIFY NOSTD|CAPENABLED { 2474 int kmq_notify( 2475 int mqd, 2476 _In_opt_ _Contains_long_ptr_ const struct sigevent *sigev 2477 ); 2478 } 2479462 AUE_MQ_UNLINK NOSTD { 2480 int kmq_unlink( 2481 _In_z_ const char *path 2482 ); 2483 } 2484463 AUE_NULL STD|CAPENABLED { 2485 void abort2( 2486 _In_z_ const char *why, 2487 int nargs, 2488 _In_reads_(nargs) void **args 2489 ); 2490 } 2491464 AUE_NULL STD|CAPENABLED { 2492 int thr_set_name( 2493 long id, 2494 _In_z_ const char *name 2495 ); 2496 } 2497465 AUE_AIO_FSYNC STD|CAPENABLED { 2498 int aio_fsync( 2499 int op, 2500 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 2501 ); 2502 } 2503466 AUE_RTPRIO STD|CAPENABLED { 2504 int rtprio_thread( 2505 int function, 2506 lwpid_t lwpid, 2507 _Inout_ struct rtprio *rtp 2508 ); 2509 } 2510467-470 AUE_NULL RESERVED 2511471 AUE_SCTP_PEELOFF NOSTD|CAPENABLED { 2512 int sctp_peeloff( 2513 int sd, 2514 uint32_t name 2515 ); 2516 } 2517472 AUE_SCTP_GENERIC_SENDMSG NOSTD|CAPENABLED { 2518 int sctp_generic_sendmsg( 2519 int sd, 2520 _In_reads_bytes_(mlen) void *msg, 2521 int mlen, 2522 _In_reads_bytes_(tolen) const struct sockaddr *to, 2523 __socklen_t tolen, 2524 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2525 int flags 2526 ); 2527 } 2528473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD|CAPENABLED { 2529 int sctp_generic_sendmsg_iov( 2530 int sd, 2531 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2532 int iovlen, 2533 _In_reads_bytes_(tolen) const struct sockaddr *to, 2534 __socklen_t tolen, 2535 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2536 int flags 2537 ); 2538 } 2539474 AUE_SCTP_GENERIC_RECVMSG NOSTD|CAPENABLED { 2540 int sctp_generic_recvmsg( 2541 int sd, 2542 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2543 int iovlen, 2544 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 2545 _Out_ __socklen_t *fromlenaddr, 2546 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2547 _Out_opt_ int *msg_flags 2548 ); 2549 } 2550475 AUE_PREAD STD|CAPENABLED { 2551 ssize_t pread( 2552 int fd, 2553 _Out_writes_bytes_(nbyte) void *buf, 2554 size_t nbyte, 2555 off_t offset 2556 ); 2557 } 2558476 AUE_PWRITE STD|CAPENABLED { 2559 ssize_t pwrite( 2560 int fd, 2561 _In_reads_bytes_(nbyte) const void *buf, 2562 size_t nbyte, 2563 off_t offset 2564 ); 2565 } 2566477 AUE_MMAP STD|CAPENABLED { 2567 void *mmap( 2568 _In_ void *addr, 2569 size_t len, 2570 int prot, 2571 int flags, 2572 int fd, 2573 off_t pos 2574 ); 2575 } 2576478 AUE_LSEEK STD|CAPENABLED { 2577 off_t lseek( 2578 int fd, 2579 off_t offset, 2580 int whence 2581 ); 2582 } 2583479 AUE_TRUNCATE STD { 2584 int truncate( 2585 _In_z_ const char *path, 2586 off_t length 2587 ); 2588 } 2589480 AUE_FTRUNCATE STD|CAPENABLED { 2590 int ftruncate( 2591 int fd, 2592 off_t length 2593 ); 2594 } 2595481 AUE_THR_KILL2 STD { 2596 int thr_kill2( 2597 pid_t pid, 2598 long id, 2599 int sig 2600 ); 2601 } 2602482 AUE_SHMOPEN COMPAT12|CAPENABLED { 2603 int shm_open( 2604 _In_z_ const char *path, 2605 int flags, 2606 mode_t mode 2607 ); 2608 } 2609483 AUE_SHMUNLINK STD { 2610 int shm_unlink( 2611 _In_z_ const char *path 2612 ); 2613 } 2614484 AUE_NULL STD { 2615 int cpuset( 2616 _Out_ cpusetid_t *setid 2617 ); 2618 } 2619485 AUE_NULL STD { 2620 int cpuset_setid( 2621 cpuwhich_t which, 2622 id_t id, 2623 cpusetid_t setid 2624 ); 2625 } 2626486 AUE_NULL STD { 2627 int cpuset_getid( 2628 cpulevel_t level, 2629 cpuwhich_t which, 2630 id_t id, 2631 _Out_ cpusetid_t *setid 2632 ); 2633 } 2634487 AUE_NULL STD|CAPENABLED { 2635 int cpuset_getaffinity( 2636 cpulevel_t level, 2637 cpuwhich_t which, 2638 id_t id, 2639 size_t cpusetsize, 2640 _Out_ cpuset_t *mask 2641 ); 2642 } 2643488 AUE_NULL STD|CAPENABLED { 2644 int cpuset_setaffinity( 2645 cpulevel_t level, 2646 cpuwhich_t which, 2647 id_t id, 2648 size_t cpusetsize, 2649 _Out_ const cpuset_t *mask 2650 ); 2651 } 2652489 AUE_FACCESSAT STD|CAPENABLED { 2653 int faccessat( 2654 int fd, 2655 _In_z_ const char *path, 2656 int amode, 2657 int flag 2658 ); 2659 } 2660490 AUE_FCHMODAT STD|CAPENABLED { 2661 int fchmodat( 2662 int fd, 2663 _In_z_ const char *path, 2664 mode_t mode, 2665 int flag 2666 ); 2667 } 2668491 AUE_FCHOWNAT STD|CAPENABLED { 2669 int fchownat( 2670 int fd, 2671 _In_z_ const char *path, 2672 uid_t uid, 2673 gid_t gid, 2674 int flag 2675 ); 2676 } 2677492 AUE_FEXECVE STD|CAPENABLED { 2678 int fexecve( 2679 int fd, 2680 _In_ char **argv, 2681 _In_ char **envv 2682 ); 2683 } 2684493 AUE_FSTATAT COMPAT11|CAPENABLED { 2685 int fstatat( 2686 int fd, 2687 _In_z_ const char *path, 2688 _Out_ _Contains_long_timet_ struct freebsd11_stat *buf, 2689 int flag 2690 ); 2691 } 2692494 AUE_FUTIMESAT STD|CAPENABLED { 2693 int futimesat( 2694 int fd, 2695 _In_z_ const char *path, 2696 _In_reads_(2) _Contains_long_timet_ const struct timeval *times 2697 ); 2698 } 2699495 AUE_LINKAT STD|CAPENABLED { 2700 int linkat( 2701 int fd1, 2702 _In_z_ const char *path1, 2703 int fd2, 2704 _In_z_ const char *path2, 2705 int flag 2706 ); 2707 } 2708496 AUE_MKDIRAT STD|CAPENABLED { 2709 int mkdirat( 2710 int fd, 2711 _In_z_ const char *path, 2712 mode_t mode 2713 ); 2714 } 2715497 AUE_MKFIFOAT STD|CAPENABLED { 2716 int mkfifoat( 2717 int fd, 2718 _In_z_ const char *path, 2719 mode_t mode 2720 ); 2721 } 2722498 AUE_MKNODAT COMPAT11|CAPENABLED { 2723 int mknodat( 2724 int fd, 2725 _In_z_ const char *path, 2726 mode_t mode, 2727 uint32_t dev 2728 ); 2729 } 2730; XXX: see the comment for open 2731499 AUE_OPENAT_RWTC STD|CAPENABLED { 2732 int openat( 2733 int fd, 2734 _In_z_ const char *path, 2735 int flag, 2736 mode_t mode 2737 ); 2738 } 2739500 AUE_READLINKAT STD|CAPENABLED { 2740 ssize_t readlinkat( 2741 int fd, 2742 _In_z_ const char *path, 2743 _Out_writes_bytes_(bufsize) char *buf, 2744 size_t bufsize 2745 ); 2746 } 2747501 AUE_RENAMEAT STD|CAPENABLED { 2748 int renameat( 2749 int oldfd, 2750 _In_z_ const char *old, 2751 int newfd, 2752 _In_z_ const char *new 2753 ); 2754 } 2755502 AUE_SYMLINKAT STD|CAPENABLED { 2756 int symlinkat( 2757 _In_z_ const char *path1, 2758 int fd, 2759 _In_z_ const char *path2 2760 ); 2761 } 2762503 AUE_UNLINKAT STD|CAPENABLED { 2763 int unlinkat( 2764 int fd, 2765 _In_z_ const char *path, 2766 int flag 2767 ); 2768 } 2769504 AUE_POSIX_OPENPT STD { 2770 int posix_openpt( 2771 int flags 2772 ); 2773 } 2774505 AUE_NULL OBSOL kgssapi 2775506 AUE_JAIL_GET STD { 2776 int jail_get( 2777 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2778 unsigned int iovcnt, 2779 int flags 2780 ); 2781 } 2782507 AUE_JAIL_SET STD { 2783 int jail_set( 2784 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2785 unsigned int iovcnt, 2786 int flags 2787 ); 2788 } 2789508 AUE_JAIL_REMOVE STD { 2790 int jail_remove( 2791 int jid 2792 ); 2793 } 2794509 AUE_CLOSEFROM COMPAT12|CAPENABLED { 2795 int closefrom( 2796 int lowfd 2797 ); 2798 } 2799510 AUE_SEMCTL NOSTD { 2800 int __semctl( 2801 int semid, 2802 int semnum, 2803 int cmd, 2804 _Inout_ _Contains_ptr_ union semun *arg 2805 ); 2806 } 2807511 AUE_MSGCTL NOSTD { 2808 int msgctl( 2809 int msqid, 2810 int cmd, 2811 _Inout_opt_ _Contains_long_ptr_ struct msqid_ds *buf 2812 ); 2813 } 2814512 AUE_SHMCTL NOSTD { 2815 int shmctl( 2816 int shmid, 2817 int cmd, 2818 _Inout_opt_ _Contains_long_ struct shmid_ds *buf 2819 ); 2820 } 2821513 AUE_LPATHCONF STD { 2822 int lpathconf( 2823 _In_z_ const char *path, 2824 int name 2825 ); 2826 } 2827514 AUE_NULL OBSOL cap_new 2828515 AUE_CAP_RIGHTS_GET STD|CAPENABLED { 2829 int __cap_rights_get( 2830 int version, 2831 int fd, 2832 _Out_ cap_rights_t *rightsp 2833 ); 2834 } 2835516 AUE_CAP_ENTER STD|CAPENABLED { 2836 int cap_enter(void); 2837 } 2838517 AUE_CAP_GETMODE STD|CAPENABLED { 2839 int cap_getmode( 2840 _Out_ u_int *modep 2841 ); 2842 } 2843518 AUE_PDFORK STD|CAPENABLED { 2844 int pdfork( 2845 _Out_ int *fdp, 2846 int flags 2847 ); 2848 } 2849519 AUE_PDKILL STD|CAPENABLED { 2850 int pdkill( 2851 int fd, 2852 int signum 2853 ); 2854 } 2855520 AUE_PDGETPID STD|CAPENABLED { 2856 int pdgetpid( 2857 int fd, 2858 _Out_ pid_t *pidp 2859 ); 2860 } 2861521 AUE_NULL RESERVED 2862522 AUE_SELECT STD|CAPENABLED { 2863 int pselect( 2864 int nd, 2865 _Inout_opt_ fd_set *in, 2866 _Inout_opt_ fd_set *ou, 2867 _Inout_opt_ fd_set *ex, 2868 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 2869 _In_opt_ const sigset_t *sm 2870 ); 2871 } 2872523 AUE_GETLOGINCLASS STD|CAPENABLED { 2873 int getloginclass( 2874 _Out_writes_z_(namelen) char *namebuf, 2875 size_t namelen 2876 ); 2877 } 2878524 AUE_SETLOGINCLASS STD { 2879 int setloginclass( 2880 _In_z_ const char *namebuf 2881 ); 2882 } 2883525 AUE_NULL STD { 2884 int rctl_get_racct( 2885 _In_reads_bytes_(inbuflen) const void *inbufp, 2886 size_t inbuflen, 2887 _Out_writes_bytes_(outbuflen) void *outbufp, 2888 size_t outbuflen 2889 ); 2890 } 2891526 AUE_NULL STD { 2892 int rctl_get_rules( 2893 _In_reads_bytes_(inbuflen) const void *inbufp, 2894 size_t inbuflen, 2895 _Out_writes_bytes_(outbuflen) void *outbufp, 2896 size_t outbuflen 2897 ); 2898 } 2899527 AUE_NULL STD { 2900 int rctl_get_limits( 2901 _In_reads_bytes_(inbuflen) const void *inbufp, 2902 size_t inbuflen, 2903 _Out_writes_bytes_(outbuflen) void *outbufp, 2904 size_t outbuflen 2905 ); 2906 } 2907528 AUE_NULL STD { 2908 int rctl_add_rule( 2909 _In_reads_bytes_(inbuflen) const void *inbufp, 2910 size_t inbuflen, 2911 _Out_writes_bytes_(outbuflen) void *outbufp, 2912 size_t outbuflen 2913 ); 2914 } 2915529 AUE_NULL STD { 2916 int rctl_remove_rule( 2917 _In_reads_bytes_(inbuflen) const void *inbufp, 2918 size_t inbuflen, 2919 _Out_writes_bytes_(outbuflen) void *outbufp, 2920 size_t outbuflen 2921 ); 2922 } 2923530 AUE_POSIX_FALLOCATE STD|CAPENABLED { 2924 int posix_fallocate( 2925 int fd, 2926 off_t offset, 2927 off_t len 2928 ); 2929 } 2930531 AUE_POSIX_FADVISE STD|CAPENABLED { 2931 int posix_fadvise( 2932 int fd, 2933 off_t offset, 2934 off_t len, 2935 int advice 2936 ); 2937 } 2938532 AUE_WAIT6 STD { 2939 int wait6( 2940 idtype_t idtype, 2941 id_t id, 2942 _Out_opt_ int *status, 2943 int options, 2944 _Out_opt_ _Contains_long_ struct __wrusage *wrusage, 2945 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 2946 ); 2947 } 2948533 AUE_CAP_RIGHTS_LIMIT STD|CAPENABLED { 2949 int cap_rights_limit( 2950 int fd, 2951 _In_ cap_rights_t *rightsp 2952 ); 2953 } 2954534 AUE_CAP_IOCTLS_LIMIT STD|CAPENABLED { 2955 int cap_ioctls_limit( 2956 int fd, 2957 _In_reads_(ncmds) const u_long *cmds, 2958 size_t ncmds 2959 ); 2960 } 2961535 AUE_CAP_IOCTLS_GET STD|CAPENABLED { 2962 ssize_t cap_ioctls_get( 2963 int fd, 2964 _Out_writes_(maxcmds) u_long *cmds, 2965 size_t maxcmds 2966 ); 2967 } 2968536 AUE_CAP_FCNTLS_LIMIT STD|CAPENABLED { 2969 int cap_fcntls_limit( 2970 int fd, 2971 uint32_t fcntlrights 2972 ); 2973 } 2974537 AUE_CAP_FCNTLS_GET STD|CAPENABLED { 2975 int cap_fcntls_get( 2976 int fd, 2977 _Out_ uint32_t *fcntlrightsp 2978 ); 2979 } 2980538 AUE_BINDAT STD|CAPENABLED { 2981 int bindat( 2982 int fd, 2983 int s, 2984 _In_reads_bytes_(namelen) const struct sockaddr *name, 2985 __socklen_t namelen 2986 ); 2987 } 2988539 AUE_CONNECTAT STD|CAPENABLED { 2989 int connectat( 2990 int fd, 2991 int s, 2992 _In_reads_bytes_(namelen) const struct sockaddr *name, 2993 __socklen_t namelen 2994 ); 2995 } 2996540 AUE_CHFLAGSAT STD|CAPENABLED { 2997 int chflagsat( 2998 int fd, 2999 _In_z_ const char *path, 3000 u_long flags, 3001 int atflag 3002 ); 3003 } 3004541 AUE_ACCEPT STD|CAPENABLED { 3005 int accept4( 3006 int s, 3007 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 3008 _Inout_opt_ __socklen_t *anamelen, 3009 int flags 3010 ); 3011 } 3012542 AUE_PIPE STD|CAPENABLED { 3013 int pipe2( 3014 _Out_writes_(2) int *fildes, 3015 int flags 3016 ); 3017 } 3018543 AUE_AIO_MLOCK STD { 3019 int aio_mlock( 3020 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 3021 ); 3022 } 3023544 AUE_PROCCTL STD { 3024 int procctl( 3025 idtype_t idtype, 3026 id_t id, 3027 int com, 3028 _In_opt_ void *data 3029 ); 3030 } 3031545 AUE_POLL STD|CAPENABLED { 3032 int ppoll( 3033 _Inout_updates_(nfds) struct pollfd *fds, 3034 u_int nfds, 3035 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 3036 _In_opt_ const sigset_t *set 3037 ); 3038 } 3039546 AUE_FUTIMES STD|CAPENABLED { 3040 int futimens( 3041 int fd, 3042 _In_reads_(2) _Contains_long_timet_ const struct timespec *times 3043 ); 3044 } 3045547 AUE_FUTIMESAT STD|CAPENABLED { 3046 int utimensat( 3047 int fd, 3048 _In_z_ const char *path, 3049 _In_reads_(2) _Contains_long_timet_ const struct timespec *times, 3050 int flag 3051 ); 3052 } 3053548 AUE_NULL OBSOL numa_getaffinity 3054549 AUE_NULL OBSOL numa_setaffinity 3055550 AUE_FSYNC STD|CAPENABLED { 3056 int fdatasync( 3057 int fd 3058 ); 3059 } 3060551 AUE_FSTAT STD|CAPENABLED { 3061 int fstat( 3062 int fd, 3063 _Out_ _Contains_long_timet_ struct stat *sb 3064 ); 3065 } 3066552 AUE_FSTATAT STD|CAPENABLED { 3067 int fstatat( 3068 int fd, 3069 _In_z_ const char *path, 3070 _Out_ _Contains_long_timet_ struct stat *buf, 3071 int flag 3072 ); 3073 } 3074553 AUE_FHSTAT STD { 3075 int fhstat( 3076 _In_ const struct fhandle *u_fhp, 3077 _Out_ _Contains_long_timet_ struct stat *sb 3078 ); 3079 } 3080554 AUE_GETDIRENTRIES STD|CAPENABLED { 3081 ssize_t getdirentries( 3082 int fd, 3083 _Out_writes_bytes_(count) char *buf, 3084 size_t count, 3085 _Out_opt_ off_t *basep 3086 ); 3087 } 3088555 AUE_STATFS STD { 3089 int statfs( 3090 _In_z_ const char *path, 3091 _Out_ struct statfs *buf 3092 ); 3093 } 3094556 AUE_FSTATFS STD|CAPENABLED { 3095 int fstatfs( 3096 int fd, 3097 _Out_ struct statfs *buf 3098 ); 3099 } 3100557 AUE_GETFSSTAT STD { 3101 int getfsstat( 3102 _Out_writes_bytes_opt_(bufsize) struct statfs *buf, 3103 long bufsize, 3104 int mode 3105 ); 3106 } 3107558 AUE_FHSTATFS STD { 3108 int fhstatfs( 3109 _In_ const struct fhandle *u_fhp, 3110 _Out_ struct statfs *buf 3111 ); 3112 } 3113559 AUE_MKNODAT STD|CAPENABLED { 3114 int mknodat( 3115 int fd, 3116 _In_z_ const char *path, 3117 mode_t mode, 3118 dev_t dev 3119 ); 3120 } 3121560 AUE_KEVENT STD|CAPENABLED { 3122 int kevent( 3123 int fd, 3124 _In_reads_opt_(nchanges) _Contains_ptr_ const struct kevent *changelist, 3125 int nchanges, 3126 _Out_writes_opt_(nevents) _Contains_ptr_ struct kevent *eventlist, 3127 int nevents, 3128 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 3129 ); 3130 } 3131561 AUE_NULL STD|CAPENABLED { 3132 int cpuset_getdomain( 3133 cpulevel_t level, 3134 cpuwhich_t which, 3135 id_t id, 3136 size_t domainsetsize, 3137 _Out_writes_bytes_(domainsetsize) domainset_t *mask, 3138 _Out_ int *policy 3139 ); 3140 } 3141562 AUE_NULL STD|CAPENABLED { 3142 int cpuset_setdomain( 3143 cpulevel_t level, 3144 cpuwhich_t which, 3145 id_t id, 3146 size_t domainsetsize, 3147 _In_ domainset_t *mask, 3148 int policy 3149 ); 3150 } 3151563 AUE_NULL STD|CAPENABLED { 3152 int getrandom( 3153 _Out_writes_bytes_(buflen) void *buf, 3154 size_t buflen, 3155 unsigned int flags 3156 ); 3157 } 3158564 AUE_NULL STD { 3159 int getfhat( 3160 int fd, 3161 _In_z_ char *path, 3162 _Out_ struct fhandle *fhp, 3163 int flags 3164 ); 3165 } 3166565 AUE_NULL STD { 3167 int fhlink( 3168 _In_ struct fhandle *fhp, 3169 _In_z_ const char *to 3170 ); 3171 } 3172566 AUE_NULL STD { 3173 int fhlinkat( 3174 _In_ struct fhandle *fhp, 3175 int tofd, 3176 _In_z_ const char *to, 3177 ); 3178 } 3179567 AUE_NULL STD { 3180 int fhreadlink( 3181 _In_ struct fhandle *fhp, 3182 _Out_writes_(bufsize) char *buf, 3183 size_t bufsize 3184 ); 3185 } 3186568 AUE_UNLINKAT STD|CAPENABLED { 3187 int funlinkat( 3188 int dfd, 3189 _In_z_ const char *path, 3190 int fd, 3191 int flag 3192 ); 3193 } 3194569 AUE_NULL STD|CAPENABLED { 3195 ssize_t copy_file_range( 3196 int infd, 3197 _Inout_opt_ off_t *inoffp, 3198 int outfd, 3199 _Inout_opt_ off_t *outoffp, 3200 size_t len, 3201 unsigned int flags 3202 ); 3203 } 3204570 AUE_SYSCTL STD|CAPENABLED { 3205 int __sysctlbyname( 3206 _In_reads_(namelen) const char *name, 3207 size_t namelen, 3208 _Out_writes_bytes_opt_(*oldlenp) void *old, 3209 _Inout_opt_ size_t *oldlenp, 3210 _In_reads_bytes_opt_(newlen) void *new, 3211 size_t newlen 3212 ); 3213 } 3214571 AUE_SHMOPEN STD|CAPENABLED { 3215 int shm_open2( 3216 _In_z_ const char *path, 3217 int flags, 3218 mode_t mode, 3219 int shmflags, 3220 _In_z_ const char *name 3221 ); 3222 } 3223572 AUE_SHMRENAME STD { 3224 int shm_rename( 3225 _In_z_ const char *path_from, 3226 _In_z_ const char *path_to, 3227 int flags 3228 ); 3229 } 3230573 AUE_NULL STD|CAPENABLED { 3231 int sigfastblock( 3232 int cmd, 3233 _Inout_updates_bytes_opt_(4) void *ptr 3234 ); 3235 } 3236574 AUE_REALPATHAT STD { 3237 int __realpathat( 3238 int fd, 3239 _In_z_ const char *path, 3240 _Out_writes_z_(size) char *buf, 3241 size_t size, 3242 int flags 3243 ); 3244 } 3245575 AUE_CLOSERANGE STD|CAPENABLED { 3246 int close_range( 3247 u_int lowfd, 3248 u_int highfd, 3249 int flags 3250 ); 3251 } 3252; 576 is initialised by the krpc code, if present. 3253576 AUE_NULL NOSTD { 3254 int rpctls_syscall( 3255 uint64_t socookie 3256 ); 3257 } 3258577 AUE_SPECIALFD STD|CAPENABLED { 3259 int __specialfd( 3260 int type, 3261 _In_reads_bytes_(len) const void *req, 3262 size_t len 3263 ); 3264 } 3265578 AUE_AIO_WRITEV STD|CAPENABLED { 3266 int aio_writev( 3267 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3268 ); 3269 } 3270579 AUE_AIO_READV STD|CAPENABLED { 3271 int aio_readv( 3272 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3273 ); 3274 } 3275580 AUE_FSPACECTL STD|CAPENABLED { 3276 int fspacectl( 3277 int fd, 3278 int cmd, 3279 _In_ const struct spacectl_range *rqsr, 3280 int flags, 3281 _Out_opt_ struct spacectl_range *rmsr, 3282 ); 3283 } 3284581 AUE_NULL STD|CAPENABLED { 3285 int sched_getcpu(void); 3286 } 3287582 AUE_SWAPOFF STD { 3288 int swapoff( 3289 _In_z_ const char *name, 3290 u_int flags, 3291 ); 3292 } 3293583 AUE_KQUEUE STD|CAPENABLED { 3294 int kqueuex( 3295 u_int flags 3296 ); 3297 } 3298584 AUE_NULL STD|CAPENABLED { 3299 int membarrier( 3300 int cmd, 3301 unsigned flags, 3302 int cpu_id 3303 ); 3304 } 3305585 AUE_TIMERFD STD|CAPENABLED { 3306 int timerfd_create( 3307 int clockid, 3308 int flags 3309 ); 3310 } 3311586 AUE_TIMERFD STD|CAPENABLED { 3312 int timerfd_gettime( 3313 int fd, 3314 _Out_ _Contains_long_timet_ struct itimerspec *curr_value 3315 ); 3316 } 3317587 AUE_TIMERFD STD|CAPENABLED { 3318 int timerfd_settime( 3319 int fd, 3320 int flags, 3321 _In_ _Contains_long_timet_ const struct itimerspec *new_value, 3322 _Out_opt_ _Contains_long_timet_ struct itimerspec *old_value 3323 ); 3324 } 3325588 AUE_NULL STD { 3326 int kcmp( 3327 pid_t pid1, 3328 pid_t pid2, 3329 int type, 3330 uintptr_t idx1, 3331 uintptr_t idx2 3332 ); 3333 } 3334589 AUE_NULL STD|CAPENABLED { 3335 int getrlimitusage( 3336 u_int which, 3337 int flags, 3338 _Out_ rlim_t *res 3339 ); 3340 } 3341590 AUE_NULL STD { 3342 int fchroot( 3343 int fd 3344 ); 3345 } 3346591 AUE_SETCRED STD|CAPENABLED { 3347 int setcred( 3348 u_int flags, 3349 _In_reads_bytes_(size) _Contains_ptr_ const struct setcred *wcred, 3350 size_t size 3351 ); 3352 } 3353592 AUE_NULL STD|CAPENABLED { 3354 int exterrctl( 3355 u_int op, 3356 u_int flags, 3357 _In_reads_bytes_(4) void *ptr 3358 ); 3359 } 3360593 AUE_INOTIFY STD|CAPENABLED { 3361 int inotify_add_watch_at( 3362 int fd, 3363 int dfd, 3364 _In_z_ const char *path, 3365 uint32_t mask 3366 ); 3367 } 3368594 AUE_INOTIFY STD|CAPENABLED { 3369 int inotify_rm_watch( 3370 int fd, 3371 int wd 3372 ); 3373 } 3374 3375; vim: syntax=off 3376