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; 55; To support programmatic generation of both the default ABI and 32-bit compat 56; (freebsd32) we impose a number of restrictions on the types of system calls. 57; For integer types: 58; - Bare int and long are allowed (long is a sign of a bad interface). 59; - Use u_int and u_long rather than "unsigned (int|long)". 60; - size_t is allowed. 61; - typedefs are allowed, but new signed types that vary between 32- and 62; 64-bit ABIs must be added to config.known_abi_flags in 63; sys/tools/syscalls/config.lua so it knows they require handling. 64; - Always-64-bit types other than dev_t, id_t, and off_t must be added to 65; util.is64bitType in sys/tools/syscalls/tools/util.lua. 66; For pointers: 67; - Prefer structs to typedefs so an ABI-specific suffix (e.g., "32") can 68; be prepended (e.g., ucontext_t -> struct ucontext -> struct ucontext32). 69; - Pointers to objects (structs, unions, etc) containing any long, pointer, 70; or time_t arguments need _Contains_ annotations. Such objects should be 71; padded such that all 64-bit types are 64-bit aligned. 72 73; annotations: 74; SAL 2.0 annotations are used to specify how system calls treat 75; arguments that are passed using pointers. There are three basic 76; annotations. 77; 78; _In_ Object pointed to will be read and not modified. 79; _Out_ Object pointed to will be written and not read. 80; _Inout_ Object pointed to will be written and read. 81; 82; These annotations are used alone when the pointer refers to a single 83; object i.e. scalar types, structs, and pointers, and not NULL. Adding 84; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also 85; refer to NULL. 86; 87; For pointers to arrays, additional suffixes are added: 88; 89; _In_z_, _Out_z_, _Inout_z_: 90; for a NUL terminated array e.g. a string. 91; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n): 92; for a NUL terminated array e.g. a string, of known length n bytes. 93; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n): 94; for an array of n elements. 95; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n): 96; for a buffer of n-bytes. 97; 98; In addition to SAL annotations, pointers are annotated to indicate 99; that they point to types that change between ABIs. That means that 100; they contain long, pointer, or time_t types. This is indicated with 101; a _Contains_ annotation followed immediately by one or more of: 102; 103; long_ Object contains a direct (or typedef'd) long value and varies 104; between 32- and 64-bit ABIs. This includes size_t. 105; ptr_ Object contains pointers (or intptr_t) and varies between 106; 32- and 64-bit ABIs. 107; timet_ Object contains a time_t and varies between i386 and other 108; ABIs. 109 110; #include's, #defines's, etc. may be included, and are copied to a 111; limited set of output files. Before the first syscalls, #include lines will 112; be copied and %%ABI_HEADERS%% expanded. Between system call entries, 113; all lines beginning with # will be copied. Caveat Emptor. 114; WARNING: this functionality is deprecated. 115 116#include <sys/param.h> 117#include <sys/sysent.h> 118#include <sys/sysproto.h> 119%%ABI_HEADERS%% 120 1210 AUE_NULL SYSMUX { 122 int syscall( 123 int number, 124 ... 125 ); 126 } 1271 AUE_EXIT STD|CAPENABLED { 128 void exit( 129 int rval 130 ); 131 } 1322 AUE_FORK STD|CAPENABLED { 133 int fork(void); 134 } 1353 AUE_READ STD|CAPENABLED { 136 ssize_t read( 137 int fd, 138 _Out_writes_bytes_(nbyte) void *buf, 139 size_t nbyte 140 ); 141 } 1424 AUE_WRITE STD|CAPENABLED { 143 ssize_t write( 144 int fd, 145 _In_reads_bytes_(nbyte) const void *buf, 146 size_t nbyte 147 ); 148 } 1495 AUE_OPEN_RWTC STD { 150 int open( 151 _In_z_ const char *path, 152 int flags, 153 mode_t mode 154 ); 155 } 156; XXX should be { int open(const char *path, int flags, ...); } 157; but we're not ready for varargs. 1586 AUE_CLOSE STD|CAPENABLED { 159 int close( 160 int fd 161 ); 162 } 1637 AUE_WAIT4 STD|CAPENABLED { 164 int wait4( 165 int pid, 166 _Out_opt_ int *status, 167 int options, 168 _Out_opt_ _Contains_long_timet_ struct rusage *rusage 169 ); 170 } 1718 AUE_CREAT COMPAT { 172 int creat( 173 _In_z_ const char *path, 174 int mode 175 ); 176 } 1779 AUE_LINK STD { 178 int link( 179 _In_z_ const char *path, 180 _In_z_ const char *link 181 ); 182 } 18310 AUE_UNLINK STD { 184 int unlink( 185 _In_z_ const char *path 186 ); 187 } 18811 AUE_NULL OBSOL execv 18912 AUE_CHDIR STD { 190 int chdir( 191 _In_z_ const char *path 192 ); 193 } 19413 AUE_FCHDIR STD { 195 int fchdir( 196 int fd 197 ); 198 } 19914 AUE_MKNOD COMPAT11 { 200 int mknod( 201 _In_z_ const char *path, 202 int mode, 203 uint32_t dev 204 ); 205 } 20615 AUE_CHMOD STD { 207 int chmod( 208 _In_z_ const char *path, 209 mode_t mode 210 ); 211 } 21216 AUE_CHOWN STD { 213 int chown( 214 _In_z_ const char *path, 215 int uid, 216 int gid 217 ); 218 } 21917 AUE_NULL STD|CAPENABLED { 220 void *break( 221 _In_ char *nsize 222 ); 223 } 22418 AUE_GETFSSTAT COMPAT4 { 225 int getfsstat( 226 _Out_writes_bytes_opt_(bufsize) _Contains_long_ struct ostatfs *buf, 227 long bufsize, 228 int mode 229 ); 230 } 23119 AUE_LSEEK COMPAT|CAPENABLED { 232 long lseek( 233 int fd, 234 long offset, 235 int whence 236 ); 237 } 23820 AUE_GETPID STD|CAPENABLED { 239 pid_t getpid(void); 240 } 24121 AUE_MOUNT STD { 242 int mount( 243 _In_z_ const char *type, 244 _In_z_ const char *path, 245 int flags, 246 _In_opt_ void *data 247 ); 248 } 24922 AUE_UMOUNT STD { 250 int unmount( 251 _In_z_ const char *path, 252 int flags 253 ); 254 } 25523 AUE_SETUID STD|CAPENABLED { 256 int setuid( 257 uid_t uid 258 ); 259 } 26024 AUE_GETUID STD|CAPENABLED { 261 uid_t getuid(void); 262 } 26325 AUE_GETEUID STD|CAPENABLED { 264 uid_t geteuid(void); 265 } 26626 AUE_PTRACE STD { 267 int ptrace( 268 int req, 269 pid_t pid, 270 _Inout_opt_ _Contains_long_ptr_ caddr_t addr, 271 int data 272 ); 273 } 27427 AUE_RECVMSG STD|CAPENABLED { 275 ssize_t recvmsg( 276 int s, 277 _Inout_ _Contains_ptr_ struct msghdr *msg, 278 int flags 279 ); 280 } 28128 AUE_SENDMSG STD|CAPENABLED { 282 ssize_t sendmsg( 283 int s, 284 _In_ _Contains_ptr_ const struct msghdr *msg, 285 int flags 286 ); 287 } 28829 AUE_RECVFROM STD|CAPENABLED { 289 ssize_t recvfrom( 290 int s, 291 _Out_writes_bytes_(len) void *buf, 292 size_t len, 293 int flags, 294 _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from, 295 _Inout_opt_ __socklen_t *fromlenaddr 296 ); 297 } 29830 AUE_ACCEPT STD|CAPENABLED { 299 int accept( 300 int s, 301 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 302 _Inout_opt_ __socklen_t *anamelen 303 ); 304 } 30531 AUE_GETPEERNAME STD|CAPENABLED { 306 int getpeername( 307 int fdes, 308 _Out_writes_bytes_(*alen) struct sockaddr *asa, 309 _Inout_opt_ __socklen_t *alen 310 ); 311 } 31232 AUE_GETSOCKNAME STD|CAPENABLED { 313 int getsockname( 314 int fdes, 315 _Out_writes_bytes_(*alen) struct sockaddr *asa, 316 _Inout_ __socklen_t *alen 317 ); 318 } 31933 AUE_ACCESS STD { 320 int access( 321 _In_z_ const char *path, 322 int amode 323 ); 324 } 32534 AUE_CHFLAGS STD { 326 int chflags( 327 _In_z_ const char *path, 328 u_long flags 329 ); 330 } 33135 AUE_FCHFLAGS STD|CAPENABLED { 332 int fchflags( 333 int fd, 334 u_long flags 335 ); 336 } 33736 AUE_SYNC STD|CAPENABLED { 338 int sync(void); 339 } 34037 AUE_KILL STD|CAPENABLED { 341 int kill( 342 int pid, 343 int signum 344 ); 345 } 34638 AUE_STAT COMPAT { 347 int stat( 348 _In_z_ const char *path, 349 _Out_ _Contains_timet_ struct ostat *ub 350 ); 351 } 35239 AUE_GETPPID STD|CAPENABLED { 353 pid_t getppid(void); 354 } 35540 AUE_LSTAT COMPAT { 356 int lstat( 357 _In_z_ const char *path, 358 _Out_ _Contains_timet_ struct ostat *ub 359 ); 360 } 36141 AUE_DUP STD|CAPENABLED { 362 int dup( 363 u_int fd 364 ); 365 } 36642 AUE_PIPE COMPAT10|CAPENABLED { 367 int pipe(void); 368 } 36943 AUE_GETEGID STD|CAPENABLED { 370 gid_t getegid(void); 371 } 37244 AUE_PROFILE STD|CAPENABLED { 373 int profil( 374 _Out_writes_bytes_(size) char *samples, 375 size_t size, 376 size_t offset, 377 u_int scale 378 ); 379 } 38045 AUE_KTRACE STD { 381 int ktrace( 382 _In_z_ const char *fname, 383 int ops, 384 int facs, 385 int pid 386 ); 387 } 38846 AUE_SIGACTION COMPAT|CAPENABLED { 389 int sigaction( 390 int signum, 391 _In_opt_ _Contains_ptr_ struct osigaction *nsa, 392 _Out_opt_ _Contains_ptr_ struct osigaction *osa 393 ); 394 } 39547 AUE_GETGID STD|CAPENABLED { 396 gid_t getgid(void); 397 } 39848 AUE_SIGPROCMASK COMPAT|CAPENABLED { 399 int sigprocmask( 400 int how, 401 osigset_t mask 402 ); 403 } 404; XXX note nonstandard (bogus) calling convention - the libc stub passes 405; us the mask, not a pointer to it, and we return the old mask as the 406; (int) return value. 40749 AUE_GETLOGIN STD|CAPENABLED { 408 int getlogin( 409 _Out_writes_z_(namelen) char *namebuf, 410 u_int namelen 411 ); 412 } 41350 AUE_SETLOGIN STD { 414 int setlogin( 415 _In_z_ const char *namebuf 416 ); 417 } 41851 AUE_ACCT STD { 419 int acct( 420 _In_z_ const char *path 421 ); 422 } 42352 AUE_SIGPENDING COMPAT|CAPENABLED { 424 int sigpending(void); 425 } 42653 AUE_SIGALTSTACK STD|CAPENABLED { 427 int sigaltstack( 428 _In_opt_ _Contains_long_ptr_ const struct sigaltstack *ss, 429 _Out_opt_ _Contains_long_ptr_ struct sigaltstack *oss 430 ); 431 } 43254 AUE_IOCTL STD|CAPENABLED { 433 int ioctl( 434 int fd, 435 u_long com, 436 _Inout_opt_ _Contains_long_ptr_ char *data 437 ); 438 } 43955 AUE_REBOOT STD { 440 int reboot( 441 int opt 442 ); 443 } 44456 AUE_REVOKE STD { 445 int revoke( 446 _In_z_ const char *path 447 ); 448 } 44957 AUE_SYMLINK STD { 450 int symlink( 451 _In_z_ const char *path, 452 _In_z_ const char *link 453 ); 454 } 45558 AUE_READLINK STD { 456 ssize_t readlink( 457 _In_z_ const char *path, 458 _Out_writes_z_(count) char *buf, 459 size_t count 460 ); 461 } 46259 AUE_EXECVE STD { 463 int execve( 464 _In_z_ const char *fname, 465 _In_z_ char **argv, 466 _In_z_ char **envv 467 ); 468 } 46960 AUE_UMASK STD|CAPENABLED { 470 mode_t umask( 471 mode_t newmask 472 ); 473 } 47461 AUE_CHROOT STD { 475 int chroot( 476 _In_z_ const char *path 477 ); 478 } 47962 AUE_FSTAT COMPAT|CAPENABLED { 480 int fstat( 481 int fd, 482 _Out_ _Contains_timet_ struct ostat *sb 483 ); 484 } 48563 AUE_NULL COMPAT { 486 int getkerninfo( 487 int op, 488 _Out_writes_bytes_opt(*size) char *where, 489 _Inout_opt_ size_t *size, 490 int arg 491 ); 492 } 49364 AUE_NULL COMPAT|CAPENABLED { 494 int getpagesize(void); 495 } 49665 AUE_MSYNC STD|CAPENABLED { 497 int msync( 498 _In_ void *addr, 499 size_t len, 500 int flags 501 ); 502 } 50366 AUE_VFORK STD|CAPENABLED { 504 int vfork(void); 505 } 50667 AUE_NULL OBSOL vread 50768 AUE_NULL OBSOL vwrite 50869 AUE_NULL OBSOL sbrk 50970 AUE_NULL OBSOL sstk 51071 AUE_MMAP COMPAT|CAPENABLED { 511 void *mmap( 512 _In_ void *addr, 513 int len, 514 int prot, 515 int flags, 516 int fd, 517 long pos 518 ); 519 } 52072 AUE_O_VADVISE COMPAT11 { 521 int vadvise( 522 int anom 523 ); 524 } 52573 AUE_MUNMAP STD|CAPENABLED { 526 int munmap( 527 _In_ void *addr, 528 size_t len 529 ); 530 } 53174 AUE_MPROTECT STD|CAPENABLED { 532 int mprotect( 533 _In_ void *addr, 534 size_t len, 535 int prot 536 ); 537 } 53875 AUE_MADVISE STD|CAPENABLED { 539 int madvise( 540 _In_ void *addr, 541 size_t len, 542 int behav 543 ); 544 } 54576 AUE_NULL OBSOL vhangup 54677 AUE_NULL OBSOL vlimit 54778 AUE_MINCORE STD|CAPENABLED { 548 int mincore( 549 _In_ const void *addr, 550 size_t len, 551 _Out_writes_bytes_(len/PAGE_SIZE) char *vec 552 ); 553 } 55479 AUE_GETGROUPS STD|CAPENABLED { 555 int getgroups( 556 int gidsetsize, 557 _Out_writes_opt_(gidsetsize) gid_t *gidset 558 ); 559 } 56080 AUE_SETGROUPS STD { 561 int setgroups( 562 int gidsetsize, 563 _In_reads_(gidsetsize) const gid_t *gidset 564 ); 565 } 56681 AUE_GETPGRP STD|CAPENABLED { 567 int getpgrp(void); 568 } 56982 AUE_SETPGRP STD { 570 int setpgid( 571 int pid, 572 int pgid 573 ); 574 } 57583 AUE_SETITIMER STD|CAPENABLED { 576 int setitimer( 577 int which, 578 _In_ _Contains_timet_ const struct itimerval *itv, 579 _Out_opt_ _Contains_timet_ struct itimerval *oitv 580 ); 581 } 58284 AUE_WAIT4 COMPAT { 583 int wait(void); 584 } 58585 AUE_SWAPON STD { 586 int swapon( 587 _In_z_ const char *name 588 ); 589 } 59086 AUE_GETITIMER STD|CAPENABLED { 591 int getitimer( 592 int which, 593 _Out_ _Contains_timet_ struct itimerval *itv 594 ); 595 } 59687 AUE_SYSCTL COMPAT|CAPENABLED { 597 int gethostname( 598 _Out_writes_z_(len) char *hostname, 599 u_int len 600 ); 601 } 60288 AUE_SYSCTL COMPAT { 603 int sethostname( 604 _In_reads_z_(len) char *hostname, 605 u_int len 606 ); 607 } 60889 AUE_GETDTABLESIZE STD|CAPENABLED { 609 int getdtablesize(void); 610 } 61190 AUE_DUP2 STD|CAPENABLED { 612 int dup2( 613 u_int from, 614 u_int to 615 ); 616 } 61791 AUE_NULL RESERVED 61892 AUE_FCNTL STD|CAPENABLED { 619 int fcntl( 620 int fd, 621 int cmd, 622 intptr_t arg 623 ); 624 } 625; XXX should be { int fcntl(int fd, int cmd, ...); } 626; but we're not ready for varargs. 62793 AUE_SELECT STD|CAPENABLED { 628 int select( 629 int nd, 630 _Inout_opt_ fd_set *in, 631 _Inout_opt_ fd_set *ou, 632 _Inout_opt_ fd_set *ex, 633 _In_opt_ _Contains_long_timet_ struct timeval *tv 634 ); 635 } 63694 AUE_NULL RESERVED 63795 AUE_FSYNC STD|CAPENABLED { 638 int fsync( 639 int fd 640 ); 641 } 64296 AUE_SETPRIORITY STD|CAPENABLED { 643 int setpriority( 644 int which, 645 int who, 646 int prio 647 ); 648 } 64997 AUE_SOCKET STD|CAPENABLED { 650 int socket( 651 int domain, 652 int type, 653 int protocol 654 ); 655 } 65698 AUE_CONNECT STD { 657 int connect( 658 int s, 659 _In_reads_bytes_(namelen) const struct sockaddr *name, 660 __socklen_t namelen 661 ); 662 } 66399 AUE_ACCEPT COMPAT|CAPENABLED { 664 int accept( 665 int s, 666 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 667 __socklen_t *anamelen 668 ); 669 } 670100 AUE_GETPRIORITY STD|CAPENABLED { 671 int getpriority( 672 int which, 673 int who 674 ); 675 } 676101 AUE_SEND COMPAT|CAPENABLED { 677 int send( 678 int s, 679 _In_reads_bytes_(len) const void *buf, 680 int len, 681 int flags 682 ); 683 } 684102 AUE_RECV COMPAT|CAPENABLED { 685 int recv( 686 int s, 687 _Out_writes_bytes_(len) void *buf, 688 int len, 689 int flags 690 ); 691 } 692103 AUE_SIGRETURN COMPAT|CAPENABLED { 693 int sigreturn( 694 _In_ struct osigcontext *sigcntxp 695 ); 696 } 697104 AUE_BIND STD { 698 int bind( 699 int s, 700 _In_reads_bytes_(namelen) const struct sockaddr *name, 701 __socklen_t namelen 702 ); 703 } 704105 AUE_SETSOCKOPT STD|CAPENABLED { 705 int setsockopt( 706 int s, 707 int level, 708 int name, 709 _In_reads_bytes_opt_(valsize) const void *val, 710 __socklen_t valsize 711 ); 712 } 713106 AUE_LISTEN STD|CAPENABLED { 714 int listen( 715 int s, 716 int backlog 717 ); 718 } 719107 AUE_NULL OBSOL vtimes 720108 AUE_NULL COMPAT|CAPENABLED { 721 int sigvec( 722 int signum, 723 _In_opt_ _Contains_ptr_ struct sigvec *nsv, 724 _Out_opt_ _Contains_ptr_ struct sigvec *osv 725 ); 726 } 727109 AUE_NULL COMPAT|CAPENABLED { 728 int sigblock( 729 int mask 730 ); 731 } 732110 AUE_NULL COMPAT|CAPENABLED { 733 int sigsetmask( 734 int mask 735 ); 736 } 737111 AUE_NULL COMPAT|CAPENABLED { 738 int sigsuspend( 739 osigset_t mask 740 ); 741 } 742; XXX note nonstandard (bogus) calling convention - the libc stub passes 743; us the mask, not a pointer to it. 744112 AUE_NULL COMPAT|CAPENABLED { 745 int sigstack( 746 _In_opt_ _Contains_ptr_ struct sigstack *nss, 747 _Out_opt_ _Contains_ptr_ struct sigstack *oss 748 ); 749 } 750113 AUE_RECVMSG COMPAT|CAPENABLED { 751 int recvmsg( 752 int s, 753 _Inout_ _Contains_ptr_ struct omsghdr *msg, 754 int flags 755 ); 756 } 757114 AUE_SENDMSG COMPAT|CAPENABLED { 758 int sendmsg( 759 int s, 760 _In_ _Contains_ptr_ const struct omsghdr *msg, 761 int flags 762 ); 763 } 764115 AUE_NULL OBSOL vtrace 765116 AUE_GETTIMEOFDAY STD|CAPENABLED { 766 int gettimeofday( 767 _Out_ _Contains_long_timet_ struct timeval *tp, 768 _Out_opt_ struct timezone *tzp 769 ); 770 } 771117 AUE_GETRUSAGE STD|CAPENABLED { 772 int getrusage( 773 int who, 774 _Out_ _Contains_long_ struct rusage *rusage 775 ); 776 } 777118 AUE_GETSOCKOPT STD|CAPENABLED { 778 int getsockopt( 779 int s, 780 int level, 781 int name, 782 _Out_writes_bytes_opt_(*avalsize) void *val, 783 _Inout_ __socklen_t *avalsize 784 ); 785 } 786119 AUE_NULL RESERVED 787120 AUE_READV STD|CAPENABLED { 788 ssize_t readv( 789 int fd, 790 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 791 u_int iovcnt 792 ); 793 } 794121 AUE_WRITEV STD|CAPENABLED { 795 ssize_t writev( 796 int fd, 797 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 798 u_int iovcnt 799 ); 800 } 801122 AUE_SETTIMEOFDAY STD { 802 int settimeofday( 803 _In_ _Contains_long_timet_ const struct timeval *tv, 804 _In_opt_ const struct timezone *tzp 805 ); 806 } 807123 AUE_FCHOWN STD|CAPENABLED { 808 int fchown( 809 int fd, 810 int uid, 811 int gid 812 ); 813 } 814124 AUE_FCHMOD STD|CAPENABLED { 815 int fchmod( 816 int fd, 817 mode_t mode 818 ); 819 } 820125 AUE_RECVFROM COMPAT|CAPENABLED { 821 int recvfrom( 822 int s, 823 _Out_writes_(len) void *buf, 824 size_t len, 825 int flags, 826 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 827 _Inout_ __socklen_t *fromlenaddr 828 ); 829 } 830126 AUE_SETREUID STD|CAPENABLED { 831 int setreuid( 832 int ruid, 833 int euid 834 ); 835 } 836127 AUE_SETREGID STD|CAPENABLED { 837 int setregid( 838 int rgid, 839 int egid 840 ); 841 } 842128 AUE_RENAME STD { 843 int rename( 844 _In_z_ const char *from, 845 _In_z_ const char *to 846 ); 847 } 848129 AUE_TRUNCATE COMPAT { 849 int truncate( 850 _In_z_ const char *path, 851 long length 852 ); 853 } 854130 AUE_FTRUNCATE COMPAT|CAPENABLED { 855 int ftruncate( 856 int fd, 857 long length 858 ); 859 } 860131 AUE_FLOCK STD|CAPENABLED { 861 int flock( 862 int fd, 863 int how 864 ); 865 } 866132 AUE_MKFIFO STD { 867 int mkfifo( 868 _In_z_ const char *path, 869 mode_t mode 870 ); 871 } 872133 AUE_SENDTO STD|CAPENABLED { 873 ssize_t sendto( 874 int s, 875 _In_reads_bytes_(len) const void *buf, 876 size_t len, 877 int flags, 878 _In_reads_bytes_opt_(tolen) const struct sockaddr *to, 879 __socklen_t tolen 880 ); 881 } 882134 AUE_SHUTDOWN STD|CAPENABLED { 883 int shutdown( 884 int s, 885 int how 886 ); 887 } 888135 AUE_SOCKETPAIR STD|CAPENABLED { 889 int socketpair( 890 int domain, 891 int type, 892 int protocol, 893 _Out_writes_(2) int *rsv 894 ); 895 } 896136 AUE_MKDIR STD { 897 int mkdir( 898 _In_z_ const char *path, 899 mode_t mode 900 ); 901 } 902137 AUE_RMDIR STD { 903 int rmdir( 904 _In_z_ const char *path 905 ); 906 } 907138 AUE_UTIMES STD { 908 int utimes( 909 _In_z_ const char *path, 910 _In_ _Contains_long_timet_ const struct timeval *tptr 911 ); 912 } 913139 AUE_NULL OBSOL sigreturn 914140 AUE_ADJTIME STD { 915 int adjtime( 916 _In_ _Contains_long_timet_ const struct timeval *delta, 917 _Out_opt_ _Contains_long_timet_ struct timeval *olddelta 918 ); 919 } 920141 AUE_GETPEERNAME COMPAT|CAPENABLED { 921 int getpeername( 922 int fdes, 923 _Out_writes_bytes_(*alen) struct sockaddr *asa, 924 _Inout_opt_ __socklen_t *alen 925 ); 926 } 927142 AUE_SYSCTL COMPAT|CAPENABLED { 928 long gethostid(void); 929 } 930143 AUE_SYSCTL COMPAT { 931 int sethostid( 932 long hostid 933 ); 934 } 935144 AUE_GETRLIMIT COMPAT|CAPENABLED { 936 int getrlimit( 937 u_int which, 938 _Out_ struct orlimit *rlp 939 ); 940 } 941145 AUE_SETRLIMIT COMPAT|CAPENABLED { 942 int setrlimit( 943 u_int which, 944 _Out_ struct orlimit *rlp 945 ); 946 } 947146 AUE_KILLPG COMPAT { 948 int killpg( 949 int pgid, 950 int signum 951 ); 952 } 953147 AUE_SETSID STD|CAPENABLED { 954 int setsid(void); 955 } 956148 AUE_QUOTACTL STD { 957 int quotactl( 958 _In_z_ const char *path, 959 int cmd, 960 int uid, 961 _In_ void *arg 962 ); 963 } 964149 AUE_O_QUOTA COMPAT { 965 int quota(void); 966 } 967150 AUE_GETSOCKNAME COMPAT|CAPENABLED { 968 int getsockname( 969 int fdes, 970 _Out_writes_bytes_(*alen) struct sockaddr *asa, 971 _Inout_ __socklen_t *alen 972 ); 973 } 974151-153 AUE_NULL RESERVED 975; 154 is initialised by the NLM code, if present. 976154 AUE_NULL NOSTD { 977 int nlm_syscall( 978 int debug_level, 979 int grace_period, 980 int addr_count, 981 _In_reads_(addr_count) char **addrs 982 ); 983 } 984; 155 is initialized by the NFS code, if present. 985155 AUE_NFS_SVC NOSTD { 986 int nfssvc( 987 int flag, 988 _In_ void *argp 989 ); 990 } 991156 AUE_GETDIRENTRIES COMPAT|CAPENABLED { 992 int getdirentries( 993 int fd, 994 _Out_writes_bytes_(count) char *buf, 995 u_int count, 996 _Out_opt_ long *basep 997 ); 998 } 999157 AUE_STATFS COMPAT4 { 1000 int statfs( 1001 _In_z_ const char *path, 1002 _Out_ _Contains_long_ struct ostatfs *buf 1003 ); 1004 } 1005158 AUE_FSTATFS COMPAT4|CAPENABLED { 1006 int fstatfs( 1007 int fd, 1008 _Out_ _Contains_long_ struct ostatfs *buf 1009 ); 1010 } 1011159 AUE_NULL RESERVED 1012160 AUE_LGETFH STD { 1013 int lgetfh( 1014 _In_z_ const char *fname, 1015 _Out_ struct fhandle *fhp 1016 ); 1017 } 1018161 AUE_NFS_GETFH STD { 1019 int getfh( 1020 _In_z_ const char *fname, 1021 _Out_ struct fhandle *fhp 1022 ); 1023 } 1024162 AUE_SYSCTL COMPAT4|CAPENABLED { 1025 int getdomainname( 1026 _Out_writes_z_(len) char *domainname, 1027 int len 1028 ); 1029 } 1030163 AUE_SYSCTL COMPAT4 { 1031 int setdomainname( 1032 _In_reads_z_(len) char *domainname, 1033 int len 1034 ); 1035 } 1036164 AUE_NULL COMPAT4 { 1037 int uname( 1038 _Out_ struct utsname *name 1039 ); 1040 } 1041165 AUE_SYSARCH STD|CAPENABLED { 1042 int sysarch( 1043 int op, 1044 _In_z_ char *parms 1045 ); 1046 } 1047166 AUE_RTPRIO STD|CAPENABLED { 1048 int rtprio( 1049 int function, 1050 pid_t pid, 1051 _Inout_ struct rtprio *rtp 1052 ); 1053 } 1054167-168 AUE_NULL RESERVED 1055169 AUE_SEMSYS NOSTD { 1056 int semsys( 1057 int which, 1058 int a2, 1059 int a3, 1060 int a4, 1061 int a5 1062 ); 1063 } 1064; XXX should be { int semsys(int which, ...); } 1065170 AUE_MSGSYS NOSTD { 1066 int msgsys( 1067 int which, 1068 int a2, 1069 int a3, 1070 int a4, 1071 int a5, 1072 int a6 1073 ); 1074 } 1075; XXX should be { int msgsys(int which, ...); } 1076171 AUE_SHMSYS NOSTD { 1077 int shmsys( 1078 int which, 1079 int a2, 1080 int a3, 1081 int a4 1082 ); 1083 } 1084; XXX should be { int shmsys(int which, ...); } 1085172 AUE_NULL RESERVED 1086173 AUE_PREAD COMPAT6|CAPENABLED { 1087 ssize_t pread( 1088 int fd, 1089 _Out_writes_bytes_(nbyte) void *buf, 1090 size_t nbyte, 1091 int pad, 1092 off_t offset 1093 ); 1094 } 1095174 AUE_PWRITE COMPAT6|CAPENABLED { 1096 ssize_t pwrite( 1097 int fd, 1098 _In_reads_bytes_(nbyte) const void *buf, 1099 size_t nbyte, 1100 int pad, 1101 off_t offset 1102 ); 1103 } 1104175 AUE_SETFIB STD { 1105 int setfib( 1106 int fibnum 1107 ); 1108 } 1109176 AUE_NTP_ADJTIME STD { 1110 int ntp_adjtime( 1111 _Inout_ _Contains_long_ struct timex *tp 1112 ); 1113 } 1114177-180 AUE_NULL RESERVED 1115181 AUE_SETGID STD|CAPENABLED { 1116 int setgid( 1117 gid_t gid 1118 ); 1119 } 1120182 AUE_SETEGID STD|CAPENABLED { 1121 int setegid( 1122 gid_t egid 1123 ); 1124 } 1125183 AUE_SETEUID STD|CAPENABLED { 1126 int seteuid( 1127 uid_t euid 1128 ); 1129 } 1130184 AUE_NULL OBSOL lfs_bmapv 1131185 AUE_NULL OBSOL lfs_markv 1132186 AUE_NULL OBSOL lfs_segclean 1133187 AUE_NULL OBSOL lfs_segwait 1134188 AUE_STAT COMPAT11 { 1135 int stat( 1136 _In_z_ const char *path, 1137 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1138 ); 1139 } 1140189 AUE_FSTAT COMPAT11|CAPENABLED { 1141 int fstat( 1142 int fd, 1143 _Out_ _Contains_timet_ struct freebsd11_stat *sb 1144 ); 1145 } 1146190 AUE_LSTAT COMPAT11 { 1147 int lstat( 1148 _In_z_ const char *path, 1149 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1150 ); 1151 } 1152191 AUE_PATHCONF STD { 1153 int pathconf( 1154 _In_z_ const char *path, 1155 int name 1156 ); 1157 } 1158192 AUE_FPATHCONF STD|CAPENABLED { 1159 int fpathconf( 1160 int fd, 1161 int name 1162 ); 1163 } 1164193 AUE_NULL RESERVED 1165194 AUE_GETRLIMIT STD|CAPENABLED { 1166 int getrlimit( 1167 u_int which, 1168 _Out_ struct rlimit *rlp 1169 ); 1170 } 1171195 AUE_SETRLIMIT STD|CAPENABLED { 1172 int setrlimit( 1173 u_int which, 1174 _In_ struct rlimit *rlp 1175 ); 1176 } 1177196 AUE_GETDIRENTRIES COMPAT11|CAPENABLED { 1178 int getdirentries( 1179 int fd, 1180 _Out_writes_bytes_(count) char *buf, 1181 u_int count, 1182 _Out_opt_ long *basep 1183 ); 1184 } 1185197 AUE_MMAP COMPAT6|CAPENABLED { 1186 void *mmap( 1187 _In_ void *addr, 1188 size_t len, 1189 int prot, 1190 int flags, 1191 int fd, 1192 int pad, 1193 off_t pos 1194 ); 1195 } 1196198 AUE_NULL SYSMUX { 1197 int __syscall( 1198 int64_t number, 1199 ... 1200 ); 1201 } 1202199 AUE_LSEEK COMPAT6|CAPENABLED { 1203 off_t lseek( 1204 int fd, 1205 int pad, 1206 off_t offset, 1207 int whence 1208 ); 1209 } 1210200 AUE_TRUNCATE COMPAT6 { 1211 int truncate( 1212 _In_z_ const char *path, 1213 int pad, 1214 off_t length 1215 ); 1216 } 1217201 AUE_FTRUNCATE COMPAT6|CAPENABLED { 1218 int ftruncate( 1219 int fd, 1220 int pad, 1221 off_t length 1222 ); 1223 } 1224202 AUE_SYSCTL STD|CAPENABLED { 1225 int __sysctl( 1226 _In_reads_(namelen) int *name, 1227 u_int namelen, 1228 _Out_writes_bytes_opt_(*oldlenp) void *old, 1229 _Inout_opt_ size_t *oldlenp, 1230 _In_reads_bytes_opt_(newlen) const void *new, 1231 size_t newlen 1232 ); 1233 } 1234203 AUE_MLOCK STD|CAPENABLED { 1235 int mlock( 1236 _In_ const void *addr, 1237 size_t len 1238 ); 1239 } 1240204 AUE_MUNLOCK STD|CAPENABLED { 1241 int munlock( 1242 _In_ const void *addr, 1243 size_t len 1244 ); 1245 } 1246205 AUE_UNDELETE STD { 1247 int undelete( 1248 _In_z_ const char *path 1249 ); 1250 } 1251206 AUE_FUTIMES STD|CAPENABLED { 1252 int futimes( 1253 int fd, 1254 _In_reads_(2) _Contains_long_timet_ const struct timeval *tptr 1255 ); 1256 } 1257207 AUE_GETPGID STD|CAPENABLED { 1258 int getpgid( 1259 pid_t pid 1260 ); 1261 } 1262208 AUE_NULL RESERVED 1263209 AUE_POLL STD|CAPENABLED { 1264 int poll( 1265 _Inout_updates_(nfds) struct pollfd *fds, 1266 u_int nfds, 1267 int timeout 1268 ); 1269 } 1270; 1271; The following are reserved for loadable syscalls 1272; 1273210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1274211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1275212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1276213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1277214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1278215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1279216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1280217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1281218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1282219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1283220 AUE_SEMCTL COMPAT7|NOSTD { 1284 int __semctl( 1285 int semid, 1286 int semnum, 1287 int cmd, 1288 _Contains_ptr_ union semun_old *arg 1289 ); 1290 } 1291221 AUE_SEMGET NOSTD { 1292 int semget( 1293 key_t key, 1294 int nsems, 1295 int semflg 1296 ); 1297 } 1298222 AUE_SEMOP NOSTD { 1299 int semop( 1300 int semid, 1301 _In_reads_(nsops) struct sembuf *sops, 1302 size_t nsops 1303 ); 1304 } 1305223 AUE_NULL OBSOL semconfig 1306224 AUE_MSGCTL COMPAT7|NOSTD { 1307 int msgctl( 1308 int msqid, 1309 int cmd, 1310 _Contains_long_ptr_timet_ struct msqid_ds_old *buf 1311 ); 1312 } 1313225 AUE_MSGGET NOSTD { 1314 int msgget( 1315 key_t key, 1316 int msgflg 1317 ); 1318 } 1319226 AUE_MSGSND NOSTD { 1320 int msgsnd( 1321 int msqid, 1322 _In_reads_bytes_(msgsz) _Contains_long_ const void *msgp, 1323 size_t msgsz, 1324 int msgflg 1325 ); 1326 } 1327227 AUE_MSGRCV NOSTD { 1328 ssize_t msgrcv( 1329 int msqid, 1330 _Out_writes_bytes_(msgsz) _Contains_long_ void *msgp, 1331 size_t msgsz, 1332 long msgtyp, 1333 int msgflg 1334 ); 1335 } 1336228 AUE_SHMAT NOSTD { 1337 void *shmat( 1338 int shmid, 1339 _In_ const void *shmaddr, 1340 int shmflg 1341 ); 1342 } 1343229 AUE_SHMCTL COMPAT7|NOSTD { 1344 int shmctl( 1345 int shmid, 1346 int cmd, 1347 _Inout_opt_ _Contains_long_ struct shmid_ds_old *buf 1348 ); 1349 } 1350230 AUE_SHMDT NOSTD { 1351 int shmdt( 1352 _In_ const void *shmaddr 1353 ); 1354 } 1355231 AUE_SHMGET NOSTD { 1356 int shmget( 1357 key_t key, 1358 size_t size, 1359 int shmflg 1360 ); 1361 } 1362232 AUE_NULL STD|CAPENABLED { 1363 int clock_gettime( 1364 clockid_t clock_id, 1365 _Out_ _Contains_long_timet_ struct timespec *tp 1366 ); 1367 } 1368233 AUE_CLOCK_SETTIME STD { 1369 int clock_settime( 1370 clockid_t clock_id, 1371 _In_ _Contains_long_timet_ const struct timespec *tp 1372 ); 1373 } 1374234 AUE_NULL STD|CAPENABLED { 1375 int clock_getres( 1376 clockid_t clock_id, 1377 _Out_ _Contains_long_timet_ struct timespec *tp 1378 ); 1379 } 1380235 AUE_NULL STD|CAPENABLED { 1381 int ktimer_create( 1382 clockid_t clock_id, 1383 _In_ _Contains_long_ptr_ struct sigevent *evp, 1384 _Out_ int *timerid 1385 ); 1386 } 1387236 AUE_NULL STD|CAPENABLED { 1388 int ktimer_delete( 1389 int timerid 1390 ); 1391 } 1392237 AUE_NULL STD|CAPENABLED { 1393 int ktimer_settime( 1394 int timerid, 1395 int flags, 1396 _In_ _Contains_long_timet_ const struct itimerspec *value, 1397 _Out_opt_ _Contains_long_timet_ struct itimerspec *ovalue 1398 ); 1399 } 1400238 AUE_NULL STD|CAPENABLED { 1401 int ktimer_gettime( 1402 int timerid, 1403 _Out_ _Contains_long_timet_ struct itimerspec *value 1404 ); 1405 } 1406239 AUE_NULL STD|CAPENABLED { 1407 int ktimer_getoverrun( 1408 int timerid 1409 ); 1410 } 1411240 AUE_NULL STD|CAPENABLED { 1412 int nanosleep( 1413 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1414 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1415 ); 1416 } 1417241 AUE_NULL STD { 1418 int ffclock_getcounter( 1419 _Out_ ffcounter *ffcount 1420 ); 1421 } 1422242 AUE_NULL STD { 1423 int ffclock_setestimate( 1424 _In_ _Contains_timet_ struct ffclock_estimate *cest 1425 ); 1426 } 1427243 AUE_NULL STD { 1428 int ffclock_getestimate( 1429 _Out_ _Contains_timet_ struct ffclock_estimate *cest 1430 ); 1431 } 1432244 AUE_NULL STD { 1433 int clock_nanosleep( 1434 clockid_t clock_id, 1435 int flags, 1436 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1437 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1438 ); 1439 } 1440245-246 AUE_NULL RESERVED 1441247 AUE_NULL STD { 1442 int clock_getcpuclockid2( 1443 id_t id, 1444 int which, 1445 _Out_ clockid_t *clock_id 1446 ); 1447 } 1448248 AUE_NULL STD|CAPENABLED { 1449 int ntp_gettime( 1450 _Out_ _Contains_long_timet_ struct ntptimeval *ntvp 1451 ); 1452 } 1453249 AUE_NULL RESERVED 1454250 AUE_MINHERIT STD|CAPENABLED { 1455 int minherit( 1456 _In_ void *addr, 1457 size_t len, 1458 int inherit 1459 ); 1460 } 1461251 AUE_RFORK STD|CAPENABLED { 1462 int rfork( 1463 int flags 1464 ); 1465 } 1466252 AUE_POLL OBSOL openbsd_poll 1467253 AUE_ISSETUGID STD|CAPENABLED { 1468 int issetugid(void); 1469 } 1470254 AUE_LCHOWN STD { 1471 int lchown( 1472 _In_z_ const char *path, 1473 int uid, 1474 int gid 1475 ); 1476 } 1477255 AUE_AIO_READ STD|CAPENABLED { 1478 int aio_read( 1479 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1480 ); 1481 } 1482256 AUE_AIO_WRITE STD|CAPENABLED { 1483 int aio_write( 1484 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1485 ); 1486 } 1487257 AUE_LIO_LISTIO STD|CAPENABLED { 1488 int lio_listio( 1489 int mode, 1490 _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const *acb_list, 1491 int nent, 1492 _In_opt_ _Contains_long_ptr_ struct sigevent *sig 1493 ); 1494 } 1495258-271 AUE_NULL RESERVED 1496272 AUE_O_GETDENTS COMPAT11|CAPENABLED { 1497 int getdents( 1498 int fd, 1499 _Out_writes_bytes_(count) char *buf, 1500 size_t count 1501 ); 1502 } 1503273 AUE_NULL RESERVED 1504274 AUE_LCHMOD STD { 1505 int lchmod( 1506 _In_z_ const char *path, 1507 mode_t mode 1508 ); 1509 } 1510275 AUE_NULL OBSOL netbsd_lchown 1511276 AUE_LUTIMES STD { 1512 int lutimes( 1513 _In_z_ const char *path, 1514 _In_ _Contains_long_timet_ const struct timeval *tptr 1515 ); 1516 } 1517277 AUE_NULL OBSOL netbsd_msync 1518278 AUE_STAT COMPAT11 { 1519 int nstat( 1520 _In_z_ const char *path, 1521 _Out_ _Contains_long_timet_ struct nstat *ub 1522 ); 1523 } 1524279 AUE_FSTAT COMPAT11 { 1525 int nfstat( 1526 int fd, 1527 _Out_ _Contains_long_timet_ struct nstat *sb 1528 ); 1529 } 1530280 AUE_LSTAT COMPAT11 { 1531 int nlstat( 1532 _In_z_ const char *path, 1533 _Out_ _Contains_long_timet_ struct nstat *ub 1534 ); 1535 } 1536281-288 AUE_NULL RESERVED 1537289 AUE_PREADV STD|CAPENABLED { 1538 ssize_t preadv( 1539 int fd, 1540 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1541 u_int iovcnt, 1542 off_t offset 1543 ); 1544 } 1545290 AUE_PWRITEV STD|CAPENABLED { 1546 ssize_t pwritev( 1547 int fd, 1548 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1549 u_int iovcnt, 1550 off_t offset 1551 ); 1552 } 1553291-296 AUE_NULL RESERVED 1554297 AUE_FHSTATFS COMPAT4 { 1555 int fhstatfs( 1556 _In_ const struct fhandle *u_fhp, 1557 _Out_ _Contains_long_ struct ostatfs *buf 1558 ); 1559 } 1560298 AUE_FHOPEN STD { 1561 int fhopen( 1562 _In_ const struct fhandle *u_fhp, 1563 int flags 1564 ); 1565 } 1566299 AUE_FHSTAT COMPAT11 { 1567 int fhstat( 1568 _In_ const struct fhandle *u_fhp, 1569 _Out_ _Contains_long_timet_ struct freebsd11_stat *sb 1570 ); 1571 } 1572300 AUE_NULL STD { 1573 int modnext( 1574 int modid 1575 ); 1576 } 1577301 AUE_NULL STD { 1578 int modstat( 1579 int modid, 1580 _Out_ _Contains_long_ struct module_stat *stat 1581 ); 1582 } 1583302 AUE_NULL STD { 1584 int modfnext( 1585 int modid 1586 ); 1587 } 1588303 AUE_NULL STD { 1589 int modfind( 1590 _In_z_ const char *name 1591 ); 1592 } 1593304 AUE_MODLOAD STD { 1594 int kldload( 1595 _In_z_ const char *file 1596 ); 1597 } 1598305 AUE_MODUNLOAD STD { 1599 int kldunload( 1600 int fileid 1601 ); 1602 } 1603306 AUE_NULL STD { 1604 int kldfind( 1605 _In_z_ const char *file 1606 ); 1607 } 1608307 AUE_NULL STD { 1609 int kldnext( 1610 int fileid 1611 ); 1612 } 1613308 AUE_NULL STD { 1614 int kldstat( 1615 int fileid, 1616 _Out_ _Contains_long_ptr_ struct kld_file_stat *stat 1617 ); 1618 } 1619309 AUE_NULL STD { 1620 int kldfirstmod( 1621 int fileid 1622 ); 1623 } 1624310 AUE_GETSID STD|CAPENABLED { 1625 int getsid( 1626 pid_t pid 1627 ); 1628 } 1629311 AUE_SETRESUID STD|CAPENABLED { 1630 int setresuid( 1631 uid_t ruid, 1632 uid_t euid, 1633 uid_t suid 1634 ); 1635 } 1636312 AUE_SETRESGID STD|CAPENABLED { 1637 int setresgid( 1638 gid_t rgid, 1639 gid_t egid, 1640 gid_t sgid 1641 ); 1642 } 1643313 AUE_NULL OBSOL signanosleep 1644314 AUE_AIO_RETURN STD|CAPENABLED { 1645 ssize_t aio_return( 1646 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1647 ); 1648 } 1649315 AUE_AIO_SUSPEND STD|CAPENABLED { 1650 int aio_suspend( 1651 _Inout_updates_(nent) _Contains_long_ptr_ const struct aiocb * const * aiocbp, 1652 int nent, 1653 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1654 ); 1655 } 1656316 AUE_AIO_CANCEL STD|CAPENABLED { 1657 int aio_cancel( 1658 int fd, 1659 _In_opt_ _Contains_long_ptr_ struct aiocb *aiocbp 1660 ); 1661 } 1662317 AUE_AIO_ERROR STD|CAPENABLED { 1663 int aio_error( 1664 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 1665 ); 1666 } 1667318 AUE_AIO_READ COMPAT6|CAPENABLED { 1668 int aio_read( 1669 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1670 ); 1671 } 1672319 AUE_AIO_WRITE COMPAT6|CAPENABLED { 1673 int aio_write( 1674 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1675 ); 1676 } 1677320 AUE_LIO_LISTIO COMPAT6|CAPENABLED { 1678 int lio_listio( 1679 int mode, 1680 _Inout_updates_(nent) _Contains_long_ptr_ struct oaiocb * const *acb_list, 1681 int nent, 1682 _In_opt_ _Contains_ptr_ struct osigevent *sig 1683 ); 1684 } 1685321 AUE_NULL STD|CAPENABLED|NOLIB { 1686 int yield(void); 1687 } 1688322 AUE_NULL OBSOL thr_sleep 1689323 AUE_NULL OBSOL thr_wakeup 1690324 AUE_MLOCKALL STD|CAPENABLED { 1691 int mlockall( 1692 int how 1693 ); 1694 } 1695325 AUE_MUNLOCKALL STD|CAPENABLED { 1696 int munlockall(void); 1697 } 1698326 AUE_GETCWD STD { 1699 int __getcwd( 1700 _Out_writes_z_(buflen) char *buf, 1701 size_t buflen 1702 ); 1703 } 1704327 AUE_NULL STD|CAPENABLED { 1705 int sched_setparam( 1706 pid_t pid, 1707 _In_ const struct sched_param *param 1708 ); 1709 } 1710328 AUE_NULL STD|CAPENABLED { 1711 int sched_getparam( 1712 pid_t pid, 1713 _Out_ struct sched_param *param 1714 ); 1715 } 1716329 AUE_NULL STD|CAPENABLED { 1717 int sched_setscheduler( 1718 pid_t pid, 1719 int policy, 1720 _In_ const struct sched_param *param 1721 ); 1722 } 1723330 AUE_NULL STD|CAPENABLED { 1724 int sched_getscheduler( 1725 pid_t pid 1726 ); 1727 } 1728331 AUE_NULL STD|CAPENABLED { 1729 int sched_yield(void); 1730 } 1731332 AUE_NULL STD|CAPENABLED { 1732 int sched_get_priority_max( 1733 int policy 1734 ); 1735 } 1736333 AUE_NULL STD|CAPENABLED { 1737 int sched_get_priority_min( 1738 int policy 1739 ); 1740 } 1741334 AUE_NULL STD|CAPENABLED { 1742 int sched_rr_get_interval( 1743 pid_t pid, 1744 _Out_ _Contains_long_timet_ struct timespec *interval 1745 ); 1746 } 1747335 AUE_NULL STD|CAPENABLED { 1748 int utrace( 1749 _In_reads_bytes_(len) const void *addr, 1750 size_t len 1751 ); 1752 } 1753336 AUE_SENDFILE COMPAT4|CAPENABLED { 1754 int sendfile( 1755 int fd, 1756 int s, 1757 off_t offset, 1758 size_t nbytes, 1759 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 1760 _Out_opt_ off_t *sbytes, 1761 int flags 1762 ); 1763 } 1764337 AUE_NULL STD { 1765 int kldsym( 1766 int fileid, 1767 int cmd, 1768 _In_ _Contains_long_ptr_ void *data 1769 ); 1770 } 1771338 AUE_JAIL STD { 1772 int jail( 1773 _In_ _Contains_ptr_ struct jail *jail 1774 ); 1775 } 1776339 AUE_NULL NOSTD|NOTSTATIC { 1777 int nnpfs_syscall( 1778 int operation, 1779 char *a_pathP, 1780 int a_opcode, 1781 void *a_paramsP, 1782 int a_followSymlinks 1783 ); 1784 } 1785340 AUE_SIGPROCMASK STD|CAPENABLED { 1786 int sigprocmask( 1787 int how, 1788 _In_opt_ const sigset_t *set, 1789 _Out_opt_ sigset_t *oset 1790 ); 1791 } 1792341 AUE_SIGSUSPEND STD|CAPENABLED { 1793 int sigsuspend( 1794 _In_ const sigset_t *sigmask 1795 ); 1796 } 1797342 AUE_SIGACTION COMPAT4|CAPENABLED { 1798 int sigaction( 1799 int sig, 1800 _In_opt_ _Contains_ptr_ const struct sigaction *act, 1801 _Out_opt_ _Contains_ptr_ struct sigaction *oact 1802 ); 1803 } 1804343 AUE_SIGPENDING STD|CAPENABLED { 1805 int sigpending( 1806 _In_ sigset_t *set 1807 ); 1808 } 1809344 AUE_SIGRETURN COMPAT4|CAPENABLED { 1810 int sigreturn( 1811 _In_ _Contains_long_ptr_ const struct freebsd4_ucontext *sigcntxp 1812 ); 1813 } 1814345 AUE_SIGWAIT STD|CAPENABLED { 1815 int sigtimedwait( 1816 _In_ const sigset_t *set, 1817 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info, 1818 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1819 ); 1820 } 1821346 AUE_NULL STD|CAPENABLED { 1822 int sigwaitinfo( 1823 _In_ const sigset_t *set, 1824 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 1825 ); 1826 } 1827347 AUE_ACL_GET_FILE STD { 1828 int __acl_get_file( 1829 _In_z_ const char *path, 1830 __acl_type_t type, 1831 _Out_ struct acl *aclp 1832 ); 1833 } 1834348 AUE_ACL_SET_FILE STD { 1835 int __acl_set_file( 1836 _In_z_ const char *path, 1837 __acl_type_t type, 1838 _In_ struct acl *aclp 1839 ); 1840 } 1841349 AUE_ACL_GET_FD STD|CAPENABLED { 1842 int __acl_get_fd( 1843 int filedes, 1844 __acl_type_t type, 1845 _Out_ struct acl *aclp 1846 ); 1847 } 1848350 AUE_ACL_SET_FD STD|CAPENABLED { 1849 int __acl_set_fd( 1850 int filedes, 1851 __acl_type_t type, 1852 _In_ struct acl *aclp 1853 ); 1854 } 1855351 AUE_ACL_DELETE_FILE STD { 1856 int __acl_delete_file( 1857 _In_z_ const char *path, 1858 __acl_type_t type 1859 ); 1860 } 1861352 AUE_ACL_DELETE_FD STD|CAPENABLED { 1862 int __acl_delete_fd( 1863 int filedes, 1864 __acl_type_t type 1865 ); 1866 } 1867353 AUE_ACL_CHECK_FILE STD { 1868 int __acl_aclcheck_file( 1869 _In_z_ const char *path, 1870 __acl_type_t type, 1871 _In_ struct acl *aclp 1872 ); 1873 } 1874354 AUE_ACL_CHECK_FD STD|CAPENABLED { 1875 int __acl_aclcheck_fd( 1876 int filedes, 1877 __acl_type_t type, 1878 _In_ struct acl *aclp 1879 ); 1880 } 1881355 AUE_EXTATTRCTL STD { 1882 int extattrctl( 1883 _In_z_ const char *path, 1884 int cmd, 1885 _In_z_opt_ const char *filename, 1886 int attrnamespace, 1887 _In_z_ const char *attrname 1888 ); 1889 } 1890356 AUE_EXTATTR_SET_FILE STD { 1891 ssize_t extattr_set_file( 1892 _In_z_ const char *path, 1893 int attrnamespace, 1894 _In_z_ const char *attrname, 1895 _In_reads_bytes_(nbytes) void *data, 1896 size_t nbytes 1897 ); 1898 } 1899357 AUE_EXTATTR_GET_FILE STD { 1900 ssize_t extattr_get_file( 1901 _In_z_ const char *path, 1902 int attrnamespace, 1903 _In_z_ const char *attrname, 1904 _Out_writes_bytes_(nbytes) void *data, 1905 size_t nbytes 1906 ); 1907 } 1908358 AUE_EXTATTR_DELETE_FILE STD { 1909 int extattr_delete_file( 1910 _In_z_ const char *path, 1911 int attrnamespace, 1912 _In_z_ const char *attrname 1913 ); 1914 } 1915359 AUE_AIO_WAITCOMPLETE STD|CAPENABLED { 1916 ssize_t aio_waitcomplete( 1917 _Outptr_result_maybenull_ struct aiocb **aiocbp, 1918 _In_opt_ _Contains_long_timet_ struct timespec *timeout 1919 ); 1920 } 1921360 AUE_GETRESUID STD|CAPENABLED { 1922 int getresuid( 1923 _Out_opt_ uid_t *ruid, 1924 _Out_opt_ uid_t *euid, 1925 _Out_opt_ uid_t *suid 1926 ); 1927 } 1928361 AUE_GETRESGID STD|CAPENABLED { 1929 int getresgid( 1930 _Out_opt_ gid_t *rgid, 1931 _Out_opt_ gid_t *egid, 1932 _Out_opt_ gid_t *sgid 1933 ); 1934 } 1935362 AUE_KQUEUE STD|CAPENABLED { 1936 int kqueue(void); 1937 } 1938363 AUE_KEVENT COMPAT11|CAPENABLED { 1939 int kevent( 1940 int fd, 1941 _In_reads_opt_(nchanges) _Contains_ptr_ const struct freebsd11_kevent *changelist, 1942 int nchanges, 1943 _Out_writes_opt_(nevents) _Contains_ptr_ struct freebsd11_kevent *eventlist, 1944 int nevents, 1945 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1946 ); 1947 } 1948364 AUE_NULL OBSOL __cap_get_proc 1949365 AUE_NULL OBSOL __cap_set_proc 1950366 AUE_NULL OBSOL __cap_get_fd 1951367 AUE_NULL OBSOL __cap_get_file 1952368 AUE_NULL OBSOL __cap_set_fd 1953369 AUE_NULL OBSOL __cap_set_file 1954370 AUE_NULL RESERVED 1955371 AUE_EXTATTR_SET_FD STD|CAPENABLED { 1956 ssize_t extattr_set_fd( 1957 int fd, 1958 int attrnamespace, 1959 _In_z_ const char *attrname, 1960 _In_reads_bytes_(nbytes) void *data, 1961 size_t nbytes 1962 ); 1963 } 1964372 AUE_EXTATTR_GET_FD STD|CAPENABLED { 1965 ssize_t extattr_get_fd( 1966 int fd, 1967 int attrnamespace, 1968 _In_z_ const char *attrname, 1969 _Out_writes_bytes_(nbytes) void *data, 1970 size_t nbytes 1971 ); 1972 } 1973373 AUE_EXTATTR_DELETE_FD STD|CAPENABLED { 1974 int extattr_delete_fd( 1975 int fd, 1976 int attrnamespace, 1977 _In_z_ const char *attrname 1978 ); 1979 } 1980374 AUE_SETUGID STD { 1981 int __setugid( 1982 int flag 1983 ); 1984 } 1985375 AUE_NULL OBSOL nfsclnt 1986376 AUE_EACCESS STD { 1987 int eaccess( 1988 _In_z_ const char *path, 1989 int amode 1990 ); 1991 } 1992377 AUE_NULL NOSTD|NOTSTATIC { 1993 int afs3_syscall( 1994 long syscall, 1995 long parm1, 1996 long parm2, 1997 long parm3, 1998 long parm4, 1999 long parm5, 2000 long parm6 2001 ); 2002 } 2003378 AUE_NMOUNT STD { 2004 int nmount( 2005 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2006 unsigned int iovcnt, 2007 int flags 2008 ); 2009 } 2010379 AUE_NULL OBSOL kse_exit 2011380 AUE_NULL OBSOL kse_wakeup 2012381 AUE_NULL OBSOL kse_create 2013382 AUE_NULL OBSOL kse_thr_interrupt 2014383 AUE_NULL OBSOL kse_release 2015384 AUE_NULL STD|CAPENABLED { 2016 int __mac_get_proc( 2017 _In_ _Contains_long_ptr_ struct mac *mac_p 2018 ); 2019 } 2020385 AUE_NULL STD|CAPENABLED { 2021 int __mac_set_proc( 2022 _In_ _Contains_long_ptr_ struct mac *mac_p 2023 ); 2024 } 2025386 AUE_NULL STD|CAPENABLED { 2026 int __mac_get_fd( 2027 int fd, 2028 _In_ _Contains_long_ptr_ struct mac *mac_p 2029 ); 2030 } 2031387 AUE_NULL STD { 2032 int __mac_get_file( 2033 _In_z_ const char *path_p, 2034 _In_ _Contains_long_ptr_ struct mac *mac_p 2035 ); 2036 } 2037388 AUE_NULL STD|CAPENABLED { 2038 int __mac_set_fd( 2039 int fd, 2040 _In_ _Contains_long_ptr_ struct mac *mac_p 2041 ); 2042 } 2043389 AUE_NULL STD { 2044 int __mac_set_file( 2045 _In_z_ const char *path_p, 2046 _In_ _Contains_long_ptr_ struct mac *mac_p 2047 ); 2048 } 2049390 AUE_NULL STD { 2050 int kenv( 2051 int what, 2052 _In_z_opt_ const char *name, 2053 _Inout_updates_opt_(len) char *value, 2054 int len 2055 ); 2056 } 2057391 AUE_LCHFLAGS STD { 2058 int lchflags( 2059 _In_z_ const char *path, 2060 u_long flags 2061 ); 2062 } 2063392 AUE_NULL STD|CAPENABLED { 2064 int uuidgen( 2065 _Out_writes_(count) struct uuid *store, 2066 int count 2067 ); 2068 } 2069393 AUE_SENDFILE STD|CAPENABLED { 2070 int sendfile( 2071 int fd, 2072 int s, 2073 off_t offset, 2074 size_t nbytes, 2075 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 2076 _Out_opt_ off_t *sbytes, 2077 int flags 2078 ); 2079 } 2080394 AUE_NULL STD { 2081 int mac_syscall( 2082 _In_z_ const char *policy, 2083 int call, 2084 _In_opt_ void *arg 2085 ); 2086 } 2087395 AUE_GETFSSTAT COMPAT11 { 2088 int getfsstat( 2089 _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf, 2090 long bufsize, 2091 int mode 2092 ); 2093 } 2094396 AUE_STATFS COMPAT11 { 2095 int statfs( 2096 _In_z_ const char *path, 2097 _Out_ struct freebsd11_statfs *buf 2098 ); 2099 } 2100397 AUE_FSTATFS COMPAT11|CAPENABLED { 2101 int fstatfs( 2102 int fd, 2103 _Out_ struct freebsd11_statfs *buf 2104 ); 2105 } 2106398 AUE_FHSTATFS COMPAT11 { 2107 int fhstatfs( 2108 _In_ const struct fhandle *u_fhp, 2109 _Out_ struct freebsd11_statfs *buf 2110 ); 2111 } 2112399 AUE_NULL RESERVED 2113400 AUE_SEMCLOSE NOSTD { 2114 int ksem_close( 2115 semid_t id 2116 ); 2117 } 2118401 AUE_SEMPOST NOSTD { 2119 int ksem_post( 2120 semid_t id 2121 ); 2122 } 2123402 AUE_SEMWAIT NOSTD { 2124 int ksem_wait( 2125 semid_t id 2126 ); 2127 } 2128403 AUE_SEMTRYWAIT NOSTD { 2129 int ksem_trywait( 2130 semid_t id 2131 ); 2132 } 2133404 AUE_SEMINIT NOSTD { 2134 int ksem_init( 2135 _Out_ semid_t *idp, 2136 unsigned int value 2137 ); 2138 } 2139405 AUE_SEMOPEN NOSTD { 2140 int ksem_open( 2141 _Out_ semid_t *idp, 2142 _In_z_ const char *name, 2143 int oflag, 2144 mode_t mode, 2145 unsigned int value 2146 ); 2147 } 2148406 AUE_SEMUNLINK NOSTD { 2149 int ksem_unlink( 2150 _In_z_ const char *name 2151 ); 2152 } 2153407 AUE_SEMGETVALUE NOSTD { 2154 int ksem_getvalue( 2155 semid_t id, 2156 _Out_ int *val 2157 ); 2158 } 2159408 AUE_SEMDESTROY NOSTD { 2160 int ksem_destroy( 2161 semid_t id 2162 ); 2163 } 2164409 AUE_NULL STD { 2165 int __mac_get_pid( 2166 pid_t pid, 2167 _In_ _Contains_long_ptr_ struct mac *mac_p 2168 ); 2169 } 2170410 AUE_NULL STD { 2171 int __mac_get_link( 2172 _In_z_ const char *path_p, 2173 _In_ _Contains_long_ptr_ struct mac *mac_p 2174 ); 2175 } 2176411 AUE_NULL STD { 2177 int __mac_set_link( 2178 _In_z_ const char *path_p, 2179 _In_ _Contains_long_ptr_ struct mac *mac_p 2180 ); 2181 } 2182412 AUE_EXTATTR_SET_LINK STD { 2183 ssize_t extattr_set_link( 2184 _In_z_ const char *path, 2185 int attrnamespace, 2186 _In_z_ const char *attrname, 2187 _In_reads_bytes_(nbytes) void *data, 2188 size_t nbytes 2189 ); 2190 } 2191413 AUE_EXTATTR_GET_LINK STD { 2192 ssize_t extattr_get_link( 2193 _In_z_ const char *path, 2194 int attrnamespace, 2195 _In_z_ const char *attrname, 2196 _Out_writes_bytes_(nbytes) void *data, 2197 size_t nbytes 2198 ); 2199 } 2200414 AUE_EXTATTR_DELETE_LINK STD { 2201 int extattr_delete_link( 2202 _In_z_ const char *path, 2203 int attrnamespace, 2204 _In_z_ const char *attrname 2205 ); 2206 } 2207415 AUE_NULL STD { 2208 int __mac_execve( 2209 _In_z_ const char *fname, 2210 _In_ char **argv, 2211 _In_ char **envv, 2212 _In_ _Contains_long_ptr_ struct mac *mac_p 2213 ); 2214 } 2215416 AUE_SIGACTION STD|CAPENABLED { 2216 int sigaction( 2217 int sig, 2218 _In_opt_ _Contains_ptr_ const struct sigaction *act, 2219 _Out_opt_ _Contains_ptr_ struct sigaction *oact 2220 ); 2221 } 2222417 AUE_SIGRETURN STD|CAPENABLED { 2223 int sigreturn( 2224 _In_ _Contains_long_ptr_ const struct __ucontext *sigcntxp 2225 ); 2226 } 2227418-420 AUE_NULL RESERVED 2228421 AUE_NULL STD|CAPENABLED { 2229 int getcontext( 2230 _Out_ _Contains_long_ptr_ struct __ucontext *ucp 2231 ); 2232 } 2233422 AUE_NULL STD|CAPENABLED { 2234 int setcontext( 2235 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2236 ); 2237 } 2238423 AUE_NULL STD { 2239 int swapcontext( 2240 _Out_ _Contains_long_ptr_ struct __ucontext *oucp, 2241 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2242 ); 2243 } 2244424 AUE_SWAPOFF COMPAT13 { 2245 int swapoff( 2246 _In_z_ const char *name 2247 ); 2248 } 2249425 AUE_ACL_GET_LINK STD { 2250 int __acl_get_link( 2251 _In_z_ const char *path, 2252 __acl_type_t type, 2253 _Out_ struct acl *aclp 2254 ); 2255 } 2256426 AUE_ACL_SET_LINK STD { 2257 int __acl_set_link( 2258 _In_z_ const char *path, 2259 __acl_type_t type, 2260 _In_ struct acl *aclp 2261 ); 2262 } 2263427 AUE_ACL_DELETE_LINK STD { 2264 int __acl_delete_link( 2265 _In_z_ const char *path, 2266 __acl_type_t type 2267 ); 2268 } 2269428 AUE_ACL_CHECK_LINK STD { 2270 int __acl_aclcheck_link( 2271 _In_z_ const char *path, 2272 __acl_type_t type, 2273 _In_ struct acl *aclp 2274 ); 2275 } 2276429 AUE_SIGWAIT STD|CAPENABLED { 2277 int sigwait( 2278 _In_ const sigset_t *set, 2279 _Out_ int *sig 2280 ); 2281 } 2282430 AUE_THR_CREATE STD|CAPENABLED { 2283 int thr_create( 2284 _In_ _Contains_long_ptr_ ucontext_t *ctx, 2285 _Out_ long *id, 2286 int flags 2287 ); 2288 } 2289431 AUE_THR_EXIT STD|CAPENABLED { 2290 void thr_exit( 2291 _Out_opt_ long *state 2292 ); 2293 } 2294432 AUE_NULL STD|CAPENABLED { 2295 int thr_self( 2296 _Out_ long *id 2297 ); 2298 } 2299433 AUE_THR_KILL STD|CAPENABLED { 2300 int thr_kill( 2301 long id, 2302 int sig 2303 ); 2304 } 2305434 AUE_NULL COMPAT10 { 2306 int _umtx_lock( 2307 _Inout_ struct umtx *umtx 2308 ); 2309 } 2310435 AUE_NULL COMPAT10 { 2311 int _umtx_unlock( 2312 _Inout_ struct umtx *umtx 2313 ); 2314 } 2315436 AUE_JAIL_ATTACH STD { 2316 int jail_attach( 2317 int jid 2318 ); 2319 } 2320437 AUE_EXTATTR_LIST_FD STD|CAPENABLED { 2321 ssize_t extattr_list_fd( 2322 int fd, 2323 int attrnamespace, 2324 _Out_writes_bytes_opt_(nbytes) void *data, 2325 size_t nbytes 2326 ); 2327 } 2328438 AUE_EXTATTR_LIST_FILE STD { 2329 ssize_t extattr_list_file( 2330 _In_z_ const char *path, 2331 int attrnamespace, 2332 _Out_writes_bytes_opt_(nbytes) void *data, 2333 size_t nbytes 2334 ); 2335 } 2336439 AUE_EXTATTR_LIST_LINK STD { 2337 ssize_t extattr_list_link( 2338 _In_z_ const char *path, 2339 int attrnamespace, 2340 _Out_writes_bytes_opt_(nbytes) void *data, 2341 size_t nbytes 2342 ); 2343 } 2344440 AUE_NULL OBSOL kse_switchin 2345441 AUE_SEMWAIT NOSTD { 2346 int ksem_timedwait( 2347 semid_t id, 2348 _In_opt_ _Contains_long_timet_ const struct timespec *abstime 2349 ); 2350 } 2351442 AUE_NULL STD|CAPENABLED { 2352 int thr_suspend( 2353 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 2354 ); 2355 } 2356443 AUE_NULL STD|CAPENABLED { 2357 int thr_wake( 2358 long id 2359 ); 2360 } 2361444 AUE_MODUNLOAD STD { 2362 int kldunloadf( 2363 int fileid, 2364 int flags 2365 ); 2366 } 2367445 AUE_AUDIT STD { 2368 int audit( 2369 _In_reads_bytes_(length) const void *record, 2370 u_int length 2371 ); 2372 } 2373446 AUE_AUDITON STD { 2374 int auditon( 2375 int cmd, 2376 _In_opt_ void *data, 2377 u_int length 2378 ); 2379 } 2380447 AUE_GETAUID STD|CAPENABLED { 2381 int getauid( 2382 _Out_ uid_t *auid 2383 ); 2384 } 2385448 AUE_SETAUID STD|CAPENABLED { 2386 int setauid( 2387 _In_ uid_t *auid 2388 ); 2389 } 2390449 AUE_GETAUDIT STD|CAPENABLED { 2391 int getaudit( 2392 _Out_ struct auditinfo *auditinfo 2393 ); 2394 } 2395450 AUE_SETAUDIT STD|CAPENABLED { 2396 int setaudit( 2397 _In_ struct auditinfo *auditinfo 2398 ); 2399 } 2400451 AUE_GETAUDIT_ADDR STD|CAPENABLED { 2401 int getaudit_addr( 2402 _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2403 u_int length 2404 ); 2405 } 2406452 AUE_SETAUDIT_ADDR STD|CAPENABLED { 2407 int setaudit_addr( 2408 _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2409 u_int length 2410 ); 2411 } 2412453 AUE_AUDITCTL STD { 2413 int auditctl( 2414 _In_z_ const char *path 2415 ); 2416 } 2417454 AUE_NULL STD|CAPENABLED { 2418 int _umtx_op( 2419 _Inout_ void *obj, 2420 int op, 2421 u_long val, 2422 _In_ void *uaddr1, 2423 _In_ void *uaddr2 2424 ); 2425 } 2426455 AUE_THR_NEW STD|CAPENABLED { 2427 int thr_new( 2428 _In_ _Contains_long_ptr_ struct thr_param *param, 2429 int param_size 2430 ); 2431 } 2432456 AUE_NULL STD|CAPENABLED { 2433 int sigqueue( 2434 pid_t pid, 2435 int signum, 2436 _In_ void *value 2437 ); 2438 } 2439457 AUE_MQ_OPEN NOSTD { 2440 int kmq_open( 2441 _In_z_ const char *path, 2442 int flags, 2443 mode_t mode, 2444 _In_opt_ _Contains_long_ const struct mq_attr *attr 2445 ); 2446 } 2447458 AUE_MQ_SETATTR NOSTD|CAPENABLED { 2448 int kmq_setattr( 2449 int mqd, 2450 _In_opt_ _Contains_long_ const struct mq_attr *attr, 2451 _Out_opt_ _Contains_long_ struct mq_attr *oattr 2452 ); 2453 } 2454459 AUE_MQ_TIMEDRECEIVE NOSTD|CAPENABLED { 2455 int kmq_timedreceive( 2456 int mqd, 2457 _Out_writes_bytes_(msg_len) char *msg_ptr, 2458 size_t msg_len, 2459 _Out_opt_ unsigned *msg_prio, 2460 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2461 ); 2462 } 2463460 AUE_MQ_TIMEDSEND NOSTD|CAPENABLED { 2464 int kmq_timedsend( 2465 int mqd, 2466 _In_reads_bytes_(msg_len) const char *msg_ptr, 2467 size_t msg_len, 2468 unsigned msg_prio, 2469 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2470 ); 2471 } 2472461 AUE_MQ_NOTIFY NOSTD|CAPENABLED { 2473 int kmq_notify( 2474 int mqd, 2475 _In_opt_ _Contains_long_ptr_ const struct sigevent *sigev 2476 ); 2477 } 2478462 AUE_MQ_UNLINK NOSTD { 2479 int kmq_unlink( 2480 _In_z_ const char *path 2481 ); 2482 } 2483463 AUE_NULL STD|CAPENABLED { 2484 void abort2( 2485 _In_z_ const char *why, 2486 int nargs, 2487 _In_reads_(nargs) void **args 2488 ); 2489 } 2490464 AUE_NULL STD|CAPENABLED { 2491 int thr_set_name( 2492 long id, 2493 _In_z_ const char *name 2494 ); 2495 } 2496465 AUE_AIO_FSYNC STD|CAPENABLED { 2497 int aio_fsync( 2498 int op, 2499 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 2500 ); 2501 } 2502466 AUE_RTPRIO STD|CAPENABLED { 2503 int rtprio_thread( 2504 int function, 2505 lwpid_t lwpid, 2506 _Inout_ struct rtprio *rtp 2507 ); 2508 } 2509467-470 AUE_NULL RESERVED 2510471 AUE_SCTP_PEELOFF NOSTD|CAPENABLED { 2511 int sctp_peeloff( 2512 int sd, 2513 uint32_t name 2514 ); 2515 } 2516472 AUE_SCTP_GENERIC_SENDMSG NOSTD|CAPENABLED { 2517 int sctp_generic_sendmsg( 2518 int sd, 2519 _In_reads_bytes_(mlen) void *msg, 2520 int mlen, 2521 _In_reads_bytes_(tolen) const struct sockaddr *to, 2522 __socklen_t tolen, 2523 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2524 int flags 2525 ); 2526 } 2527473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD|CAPENABLED { 2528 int sctp_generic_sendmsg_iov( 2529 int sd, 2530 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2531 int iovlen, 2532 _In_reads_bytes_(tolen) const struct sockaddr *to, 2533 __socklen_t tolen, 2534 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2535 int flags 2536 ); 2537 } 2538474 AUE_SCTP_GENERIC_RECVMSG NOSTD|CAPENABLED { 2539 int sctp_generic_recvmsg( 2540 int sd, 2541 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2542 int iovlen, 2543 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 2544 _Out_ __socklen_t *fromlenaddr, 2545 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2546 _Out_opt_ int *msg_flags 2547 ); 2548 } 2549475 AUE_PREAD STD|CAPENABLED { 2550 ssize_t pread( 2551 int fd, 2552 _Out_writes_bytes_(nbyte) void *buf, 2553 size_t nbyte, 2554 off_t offset 2555 ); 2556 } 2557476 AUE_PWRITE STD|CAPENABLED { 2558 ssize_t pwrite( 2559 int fd, 2560 _In_reads_bytes_(nbyte) const void *buf, 2561 size_t nbyte, 2562 off_t offset 2563 ); 2564 } 2565477 AUE_MMAP STD|CAPENABLED { 2566 void *mmap( 2567 _In_ void *addr, 2568 size_t len, 2569 int prot, 2570 int flags, 2571 int fd, 2572 off_t pos 2573 ); 2574 } 2575478 AUE_LSEEK STD|CAPENABLED { 2576 off_t lseek( 2577 int fd, 2578 off_t offset, 2579 int whence 2580 ); 2581 } 2582479 AUE_TRUNCATE STD { 2583 int truncate( 2584 _In_z_ const char *path, 2585 off_t length 2586 ); 2587 } 2588480 AUE_FTRUNCATE STD|CAPENABLED { 2589 int ftruncate( 2590 int fd, 2591 off_t length 2592 ); 2593 } 2594481 AUE_THR_KILL2 STD { 2595 int thr_kill2( 2596 pid_t pid, 2597 long id, 2598 int sig 2599 ); 2600 } 2601482 AUE_SHMOPEN COMPAT12|CAPENABLED { 2602 int shm_open( 2603 _In_z_ const char *path, 2604 int flags, 2605 mode_t mode 2606 ); 2607 } 2608483 AUE_SHMUNLINK STD { 2609 int shm_unlink( 2610 _In_z_ const char *path 2611 ); 2612 } 2613484 AUE_NULL STD { 2614 int cpuset( 2615 _Out_ cpusetid_t *setid 2616 ); 2617 } 2618485 AUE_NULL STD { 2619 int cpuset_setid( 2620 cpuwhich_t which, 2621 id_t id, 2622 cpusetid_t setid 2623 ); 2624 } 2625486 AUE_NULL STD { 2626 int cpuset_getid( 2627 cpulevel_t level, 2628 cpuwhich_t which, 2629 id_t id, 2630 _Out_ cpusetid_t *setid 2631 ); 2632 } 2633487 AUE_NULL STD|CAPENABLED { 2634 int cpuset_getaffinity( 2635 cpulevel_t level, 2636 cpuwhich_t which, 2637 id_t id, 2638 size_t cpusetsize, 2639 _Out_ cpuset_t *mask 2640 ); 2641 } 2642488 AUE_NULL STD|CAPENABLED { 2643 int cpuset_setaffinity( 2644 cpulevel_t level, 2645 cpuwhich_t which, 2646 id_t id, 2647 size_t cpusetsize, 2648 _Out_ const cpuset_t *mask 2649 ); 2650 } 2651489 AUE_FACCESSAT STD|CAPENABLED { 2652 int faccessat( 2653 int fd, 2654 _In_z_ const char *path, 2655 int amode, 2656 int flag 2657 ); 2658 } 2659490 AUE_FCHMODAT STD|CAPENABLED { 2660 int fchmodat( 2661 int fd, 2662 _In_z_ const char *path, 2663 mode_t mode, 2664 int flag 2665 ); 2666 } 2667491 AUE_FCHOWNAT STD|CAPENABLED { 2668 int fchownat( 2669 int fd, 2670 _In_z_ const char *path, 2671 uid_t uid, 2672 gid_t gid, 2673 int flag 2674 ); 2675 } 2676492 AUE_FEXECVE STD|CAPENABLED { 2677 int fexecve( 2678 int fd, 2679 _In_ char **argv, 2680 _In_ char **envv 2681 ); 2682 } 2683493 AUE_FSTATAT COMPAT11|CAPENABLED { 2684 int fstatat( 2685 int fd, 2686 _In_z_ const char *path, 2687 _Out_ _Contains_long_timet_ struct freebsd11_stat *buf, 2688 int flag 2689 ); 2690 } 2691494 AUE_FUTIMESAT STD|CAPENABLED { 2692 int futimesat( 2693 int fd, 2694 _In_z_ const char *path, 2695 _In_reads_(2) _Contains_long_timet_ const struct timeval *times 2696 ); 2697 } 2698495 AUE_LINKAT STD|CAPENABLED { 2699 int linkat( 2700 int fd1, 2701 _In_z_ const char *path1, 2702 int fd2, 2703 _In_z_ const char *path2, 2704 int flag 2705 ); 2706 } 2707496 AUE_MKDIRAT STD|CAPENABLED { 2708 int mkdirat( 2709 int fd, 2710 _In_z_ const char *path, 2711 mode_t mode 2712 ); 2713 } 2714497 AUE_MKFIFOAT STD|CAPENABLED { 2715 int mkfifoat( 2716 int fd, 2717 _In_z_ const char *path, 2718 mode_t mode 2719 ); 2720 } 2721498 AUE_MKNODAT COMPAT11|CAPENABLED { 2722 int mknodat( 2723 int fd, 2724 _In_z_ const char *path, 2725 mode_t mode, 2726 uint32_t dev 2727 ); 2728 } 2729; XXX: see the comment for open 2730499 AUE_OPENAT_RWTC STD|CAPENABLED { 2731 int openat( 2732 int fd, 2733 _In_z_ const char *path, 2734 int flag, 2735 mode_t mode 2736 ); 2737 } 2738500 AUE_READLINKAT STD|CAPENABLED { 2739 ssize_t readlinkat( 2740 int fd, 2741 _In_z_ const char *path, 2742 _Out_writes_bytes_(bufsize) char *buf, 2743 size_t bufsize 2744 ); 2745 } 2746501 AUE_RENAMEAT STD|CAPENABLED { 2747 int renameat( 2748 int oldfd, 2749 _In_z_ const char *old, 2750 int newfd, 2751 _In_z_ const char *new 2752 ); 2753 } 2754502 AUE_SYMLINKAT STD|CAPENABLED { 2755 int symlinkat( 2756 _In_z_ const char *path1, 2757 int fd, 2758 _In_z_ const char *path2 2759 ); 2760 } 2761503 AUE_UNLINKAT STD|CAPENABLED { 2762 int unlinkat( 2763 int fd, 2764 _In_z_ const char *path, 2765 int flag 2766 ); 2767 } 2768504 AUE_POSIX_OPENPT STD { 2769 int posix_openpt( 2770 int flags 2771 ); 2772 } 2773505 AUE_NULL OBSOL kgssapi 2774506 AUE_JAIL_GET STD { 2775 int jail_get( 2776 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2777 unsigned int iovcnt, 2778 int flags 2779 ); 2780 } 2781507 AUE_JAIL_SET STD { 2782 int jail_set( 2783 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2784 unsigned int iovcnt, 2785 int flags 2786 ); 2787 } 2788508 AUE_JAIL_REMOVE STD { 2789 int jail_remove( 2790 int jid 2791 ); 2792 } 2793509 AUE_CLOSEFROM COMPAT12|CAPENABLED { 2794 int closefrom( 2795 int lowfd 2796 ); 2797 } 2798510 AUE_SEMCTL NOSTD { 2799 int __semctl( 2800 int semid, 2801 int semnum, 2802 int cmd, 2803 _Inout_ _Contains_ptr_ union semun *arg 2804 ); 2805 } 2806511 AUE_MSGCTL NOSTD { 2807 int msgctl( 2808 int msqid, 2809 int cmd, 2810 _Inout_opt_ _Contains_long_ptr_ struct msqid_ds *buf 2811 ); 2812 } 2813512 AUE_SHMCTL NOSTD { 2814 int shmctl( 2815 int shmid, 2816 int cmd, 2817 _Inout_opt_ _Contains_long_ struct shmid_ds *buf 2818 ); 2819 } 2820513 AUE_LPATHCONF STD { 2821 int lpathconf( 2822 _In_z_ const char *path, 2823 int name 2824 ); 2825 } 2826514 AUE_NULL OBSOL cap_new 2827515 AUE_CAP_RIGHTS_GET STD|CAPENABLED { 2828 int __cap_rights_get( 2829 int version, 2830 int fd, 2831 _Out_ cap_rights_t *rightsp 2832 ); 2833 } 2834516 AUE_CAP_ENTER STD|CAPENABLED { 2835 int cap_enter(void); 2836 } 2837517 AUE_CAP_GETMODE STD|CAPENABLED { 2838 int cap_getmode( 2839 _Out_ u_int *modep 2840 ); 2841 } 2842518 AUE_PDFORK STD|CAPENABLED { 2843 int pdfork( 2844 _Out_ int *fdp, 2845 int flags 2846 ); 2847 } 2848519 AUE_PDKILL STD|CAPENABLED { 2849 int pdkill( 2850 int fd, 2851 int signum 2852 ); 2853 } 2854520 AUE_PDGETPID STD|CAPENABLED { 2855 int pdgetpid( 2856 int fd, 2857 _Out_ pid_t *pidp 2858 ); 2859 } 2860521 AUE_NULL RESERVED 2861522 AUE_SELECT STD|CAPENABLED { 2862 int pselect( 2863 int nd, 2864 _Inout_opt_ fd_set *in, 2865 _Inout_opt_ fd_set *ou, 2866 _Inout_opt_ fd_set *ex, 2867 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 2868 _In_opt_ const sigset_t *sm 2869 ); 2870 } 2871523 AUE_GETLOGINCLASS STD|CAPENABLED { 2872 int getloginclass( 2873 _Out_writes_z_(namelen) char *namebuf, 2874 size_t namelen 2875 ); 2876 } 2877524 AUE_SETLOGINCLASS STD { 2878 int setloginclass( 2879 _In_z_ const char *namebuf 2880 ); 2881 } 2882525 AUE_NULL STD { 2883 int rctl_get_racct( 2884 _In_reads_bytes_(inbuflen) const void *inbufp, 2885 size_t inbuflen, 2886 _Out_writes_bytes_(outbuflen) void *outbufp, 2887 size_t outbuflen 2888 ); 2889 } 2890526 AUE_NULL STD { 2891 int rctl_get_rules( 2892 _In_reads_bytes_(inbuflen) const void *inbufp, 2893 size_t inbuflen, 2894 _Out_writes_bytes_(outbuflen) void *outbufp, 2895 size_t outbuflen 2896 ); 2897 } 2898527 AUE_NULL STD { 2899 int rctl_get_limits( 2900 _In_reads_bytes_(inbuflen) const void *inbufp, 2901 size_t inbuflen, 2902 _Out_writes_bytes_(outbuflen) void *outbufp, 2903 size_t outbuflen 2904 ); 2905 } 2906528 AUE_NULL STD { 2907 int rctl_add_rule( 2908 _In_reads_bytes_(inbuflen) const void *inbufp, 2909 size_t inbuflen, 2910 _Out_writes_bytes_(outbuflen) void *outbufp, 2911 size_t outbuflen 2912 ); 2913 } 2914529 AUE_NULL STD { 2915 int rctl_remove_rule( 2916 _In_reads_bytes_(inbuflen) const void *inbufp, 2917 size_t inbuflen, 2918 _Out_writes_bytes_(outbuflen) void *outbufp, 2919 size_t outbuflen 2920 ); 2921 } 2922530 AUE_POSIX_FALLOCATE STD|CAPENABLED { 2923 int posix_fallocate( 2924 int fd, 2925 off_t offset, 2926 off_t len 2927 ); 2928 } 2929531 AUE_POSIX_FADVISE STD|CAPENABLED { 2930 int posix_fadvise( 2931 int fd, 2932 off_t offset, 2933 off_t len, 2934 int advice 2935 ); 2936 } 2937532 AUE_WAIT6 STD { 2938 int wait6( 2939 idtype_t idtype, 2940 id_t id, 2941 _Out_opt_ int *status, 2942 int options, 2943 _Out_opt_ _Contains_long_ struct __wrusage *wrusage, 2944 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 2945 ); 2946 } 2947533 AUE_CAP_RIGHTS_LIMIT STD|CAPENABLED { 2948 int cap_rights_limit( 2949 int fd, 2950 _In_ cap_rights_t *rightsp 2951 ); 2952 } 2953534 AUE_CAP_IOCTLS_LIMIT STD|CAPENABLED { 2954 int cap_ioctls_limit( 2955 int fd, 2956 _In_reads_(ncmds) const u_long *cmds, 2957 size_t ncmds 2958 ); 2959 } 2960535 AUE_CAP_IOCTLS_GET STD|CAPENABLED { 2961 ssize_t cap_ioctls_get( 2962 int fd, 2963 _Out_writes_(maxcmds) u_long *cmds, 2964 size_t maxcmds 2965 ); 2966 } 2967536 AUE_CAP_FCNTLS_LIMIT STD|CAPENABLED { 2968 int cap_fcntls_limit( 2969 int fd, 2970 uint32_t fcntlrights 2971 ); 2972 } 2973537 AUE_CAP_FCNTLS_GET STD|CAPENABLED { 2974 int cap_fcntls_get( 2975 int fd, 2976 _Out_ uint32_t *fcntlrightsp 2977 ); 2978 } 2979538 AUE_BINDAT STD|CAPENABLED { 2980 int bindat( 2981 int fd, 2982 int s, 2983 _In_reads_bytes_(namelen) const struct sockaddr *name, 2984 __socklen_t namelen 2985 ); 2986 } 2987539 AUE_CONNECTAT STD|CAPENABLED { 2988 int connectat( 2989 int fd, 2990 int s, 2991 _In_reads_bytes_(namelen) const struct sockaddr *name, 2992 __socklen_t namelen 2993 ); 2994 } 2995540 AUE_CHFLAGSAT STD|CAPENABLED { 2996 int chflagsat( 2997 int fd, 2998 _In_z_ const char *path, 2999 u_long flags, 3000 int atflag 3001 ); 3002 } 3003541 AUE_ACCEPT STD|CAPENABLED { 3004 int accept4( 3005 int s, 3006 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 3007 _Inout_opt_ __socklen_t *anamelen, 3008 int flags 3009 ); 3010 } 3011542 AUE_PIPE STD|CAPENABLED { 3012 int pipe2( 3013 _Out_writes_(2) int *fildes, 3014 int flags 3015 ); 3016 } 3017543 AUE_AIO_MLOCK STD { 3018 int aio_mlock( 3019 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 3020 ); 3021 } 3022544 AUE_PROCCTL STD { 3023 int procctl( 3024 idtype_t idtype, 3025 id_t id, 3026 int com, 3027 _In_opt_ void *data 3028 ); 3029 } 3030545 AUE_POLL STD|CAPENABLED { 3031 int ppoll( 3032 _Inout_updates_(nfds) struct pollfd *fds, 3033 u_int nfds, 3034 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 3035 _In_opt_ const sigset_t *set 3036 ); 3037 } 3038546 AUE_FUTIMES STD|CAPENABLED { 3039 int futimens( 3040 int fd, 3041 _In_reads_(2) _Contains_long_timet_ const struct timespec *times 3042 ); 3043 } 3044547 AUE_FUTIMESAT STD|CAPENABLED { 3045 int utimensat( 3046 int fd, 3047 _In_z_ const char *path, 3048 _In_reads_(2) _Contains_long_timet_ const struct timespec *times, 3049 int flag 3050 ); 3051 } 3052548 AUE_NULL OBSOL numa_getaffinity 3053549 AUE_NULL OBSOL numa_setaffinity 3054550 AUE_FSYNC STD|CAPENABLED { 3055 int fdatasync( 3056 int fd 3057 ); 3058 } 3059551 AUE_FSTAT STD|CAPENABLED { 3060 int fstat( 3061 int fd, 3062 _Out_ _Contains_long_timet_ struct stat *sb 3063 ); 3064 } 3065552 AUE_FSTATAT STD|CAPENABLED { 3066 int fstatat( 3067 int fd, 3068 _In_z_ const char *path, 3069 _Out_ _Contains_long_timet_ struct stat *buf, 3070 int flag 3071 ); 3072 } 3073553 AUE_FHSTAT STD { 3074 int fhstat( 3075 _In_ const struct fhandle *u_fhp, 3076 _Out_ _Contains_long_timet_ struct stat *sb 3077 ); 3078 } 3079554 AUE_GETDIRENTRIES STD|CAPENABLED { 3080 ssize_t getdirentries( 3081 int fd, 3082 _Out_writes_bytes_(count) char *buf, 3083 size_t count, 3084 _Out_opt_ off_t *basep 3085 ); 3086 } 3087555 AUE_STATFS STD { 3088 int statfs( 3089 _In_z_ const char *path, 3090 _Out_ struct statfs *buf 3091 ); 3092 } 3093556 AUE_FSTATFS STD|CAPENABLED { 3094 int fstatfs( 3095 int fd, 3096 _Out_ struct statfs *buf 3097 ); 3098 } 3099557 AUE_GETFSSTAT STD { 3100 int getfsstat( 3101 _Out_writes_bytes_opt_(bufsize) struct statfs *buf, 3102 long bufsize, 3103 int mode 3104 ); 3105 } 3106558 AUE_FHSTATFS STD { 3107 int fhstatfs( 3108 _In_ const struct fhandle *u_fhp, 3109 _Out_ struct statfs *buf 3110 ); 3111 } 3112559 AUE_MKNODAT STD|CAPENABLED { 3113 int mknodat( 3114 int fd, 3115 _In_z_ const char *path, 3116 mode_t mode, 3117 dev_t dev 3118 ); 3119 } 3120560 AUE_KEVENT STD|CAPENABLED { 3121 int kevent( 3122 int fd, 3123 _In_reads_opt_(nchanges) _Contains_ptr_ const struct kevent *changelist, 3124 int nchanges, 3125 _Out_writes_opt_(nevents) _Contains_ptr_ struct kevent *eventlist, 3126 int nevents, 3127 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 3128 ); 3129 } 3130561 AUE_NULL STD|CAPENABLED { 3131 int cpuset_getdomain( 3132 cpulevel_t level, 3133 cpuwhich_t which, 3134 id_t id, 3135 size_t domainsetsize, 3136 _Out_writes_bytes_(domainsetsize) domainset_t *mask, 3137 _Out_ int *policy 3138 ); 3139 } 3140562 AUE_NULL STD|CAPENABLED { 3141 int cpuset_setdomain( 3142 cpulevel_t level, 3143 cpuwhich_t which, 3144 id_t id, 3145 size_t domainsetsize, 3146 _In_ domainset_t *mask, 3147 int policy 3148 ); 3149 } 3150563 AUE_NULL STD|CAPENABLED { 3151 int getrandom( 3152 _Out_writes_bytes_(buflen) void *buf, 3153 size_t buflen, 3154 unsigned int flags 3155 ); 3156 } 3157564 AUE_NULL STD { 3158 int getfhat( 3159 int fd, 3160 _In_z_ char *path, 3161 _Out_ struct fhandle *fhp, 3162 int flags 3163 ); 3164 } 3165565 AUE_NULL STD { 3166 int fhlink( 3167 _In_ struct fhandle *fhp, 3168 _In_z_ const char *to 3169 ); 3170 } 3171566 AUE_NULL STD { 3172 int fhlinkat( 3173 _In_ struct fhandle *fhp, 3174 int tofd, 3175 _In_z_ const char *to, 3176 ); 3177 } 3178567 AUE_NULL STD { 3179 int fhreadlink( 3180 _In_ struct fhandle *fhp, 3181 _Out_writes_(bufsize) char *buf, 3182 size_t bufsize 3183 ); 3184 } 3185568 AUE_UNLINKAT STD|CAPENABLED { 3186 int funlinkat( 3187 int dfd, 3188 _In_z_ const char *path, 3189 int fd, 3190 int flag 3191 ); 3192 } 3193569 AUE_NULL STD|CAPENABLED { 3194 ssize_t copy_file_range( 3195 int infd, 3196 _Inout_opt_ off_t *inoffp, 3197 int outfd, 3198 _Inout_opt_ off_t *outoffp, 3199 size_t len, 3200 unsigned int flags 3201 ); 3202 } 3203570 AUE_SYSCTL STD|CAPENABLED { 3204 int __sysctlbyname( 3205 _In_reads_(namelen) const char *name, 3206 size_t namelen, 3207 _Out_writes_bytes_opt_(*oldlenp) void *old, 3208 _Inout_opt_ size_t *oldlenp, 3209 _In_reads_bytes_opt_(newlen) void *new, 3210 size_t newlen 3211 ); 3212 } 3213571 AUE_SHMOPEN STD|CAPENABLED { 3214 int shm_open2( 3215 _In_z_ const char *path, 3216 int flags, 3217 mode_t mode, 3218 int shmflags, 3219 _In_z_ const char *name 3220 ); 3221 } 3222572 AUE_SHMRENAME STD { 3223 int shm_rename( 3224 _In_z_ const char *path_from, 3225 _In_z_ const char *path_to, 3226 int flags 3227 ); 3228 } 3229573 AUE_NULL STD|CAPENABLED { 3230 int sigfastblock( 3231 int cmd, 3232 _Inout_updates_bytes_opt_(4) void *ptr 3233 ); 3234 } 3235574 AUE_REALPATHAT STD { 3236 int __realpathat( 3237 int fd, 3238 _In_z_ const char *path, 3239 _Out_writes_z_(size) char *buf, 3240 size_t size, 3241 int flags 3242 ); 3243 } 3244575 AUE_CLOSERANGE STD|CAPENABLED { 3245 int close_range( 3246 u_int lowfd, 3247 u_int highfd, 3248 int flags 3249 ); 3250 } 3251; 576 is initialised by the krpc code, if present. 3252576 AUE_NULL NOSTD { 3253 int rpctls_syscall( 3254 uint64_t socookie 3255 ); 3256 } 3257577 AUE_SPECIALFD STD|CAPENABLED { 3258 int __specialfd( 3259 int type, 3260 _In_reads_bytes_(len) const void *req, 3261 size_t len 3262 ); 3263 } 3264578 AUE_AIO_WRITEV STD|CAPENABLED { 3265 int aio_writev( 3266 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3267 ); 3268 } 3269579 AUE_AIO_READV STD|CAPENABLED { 3270 int aio_readv( 3271 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3272 ); 3273 } 3274580 AUE_FSPACECTL STD|CAPENABLED { 3275 int fspacectl( 3276 int fd, 3277 int cmd, 3278 _In_ const struct spacectl_range *rqsr, 3279 int flags, 3280 _Out_opt_ struct spacectl_range *rmsr, 3281 ); 3282 } 3283581 AUE_NULL STD|CAPENABLED { 3284 int sched_getcpu(void); 3285 } 3286582 AUE_SWAPOFF STD { 3287 int swapoff( 3288 _In_z_ const char *name, 3289 u_int flags, 3290 ); 3291 } 3292583 AUE_KQUEUE STD|CAPENABLED { 3293 int kqueuex( 3294 u_int flags 3295 ); 3296 } 3297584 AUE_NULL STD|CAPENABLED { 3298 int membarrier( 3299 int cmd, 3300 unsigned flags, 3301 int cpu_id 3302 ); 3303 } 3304585 AUE_TIMERFD STD|CAPENABLED { 3305 int timerfd_create( 3306 int clockid, 3307 int flags 3308 ); 3309 } 3310586 AUE_TIMERFD STD|CAPENABLED { 3311 int timerfd_gettime( 3312 int fd, 3313 _Out_ _Contains_long_timet_ struct itimerspec *curr_value 3314 ); 3315 } 3316587 AUE_TIMERFD STD|CAPENABLED { 3317 int timerfd_settime( 3318 int fd, 3319 int flags, 3320 _In_ _Contains_long_timet_ const struct itimerspec *new_value, 3321 _Out_opt_ _Contains_long_timet_ struct itimerspec *old_value 3322 ); 3323 } 3324588 AUE_NULL STD { 3325 int kcmp( 3326 pid_t pid1, 3327 pid_t pid2, 3328 int type, 3329 uintptr_t idx1, 3330 uintptr_t idx2 3331 ); 3332 } 3333589 AUE_NULL STD|CAPENABLED { 3334 int getrlimitusage( 3335 u_int which, 3336 int flags, 3337 _Out_ rlim_t *res 3338 ); 3339 } 3340590 AUE_NULL STD { 3341 int fchroot( 3342 int fd 3343 ); 3344 } 3345591 AUE_SETCRED STD|CAPENABLED { 3346 int setcred( 3347 u_int flags, 3348 _In_reads_bytes_(size) _Contains_ptr_ const struct setcred *wcred, 3349 size_t size 3350 ); 3351 } 3352 3353; vim: syntax=off 3354