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 the output 111; files. However, #ifdef, etc will be copied, but any lines that don't start 112; with # will not. Caveat Emptor. 113 114#include <sys/param.h> 115#include <sys/sysent.h> 116#include <sys/sysproto.h> 117%%ABI_HEADERS%% 118 1190 AUE_NULL SYSMUX { 120 int syscall( 121 int number, 122 ... 123 ); 124 } 1251 AUE_EXIT STD|CAPENABLED { 126 void exit( 127 int rval 128 ); 129 } 1302 AUE_FORK STD|CAPENABLED { 131 int fork(void); 132 } 1333 AUE_READ STD|CAPENABLED { 134 ssize_t read( 135 int fd, 136 _Out_writes_bytes_(nbyte) void *buf, 137 size_t nbyte 138 ); 139 } 1404 AUE_WRITE STD|CAPENABLED { 141 ssize_t write( 142 int fd, 143 _In_reads_bytes_(nbyte) const void *buf, 144 size_t nbyte 145 ); 146 } 1475 AUE_OPEN_RWTC STD { 148 int open( 149 _In_z_ const char *path, 150 int flags, 151 mode_t mode 152 ); 153 } 154; XXX should be { int open(const char *path, int flags, ...); } 155; but we're not ready for varargs. 1566 AUE_CLOSE STD|CAPENABLED { 157 int close( 158 int fd 159 ); 160 } 1617 AUE_WAIT4 STD|CAPENABLED { 162 int wait4( 163 int pid, 164 _Out_opt_ int *status, 165 int options, 166 _Out_opt_ _Contains_long_timet_ struct rusage *rusage 167 ); 168 } 1698 AUE_CREAT COMPAT { 170 int creat( 171 _In_z_ const char *path, 172 int mode 173 ); 174 } 1759 AUE_LINK STD { 176 int link( 177 _In_z_ const char *path, 178 _In_z_ const char *link 179 ); 180 } 18110 AUE_UNLINK STD { 182 int unlink( 183 _In_z_ const char *path 184 ); 185 } 18611 AUE_NULL OBSOL execv 18712 AUE_CHDIR STD { 188 int chdir( 189 _In_z_ const char *path 190 ); 191 } 19213 AUE_FCHDIR STD { 193 int fchdir( 194 int fd 195 ); 196 } 19714 AUE_MKNOD COMPAT11 { 198 int mknod( 199 _In_z_ const char *path, 200 int mode, 201 uint32_t dev 202 ); 203 } 20415 AUE_CHMOD STD { 205 int chmod( 206 _In_z_ const char *path, 207 mode_t mode 208 ); 209 } 21016 AUE_CHOWN STD { 211 int chown( 212 _In_z_ const char *path, 213 int uid, 214 int gid 215 ); 216 } 21717 AUE_NULL STD|CAPENABLED { 218 void *break( 219 _In_ char *nsize 220 ); 221 } 22218 AUE_GETFSSTAT COMPAT4 { 223 int getfsstat( 224 _Out_writes_bytes_opt_(bufsize) _Contains_long_ struct ostatfs *buf, 225 long bufsize, 226 int mode 227 ); 228 } 22919 AUE_LSEEK COMPAT|CAPENABLED { 230 long lseek( 231 int fd, 232 long offset, 233 int whence 234 ); 235 } 23620 AUE_GETPID STD|CAPENABLED { 237 pid_t getpid(void); 238 } 23921 AUE_MOUNT STD { 240 int mount( 241 _In_z_ const char *type, 242 _In_z_ const char *path, 243 int flags, 244 _In_opt_ void *data 245 ); 246 } 24722 AUE_UMOUNT STD { 248 int unmount( 249 _In_z_ const char *path, 250 int flags 251 ); 252 } 25323 AUE_SETUID STD|CAPENABLED { 254 int setuid( 255 uid_t uid 256 ); 257 } 25824 AUE_GETUID STD|CAPENABLED { 259 uid_t getuid(void); 260 } 26125 AUE_GETEUID STD|CAPENABLED { 262 uid_t geteuid(void); 263 } 26426 AUE_PTRACE STD { 265 int ptrace( 266 int req, 267 pid_t pid, 268 _Inout_opt_ _Contains_long_ptr_ caddr_t addr, 269 int data 270 ); 271 } 27227 AUE_RECVMSG STD|CAPENABLED { 273 ssize_t recvmsg( 274 int s, 275 _Inout_ _Contains_ptr_ struct msghdr *msg, 276 int flags 277 ); 278 } 27928 AUE_SENDMSG STD|CAPENABLED { 280 ssize_t sendmsg( 281 int s, 282 _In_ _Contains_ptr_ const struct msghdr *msg, 283 int flags 284 ); 285 } 28629 AUE_RECVFROM STD|CAPENABLED { 287 ssize_t recvfrom( 288 int s, 289 _Out_writes_bytes_(len) void *buf, 290 size_t len, 291 int flags, 292 _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from, 293 _Inout_opt_ __socklen_t *fromlenaddr 294 ); 295 } 29630 AUE_ACCEPT STD|CAPENABLED { 297 int accept( 298 int s, 299 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 300 _Inout_opt_ __socklen_t *anamelen 301 ); 302 } 30331 AUE_GETPEERNAME STD|CAPENABLED { 304 int getpeername( 305 int fdes, 306 _Out_writes_bytes_(*alen) struct sockaddr *asa, 307 _Inout_opt_ __socklen_t *alen 308 ); 309 } 31032 AUE_GETSOCKNAME STD|CAPENABLED { 311 int getsockname( 312 int fdes, 313 _Out_writes_bytes_(*alen) struct sockaddr *asa, 314 _Inout_ __socklen_t *alen 315 ); 316 } 31733 AUE_ACCESS STD { 318 int access( 319 _In_z_ const char *path, 320 int amode 321 ); 322 } 32334 AUE_CHFLAGS STD { 324 int chflags( 325 _In_z_ const char *path, 326 u_long flags 327 ); 328 } 32935 AUE_FCHFLAGS STD|CAPENABLED { 330 int fchflags( 331 int fd, 332 u_long flags 333 ); 334 } 33536 AUE_SYNC STD|CAPENABLED { 336 int sync(void); 337 } 33837 AUE_KILL STD|CAPENABLED { 339 int kill( 340 int pid, 341 int signum 342 ); 343 } 34438 AUE_STAT COMPAT { 345 int stat( 346 _In_z_ const char *path, 347 _Out_ _Contains_timet_ struct ostat *ub 348 ); 349 } 35039 AUE_GETPPID STD|CAPENABLED { 351 pid_t getppid(void); 352 } 35340 AUE_LSTAT COMPAT { 354 int lstat( 355 _In_z_ const char *path, 356 _Out_ _Contains_timet_ struct ostat *ub 357 ); 358 } 35941 AUE_DUP STD|CAPENABLED { 360 int dup( 361 u_int fd 362 ); 363 } 36442 AUE_PIPE COMPAT10|CAPENABLED { 365 int pipe(void); 366 } 36743 AUE_GETEGID STD|CAPENABLED { 368 gid_t getegid(void); 369 } 37044 AUE_PROFILE STD|CAPENABLED { 371 int profil( 372 _Out_writes_bytes_(size) char *samples, 373 size_t size, 374 size_t offset, 375 u_int scale 376 ); 377 } 37845 AUE_KTRACE STD { 379 int ktrace( 380 _In_z_ const char *fname, 381 int ops, 382 int facs, 383 int pid 384 ); 385 } 38646 AUE_SIGACTION COMPAT|CAPENABLED { 387 int sigaction( 388 int signum, 389 _In_opt_ _Contains_ptr_ struct osigaction *nsa, 390 _Out_opt_ _Contains_ptr_ struct osigaction *osa 391 ); 392 } 39347 AUE_GETGID STD|CAPENABLED { 394 gid_t getgid(void); 395 } 39648 AUE_SIGPROCMASK COMPAT|CAPENABLED { 397 int sigprocmask( 398 int how, 399 osigset_t mask 400 ); 401 } 402; XXX note nonstandard (bogus) calling convention - the libc stub passes 403; us the mask, not a pointer to it, and we return the old mask as the 404; (int) return value. 40549 AUE_GETLOGIN STD|CAPENABLED { 406 int getlogin( 407 _Out_writes_z_(namelen) char *namebuf, 408 u_int namelen 409 ); 410 } 41150 AUE_SETLOGIN STD { 412 int setlogin( 413 _In_z_ const char *namebuf 414 ); 415 } 41651 AUE_ACCT STD { 417 int acct( 418 _In_z_ const char *path 419 ); 420 } 42152 AUE_SIGPENDING COMPAT|CAPENABLED { 422 int sigpending(void); 423 } 42453 AUE_SIGALTSTACK STD|CAPENABLED { 425 int sigaltstack( 426 _In_opt_ _Contains_long_ptr_ const struct sigaltstack *ss, 427 _Out_opt_ _Contains_long_ptr_ struct sigaltstack *oss 428 ); 429 } 43054 AUE_IOCTL STD|CAPENABLED { 431 int ioctl( 432 int fd, 433 u_long com, 434 _Inout_opt_ _Contains_long_ptr_ char *data 435 ); 436 } 43755 AUE_REBOOT STD { 438 int reboot( 439 int opt 440 ); 441 } 44256 AUE_REVOKE STD { 443 int revoke( 444 _In_z_ const char *path 445 ); 446 } 44757 AUE_SYMLINK STD { 448 int symlink( 449 _In_z_ const char *path, 450 _In_z_ const char *link 451 ); 452 } 45358 AUE_READLINK STD { 454 ssize_t readlink( 455 _In_z_ const char *path, 456 _Out_writes_z_(count) char *buf, 457 size_t count 458 ); 459 } 46059 AUE_EXECVE STD { 461 int execve( 462 _In_z_ const char *fname, 463 _In_z_ char **argv, 464 _In_z_ char **envv 465 ); 466 } 46760 AUE_UMASK STD|CAPENABLED { 468 mode_t umask( 469 mode_t newmask 470 ); 471 } 47261 AUE_CHROOT STD { 473 int chroot( 474 _In_z_ const char *path 475 ); 476 } 47762 AUE_FSTAT COMPAT|CAPENABLED { 478 int fstat( 479 int fd, 480 _Out_ _Contains_timet_ struct ostat *sb 481 ); 482 } 48363 AUE_NULL COMPAT { 484 int getkerninfo( 485 int op, 486 _Out_writes_bytes_opt(*size) char *where, 487 _Inout_opt_ size_t *size, 488 int arg 489 ); 490 } 49164 AUE_NULL COMPAT|CAPENABLED { 492 int getpagesize(void); 493 } 49465 AUE_MSYNC STD|CAPENABLED { 495 int msync( 496 _In_ void *addr, 497 size_t len, 498 int flags 499 ); 500 } 50166 AUE_VFORK STD|CAPENABLED { 502 int vfork(void); 503 } 50467 AUE_NULL OBSOL vread 50568 AUE_NULL OBSOL vwrite 50669 AUE_NULL OBSOL sbrk 50770 AUE_NULL OBSOL sstk 50871 AUE_MMAP COMPAT|CAPENABLED { 509 void *mmap( 510 _In_ void *addr, 511 int len, 512 int prot, 513 int flags, 514 int fd, 515 long pos 516 ); 517 } 51872 AUE_O_VADVISE COMPAT11 { 519 int vadvise( 520 int anom 521 ); 522 } 52373 AUE_MUNMAP STD|CAPENABLED { 524 int munmap( 525 _In_ void *addr, 526 size_t len 527 ); 528 } 52974 AUE_MPROTECT STD|CAPENABLED { 530 int mprotect( 531 _In_ void *addr, 532 size_t len, 533 int prot 534 ); 535 } 53675 AUE_MADVISE STD|CAPENABLED { 537 int madvise( 538 _In_ void *addr, 539 size_t len, 540 int behav 541 ); 542 } 54376 AUE_NULL OBSOL vhangup 54477 AUE_NULL OBSOL vlimit 54578 AUE_MINCORE STD|CAPENABLED { 546 int mincore( 547 _In_ const void *addr, 548 size_t len, 549 _Out_writes_bytes_(len/PAGE_SIZE) char *vec 550 ); 551 } 55279 AUE_GETGROUPS STD|CAPENABLED { 553 int getgroups( 554 int gidsetsize, 555 _Out_writes_opt_(gidsetsize) gid_t *gidset 556 ); 557 } 55880 AUE_SETGROUPS STD { 559 int setgroups( 560 int gidsetsize, 561 _In_reads_(gidsetsize) const gid_t *gidset 562 ); 563 } 56481 AUE_GETPGRP STD|CAPENABLED { 565 int getpgrp(void); 566 } 56782 AUE_SETPGRP STD { 568 int setpgid( 569 int pid, 570 int pgid 571 ); 572 } 57383 AUE_SETITIMER STD|CAPENABLED { 574 int setitimer( 575 int which, 576 _In_ _Contains_timet_ const struct itimerval *itv, 577 _Out_opt_ _Contains_timet_ struct itimerval *oitv 578 ); 579 } 58084 AUE_WAIT4 COMPAT { 581 int wait(void); 582 } 58385 AUE_SWAPON STD { 584 int swapon( 585 _In_z_ const char *name 586 ); 587 } 58886 AUE_GETITIMER STD|CAPENABLED { 589 int getitimer( 590 int which, 591 _Out_ _Contains_timet_ struct itimerval *itv 592 ); 593 } 59487 AUE_SYSCTL COMPAT|CAPENABLED { 595 int gethostname( 596 _Out_writes_z_(len) char *hostname, 597 u_int len 598 ); 599 } 60088 AUE_SYSCTL COMPAT { 601 int sethostname( 602 _In_reads_z_(len) char *hostname, 603 u_int len 604 ); 605 } 60689 AUE_GETDTABLESIZE STD|CAPENABLED { 607 int getdtablesize(void); 608 } 60990 AUE_DUP2 STD|CAPENABLED { 610 int dup2( 611 u_int from, 612 u_int to 613 ); 614 } 61591 AUE_NULL RESERVED 61692 AUE_FCNTL STD|CAPENABLED { 617 int fcntl( 618 int fd, 619 int cmd, 620 intptr_t arg 621 ); 622 } 623; XXX should be { int fcntl(int fd, int cmd, ...); } 624; but we're not ready for varargs. 62593 AUE_SELECT STD|CAPENABLED { 626 int select( 627 int nd, 628 _Inout_opt_ fd_set *in, 629 _Inout_opt_ fd_set *ou, 630 _Inout_opt_ fd_set *ex, 631 _In_opt_ _Contains_long_timet_ struct timeval *tv 632 ); 633 } 63494 AUE_NULL RESERVED 63595 AUE_FSYNC STD|CAPENABLED { 636 int fsync( 637 int fd 638 ); 639 } 64096 AUE_SETPRIORITY STD|CAPENABLED { 641 int setpriority( 642 int which, 643 int who, 644 int prio 645 ); 646 } 64797 AUE_SOCKET STD|CAPENABLED { 648 int socket( 649 int domain, 650 int type, 651 int protocol 652 ); 653 } 65498 AUE_CONNECT STD { 655 int connect( 656 int s, 657 _In_reads_bytes_(namelen) const struct sockaddr *name, 658 __socklen_t namelen 659 ); 660 } 66199 AUE_ACCEPT COMPAT|CAPENABLED { 662 int accept( 663 int s, 664 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 665 __socklen_t *anamelen 666 ); 667 } 668100 AUE_GETPRIORITY STD|CAPENABLED { 669 int getpriority( 670 int which, 671 int who 672 ); 673 } 674101 AUE_SEND COMPAT|CAPENABLED { 675 int send( 676 int s, 677 _In_reads_bytes_(len) const void *buf, 678 int len, 679 int flags 680 ); 681 } 682102 AUE_RECV COMPAT|CAPENABLED { 683 int recv( 684 int s, 685 _Out_writes_bytes_(len) void *buf, 686 int len, 687 int flags 688 ); 689 } 690103 AUE_SIGRETURN COMPAT|CAPENABLED { 691 int sigreturn( 692 _In_ struct osigcontext *sigcntxp 693 ); 694 } 695104 AUE_BIND STD { 696 int bind( 697 int s, 698 _In_reads_bytes_(namelen) const struct sockaddr *name, 699 __socklen_t namelen 700 ); 701 } 702105 AUE_SETSOCKOPT STD|CAPENABLED { 703 int setsockopt( 704 int s, 705 int level, 706 int name, 707 _In_reads_bytes_opt_(valsize) const void *val, 708 __socklen_t valsize 709 ); 710 } 711106 AUE_LISTEN STD|CAPENABLED { 712 int listen( 713 int s, 714 int backlog 715 ); 716 } 717107 AUE_NULL OBSOL vtimes 718108 AUE_NULL COMPAT|CAPENABLED { 719 int sigvec( 720 int signum, 721 _In_opt_ _Contains_ptr_ struct sigvec *nsv, 722 _Out_opt_ _Contains_ptr_ struct sigvec *osv 723 ); 724 } 725109 AUE_NULL COMPAT|CAPENABLED { 726 int sigblock( 727 int mask 728 ); 729 } 730110 AUE_NULL COMPAT|CAPENABLED { 731 int sigsetmask( 732 int mask 733 ); 734 } 735111 AUE_NULL COMPAT|CAPENABLED { 736 int sigsuspend( 737 osigset_t mask 738 ); 739 } 740; XXX note nonstandard (bogus) calling convention - the libc stub passes 741; us the mask, not a pointer to it. 742112 AUE_NULL COMPAT|CAPENABLED { 743 int sigstack( 744 _In_opt_ _Contains_ptr_ struct sigstack *nss, 745 _Out_opt_ _Contains_ptr_ struct sigstack *oss 746 ); 747 } 748113 AUE_RECVMSG COMPAT|CAPENABLED { 749 int recvmsg( 750 int s, 751 _Inout_ _Contains_ptr_ struct omsghdr *msg, 752 int flags 753 ); 754 } 755114 AUE_SENDMSG COMPAT|CAPENABLED { 756 int sendmsg( 757 int s, 758 _In_ _Contains_ptr_ const struct omsghdr *msg, 759 int flags 760 ); 761 } 762115 AUE_NULL OBSOL vtrace 763116 AUE_GETTIMEOFDAY STD|CAPENABLED { 764 int gettimeofday( 765 _Out_ _Contains_long_timet_ struct timeval *tp, 766 _Out_opt_ struct timezone *tzp 767 ); 768 } 769117 AUE_GETRUSAGE STD|CAPENABLED { 770 int getrusage( 771 int who, 772 _Out_ _Contains_long_ struct rusage *rusage 773 ); 774 } 775118 AUE_GETSOCKOPT STD|CAPENABLED { 776 int getsockopt( 777 int s, 778 int level, 779 int name, 780 _Out_writes_bytes_opt_(*avalsize) void *val, 781 _Inout_ __socklen_t *avalsize 782 ); 783 } 784119 AUE_NULL RESERVED 785120 AUE_READV STD|CAPENABLED { 786 ssize_t readv( 787 int fd, 788 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 789 u_int iovcnt 790 ); 791 } 792121 AUE_WRITEV STD|CAPENABLED { 793 ssize_t writev( 794 int fd, 795 _In_reads_(iovcnt) _Contains_long_ptr_ const struct iovec *iovp, 796 u_int iovcnt 797 ); 798 } 799122 AUE_SETTIMEOFDAY STD { 800 int settimeofday( 801 _In_ _Contains_long_timet_ const struct timeval *tv, 802 _In_opt_ const struct timezone *tzp 803 ); 804 } 805123 AUE_FCHOWN STD|CAPENABLED { 806 int fchown( 807 int fd, 808 int uid, 809 int gid 810 ); 811 } 812124 AUE_FCHMOD STD|CAPENABLED { 813 int fchmod( 814 int fd, 815 mode_t mode 816 ); 817 } 818125 AUE_RECVFROM COMPAT|CAPENABLED { 819 int recvfrom( 820 int s, 821 _Out_writes_(len) void *buf, 822 size_t len, 823 int flags, 824 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 825 _Inout_ __socklen_t *fromlenaddr 826 ); 827 } 828126 AUE_SETREUID STD|CAPENABLED { 829 int setreuid( 830 int ruid, 831 int euid 832 ); 833 } 834127 AUE_SETREGID STD|CAPENABLED { 835 int setregid( 836 int rgid, 837 int egid 838 ); 839 } 840128 AUE_RENAME STD { 841 int rename( 842 _In_z_ const char *from, 843 _In_z_ const char *to 844 ); 845 } 846129 AUE_TRUNCATE COMPAT { 847 int truncate( 848 _In_z_ const char *path, 849 long length 850 ); 851 } 852130 AUE_FTRUNCATE COMPAT|CAPENABLED { 853 int ftruncate( 854 int fd, 855 long length 856 ); 857 } 858131 AUE_FLOCK STD|CAPENABLED { 859 int flock( 860 int fd, 861 int how 862 ); 863 } 864132 AUE_MKFIFO STD { 865 int mkfifo( 866 _In_z_ const char *path, 867 mode_t mode 868 ); 869 } 870133 AUE_SENDTO STD|CAPENABLED { 871 ssize_t sendto( 872 int s, 873 _In_reads_bytes_(len) const void *buf, 874 size_t len, 875 int flags, 876 _In_reads_bytes_opt_(tolen) const struct sockaddr *to, 877 __socklen_t tolen 878 ); 879 } 880134 AUE_SHUTDOWN STD|CAPENABLED { 881 int shutdown( 882 int s, 883 int how 884 ); 885 } 886135 AUE_SOCKETPAIR STD|CAPENABLED { 887 int socketpair( 888 int domain, 889 int type, 890 int protocol, 891 _Out_writes_(2) int *rsv 892 ); 893 } 894136 AUE_MKDIR STD { 895 int mkdir( 896 _In_z_ const char *path, 897 mode_t mode 898 ); 899 } 900137 AUE_RMDIR STD { 901 int rmdir( 902 _In_z_ const char *path 903 ); 904 } 905138 AUE_UTIMES STD { 906 int utimes( 907 _In_z_ const char *path, 908 _In_ _Contains_long_timet_ const struct timeval *tptr 909 ); 910 } 911139 AUE_NULL OBSOL sigreturn 912140 AUE_ADJTIME STD { 913 int adjtime( 914 _In_ _Contains_long_timet_ const struct timeval *delta, 915 _Out_opt_ _Contains_long_timet_ struct timeval *olddelta 916 ); 917 } 918141 AUE_GETPEERNAME COMPAT|CAPENABLED { 919 int getpeername( 920 int fdes, 921 _Out_writes_bytes_(*alen) struct sockaddr *asa, 922 _Inout_opt_ __socklen_t *alen 923 ); 924 } 925142 AUE_SYSCTL COMPAT|CAPENABLED { 926 long gethostid(void); 927 } 928143 AUE_SYSCTL COMPAT { 929 int sethostid( 930 long hostid 931 ); 932 } 933144 AUE_GETRLIMIT COMPAT|CAPENABLED { 934 int getrlimit( 935 u_int which, 936 _Out_ struct orlimit *rlp 937 ); 938 } 939145 AUE_SETRLIMIT COMPAT|CAPENABLED { 940 int setrlimit( 941 u_int which, 942 _Out_ struct orlimit *rlp 943 ); 944 } 945146 AUE_KILLPG COMPAT { 946 int killpg( 947 int pgid, 948 int signum 949 ); 950 } 951147 AUE_SETSID STD|CAPENABLED { 952 int setsid(void); 953 } 954148 AUE_QUOTACTL STD { 955 int quotactl( 956 _In_z_ const char *path, 957 int cmd, 958 int uid, 959 _In_ void *arg 960 ); 961 } 962149 AUE_O_QUOTA COMPAT { 963 int quota(void); 964 } 965150 AUE_GETSOCKNAME COMPAT|CAPENABLED { 966 int getsockname( 967 int fdes, 968 _Out_writes_bytes_(*alen) struct sockaddr *asa, 969 _Inout_ __socklen_t *alen 970 ); 971 } 972151-153 AUE_NULL RESERVED 973; 154 is initialised by the NLM code, if present. 974154 AUE_NULL NOSTD { 975 int nlm_syscall( 976 int debug_level, 977 int grace_period, 978 int addr_count, 979 _In_reads_(addr_count) char **addrs 980 ); 981 } 982; 155 is initialized by the NFS code, if present. 983155 AUE_NFS_SVC NOSTD { 984 int nfssvc( 985 int flag, 986 _In_ void *argp 987 ); 988 } 989156 AUE_GETDIRENTRIES COMPAT|CAPENABLED { 990 int getdirentries( 991 int fd, 992 _Out_writes_bytes_(count) char *buf, 993 u_int count, 994 _Out_opt_ long *basep 995 ); 996 } 997157 AUE_STATFS COMPAT4 { 998 int statfs( 999 _In_z_ const char *path, 1000 _Out_ _Contains_long_ struct ostatfs *buf 1001 ); 1002 } 1003158 AUE_FSTATFS COMPAT4|CAPENABLED { 1004 int fstatfs( 1005 int fd, 1006 _Out_ _Contains_long_ struct ostatfs *buf 1007 ); 1008 } 1009159 AUE_NULL RESERVED 1010160 AUE_LGETFH STD { 1011 int lgetfh( 1012 _In_z_ const char *fname, 1013 _Out_ struct fhandle *fhp 1014 ); 1015 } 1016161 AUE_NFS_GETFH STD { 1017 int getfh( 1018 _In_z_ const char *fname, 1019 _Out_ struct fhandle *fhp 1020 ); 1021 } 1022162 AUE_SYSCTL COMPAT4|CAPENABLED { 1023 int getdomainname( 1024 _Out_writes_z_(len) char *domainname, 1025 int len 1026 ); 1027 } 1028163 AUE_SYSCTL COMPAT4 { 1029 int setdomainname( 1030 _In_reads_z_(len) char *domainname, 1031 int len 1032 ); 1033 } 1034164 AUE_NULL COMPAT4 { 1035 int uname( 1036 _Out_ struct utsname *name 1037 ); 1038 } 1039165 AUE_SYSARCH STD|CAPENABLED { 1040 int sysarch( 1041 int op, 1042 _In_z_ char *parms 1043 ); 1044 } 1045166 AUE_RTPRIO STD|CAPENABLED { 1046 int rtprio( 1047 int function, 1048 pid_t pid, 1049 _Inout_ struct rtprio *rtp 1050 ); 1051 } 1052167-168 AUE_NULL RESERVED 1053169 AUE_SEMSYS NOSTD { 1054 int semsys( 1055 int which, 1056 int a2, 1057 int a3, 1058 int a4, 1059 int a5 1060 ); 1061 } 1062; XXX should be { int semsys(int which, ...); } 1063170 AUE_MSGSYS NOSTD { 1064 int msgsys( 1065 int which, 1066 int a2, 1067 int a3, 1068 int a4, 1069 int a5, 1070 int a6 1071 ); 1072 } 1073; XXX should be { int msgsys(int which, ...); } 1074171 AUE_SHMSYS NOSTD { 1075 int shmsys( 1076 int which, 1077 int a2, 1078 int a3, 1079 int a4 1080 ); 1081 } 1082; XXX should be { int shmsys(int which, ...); } 1083172 AUE_NULL RESERVED 1084173 AUE_PREAD COMPAT6|CAPENABLED { 1085 ssize_t pread( 1086 int fd, 1087 _Out_writes_bytes_(nbyte) void *buf, 1088 size_t nbyte, 1089 int pad, 1090 off_t offset 1091 ); 1092 } 1093174 AUE_PWRITE COMPAT6|CAPENABLED { 1094 ssize_t pwrite( 1095 int fd, 1096 _In_reads_bytes_(nbyte) const void *buf, 1097 size_t nbyte, 1098 int pad, 1099 off_t offset 1100 ); 1101 } 1102175 AUE_SETFIB STD { 1103 int setfib( 1104 int fibnum 1105 ); 1106 } 1107176 AUE_NTP_ADJTIME STD { 1108 int ntp_adjtime( 1109 _Inout_ _Contains_long_ struct timex *tp 1110 ); 1111 } 1112177-180 AUE_NULL RESERVED 1113181 AUE_SETGID STD|CAPENABLED { 1114 int setgid( 1115 gid_t gid 1116 ); 1117 } 1118182 AUE_SETEGID STD|CAPENABLED { 1119 int setegid( 1120 gid_t egid 1121 ); 1122 } 1123183 AUE_SETEUID STD|CAPENABLED { 1124 int seteuid( 1125 uid_t euid 1126 ); 1127 } 1128184 AUE_NULL OBSOL lfs_bmapv 1129185 AUE_NULL OBSOL lfs_markv 1130186 AUE_NULL OBSOL lfs_segclean 1131187 AUE_NULL OBSOL lfs_segwait 1132188 AUE_STAT COMPAT11 { 1133 int stat( 1134 _In_z_ const char *path, 1135 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1136 ); 1137 } 1138189 AUE_FSTAT COMPAT11|CAPENABLED { 1139 int fstat( 1140 int fd, 1141 _Out_ _Contains_timet_ struct freebsd11_stat *sb 1142 ); 1143 } 1144190 AUE_LSTAT COMPAT11 { 1145 int lstat( 1146 _In_z_ const char *path, 1147 _Out_ _Contains_timet_ struct freebsd11_stat *ub 1148 ); 1149 } 1150191 AUE_PATHCONF STD { 1151 int pathconf( 1152 _In_z_ const char *path, 1153 int name 1154 ); 1155 } 1156192 AUE_FPATHCONF STD|CAPENABLED { 1157 int fpathconf( 1158 int fd, 1159 int name 1160 ); 1161 } 1162193 AUE_NULL RESERVED 1163194 AUE_GETRLIMIT STD|CAPENABLED { 1164 int getrlimit( 1165 u_int which, 1166 _Out_ struct rlimit *rlp 1167 ); 1168 } 1169195 AUE_SETRLIMIT STD|CAPENABLED { 1170 int setrlimit( 1171 u_int which, 1172 _In_ struct rlimit *rlp 1173 ); 1174 } 1175196 AUE_GETDIRENTRIES COMPAT11|CAPENABLED { 1176 int getdirentries( 1177 int fd, 1178 _Out_writes_bytes_(count) char *buf, 1179 u_int count, 1180 _Out_opt_ long *basep 1181 ); 1182 } 1183197 AUE_MMAP COMPAT6|CAPENABLED { 1184 void *mmap( 1185 _In_ void *addr, 1186 size_t len, 1187 int prot, 1188 int flags, 1189 int fd, 1190 int pad, 1191 off_t pos 1192 ); 1193 } 1194198 AUE_NULL SYSMUX { 1195 int __syscall( 1196 int64_t number, 1197 ... 1198 ); 1199 } 1200199 AUE_LSEEK COMPAT6|CAPENABLED { 1201 off_t lseek( 1202 int fd, 1203 int pad, 1204 off_t offset, 1205 int whence 1206 ); 1207 } 1208200 AUE_TRUNCATE COMPAT6 { 1209 int truncate( 1210 _In_z_ const char *path, 1211 int pad, 1212 off_t length 1213 ); 1214 } 1215201 AUE_FTRUNCATE COMPAT6|CAPENABLED { 1216 int ftruncate( 1217 int fd, 1218 int pad, 1219 off_t length 1220 ); 1221 } 1222202 AUE_SYSCTL STD|CAPENABLED { 1223 int __sysctl( 1224 _In_reads_(namelen) int *name, 1225 u_int namelen, 1226 _Out_writes_bytes_opt_(*oldlenp) void *old, 1227 _Inout_opt_ size_t *oldlenp, 1228 _In_reads_bytes_opt_(newlen) const void *new, 1229 size_t newlen 1230 ); 1231 } 1232203 AUE_MLOCK STD|CAPENABLED { 1233 int mlock( 1234 _In_ const void *addr, 1235 size_t len 1236 ); 1237 } 1238204 AUE_MUNLOCK STD|CAPENABLED { 1239 int munlock( 1240 _In_ const void *addr, 1241 size_t len 1242 ); 1243 } 1244205 AUE_UNDELETE STD { 1245 int undelete( 1246 _In_z_ const char *path 1247 ); 1248 } 1249206 AUE_FUTIMES STD|CAPENABLED { 1250 int futimes( 1251 int fd, 1252 _In_reads_(2) _Contains_long_timet_ const struct timeval *tptr 1253 ); 1254 } 1255207 AUE_GETPGID STD|CAPENABLED { 1256 int getpgid( 1257 pid_t pid 1258 ); 1259 } 1260208 AUE_NULL RESERVED 1261209 AUE_POLL STD|CAPENABLED { 1262 int poll( 1263 _Inout_updates_(nfds) struct pollfd *fds, 1264 u_int nfds, 1265 int timeout 1266 ); 1267 } 1268; 1269; The following are reserved for loadable syscalls 1270; 1271210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1272211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1273212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1274213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1275214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1276215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1277216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1278217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1279218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1280219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1281220 AUE_SEMCTL COMPAT7|NOSTD { 1282 int __semctl( 1283 int semid, 1284 int semnum, 1285 int cmd, 1286 _Contains_ptr_ union semun_old *arg 1287 ); 1288 } 1289221 AUE_SEMGET NOSTD { 1290 int semget( 1291 key_t key, 1292 int nsems, 1293 int semflg 1294 ); 1295 } 1296222 AUE_SEMOP NOSTD { 1297 int semop( 1298 int semid, 1299 _In_reads_(nsops) struct sembuf *sops, 1300 size_t nsops 1301 ); 1302 } 1303223 AUE_NULL OBSOL semconfig 1304224 AUE_MSGCTL COMPAT7|NOSTD { 1305 int msgctl( 1306 int msqid, 1307 int cmd, 1308 _Contains_long_ptr_timet_ struct msqid_ds_old *buf 1309 ); 1310 } 1311225 AUE_MSGGET NOSTD { 1312 int msgget( 1313 key_t key, 1314 int msgflg 1315 ); 1316 } 1317226 AUE_MSGSND NOSTD { 1318 int msgsnd( 1319 int msqid, 1320 _In_reads_bytes_(msgsz) _Contains_long_ const void *msgp, 1321 size_t msgsz, 1322 int msgflg 1323 ); 1324 } 1325227 AUE_MSGRCV NOSTD { 1326 ssize_t msgrcv( 1327 int msqid, 1328 _Out_writes_bytes_(msgsz) _Contains_long_ void *msgp, 1329 size_t msgsz, 1330 long msgtyp, 1331 int msgflg 1332 ); 1333 } 1334228 AUE_SHMAT NOSTD { 1335 void *shmat( 1336 int shmid, 1337 _In_ const void *shmaddr, 1338 int shmflg 1339 ); 1340 } 1341229 AUE_SHMCTL COMPAT7|NOSTD { 1342 int shmctl( 1343 int shmid, 1344 int cmd, 1345 _Inout_opt_ _Contains_long_ struct shmid_ds_old *buf 1346 ); 1347 } 1348230 AUE_SHMDT NOSTD { 1349 int shmdt( 1350 _In_ const void *shmaddr 1351 ); 1352 } 1353231 AUE_SHMGET NOSTD { 1354 int shmget( 1355 key_t key, 1356 size_t size, 1357 int shmflg 1358 ); 1359 } 1360232 AUE_NULL STD|CAPENABLED { 1361 int clock_gettime( 1362 clockid_t clock_id, 1363 _Out_ _Contains_long_timet_ struct timespec *tp 1364 ); 1365 } 1366233 AUE_CLOCK_SETTIME STD { 1367 int clock_settime( 1368 clockid_t clock_id, 1369 _In_ _Contains_long_timet_ const struct timespec *tp 1370 ); 1371 } 1372234 AUE_NULL STD|CAPENABLED { 1373 int clock_getres( 1374 clockid_t clock_id, 1375 _Out_ _Contains_long_timet_ struct timespec *tp 1376 ); 1377 } 1378235 AUE_NULL STD|CAPENABLED { 1379 int ktimer_create( 1380 clockid_t clock_id, 1381 _In_ _Contains_long_ptr_ struct sigevent *evp, 1382 _Out_ int *timerid 1383 ); 1384 } 1385236 AUE_NULL STD|CAPENABLED { 1386 int ktimer_delete( 1387 int timerid 1388 ); 1389 } 1390237 AUE_NULL STD|CAPENABLED { 1391 int ktimer_settime( 1392 int timerid, 1393 int flags, 1394 _In_ _Contains_long_timet_ const struct itimerspec *value, 1395 _Out_opt_ _Contains_long_timet_ struct itimerspec *ovalue 1396 ); 1397 } 1398238 AUE_NULL STD|CAPENABLED { 1399 int ktimer_gettime( 1400 int timerid, 1401 _Out_ _Contains_long_timet_ struct itimerspec *value 1402 ); 1403 } 1404239 AUE_NULL STD|CAPENABLED { 1405 int ktimer_getoverrun( 1406 int timerid 1407 ); 1408 } 1409240 AUE_NULL STD|CAPENABLED { 1410 int nanosleep( 1411 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1412 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1413 ); 1414 } 1415241 AUE_NULL STD { 1416 int ffclock_getcounter( 1417 _Out_ ffcounter *ffcount 1418 ); 1419 } 1420242 AUE_NULL STD { 1421 int ffclock_setestimate( 1422 _In_ _Contains_timet_ struct ffclock_estimate *cest 1423 ); 1424 } 1425243 AUE_NULL STD { 1426 int ffclock_getestimate( 1427 _Out_ _Contains_timet_ struct ffclock_estimate *cest 1428 ); 1429 } 1430244 AUE_NULL STD { 1431 int clock_nanosleep( 1432 clockid_t clock_id, 1433 int flags, 1434 _In_ _Contains_long_timet_ const struct timespec *rqtp, 1435 _Out_opt_ _Contains_long_timet_ struct timespec *rmtp 1436 ); 1437 } 1438245-246 AUE_NULL RESERVED 1439247 AUE_NULL STD { 1440 int clock_getcpuclockid2( 1441 id_t id, 1442 int which, 1443 _Out_ clockid_t *clock_id 1444 ); 1445 } 1446248 AUE_NULL STD|CAPENABLED { 1447 int ntp_gettime( 1448 _Out_ _Contains_long_timet_ struct ntptimeval *ntvp 1449 ); 1450 } 1451249 AUE_NULL RESERVED 1452250 AUE_MINHERIT STD|CAPENABLED { 1453 int minherit( 1454 _In_ void *addr, 1455 size_t len, 1456 int inherit 1457 ); 1458 } 1459251 AUE_RFORK STD|CAPENABLED { 1460 int rfork( 1461 int flags 1462 ); 1463 } 1464252 AUE_POLL OBSOL openbsd_poll 1465253 AUE_ISSETUGID STD|CAPENABLED { 1466 int issetugid(void); 1467 } 1468254 AUE_LCHOWN STD { 1469 int lchown( 1470 _In_z_ const char *path, 1471 int uid, 1472 int gid 1473 ); 1474 } 1475255 AUE_AIO_READ STD|CAPENABLED { 1476 int aio_read( 1477 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1478 ); 1479 } 1480256 AUE_AIO_WRITE STD|CAPENABLED { 1481 int aio_write( 1482 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1483 ); 1484 } 1485257 AUE_LIO_LISTIO STD|CAPENABLED { 1486 int lio_listio( 1487 int mode, 1488 _Inout_updates_(nent) _Contains_long_ptr_ struct aiocb * const *acb_list, 1489 int nent, 1490 _In_opt_ _Contains_long_ptr_ struct sigevent *sig 1491 ); 1492 } 1493258-271 AUE_NULL RESERVED 1494272 AUE_O_GETDENTS COMPAT11|CAPENABLED { 1495 int getdents( 1496 int fd, 1497 _Out_writes_bytes_(count) char *buf, 1498 size_t count 1499 ); 1500 } 1501273 AUE_NULL RESERVED 1502274 AUE_LCHMOD STD { 1503 int lchmod( 1504 _In_z_ const char *path, 1505 mode_t mode 1506 ); 1507 } 1508275 AUE_NULL OBSOL netbsd_lchown 1509276 AUE_LUTIMES STD { 1510 int lutimes( 1511 _In_z_ const char *path, 1512 _In_ _Contains_long_timet_ const struct timeval *tptr 1513 ); 1514 } 1515277 AUE_NULL OBSOL netbsd_msync 1516278 AUE_STAT COMPAT11 { 1517 int nstat( 1518 _In_z_ const char *path, 1519 _Out_ _Contains_long_timet_ struct nstat *ub 1520 ); 1521 } 1522279 AUE_FSTAT COMPAT11 { 1523 int nfstat( 1524 int fd, 1525 _Out_ _Contains_long_timet_ struct nstat *sb 1526 ); 1527 } 1528280 AUE_LSTAT COMPAT11 { 1529 int nlstat( 1530 _In_z_ const char *path, 1531 _Out_ _Contains_long_timet_ struct nstat *ub 1532 ); 1533 } 1534281-288 AUE_NULL RESERVED 1535289 AUE_PREADV STD|CAPENABLED { 1536 ssize_t preadv( 1537 int fd, 1538 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1539 u_int iovcnt, 1540 off_t offset 1541 ); 1542 } 1543290 AUE_PWRITEV STD|CAPENABLED { 1544 ssize_t pwritev( 1545 int fd, 1546 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 1547 u_int iovcnt, 1548 off_t offset 1549 ); 1550 } 1551291-296 AUE_NULL RESERVED 1552297 AUE_FHSTATFS COMPAT4 { 1553 int fhstatfs( 1554 _In_ const struct fhandle *u_fhp, 1555 _Out_ _Contains_long_ struct ostatfs *buf 1556 ); 1557 } 1558298 AUE_FHOPEN STD { 1559 int fhopen( 1560 _In_ const struct fhandle *u_fhp, 1561 int flags 1562 ); 1563 } 1564299 AUE_FHSTAT COMPAT11 { 1565 int fhstat( 1566 _In_ const struct fhandle *u_fhp, 1567 _Out_ _Contains_long_timet_ struct freebsd11_stat *sb 1568 ); 1569 } 1570300 AUE_NULL STD { 1571 int modnext( 1572 int modid 1573 ); 1574 } 1575301 AUE_NULL STD { 1576 int modstat( 1577 int modid, 1578 _Out_ _Contains_long_ struct module_stat *stat 1579 ); 1580 } 1581302 AUE_NULL STD { 1582 int modfnext( 1583 int modid 1584 ); 1585 } 1586303 AUE_NULL STD { 1587 int modfind( 1588 _In_z_ const char *name 1589 ); 1590 } 1591304 AUE_MODLOAD STD { 1592 int kldload( 1593 _In_z_ const char *file 1594 ); 1595 } 1596305 AUE_MODUNLOAD STD { 1597 int kldunload( 1598 int fileid 1599 ); 1600 } 1601306 AUE_NULL STD { 1602 int kldfind( 1603 _In_z_ const char *file 1604 ); 1605 } 1606307 AUE_NULL STD { 1607 int kldnext( 1608 int fileid 1609 ); 1610 } 1611308 AUE_NULL STD { 1612 int kldstat( 1613 int fileid, 1614 _Out_ _Contains_long_ptr_ struct kld_file_stat *stat 1615 ); 1616 } 1617309 AUE_NULL STD { 1618 int kldfirstmod( 1619 int fileid 1620 ); 1621 } 1622310 AUE_GETSID STD|CAPENABLED { 1623 int getsid( 1624 pid_t pid 1625 ); 1626 } 1627311 AUE_SETRESUID STD|CAPENABLED { 1628 int setresuid( 1629 uid_t ruid, 1630 uid_t euid, 1631 uid_t suid 1632 ); 1633 } 1634312 AUE_SETRESGID STD|CAPENABLED { 1635 int setresgid( 1636 gid_t rgid, 1637 gid_t egid, 1638 gid_t sgid 1639 ); 1640 } 1641313 AUE_NULL OBSOL signanosleep 1642314 AUE_AIO_RETURN STD|CAPENABLED { 1643 ssize_t aio_return( 1644 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 1645 ); 1646 } 1647315 AUE_AIO_SUSPEND STD|CAPENABLED { 1648 int aio_suspend( 1649 _Inout_updates_(nent) _Contains_long_ptr_ const struct aiocb * const * aiocbp, 1650 int nent, 1651 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1652 ); 1653 } 1654316 AUE_AIO_CANCEL STD|CAPENABLED { 1655 int aio_cancel( 1656 int fd, 1657 _In_opt_ _Contains_long_ptr_ struct aiocb *aiocbp 1658 ); 1659 } 1660317 AUE_AIO_ERROR STD|CAPENABLED { 1661 int aio_error( 1662 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 1663 ); 1664 } 1665318 AUE_AIO_READ COMPAT6|CAPENABLED { 1666 int aio_read( 1667 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1668 ); 1669 } 1670319 AUE_AIO_WRITE COMPAT6|CAPENABLED { 1671 int aio_write( 1672 _Inout_ _Contains_long_ptr_ struct oaiocb *aiocbp 1673 ); 1674 } 1675320 AUE_LIO_LISTIO COMPAT6|CAPENABLED { 1676 int lio_listio( 1677 int mode, 1678 _Inout_updates_(nent) _Contains_long_ptr_ struct oaiocb * const *acb_list, 1679 int nent, 1680 _In_opt_ _Contains_ptr_ struct osigevent *sig 1681 ); 1682 } 1683321 AUE_NULL STD|CAPENABLED|NOLIB { 1684 int yield(void); 1685 } 1686322 AUE_NULL OBSOL thr_sleep 1687323 AUE_NULL OBSOL thr_wakeup 1688324 AUE_MLOCKALL STD|CAPENABLED { 1689 int mlockall( 1690 int how 1691 ); 1692 } 1693325 AUE_MUNLOCKALL STD|CAPENABLED { 1694 int munlockall(void); 1695 } 1696326 AUE_GETCWD STD { 1697 int __getcwd( 1698 _Out_writes_z_(buflen) char *buf, 1699 size_t buflen 1700 ); 1701 } 1702327 AUE_NULL STD|CAPENABLED { 1703 int sched_setparam( 1704 pid_t pid, 1705 _In_ const struct sched_param *param 1706 ); 1707 } 1708328 AUE_NULL STD|CAPENABLED { 1709 int sched_getparam( 1710 pid_t pid, 1711 _Out_ struct sched_param *param 1712 ); 1713 } 1714329 AUE_NULL STD|CAPENABLED { 1715 int sched_setscheduler( 1716 pid_t pid, 1717 int policy, 1718 _In_ const struct sched_param *param 1719 ); 1720 } 1721330 AUE_NULL STD|CAPENABLED { 1722 int sched_getscheduler( 1723 pid_t pid 1724 ); 1725 } 1726331 AUE_NULL STD|CAPENABLED { 1727 int sched_yield(void); 1728 } 1729332 AUE_NULL STD|CAPENABLED { 1730 int sched_get_priority_max( 1731 int policy 1732 ); 1733 } 1734333 AUE_NULL STD|CAPENABLED { 1735 int sched_get_priority_min( 1736 int policy 1737 ); 1738 } 1739334 AUE_NULL STD|CAPENABLED { 1740 int sched_rr_get_interval( 1741 pid_t pid, 1742 _Out_ _Contains_long_timet_ struct timespec *interval 1743 ); 1744 } 1745335 AUE_NULL STD|CAPENABLED { 1746 int utrace( 1747 _In_reads_bytes_(len) const void *addr, 1748 size_t len 1749 ); 1750 } 1751336 AUE_SENDFILE COMPAT4|CAPENABLED { 1752 int sendfile( 1753 int fd, 1754 int s, 1755 off_t offset, 1756 size_t nbytes, 1757 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 1758 _Out_opt_ off_t *sbytes, 1759 int flags 1760 ); 1761 } 1762337 AUE_NULL STD { 1763 int kldsym( 1764 int fileid, 1765 int cmd, 1766 _In_ _Contains_long_ptr_ void *data 1767 ); 1768 } 1769338 AUE_JAIL STD { 1770 int jail( 1771 _In_ _Contains_ptr_ struct jail *jail 1772 ); 1773 } 1774339 AUE_NULL NOSTD|NOTSTATIC { 1775 int nnpfs_syscall( 1776 int operation, 1777 char *a_pathP, 1778 int a_opcode, 1779 void *a_paramsP, 1780 int a_followSymlinks 1781 ); 1782 } 1783340 AUE_SIGPROCMASK STD|CAPENABLED { 1784 int sigprocmask( 1785 int how, 1786 _In_opt_ const sigset_t *set, 1787 _Out_opt_ sigset_t *oset 1788 ); 1789 } 1790341 AUE_SIGSUSPEND STD|CAPENABLED { 1791 int sigsuspend( 1792 _In_ const sigset_t *sigmask 1793 ); 1794 } 1795342 AUE_SIGACTION COMPAT4|CAPENABLED { 1796 int sigaction( 1797 int sig, 1798 _In_opt_ _Contains_ptr_ const struct sigaction *act, 1799 _Out_opt_ _Contains_ptr_ struct sigaction *oact 1800 ); 1801 } 1802343 AUE_SIGPENDING STD|CAPENABLED { 1803 int sigpending( 1804 _In_ sigset_t *set 1805 ); 1806 } 1807344 AUE_SIGRETURN COMPAT4|CAPENABLED { 1808 int sigreturn( 1809 _In_ _Contains_long_ptr_ const struct freebsd4_ucontext *sigcntxp 1810 ); 1811 } 1812345 AUE_SIGWAIT STD|CAPENABLED { 1813 int sigtimedwait( 1814 _In_ const sigset_t *set, 1815 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info, 1816 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1817 ); 1818 } 1819346 AUE_NULL STD|CAPENABLED { 1820 int sigwaitinfo( 1821 _In_ const sigset_t *set, 1822 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 1823 ); 1824 } 1825347 AUE_ACL_GET_FILE STD { 1826 int __acl_get_file( 1827 _In_z_ const char *path, 1828 __acl_type_t type, 1829 _Out_ struct acl *aclp 1830 ); 1831 } 1832348 AUE_ACL_SET_FILE STD { 1833 int __acl_set_file( 1834 _In_z_ const char *path, 1835 __acl_type_t type, 1836 _In_ struct acl *aclp 1837 ); 1838 } 1839349 AUE_ACL_GET_FD STD|CAPENABLED { 1840 int __acl_get_fd( 1841 int filedes, 1842 __acl_type_t type, 1843 _Out_ struct acl *aclp 1844 ); 1845 } 1846350 AUE_ACL_SET_FD STD|CAPENABLED { 1847 int __acl_set_fd( 1848 int filedes, 1849 __acl_type_t type, 1850 _In_ struct acl *aclp 1851 ); 1852 } 1853351 AUE_ACL_DELETE_FILE STD { 1854 int __acl_delete_file( 1855 _In_z_ const char *path, 1856 __acl_type_t type 1857 ); 1858 } 1859352 AUE_ACL_DELETE_FD STD|CAPENABLED { 1860 int __acl_delete_fd( 1861 int filedes, 1862 __acl_type_t type 1863 ); 1864 } 1865353 AUE_ACL_CHECK_FILE STD { 1866 int __acl_aclcheck_file( 1867 _In_z_ const char *path, 1868 __acl_type_t type, 1869 _In_ struct acl *aclp 1870 ); 1871 } 1872354 AUE_ACL_CHECK_FD STD|CAPENABLED { 1873 int __acl_aclcheck_fd( 1874 int filedes, 1875 __acl_type_t type, 1876 _In_ struct acl *aclp 1877 ); 1878 } 1879355 AUE_EXTATTRCTL STD { 1880 int extattrctl( 1881 _In_z_ const char *path, 1882 int cmd, 1883 _In_z_opt_ const char *filename, 1884 int attrnamespace, 1885 _In_z_ const char *attrname 1886 ); 1887 } 1888356 AUE_EXTATTR_SET_FILE STD { 1889 ssize_t extattr_set_file( 1890 _In_z_ const char *path, 1891 int attrnamespace, 1892 _In_z_ const char *attrname, 1893 _In_reads_bytes_(nbytes) void *data, 1894 size_t nbytes 1895 ); 1896 } 1897357 AUE_EXTATTR_GET_FILE STD { 1898 ssize_t extattr_get_file( 1899 _In_z_ const char *path, 1900 int attrnamespace, 1901 _In_z_ const char *attrname, 1902 _Out_writes_bytes_(nbytes) void *data, 1903 size_t nbytes 1904 ); 1905 } 1906358 AUE_EXTATTR_DELETE_FILE STD { 1907 int extattr_delete_file( 1908 _In_z_ const char *path, 1909 int attrnamespace, 1910 _In_z_ const char *attrname 1911 ); 1912 } 1913359 AUE_AIO_WAITCOMPLETE STD|CAPENABLED { 1914 ssize_t aio_waitcomplete( 1915 _Outptr_result_maybenull_ struct aiocb **aiocbp, 1916 _In_opt_ _Contains_long_timet_ struct timespec *timeout 1917 ); 1918 } 1919360 AUE_GETRESUID STD|CAPENABLED { 1920 int getresuid( 1921 _Out_opt_ uid_t *ruid, 1922 _Out_opt_ uid_t *euid, 1923 _Out_opt_ uid_t *suid 1924 ); 1925 } 1926361 AUE_GETRESGID STD|CAPENABLED { 1927 int getresgid( 1928 _Out_opt_ gid_t *rgid, 1929 _Out_opt_ gid_t *egid, 1930 _Out_opt_ gid_t *sgid 1931 ); 1932 } 1933362 AUE_KQUEUE STD|CAPENABLED { 1934 int kqueue(void); 1935 } 1936363 AUE_KEVENT COMPAT11|CAPENABLED { 1937 int kevent( 1938 int fd, 1939 _In_reads_opt_(nchanges) _Contains_ptr_ const struct freebsd11_kevent *changelist, 1940 int nchanges, 1941 _Out_writes_opt_(nevents) _Contains_ptr_ struct freebsd11_kevent *eventlist, 1942 int nevents, 1943 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 1944 ); 1945 } 1946364 AUE_NULL OBSOL __cap_get_proc 1947365 AUE_NULL OBSOL __cap_set_proc 1948366 AUE_NULL OBSOL __cap_get_fd 1949367 AUE_NULL OBSOL __cap_get_file 1950368 AUE_NULL OBSOL __cap_set_fd 1951369 AUE_NULL OBSOL __cap_set_file 1952370 AUE_NULL RESERVED 1953371 AUE_EXTATTR_SET_FD STD|CAPENABLED { 1954 ssize_t extattr_set_fd( 1955 int fd, 1956 int attrnamespace, 1957 _In_z_ const char *attrname, 1958 _In_reads_bytes_(nbytes) void *data, 1959 size_t nbytes 1960 ); 1961 } 1962372 AUE_EXTATTR_GET_FD STD|CAPENABLED { 1963 ssize_t extattr_get_fd( 1964 int fd, 1965 int attrnamespace, 1966 _In_z_ const char *attrname, 1967 _Out_writes_bytes_(nbytes) void *data, 1968 size_t nbytes 1969 ); 1970 } 1971373 AUE_EXTATTR_DELETE_FD STD|CAPENABLED { 1972 int extattr_delete_fd( 1973 int fd, 1974 int attrnamespace, 1975 _In_z_ const char *attrname 1976 ); 1977 } 1978374 AUE_SETUGID STD { 1979 int __setugid( 1980 int flag 1981 ); 1982 } 1983375 AUE_NULL OBSOL nfsclnt 1984376 AUE_EACCESS STD { 1985 int eaccess( 1986 _In_z_ const char *path, 1987 int amode 1988 ); 1989 } 1990377 AUE_NULL NOSTD|NOTSTATIC { 1991 int afs3_syscall( 1992 long syscall, 1993 long parm1, 1994 long parm2, 1995 long parm3, 1996 long parm4, 1997 long parm5, 1998 long parm6 1999 ); 2000 } 2001378 AUE_NMOUNT STD { 2002 int nmount( 2003 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2004 unsigned int iovcnt, 2005 int flags 2006 ); 2007 } 2008379 AUE_NULL OBSOL kse_exit 2009380 AUE_NULL OBSOL kse_wakeup 2010381 AUE_NULL OBSOL kse_create 2011382 AUE_NULL OBSOL kse_thr_interrupt 2012383 AUE_NULL OBSOL kse_release 2013384 AUE_NULL STD|CAPENABLED { 2014 int __mac_get_proc( 2015 _In_ _Contains_long_ptr_ struct mac *mac_p 2016 ); 2017 } 2018385 AUE_NULL STD|CAPENABLED { 2019 int __mac_set_proc( 2020 _In_ _Contains_long_ptr_ struct mac *mac_p 2021 ); 2022 } 2023386 AUE_NULL STD|CAPENABLED { 2024 int __mac_get_fd( 2025 int fd, 2026 _In_ _Contains_long_ptr_ struct mac *mac_p 2027 ); 2028 } 2029387 AUE_NULL STD { 2030 int __mac_get_file( 2031 _In_z_ const char *path_p, 2032 _In_ _Contains_long_ptr_ struct mac *mac_p 2033 ); 2034 } 2035388 AUE_NULL STD|CAPENABLED { 2036 int __mac_set_fd( 2037 int fd, 2038 _In_ _Contains_long_ptr_ struct mac *mac_p 2039 ); 2040 } 2041389 AUE_NULL STD { 2042 int __mac_set_file( 2043 _In_z_ const char *path_p, 2044 _In_ _Contains_long_ptr_ struct mac *mac_p 2045 ); 2046 } 2047390 AUE_NULL STD { 2048 int kenv( 2049 int what, 2050 _In_z_opt_ const char *name, 2051 _Inout_updates_opt_(len) char *value, 2052 int len 2053 ); 2054 } 2055391 AUE_LCHFLAGS STD { 2056 int lchflags( 2057 _In_z_ const char *path, 2058 u_long flags 2059 ); 2060 } 2061392 AUE_NULL STD|CAPENABLED { 2062 int uuidgen( 2063 _Out_writes_(count) struct uuid *store, 2064 int count 2065 ); 2066 } 2067393 AUE_SENDFILE STD|CAPENABLED { 2068 int sendfile( 2069 int fd, 2070 int s, 2071 off_t offset, 2072 size_t nbytes, 2073 _In_opt_ _Contains_ptr_ struct sf_hdtr *hdtr, 2074 _Out_opt_ off_t *sbytes, 2075 int flags 2076 ); 2077 } 2078394 AUE_NULL STD { 2079 int mac_syscall( 2080 _In_z_ const char *policy, 2081 int call, 2082 _In_opt_ void *arg 2083 ); 2084 } 2085395 AUE_GETFSSTAT COMPAT11 { 2086 int getfsstat( 2087 _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf, 2088 long bufsize, 2089 int mode 2090 ); 2091 } 2092396 AUE_STATFS COMPAT11 { 2093 int statfs( 2094 _In_z_ const char *path, 2095 _Out_ struct freebsd11_statfs *buf 2096 ); 2097 } 2098397 AUE_FSTATFS COMPAT11|CAPENABLED { 2099 int fstatfs( 2100 int fd, 2101 _Out_ struct freebsd11_statfs *buf 2102 ); 2103 } 2104398 AUE_FHSTATFS COMPAT11 { 2105 int fhstatfs( 2106 _In_ const struct fhandle *u_fhp, 2107 _Out_ struct freebsd11_statfs *buf 2108 ); 2109 } 2110399 AUE_NULL RESERVED 2111400 AUE_SEMCLOSE NOSTD { 2112 int ksem_close( 2113 semid_t id 2114 ); 2115 } 2116401 AUE_SEMPOST NOSTD { 2117 int ksem_post( 2118 semid_t id 2119 ); 2120 } 2121402 AUE_SEMWAIT NOSTD { 2122 int ksem_wait( 2123 semid_t id 2124 ); 2125 } 2126403 AUE_SEMTRYWAIT NOSTD { 2127 int ksem_trywait( 2128 semid_t id 2129 ); 2130 } 2131404 AUE_SEMINIT NOSTD { 2132 int ksem_init( 2133 _Out_ semid_t *idp, 2134 unsigned int value 2135 ); 2136 } 2137405 AUE_SEMOPEN NOSTD { 2138 int ksem_open( 2139 _Out_ semid_t *idp, 2140 _In_z_ const char *name, 2141 int oflag, 2142 mode_t mode, 2143 unsigned int value 2144 ); 2145 } 2146406 AUE_SEMUNLINK NOSTD { 2147 int ksem_unlink( 2148 _In_z_ const char *name 2149 ); 2150 } 2151407 AUE_SEMGETVALUE NOSTD { 2152 int ksem_getvalue( 2153 semid_t id, 2154 _Out_ int *val 2155 ); 2156 } 2157408 AUE_SEMDESTROY NOSTD { 2158 int ksem_destroy( 2159 semid_t id 2160 ); 2161 } 2162409 AUE_NULL STD { 2163 int __mac_get_pid( 2164 pid_t pid, 2165 _In_ _Contains_long_ptr_ struct mac *mac_p 2166 ); 2167 } 2168410 AUE_NULL STD { 2169 int __mac_get_link( 2170 _In_z_ const char *path_p, 2171 _In_ _Contains_long_ptr_ struct mac *mac_p 2172 ); 2173 } 2174411 AUE_NULL STD { 2175 int __mac_set_link( 2176 _In_z_ const char *path_p, 2177 _In_ _Contains_long_ptr_ struct mac *mac_p 2178 ); 2179 } 2180412 AUE_EXTATTR_SET_LINK STD { 2181 ssize_t extattr_set_link( 2182 _In_z_ const char *path, 2183 int attrnamespace, 2184 _In_z_ const char *attrname, 2185 _In_reads_bytes_(nbytes) void *data, 2186 size_t nbytes 2187 ); 2188 } 2189413 AUE_EXTATTR_GET_LINK STD { 2190 ssize_t extattr_get_link( 2191 _In_z_ const char *path, 2192 int attrnamespace, 2193 _In_z_ const char *attrname, 2194 _Out_writes_bytes_(nbytes) void *data, 2195 size_t nbytes 2196 ); 2197 } 2198414 AUE_EXTATTR_DELETE_LINK STD { 2199 int extattr_delete_link( 2200 _In_z_ const char *path, 2201 int attrnamespace, 2202 _In_z_ const char *attrname 2203 ); 2204 } 2205415 AUE_NULL STD { 2206 int __mac_execve( 2207 _In_z_ const char *fname, 2208 _In_ char **argv, 2209 _In_ char **envv, 2210 _In_ _Contains_long_ptr_ struct mac *mac_p 2211 ); 2212 } 2213416 AUE_SIGACTION STD|CAPENABLED { 2214 int sigaction( 2215 int sig, 2216 _In_opt_ _Contains_ptr_ const struct sigaction *act, 2217 _Out_opt_ _Contains_ptr_ struct sigaction *oact 2218 ); 2219 } 2220417 AUE_SIGRETURN STD|CAPENABLED { 2221 int sigreturn( 2222 _In_ _Contains_long_ptr_ const struct __ucontext *sigcntxp 2223 ); 2224 } 2225418-420 AUE_NULL RESERVED 2226421 AUE_NULL STD|CAPENABLED { 2227 int getcontext( 2228 _Out_ _Contains_long_ptr_ struct __ucontext *ucp 2229 ); 2230 } 2231422 AUE_NULL STD|CAPENABLED { 2232 int setcontext( 2233 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2234 ); 2235 } 2236423 AUE_NULL STD { 2237 int swapcontext( 2238 _Out_ _Contains_long_ptr_ struct __ucontext *oucp, 2239 _In_ _Contains_long_ptr_ const struct __ucontext *ucp 2240 ); 2241 } 2242424 AUE_SWAPOFF COMPAT13 { 2243 int swapoff( 2244 _In_z_ const char *name 2245 ); 2246 } 2247425 AUE_ACL_GET_LINK STD { 2248 int __acl_get_link( 2249 _In_z_ const char *path, 2250 __acl_type_t type, 2251 _Out_ struct acl *aclp 2252 ); 2253 } 2254426 AUE_ACL_SET_LINK STD { 2255 int __acl_set_link( 2256 _In_z_ const char *path, 2257 __acl_type_t type, 2258 _In_ struct acl *aclp 2259 ); 2260 } 2261427 AUE_ACL_DELETE_LINK STD { 2262 int __acl_delete_link( 2263 _In_z_ const char *path, 2264 __acl_type_t type 2265 ); 2266 } 2267428 AUE_ACL_CHECK_LINK STD { 2268 int __acl_aclcheck_link( 2269 _In_z_ const char *path, 2270 __acl_type_t type, 2271 _In_ struct acl *aclp 2272 ); 2273 } 2274429 AUE_SIGWAIT STD|CAPENABLED { 2275 int sigwait( 2276 _In_ const sigset_t *set, 2277 _Out_ int *sig 2278 ); 2279 } 2280430 AUE_THR_CREATE STD|CAPENABLED { 2281 int thr_create( 2282 _In_ _Contains_long_ptr_ ucontext_t *ctx, 2283 _Out_ long *id, 2284 int flags 2285 ); 2286 } 2287431 AUE_THR_EXIT STD|CAPENABLED { 2288 void thr_exit( 2289 _Out_opt_ long *state 2290 ); 2291 } 2292432 AUE_NULL STD|CAPENABLED { 2293 int thr_self( 2294 _Out_ long *id 2295 ); 2296 } 2297433 AUE_THR_KILL STD|CAPENABLED { 2298 int thr_kill( 2299 long id, 2300 int sig 2301 ); 2302 } 2303434 AUE_NULL COMPAT10 { 2304 int _umtx_lock( 2305 _Inout_ struct umtx *umtx 2306 ); 2307 } 2308435 AUE_NULL COMPAT10 { 2309 int _umtx_unlock( 2310 _Inout_ struct umtx *umtx 2311 ); 2312 } 2313436 AUE_JAIL_ATTACH STD { 2314 int jail_attach( 2315 int jid 2316 ); 2317 } 2318437 AUE_EXTATTR_LIST_FD STD|CAPENABLED { 2319 ssize_t extattr_list_fd( 2320 int fd, 2321 int attrnamespace, 2322 _Out_writes_bytes_opt_(nbytes) void *data, 2323 size_t nbytes 2324 ); 2325 } 2326438 AUE_EXTATTR_LIST_FILE STD { 2327 ssize_t extattr_list_file( 2328 _In_z_ const char *path, 2329 int attrnamespace, 2330 _Out_writes_bytes_opt_(nbytes) void *data, 2331 size_t nbytes 2332 ); 2333 } 2334439 AUE_EXTATTR_LIST_LINK STD { 2335 ssize_t extattr_list_link( 2336 _In_z_ const char *path, 2337 int attrnamespace, 2338 _Out_writes_bytes_opt_(nbytes) void *data, 2339 size_t nbytes 2340 ); 2341 } 2342440 AUE_NULL OBSOL kse_switchin 2343441 AUE_SEMWAIT NOSTD { 2344 int ksem_timedwait( 2345 semid_t id, 2346 _In_opt_ _Contains_long_timet_ const struct timespec *abstime 2347 ); 2348 } 2349442 AUE_NULL STD|CAPENABLED { 2350 int thr_suspend( 2351 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 2352 ); 2353 } 2354443 AUE_NULL STD|CAPENABLED { 2355 int thr_wake( 2356 long id 2357 ); 2358 } 2359444 AUE_MODUNLOAD STD { 2360 int kldunloadf( 2361 int fileid, 2362 int flags 2363 ); 2364 } 2365445 AUE_AUDIT STD { 2366 int audit( 2367 _In_reads_bytes_(length) const void *record, 2368 u_int length 2369 ); 2370 } 2371446 AUE_AUDITON STD { 2372 int auditon( 2373 int cmd, 2374 _In_opt_ void *data, 2375 u_int length 2376 ); 2377 } 2378447 AUE_GETAUID STD|CAPENABLED { 2379 int getauid( 2380 _Out_ uid_t *auid 2381 ); 2382 } 2383448 AUE_SETAUID STD|CAPENABLED { 2384 int setauid( 2385 _In_ uid_t *auid 2386 ); 2387 } 2388449 AUE_GETAUDIT STD|CAPENABLED { 2389 int getaudit( 2390 _Out_ struct auditinfo *auditinfo 2391 ); 2392 } 2393450 AUE_SETAUDIT STD|CAPENABLED { 2394 int setaudit( 2395 _In_ struct auditinfo *auditinfo 2396 ); 2397 } 2398451 AUE_GETAUDIT_ADDR STD|CAPENABLED { 2399 int getaudit_addr( 2400 _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2401 u_int length 2402 ); 2403 } 2404452 AUE_SETAUDIT_ADDR STD|CAPENABLED { 2405 int setaudit_addr( 2406 _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2407 u_int length 2408 ); 2409 } 2410453 AUE_AUDITCTL STD { 2411 int auditctl( 2412 _In_z_ const char *path 2413 ); 2414 } 2415454 AUE_NULL STD|CAPENABLED { 2416 int _umtx_op( 2417 _Inout_ void *obj, 2418 int op, 2419 u_long val, 2420 _In_ void *uaddr1, 2421 _In_ void *uaddr2 2422 ); 2423 } 2424455 AUE_THR_NEW STD|CAPENABLED { 2425 int thr_new( 2426 _In_ _Contains_long_ptr_ struct thr_param *param, 2427 int param_size 2428 ); 2429 } 2430456 AUE_NULL STD|CAPENABLED { 2431 int sigqueue( 2432 pid_t pid, 2433 int signum, 2434 _In_ void *value 2435 ); 2436 } 2437457 AUE_MQ_OPEN NOSTD { 2438 int kmq_open( 2439 _In_z_ const char *path, 2440 int flags, 2441 mode_t mode, 2442 _In_opt_ _Contains_long_ const struct mq_attr *attr 2443 ); 2444 } 2445458 AUE_MQ_SETATTR NOSTD|CAPENABLED { 2446 int kmq_setattr( 2447 int mqd, 2448 _In_opt_ _Contains_long_ const struct mq_attr *attr, 2449 _Out_opt_ _Contains_long_ struct mq_attr *oattr 2450 ); 2451 } 2452459 AUE_MQ_TIMEDRECEIVE NOSTD|CAPENABLED { 2453 int kmq_timedreceive( 2454 int mqd, 2455 _Out_writes_bytes_(msg_len) char *msg_ptr, 2456 size_t msg_len, 2457 _Out_opt_ unsigned *msg_prio, 2458 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2459 ); 2460 } 2461460 AUE_MQ_TIMEDSEND NOSTD|CAPENABLED { 2462 int kmq_timedsend( 2463 int mqd, 2464 _In_reads_bytes_(msg_len) const char *msg_ptr, 2465 size_t msg_len, 2466 unsigned msg_prio, 2467 _In_opt_ _Contains_long_timet_ const struct timespec *abs_timeout 2468 ); 2469 } 2470461 AUE_MQ_NOTIFY NOSTD|CAPENABLED { 2471 int kmq_notify( 2472 int mqd, 2473 _In_opt_ _Contains_long_ptr_ const struct sigevent *sigev 2474 ); 2475 } 2476462 AUE_MQ_UNLINK NOSTD { 2477 int kmq_unlink( 2478 _In_z_ const char *path 2479 ); 2480 } 2481463 AUE_NULL STD|CAPENABLED { 2482 void abort2( 2483 _In_z_ const char *why, 2484 int nargs, 2485 _In_reads_(nargs) void **args 2486 ); 2487 } 2488464 AUE_NULL STD|CAPENABLED { 2489 int thr_set_name( 2490 long id, 2491 _In_z_ const char *name 2492 ); 2493 } 2494465 AUE_AIO_FSYNC STD|CAPENABLED { 2495 int aio_fsync( 2496 int op, 2497 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 2498 ); 2499 } 2500466 AUE_RTPRIO STD|CAPENABLED { 2501 int rtprio_thread( 2502 int function, 2503 lwpid_t lwpid, 2504 _Inout_ struct rtprio *rtp 2505 ); 2506 } 2507467-470 AUE_NULL RESERVED 2508471 AUE_SCTP_PEELOFF NOSTD|CAPENABLED { 2509 int sctp_peeloff( 2510 int sd, 2511 uint32_t name 2512 ); 2513 } 2514472 AUE_SCTP_GENERIC_SENDMSG NOSTD|CAPENABLED { 2515 int sctp_generic_sendmsg( 2516 int sd, 2517 _In_reads_bytes_(mlen) void *msg, 2518 int mlen, 2519 _In_reads_bytes_(tolen) const struct sockaddr *to, 2520 __socklen_t tolen, 2521 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2522 int flags 2523 ); 2524 } 2525473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD|CAPENABLED { 2526 int sctp_generic_sendmsg_iov( 2527 int sd, 2528 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2529 int iovlen, 2530 _In_reads_bytes_(tolen) const struct sockaddr *to, 2531 __socklen_t tolen, 2532 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2533 int flags 2534 ); 2535 } 2536474 AUE_SCTP_GENERIC_RECVMSG NOSTD|CAPENABLED { 2537 int sctp_generic_recvmsg( 2538 int sd, 2539 _In_reads_(iovlen) _Contains_long_ptr_ struct iovec *iov, 2540 int iovlen, 2541 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 2542 _Out_ __socklen_t *fromlenaddr, 2543 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2544 _Out_opt_ int *msg_flags 2545 ); 2546 } 2547475 AUE_PREAD STD|CAPENABLED { 2548 ssize_t pread( 2549 int fd, 2550 _Out_writes_bytes_(nbyte) void *buf, 2551 size_t nbyte, 2552 off_t offset 2553 ); 2554 } 2555476 AUE_PWRITE STD|CAPENABLED { 2556 ssize_t pwrite( 2557 int fd, 2558 _In_reads_bytes_(nbyte) const void *buf, 2559 size_t nbyte, 2560 off_t offset 2561 ); 2562 } 2563477 AUE_MMAP STD|CAPENABLED { 2564 void *mmap( 2565 _In_ void *addr, 2566 size_t len, 2567 int prot, 2568 int flags, 2569 int fd, 2570 off_t pos 2571 ); 2572 } 2573478 AUE_LSEEK STD|CAPENABLED { 2574 off_t lseek( 2575 int fd, 2576 off_t offset, 2577 int whence 2578 ); 2579 } 2580479 AUE_TRUNCATE STD { 2581 int truncate( 2582 _In_z_ const char *path, 2583 off_t length 2584 ); 2585 } 2586480 AUE_FTRUNCATE STD|CAPENABLED { 2587 int ftruncate( 2588 int fd, 2589 off_t length 2590 ); 2591 } 2592481 AUE_THR_KILL2 STD { 2593 int thr_kill2( 2594 pid_t pid, 2595 long id, 2596 int sig 2597 ); 2598 } 2599482 AUE_SHMOPEN COMPAT12|CAPENABLED { 2600 int shm_open( 2601 _In_z_ const char *path, 2602 int flags, 2603 mode_t mode 2604 ); 2605 } 2606483 AUE_SHMUNLINK STD { 2607 int shm_unlink( 2608 _In_z_ const char *path 2609 ); 2610 } 2611484 AUE_NULL STD { 2612 int cpuset( 2613 _Out_ cpusetid_t *setid 2614 ); 2615 } 2616485 AUE_NULL STD { 2617 int cpuset_setid( 2618 cpuwhich_t which, 2619 id_t id, 2620 cpusetid_t setid 2621 ); 2622 } 2623486 AUE_NULL STD { 2624 int cpuset_getid( 2625 cpulevel_t level, 2626 cpuwhich_t which, 2627 id_t id, 2628 _Out_ cpusetid_t *setid 2629 ); 2630 } 2631487 AUE_NULL STD|CAPENABLED { 2632 int cpuset_getaffinity( 2633 cpulevel_t level, 2634 cpuwhich_t which, 2635 id_t id, 2636 size_t cpusetsize, 2637 _Out_ cpuset_t *mask 2638 ); 2639 } 2640488 AUE_NULL STD|CAPENABLED { 2641 int cpuset_setaffinity( 2642 cpulevel_t level, 2643 cpuwhich_t which, 2644 id_t id, 2645 size_t cpusetsize, 2646 _Out_ const cpuset_t *mask 2647 ); 2648 } 2649489 AUE_FACCESSAT STD|CAPENABLED { 2650 int faccessat( 2651 int fd, 2652 _In_z_ const char *path, 2653 int amode, 2654 int flag 2655 ); 2656 } 2657490 AUE_FCHMODAT STD|CAPENABLED { 2658 int fchmodat( 2659 int fd, 2660 _In_z_ const char *path, 2661 mode_t mode, 2662 int flag 2663 ); 2664 } 2665491 AUE_FCHOWNAT STD|CAPENABLED { 2666 int fchownat( 2667 int fd, 2668 _In_z_ const char *path, 2669 uid_t uid, 2670 gid_t gid, 2671 int flag 2672 ); 2673 } 2674492 AUE_FEXECVE STD|CAPENABLED { 2675 int fexecve( 2676 int fd, 2677 _In_ char **argv, 2678 _In_ char **envv 2679 ); 2680 } 2681493 AUE_FSTATAT COMPAT11|CAPENABLED { 2682 int fstatat( 2683 int fd, 2684 _In_z_ const char *path, 2685 _Out_ _Contains_long_timet_ struct freebsd11_stat *buf, 2686 int flag 2687 ); 2688 } 2689494 AUE_FUTIMESAT STD|CAPENABLED { 2690 int futimesat( 2691 int fd, 2692 _In_z_ const char *path, 2693 _In_reads_(2) _Contains_long_timet_ const struct timeval *times 2694 ); 2695 } 2696495 AUE_LINKAT STD|CAPENABLED { 2697 int linkat( 2698 int fd1, 2699 _In_z_ const char *path1, 2700 int fd2, 2701 _In_z_ const char *path2, 2702 int flag 2703 ); 2704 } 2705496 AUE_MKDIRAT STD|CAPENABLED { 2706 int mkdirat( 2707 int fd, 2708 _In_z_ const char *path, 2709 mode_t mode 2710 ); 2711 } 2712497 AUE_MKFIFOAT STD|CAPENABLED { 2713 int mkfifoat( 2714 int fd, 2715 _In_z_ const char *path, 2716 mode_t mode 2717 ); 2718 } 2719498 AUE_MKNODAT COMPAT11|CAPENABLED { 2720 int mknodat( 2721 int fd, 2722 _In_z_ const char *path, 2723 mode_t mode, 2724 uint32_t dev 2725 ); 2726 } 2727; XXX: see the comment for open 2728499 AUE_OPENAT_RWTC STD|CAPENABLED { 2729 int openat( 2730 int fd, 2731 _In_z_ const char *path, 2732 int flag, 2733 mode_t mode 2734 ); 2735 } 2736500 AUE_READLINKAT STD|CAPENABLED { 2737 ssize_t readlinkat( 2738 int fd, 2739 _In_z_ const char *path, 2740 _Out_writes_bytes_(bufsize) char *buf, 2741 size_t bufsize 2742 ); 2743 } 2744501 AUE_RENAMEAT STD|CAPENABLED { 2745 int renameat( 2746 int oldfd, 2747 _In_z_ const char *old, 2748 int newfd, 2749 _In_z_ const char *new 2750 ); 2751 } 2752502 AUE_SYMLINKAT STD|CAPENABLED { 2753 int symlinkat( 2754 _In_z_ const char *path1, 2755 int fd, 2756 _In_z_ const char *path2 2757 ); 2758 } 2759503 AUE_UNLINKAT STD|CAPENABLED { 2760 int unlinkat( 2761 int fd, 2762 _In_z_ const char *path, 2763 int flag 2764 ); 2765 } 2766504 AUE_POSIX_OPENPT STD { 2767 int posix_openpt( 2768 int flags 2769 ); 2770 } 2771; 505 is initialised by the kgssapi code, if present. 2772505 AUE_NULL NOSTD { 2773 int gssd_syscall( 2774 _In_z_ const char *path 2775 ); 2776 } 2777506 AUE_JAIL_GET STD { 2778 int jail_get( 2779 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2780 unsigned int iovcnt, 2781 int flags 2782 ); 2783 } 2784507 AUE_JAIL_SET STD { 2785 int jail_set( 2786 _In_reads_(iovcnt) _Contains_long_ptr_ struct iovec *iovp, 2787 unsigned int iovcnt, 2788 int flags 2789 ); 2790 } 2791508 AUE_JAIL_REMOVE STD { 2792 int jail_remove( 2793 int jid 2794 ); 2795 } 2796509 AUE_CLOSEFROM COMPAT12|CAPENABLED { 2797 int closefrom( 2798 int lowfd 2799 ); 2800 } 2801510 AUE_SEMCTL NOSTD { 2802 int __semctl( 2803 int semid, 2804 int semnum, 2805 int cmd, 2806 _Inout_ _Contains_ptr_ union semun *arg 2807 ); 2808 } 2809511 AUE_MSGCTL NOSTD { 2810 int msgctl( 2811 int msqid, 2812 int cmd, 2813 _Inout_opt_ _Contains_long_ptr_ struct msqid_ds *buf 2814 ); 2815 } 2816512 AUE_SHMCTL NOSTD { 2817 int shmctl( 2818 int shmid, 2819 int cmd, 2820 _Inout_opt_ _Contains_long_ struct shmid_ds *buf 2821 ); 2822 } 2823513 AUE_LPATHCONF STD { 2824 int lpathconf( 2825 _In_z_ const char *path, 2826 int name 2827 ); 2828 } 2829514 AUE_NULL OBSOL cap_new 2830515 AUE_CAP_RIGHTS_GET STD|CAPENABLED { 2831 int __cap_rights_get( 2832 int version, 2833 int fd, 2834 _Out_ cap_rights_t *rightsp 2835 ); 2836 } 2837516 AUE_CAP_ENTER STD|CAPENABLED { 2838 int cap_enter(void); 2839 } 2840517 AUE_CAP_GETMODE STD|CAPENABLED { 2841 int cap_getmode( 2842 _Out_ u_int *modep 2843 ); 2844 } 2845518 AUE_PDFORK STD|CAPENABLED { 2846 int pdfork( 2847 _Out_ int *fdp, 2848 int flags 2849 ); 2850 } 2851519 AUE_PDKILL STD|CAPENABLED { 2852 int pdkill( 2853 int fd, 2854 int signum 2855 ); 2856 } 2857520 AUE_PDGETPID STD|CAPENABLED { 2858 int pdgetpid( 2859 int fd, 2860 _Out_ pid_t *pidp 2861 ); 2862 } 2863521 AUE_NULL RESERVED 2864522 AUE_SELECT STD|CAPENABLED { 2865 int pselect( 2866 int nd, 2867 _Inout_opt_ fd_set *in, 2868 _Inout_opt_ fd_set *ou, 2869 _Inout_opt_ fd_set *ex, 2870 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 2871 _In_opt_ const sigset_t *sm 2872 ); 2873 } 2874523 AUE_GETLOGINCLASS STD|CAPENABLED { 2875 int getloginclass( 2876 _Out_writes_z_(namelen) char *namebuf, 2877 size_t namelen 2878 ); 2879 } 2880524 AUE_SETLOGINCLASS STD { 2881 int setloginclass( 2882 _In_z_ const char *namebuf 2883 ); 2884 } 2885525 AUE_NULL STD { 2886 int rctl_get_racct( 2887 _In_reads_bytes_(inbuflen) const void *inbufp, 2888 size_t inbuflen, 2889 _Out_writes_bytes_(outbuflen) void *outbufp, 2890 size_t outbuflen 2891 ); 2892 } 2893526 AUE_NULL STD { 2894 int rctl_get_rules( 2895 _In_reads_bytes_(inbuflen) const void *inbufp, 2896 size_t inbuflen, 2897 _Out_writes_bytes_(outbuflen) void *outbufp, 2898 size_t outbuflen 2899 ); 2900 } 2901527 AUE_NULL STD { 2902 int rctl_get_limits( 2903 _In_reads_bytes_(inbuflen) const void *inbufp, 2904 size_t inbuflen, 2905 _Out_writes_bytes_(outbuflen) void *outbufp, 2906 size_t outbuflen 2907 ); 2908 } 2909528 AUE_NULL STD { 2910 int rctl_add_rule( 2911 _In_reads_bytes_(inbuflen) const void *inbufp, 2912 size_t inbuflen, 2913 _Out_writes_bytes_(outbuflen) void *outbufp, 2914 size_t outbuflen 2915 ); 2916 } 2917529 AUE_NULL STD { 2918 int rctl_remove_rule( 2919 _In_reads_bytes_(inbuflen) const void *inbufp, 2920 size_t inbuflen, 2921 _Out_writes_bytes_(outbuflen) void *outbufp, 2922 size_t outbuflen 2923 ); 2924 } 2925530 AUE_POSIX_FALLOCATE STD|CAPENABLED { 2926 int posix_fallocate( 2927 int fd, 2928 off_t offset, 2929 off_t len 2930 ); 2931 } 2932531 AUE_POSIX_FADVISE STD|CAPENABLED { 2933 int posix_fadvise( 2934 int fd, 2935 off_t offset, 2936 off_t len, 2937 int advice 2938 ); 2939 } 2940532 AUE_WAIT6 STD { 2941 int wait6( 2942 idtype_t idtype, 2943 id_t id, 2944 _Out_opt_ int *status, 2945 int options, 2946 _Out_opt_ _Contains_long_ struct __wrusage *wrusage, 2947 _Out_opt_ _Contains_long_ptr_ struct __siginfo *info 2948 ); 2949 } 2950533 AUE_CAP_RIGHTS_LIMIT STD|CAPENABLED { 2951 int cap_rights_limit( 2952 int fd, 2953 _In_ cap_rights_t *rightsp 2954 ); 2955 } 2956534 AUE_CAP_IOCTLS_LIMIT STD|CAPENABLED { 2957 int cap_ioctls_limit( 2958 int fd, 2959 _In_reads_(ncmds) const u_long *cmds, 2960 size_t ncmds 2961 ); 2962 } 2963535 AUE_CAP_IOCTLS_GET STD|CAPENABLED { 2964 ssize_t cap_ioctls_get( 2965 int fd, 2966 _Out_writes_(maxcmds) u_long *cmds, 2967 size_t maxcmds 2968 ); 2969 } 2970536 AUE_CAP_FCNTLS_LIMIT STD|CAPENABLED { 2971 int cap_fcntls_limit( 2972 int fd, 2973 uint32_t fcntlrights 2974 ); 2975 } 2976537 AUE_CAP_FCNTLS_GET STD|CAPENABLED { 2977 int cap_fcntls_get( 2978 int fd, 2979 _Out_ uint32_t *fcntlrightsp 2980 ); 2981 } 2982538 AUE_BINDAT STD|CAPENABLED { 2983 int bindat( 2984 int fd, 2985 int s, 2986 _In_reads_bytes_(namelen) const struct sockaddr *name, 2987 __socklen_t namelen 2988 ); 2989 } 2990539 AUE_CONNECTAT STD|CAPENABLED { 2991 int connectat( 2992 int fd, 2993 int s, 2994 _In_reads_bytes_(namelen) const struct sockaddr *name, 2995 __socklen_t namelen 2996 ); 2997 } 2998540 AUE_CHFLAGSAT STD|CAPENABLED { 2999 int chflagsat( 3000 int fd, 3001 _In_z_ const char *path, 3002 u_long flags, 3003 int atflag 3004 ); 3005 } 3006541 AUE_ACCEPT STD|CAPENABLED { 3007 int accept4( 3008 int s, 3009 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 3010 _Inout_opt_ __socklen_t *anamelen, 3011 int flags 3012 ); 3013 } 3014542 AUE_PIPE STD|CAPENABLED { 3015 int pipe2( 3016 _Out_writes_(2) int *fildes, 3017 int flags 3018 ); 3019 } 3020543 AUE_AIO_MLOCK STD { 3021 int aio_mlock( 3022 _In_ _Contains_long_ptr_ struct aiocb *aiocbp 3023 ); 3024 } 3025544 AUE_PROCCTL STD { 3026 int procctl( 3027 idtype_t idtype, 3028 id_t id, 3029 int com, 3030 _In_opt_ void *data 3031 ); 3032 } 3033545 AUE_POLL STD|CAPENABLED { 3034 int ppoll( 3035 _Inout_updates_(nfds) struct pollfd *fds, 3036 u_int nfds, 3037 _In_opt_ _Contains_long_timet_ const struct timespec *ts, 3038 _In_opt_ const sigset_t *set 3039 ); 3040 } 3041546 AUE_FUTIMES STD|CAPENABLED { 3042 int futimens( 3043 int fd, 3044 _In_reads_(2) _Contains_long_timet_ const struct timespec *times 3045 ); 3046 } 3047547 AUE_FUTIMESAT STD|CAPENABLED { 3048 int utimensat( 3049 int fd, 3050 _In_z_ const char *path, 3051 _In_reads_(2) _Contains_long_timet_ const struct timespec *times, 3052 int flag 3053 ); 3054 } 3055548 AUE_NULL OBSOL numa_getaffinity 3056549 AUE_NULL OBSOL numa_setaffinity 3057550 AUE_FSYNC STD|CAPENABLED { 3058 int fdatasync( 3059 int fd 3060 ); 3061 } 3062551 AUE_FSTAT STD|CAPENABLED { 3063 int fstat( 3064 int fd, 3065 _Out_ _Contains_long_timet_ struct stat *sb 3066 ); 3067 } 3068552 AUE_FSTATAT STD|CAPENABLED { 3069 int fstatat( 3070 int fd, 3071 _In_z_ const char *path, 3072 _Out_ _Contains_long_timet_ struct stat *buf, 3073 int flag 3074 ); 3075 } 3076553 AUE_FHSTAT STD { 3077 int fhstat( 3078 _In_ const struct fhandle *u_fhp, 3079 _Out_ _Contains_long_timet_ struct stat *sb 3080 ); 3081 } 3082554 AUE_GETDIRENTRIES STD|CAPENABLED { 3083 ssize_t getdirentries( 3084 int fd, 3085 _Out_writes_bytes_(count) char *buf, 3086 size_t count, 3087 _Out_opt_ off_t *basep 3088 ); 3089 } 3090555 AUE_STATFS STD { 3091 int statfs( 3092 _In_z_ const char *path, 3093 _Out_ struct statfs *buf 3094 ); 3095 } 3096556 AUE_FSTATFS STD|CAPENABLED { 3097 int fstatfs( 3098 int fd, 3099 _Out_ struct statfs *buf 3100 ); 3101 } 3102557 AUE_GETFSSTAT STD { 3103 int getfsstat( 3104 _Out_writes_bytes_opt_(bufsize) struct statfs *buf, 3105 long bufsize, 3106 int mode 3107 ); 3108 } 3109558 AUE_FHSTATFS STD { 3110 int fhstatfs( 3111 _In_ const struct fhandle *u_fhp, 3112 _Out_ struct statfs *buf 3113 ); 3114 } 3115559 AUE_MKNODAT STD|CAPENABLED { 3116 int mknodat( 3117 int fd, 3118 _In_z_ const char *path, 3119 mode_t mode, 3120 dev_t dev 3121 ); 3122 } 3123560 AUE_KEVENT STD|CAPENABLED { 3124 int kevent( 3125 int fd, 3126 _In_reads_opt_(nchanges) _Contains_ptr_ const struct kevent *changelist, 3127 int nchanges, 3128 _Out_writes_opt_(nevents) _Contains_ptr_ struct kevent *eventlist, 3129 int nevents, 3130 _In_opt_ _Contains_long_timet_ const struct timespec *timeout 3131 ); 3132 } 3133561 AUE_NULL STD|CAPENABLED { 3134 int cpuset_getdomain( 3135 cpulevel_t level, 3136 cpuwhich_t which, 3137 id_t id, 3138 size_t domainsetsize, 3139 _Out_writes_bytes_(domainsetsize) domainset_t *mask, 3140 _Out_ int *policy 3141 ); 3142 } 3143562 AUE_NULL STD|CAPENABLED { 3144 int cpuset_setdomain( 3145 cpulevel_t level, 3146 cpuwhich_t which, 3147 id_t id, 3148 size_t domainsetsize, 3149 _In_ domainset_t *mask, 3150 int policy 3151 ); 3152 } 3153563 AUE_NULL STD|CAPENABLED { 3154 int getrandom( 3155 _Out_writes_bytes_(buflen) void *buf, 3156 size_t buflen, 3157 unsigned int flags 3158 ); 3159 } 3160564 AUE_NULL STD { 3161 int getfhat( 3162 int fd, 3163 _In_z_ char *path, 3164 _Out_ struct fhandle *fhp, 3165 int flags 3166 ); 3167 } 3168565 AUE_NULL STD { 3169 int fhlink( 3170 _In_ struct fhandle *fhp, 3171 _In_z_ const char *to 3172 ); 3173 } 3174566 AUE_NULL STD { 3175 int fhlinkat( 3176 _In_ struct fhandle *fhp, 3177 int tofd, 3178 _In_z_ const char *to, 3179 ); 3180 } 3181567 AUE_NULL STD { 3182 int fhreadlink( 3183 _In_ struct fhandle *fhp, 3184 _Out_writes_(bufsize) char *buf, 3185 size_t bufsize 3186 ); 3187 } 3188568 AUE_UNLINKAT STD|CAPENABLED { 3189 int funlinkat( 3190 int dfd, 3191 _In_z_ const char *path, 3192 int fd, 3193 int flag 3194 ); 3195 } 3196569 AUE_NULL STD|CAPENABLED { 3197 ssize_t copy_file_range( 3198 int infd, 3199 _Inout_opt_ off_t *inoffp, 3200 int outfd, 3201 _Inout_opt_ off_t *outoffp, 3202 size_t len, 3203 unsigned int flags 3204 ); 3205 } 3206570 AUE_SYSCTL STD|CAPENABLED { 3207 int __sysctlbyname( 3208 _In_reads_(namelen) const char *name, 3209 size_t namelen, 3210 _Out_writes_bytes_opt_(*oldlenp) void *old, 3211 _Inout_opt_ size_t *oldlenp, 3212 _In_reads_bytes_opt_(newlen) void *new, 3213 size_t newlen 3214 ); 3215 } 3216571 AUE_SHMOPEN STD|CAPENABLED { 3217 int shm_open2( 3218 _In_z_ const char *path, 3219 int flags, 3220 mode_t mode, 3221 int shmflags, 3222 _In_z_ const char *name 3223 ); 3224 } 3225572 AUE_SHMRENAME STD { 3226 int shm_rename( 3227 _In_z_ const char *path_from, 3228 _In_z_ const char *path_to, 3229 int flags 3230 ); 3231 } 3232573 AUE_NULL STD|CAPENABLED { 3233 int sigfastblock( 3234 int cmd, 3235 _Inout_updates_bytes_opt_(4) void *ptr 3236 ); 3237 } 3238574 AUE_REALPATHAT STD { 3239 int __realpathat( 3240 int fd, 3241 _In_z_ const char *path, 3242 _Out_writes_z_(size) char *buf, 3243 size_t size, 3244 int flags 3245 ); 3246 } 3247575 AUE_CLOSERANGE STD|CAPENABLED { 3248 int close_range( 3249 u_int lowfd, 3250 u_int highfd, 3251 int flags 3252 ); 3253 } 3254; 576 is initialised by the krpc code, if present. 3255576 AUE_NULL NOSTD { 3256 int rpctls_syscall( 3257 int op, 3258 _In_z_ const char *path 3259 ); 3260 } 3261577 AUE_SPECIALFD STD|CAPENABLED { 3262 int __specialfd( 3263 int type, 3264 _In_reads_bytes_(len) const void *req, 3265 size_t len 3266 ); 3267 } 3268578 AUE_AIO_WRITEV STD|CAPENABLED { 3269 int aio_writev( 3270 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3271 ); 3272 } 3273579 AUE_AIO_READV STD|CAPENABLED { 3274 int aio_readv( 3275 _Inout_ _Contains_long_ptr_ struct aiocb *aiocbp 3276 ); 3277 } 3278580 AUE_FSPACECTL STD|CAPENABLED { 3279 int fspacectl( 3280 int fd, 3281 int cmd, 3282 _In_ const struct spacectl_range *rqsr, 3283 int flags, 3284 _Out_opt_ struct spacectl_range *rmsr, 3285 ); 3286 } 3287581 AUE_NULL STD|CAPENABLED { 3288 int sched_getcpu(void); 3289 } 3290582 AUE_SWAPOFF STD { 3291 int swapoff( 3292 _In_z_ const char *name, 3293 u_int flags, 3294 ); 3295 } 3296583 AUE_KQUEUE STD|CAPENABLED { 3297 int kqueuex( 3298 u_int flags 3299 ); 3300 } 3301584 AUE_NULL STD|CAPENABLED { 3302 int membarrier( 3303 int cmd, 3304 unsigned flags, 3305 int cpu_id 3306 ); 3307 } 3308585 AUE_TIMERFD STD|CAPENABLED { 3309 int timerfd_create( 3310 int clockid, 3311 int flags 3312 ); 3313 } 3314586 AUE_TIMERFD STD|CAPENABLED { 3315 int timerfd_gettime( 3316 int fd, 3317 _Out_ _Contains_long_timet_ struct itimerspec *curr_value 3318 ); 3319 } 3320587 AUE_TIMERFD STD|CAPENABLED { 3321 int timerfd_settime( 3322 int fd, 3323 int flags, 3324 _In_ _Contains_long_timet_ const struct itimerspec *new_value, 3325 _Out_opt_ _Contains_long_timet_ struct itimerspec *old_value 3326 ); 3327 } 3328588 AUE_NULL STD { 3329 int kcmp( 3330 pid_t pid1, 3331 pid_t pid2, 3332 int type, 3333 uintptr_t idx1, 3334 uintptr_t idx2 3335 ); 3336 } 3337589 AUE_NULL STD|CAPENABLED { 3338 int getrlimitusage( 3339 u_int which, 3340 int flags, 3341 _Out_ rlim_t *res 3342 ); 3343 } 3344590 AUE_NULL STD { 3345 int fchroot( 3346 int fd 3347 ); 3348 } 3349591 AUE_SETCRED STD|CAPENABLED { 3350 int setcred( 3351 u_int flags, 3352 _In_reads_bytes_(size) _Contains_ptr_ const struct setcred *wcred, 3353 size_t size 3354 ); 3355 } 3356 3357; vim: syntax=off 3358