1 $FreeBSD$ 2; from: @(#)syscalls.master 8.2 (Berkeley) 1/13/94 3; 4; System call name/number master file. 5; Processed to created init_sysent.c, syscalls.c and syscall.h. 6 7; Columns: number audit type name alt{name,tag,rtyp}/comments 8; number system call number, must be in order 9; audit the audit event associated with the system call 10; A value of AUE_NULL means no auditing, but it also means that 11; there is no audit event for the call at this time. For the 12; case where the event exists, but we don't want auditing, the 13; event should be #defined to AUE_NULL in audit_kevents.h. 14; type one of STD, OBSOL, UNIMPL, COMPAT, COMPAT4, COMPAT6, 15; COMPAT7, COMPAT11, COMPAT12, NODEF, NOARGS, NOPROTO, NOSTD 16; The COMPAT* options may be combined with one or more NO* 17; options separated by '|' with no spaces (e.g. COMPAT|NOARGS) 18; name pseudo-prototype of syscall routine 19; If one of the following alts is different, then all appear: 20; altname name of system call if different 21; alttag name of args struct tag if different from [o]`name'"_args" 22; altrtyp return type if not int (bogus - syscalls always return int) 23; for UNIMPL/OBSOL, name continues with comments 24 25; types: 26; STD always included 27; COMPAT included on COMPAT #ifdef 28; COMPAT4 included on COMPAT_FREEBSD4 #ifdef (FreeBSD 4 compat) 29; COMPAT6 included on COMPAT_FREEBSD6 #ifdef (FreeBSD 6 compat) 30; COMPAT7 included on COMPAT_FREEBSD7 #ifdef (FreeBSD 7 compat) 31; COMPAT10 included on COMPAT_FREEBSD10 #ifdef (FreeBSD 10 compat) 32; COMPAT11 included on COMPAT_FREEBSD11 #ifdef (FreeBSD 11 compat) 33; COMPAT12 included on COMPAT_FREEBSD12 #ifdef (FreeBSD 12 compat) 34; OBSOL obsolete, not included in system, only specifies name 35; UNIMPL not implemented, placeholder only 36; NOSTD implemented but as a lkm that can be statically 37; compiled in; sysent entry will be filled with lkmressys 38; so the SYSCALL_MODULE macro works 39; NOARGS same as STD except do not create structure in sys/sysproto.h 40; NODEF same as STD except only have the entry in the syscall table 41; added. Meaning - do not create structure or function 42; prototype in sys/sysproto.h 43; NOPROTO same as STD except do not create structure or 44; function prototype in sys/sysproto.h. Does add a 45; definition to syscall.h besides adding a sysent. 46; NOTSTATIC syscall is loadable 47 48; annotations: 49; SAL 2.0 annotations are used to specify how system calls treat 50; arguments that are passed using pointers. There are three basic 51; annotations. 52; 53; _In_ Object pointed to will be read and not modified. 54; _Out_ Object pointed to will be written and not read. 55; _Inout_ Object pointed to will be written and read. 56; 57; These annotations are used alone when the pointer refers to a single 58; object i.e. scalar types, structs, and pointers, and not NULL. Adding 59; the _opt_ suffix, e.g. _In_opt_, implies that the pointer may also 60; refer to NULL. 61; 62; For pointers to arrays, additional suffixes are added: 63; 64; _In_z_, _Out_z_, _Inout_z_: 65; for a NUL terminated array e.g. a string. 66; _In_reads_z_(n),_Out_writes_z_(n), _Inout_updates_z_(n): 67; for a NUL terminated array e.g. a string, of known length n bytes. 68; _In_reads_(n),_Out_writes_(n),_Inout_updates_(n): 69; for an array of n elements. 70; _In_reads_bytes_(n), _Out_writes_bytes_(n), _Inout_updates_bytes(n): 71; for a buffer of n-bytes. 72 73; Please copy any additions and changes to the following compatability tables: 74; sys/compat/freebsd32/syscalls.master 75 76; #ifdef's, etc. may be included, and are copied to the output files. 77 78#include <sys/param.h> 79#include <sys/sysent.h> 80#include <sys/sysproto.h> 81 82; Reserved/unimplemented system calls in the range 0-150 inclusive 83; are reserved for use in future Berkeley releases. 84; Additional system calls implemented in vendor and other 85; redistributions should be placed in the reserved range at the end 86; of the current calls. 87 880 AUE_NULL STD { 89 int nosys(void); 90 } syscall nosys_args int 911 AUE_EXIT STD { 92 void sys_exit( 93 int rval 94 ); 95 } exit sys_exit_args void 962 AUE_FORK STD { 97 int fork(void); 98 } 993 AUE_READ STD { 100 ssize_t read( 101 int fd, 102 _Out_writes_bytes_(nbyte) void *buf, 103 size_t nbyte 104 ); 105 } 1064 AUE_WRITE STD { 107 ssize_t write( 108 int fd, 109 _In_reads_bytes_(nbyte) const void *buf, 110 size_t nbyte 111 ); 112 } 1135 AUE_OPEN_RWTC STD { 114 int open( 115 _In_z_ const char *path, 116 int flags, 117 mode_t mode 118 ); 119 } 120; XXX should be { int open(const char *path, int flags, ...); } 121; but we're not ready for varargs. 1226 AUE_CLOSE STD { 123 int close( 124 int fd 125 ); 126 } 1277 AUE_WAIT4 STD { 128 int wait4( 129 int pid, 130 _Out_opt_ int *status, 131 int options, 132 _Out_opt_ struct rusage *rusage 133 ); 134 } 1358 AUE_CREAT COMPAT { 136 int creat( 137 _In_z_ const char *path, 138 int mode 139 ); 140 } 1419 AUE_LINK STD { 142 int link( 143 _In_z_ const char *path, 144 _In_z_ const char *link 145 ); 146 } 14710 AUE_UNLINK STD { 148 int unlink( 149 _In_z_ const char *path 150 ); 151 } 15211 AUE_NULL OBSOL execv 15312 AUE_CHDIR STD { 154 int chdir( 155 _In_z_ const char *path 156 ); 157 } 15813 AUE_FCHDIR STD { 159 int fchdir( 160 int fd 161 ); 162 } 16314 AUE_MKNOD COMPAT11 { 164 int mknod( 165 _In_z_ const char *path, 166 int mode, 167 uint32_t dev 168 ); 169 } 17015 AUE_CHMOD STD { 171 int chmod( 172 _In_z_ const char *path, 173 mode_t mode 174 ); 175 } 17616 AUE_CHOWN STD { 177 int chown( 178 _In_z_ const char *path, 179 int uid, 180 int gid 181 ); 182 } 18317 AUE_NULL STD { 184 void *break( 185 _In_ char *nsize 186 ); 187 } 18818 AUE_GETFSSTAT COMPAT4 { 189 int getfsstat( 190 _Out_writes_bytes_opt_(bufsize) struct ostatfs *buf, 191 long bufsize, 192 int mode 193 ); 194 } 19519 AUE_LSEEK COMPAT { 196 long lseek( 197 int fd, 198 long offset, 199 int whence 200 ); 201 } 20220 AUE_GETPID STD { 203 pid_t getpid(void); 204 } 20521 AUE_MOUNT STD { 206 int mount( 207 _In_z_ const char *type, 208 _In_z_ const char *path, 209 int flags, 210 _In_opt_ void *data 211 ); 212 } 21322 AUE_UMOUNT STD { 214 int unmount( 215 _In_z_ const char *path, 216 int flags 217 ); 218 } 21923 AUE_SETUID STD { 220 int setuid( 221 uid_t uid 222 ); 223 } 22424 AUE_GETUID STD { 225 uid_t getuid(void); 226 } 22725 AUE_GETEUID STD { 228 uid_t geteuid(void); 229 } 23026 AUE_PTRACE STD { 231 int ptrace( 232 int req, 233 pid_t pid, 234 _Inout_opt_ caddr_t addr, 235 int data 236 ); 237 } 23827 AUE_RECVMSG STD { 239 int recvmsg( 240 int s, 241 _Inout_ struct msghdr *msg, 242 int flags 243 ); 244 } 24528 AUE_SENDMSG STD { 246 int sendmsg( 247 int s, 248 _In_ struct msghdr *msg, 249 int flags 250 ); 251 } 25229 AUE_RECVFROM STD { 253 int recvfrom( 254 int s, 255 _Out_writes_bytes_(len) void *buf, 256 size_t len, 257 int flags, 258 _Out_writes_bytes_opt_(*fromlenaddr) struct sockaddr *from, 259 _Inout_opt_ __socklen_t *fromlenaddr 260 ); 261 } 26230 AUE_ACCEPT STD { 263 int accept( 264 int s, 265 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 266 _Inout_opt_ __socklen_t *anamelen 267 ); 268 } 26931 AUE_GETPEERNAME STD { 270 int getpeername( 271 int fdes, 272 _Out_writes_bytes_(*alen) struct sockaddr *asa, 273 _Inout_opt_ __socklen_t *alen 274 ); 275 } 27632 AUE_GETSOCKNAME STD { 277 int getsockname( 278 int fdes, 279 _Out_writes_bytes_(*alen) struct sockaddr *asa, 280 _Inout_ __socklen_t *alen 281 ); 282 } 28333 AUE_ACCESS STD { 284 int access( 285 _In_z_ const char *path, 286 int amode 287 ); 288 } 28934 AUE_CHFLAGS STD { 290 int chflags( 291 _In_z_ const char *path, 292 u_long flags 293 ); 294 } 29535 AUE_FCHFLAGS STD { 296 int fchflags( 297 int fd, 298 u_long flags 299 ); 300 } 30136 AUE_SYNC STD { 302 int sync(void); 303 } 30437 AUE_KILL STD { 305 int kill( 306 int pid, 307 int signum 308 ); 309 } 31038 AUE_STAT COMPAT { 311 int stat( 312 _In_z_ const char *path, 313 _Out_ struct ostat *ub 314 ); 315 } 31639 AUE_GETPPID STD { 317 pid_t getppid(void); 318 } 31940 AUE_LSTAT COMPAT { 320 int lstat( 321 _In_z_ const char *path, 322 _Out_ struct ostat *ub 323 ); 324 } 32541 AUE_DUP STD { 326 int dup( 327 u_int fd 328 ); 329 } 33042 AUE_PIPE COMPAT10 { 331 int pipe(void); 332 } 33343 AUE_GETEGID STD { 334 gid_t getegid(void); 335 } 33644 AUE_PROFILE STD { 337 int profil( 338 _Out_writes_bytes_(size) char *samples, 339 size_t size, 340 size_t offset, 341 u_int scale 342 ); 343 } 34445 AUE_KTRACE STD { 345 int ktrace( 346 _In_z_ const char *fname, 347 int ops, 348 int facs, 349 int pid 350 ); 351 } 35246 AUE_SIGACTION COMPAT { 353 int sigaction( 354 int signum, 355 _In_opt_ struct osigaction *nsa, 356 _Out_opt_ struct osigaction *osa 357 ); 358 } 35947 AUE_GETGID STD { 360 gid_t getgid(void); 361 } 36248 AUE_SIGPROCMASK COMPAT { 363 int sigprocmask( 364 int how, 365 osigset_t mask 366 ); 367 } 368; XXX note nonstandard (bogus) calling convention - the libc stub passes 369; us the mask, not a pointer to it, and we return the old mask as the 370; (int) return value. 37149 AUE_GETLOGIN STD { 372 int getlogin( 373 _Out_writes_z_(namelen) char *namebuf, 374 u_int namelen 375 ); 376 } 37750 AUE_SETLOGIN STD { 378 int setlogin( 379 _In_z_ const char *namebuf 380 ); 381 } 38251 AUE_ACCT STD { 383 int acct( 384 _In_z_ const char *path 385 ); 386 } 38752 AUE_SIGPENDING COMPAT { 388 int sigpending(void); 389 } 39053 AUE_SIGALTSTACK STD { 391 int sigaltstack( 392 _In_opt_ stack_t *ss, 393 _Out_opt_ stack_t *oss 394 ); 395 } 39654 AUE_IOCTL STD { 397 int ioctl( 398 int fd, 399 u_long com, 400 _Inout_opt_ char *data 401 ); 402 } 40355 AUE_REBOOT STD { 404 int reboot( 405 int opt 406 ); 407 } 40856 AUE_REVOKE STD { 409 int revoke( 410 _In_z_ const char *path 411 ); 412 } 41357 AUE_SYMLINK STD { 414 int symlink( 415 _In_z_ const char *path, 416 _In_z_ const char *link 417 ); 418 } 41958 AUE_READLINK STD { 420 ssize_t readlink( 421 _In_z_ const char *path, 422 _Out_writes_z_(count) char *buf, 423 size_t count 424 ); 425 } 42659 AUE_EXECVE STD { 427 int execve( 428 _In_z_ const char *fname, 429 _In_z_ char **argv, 430 _In_z_ char **envv 431 ); 432 } 43360 AUE_UMASK STD { 434 int umask( 435 mode_t newmask 436 ); 437 } 43861 AUE_CHROOT STD { 439 int chroot( 440 _In_z_ const char *path 441 ); 442 } 44362 AUE_FSTAT COMPAT { 444 int fstat( 445 int fd, 446 _Out_ struct ostat *sb 447 ); 448 } 44963 AUE_NULL COMPAT { 450 int getkerninfo( 451 int op, 452 _Out_writes_bytes_opt( 453 *size) char *where, 454 _Inout_opt_ size_t *size, 455 int arg 456 ); 457 } 45864 AUE_NULL COMPAT { 459 int getpagesize(void); 460 } 46165 AUE_MSYNC STD { 462 int msync( 463 _In_ void *addr, 464 size_t len, 465 int flags 466 ); 467 } 46866 AUE_VFORK STD { 469 int vfork(void); 470 } 47167 AUE_NULL OBSOL vread 47268 AUE_NULL OBSOL vwrite 47369 AUE_SBRK STD { 474 int sbrk( 475 int incr 476 ); 477 } 47870 AUE_SSTK STD { 479 int sstk( 480 int incr 481 ); 482 } 48371 AUE_MMAP COMPAT { 484 void *mmap( 485 _In_ void *addr, 486 int len, 487 int prot, 488 int flags, 489 int fd, 490 long pos 491 ); 492 } 49372 AUE_O_VADVISE COMPAT11 { 494 int vadvise( 495 int anom 496 ); 497 } 49873 AUE_MUNMAP STD { 499 int munmap( 500 _In_ void *addr, 501 size_t len 502 ); 503 } 50474 AUE_MPROTECT STD { 505 int mprotect( 506 _In_ void *addr, 507 size_t len, 508 int prot 509 ); 510 } 51175 AUE_MADVISE STD { 512 int madvise( 513 _In_ void *addr, 514 size_t len, 515 int behav 516 ); 517 } 51876 AUE_NULL OBSOL vhangup 51977 AUE_NULL OBSOL vlimit 52078 AUE_MINCORE STD { 521 int mincore( 522 _In_ const void *addr, 523 size_t len, 524 _Out_writes_bytes_(len/PAGE_SIZE) char *vec 525 ); 526 } 52779 AUE_GETGROUPS STD { 528 int getgroups( 529 int gidsetsize, 530 _Out_writes_opt_(gidsetsize) gid_t *gidset 531 ); 532 } 53380 AUE_SETGROUPS STD { 534 int setgroups( 535 int gidsetsize, 536 _In_reads_(gidsetsize) gid_t *gidset 537 ); 538 } 53981 AUE_GETPGRP STD { 540 int getpgrp(void); 541 } 54282 AUE_SETPGRP STD { 543 int setpgid( 544 int pid, 545 int pgid 546 ); 547 } 54883 AUE_SETITIMER STD { 549 int setitimer( 550 u_int which, 551 _In_ struct itimerval *itv, 552 _Out_opt_ struct itimerval *oitv 553 ); 554 } 55584 AUE_WAIT4 COMPAT { 556 int wait(void); 557 } 55885 AUE_SWAPON STD { 559 int swapon( 560 _In_z_ const char *name 561 ); 562 } 56386 AUE_GETITIMER STD { 564 int getitimer( 565 u_int which, 566 _Out_ struct itimerval *itv 567 ); 568 } 56987 AUE_SYSCTL COMPAT { 570 int gethostname( 571 _Out_writes_z_(len) char *hostname, 572 u_int len 573 ); 574 } 57588 AUE_SYSCTL COMPAT { 576 int sethostname( 577 _In_reads_z_(len) char *hostname, 578 u_int len 579 ); 580 } 58189 AUE_GETDTABLESIZE STD { 582 int getdtablesize(void); 583 } 58490 AUE_DUP2 STD { 585 int dup2( 586 u_int from, 587 u_int to 588 ); 589 } 59091 AUE_NULL UNIMPL getdopt 59192 AUE_FCNTL STD { 592 int fcntl( 593 int fd, 594 int cmd, 595 long arg 596 ); 597 } 598; XXX should be { int fcntl(int fd, int cmd, ...); } 599; but we're not ready for varargs. 60093 AUE_SELECT STD { 601 int select( 602 int nd, 603 _Inout_opt_ fd_set *in, 604 _Inout_opt_ fd_set *ou, 605 _Inout_opt_ fd_set *ex, 606 _In_opt_ struct timeval *tv 607 ); 608 } 60994 AUE_NULL UNIMPL setdopt 61095 AUE_FSYNC STD { 611 int fsync( 612 int fd 613 ); 614 } 61596 AUE_SETPRIORITY STD { 616 int setpriority( 617 int which, 618 int who, 619 int prio 620 ); 621 } 62297 AUE_SOCKET STD { 623 int socket( 624 int domain, 625 int type, 626 int protocol 627 ); 628 } 62998 AUE_CONNECT STD { 630 int connect( 631 int s, 632 _In_reads_bytes_(namelen) const struct sockaddr *name, 633 int namelen 634 ); 635 } 63699 AUE_ACCEPT COMPAT { 637 int accept( 638 int s, 639 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 640 int *anamelen 641 ); 642 } 643100 AUE_GETPRIORITY STD { 644 int getpriority( 645 int which, 646 int who 647 ); 648 } 649101 AUE_SEND COMPAT { 650 int send( 651 int s, 652 _In_reads_bytes_(len) const void *buf, 653 int len, 654 int flags 655 ); 656 } 657102 AUE_RECV COMPAT { 658 int recv( 659 int s, 660 _Out_writes_bytes_(len) void *buf, 661 int len, 662 int flags 663 ); 664 } 665103 AUE_SIGRETURN COMPAT { 666 int sigreturn( 667 _In_ struct osigcontext *sigcntxp 668 ); 669 } 670104 AUE_BIND STD { 671 int bind( 672 int s, 673 _In_reads_bytes_(namelen) const struct sockaddr *name, 674 int namelen 675 ); 676 } 677105 AUE_SETSOCKOPT STD { 678 int setsockopt( 679 int s, 680 int level, 681 int name, 682 _In_reads_bytes_opt_(valsize) const void *val, 683 int valsize 684 ); 685 } 686106 AUE_LISTEN STD { 687 int listen( 688 int s, 689 int backlog 690 ); 691 } 692107 AUE_NULL OBSOL vtimes 693108 AUE_NULL COMPAT { 694 int sigvec( 695 int signum, 696 _In_opt_ struct sigvec *nsv, 697 _Out_opt_ struct sigvec *osv 698 ); 699 } 700109 AUE_NULL COMPAT { 701 int sigblock( 702 int mask 703 ); 704 } 705110 AUE_NULL COMPAT { 706 int sigsetmask( 707 int mask 708 ); 709 } 710111 AUE_NULL COMPAT { 711 int sigsuspend( 712 osigset_t mask 713 ); 714 } 715; XXX note nonstandard (bogus) calling convention - the libc stub passes 716; us the mask, not a pointer to it. 717112 AUE_NULL COMPAT { 718 int sigstack( 719 _In_opt_ struct sigstack *nss, 720 _Out_opt_ struct sigstack *oss 721 ); 722 } 723113 AUE_RECVMSG COMPAT { 724 int recvmsg( 725 int s, 726 _Inout_ struct omsghdr *msg, 727 int flags 728 ); 729 } 730114 AUE_SENDMSG COMPAT { 731 int sendmsg( 732 int s, 733 _In_ const void *msg, 734 int flags 735 ); 736 } 737115 AUE_NULL OBSOL vtrace 738116 AUE_GETTIMEOFDAY STD { 739 int gettimeofday( 740 _Out_ struct timeval *tp, 741 _Out_opt_ struct timezone *tzp 742 ); 743 } 744117 AUE_GETRUSAGE STD { 745 int getrusage( 746 int who, 747 _Out_ struct rusage *rusage 748 ); 749 } 750118 AUE_GETSOCKOPT STD { 751 int getsockopt( 752 int s, 753 int level, 754 int name, 755 _Out_writes_bytes_opt_(*avalsize) void *val, 756 _Inout_ int *avalsize 757 ); 758 } 759119 AUE_NULL UNIMPL resuba (BSD/OS 2.x) 760120 AUE_READV STD { 761 int readv( 762 int fd, 763 _Inout_updates_(iovcnt) struct iovec *iovp, 764 u_int iovcnt 765 ); 766 } 767121 AUE_WRITEV STD { 768 int writev( 769 int fd, 770 _In_reads_opt_(iovcnt) struct iovec *iovp, 771 u_int iovcnt 772 ); 773 } 774122 AUE_SETTIMEOFDAY STD { 775 int settimeofday( 776 _In_ struct timeval *tv, 777 _In_opt_ struct timezone *tzp 778 ); 779 } 780123 AUE_FCHOWN STD { 781 int fchown( 782 int fd, 783 int uid, 784 int gid 785 ); 786 } 787124 AUE_FCHMOD STD { 788 int fchmod( 789 int fd, 790 mode_t mode 791 ); 792 } 793125 AUE_RECVFROM COMPAT|NOARGS { 794 int recvfrom( 795 int s, 796 _Out_writes_(len) void *buf, 797 size_t len, 798 int flags, 799 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 800 _Inout_ int *fromlenaddr 801 ); 802 } recvfrom recvfrom_args int 803126 AUE_SETREUID STD { 804 int setreuid( 805 int ruid, 806 int euid 807 ); 808 } 809127 AUE_SETREGID STD { 810 int setregid( 811 int rgid, 812 int egid 813 ); 814 } 815128 AUE_RENAME STD { 816 int rename( 817 _In_z_ const char *from, 818 _In_z_ const char *to 819 ); 820 } 821129 AUE_TRUNCATE COMPAT { 822 int truncate( 823 _In_z_ const char *path, 824 long length 825 ); 826 } 827130 AUE_FTRUNCATE COMPAT { 828 int ftruncate( 829 int fd, 830 long length 831 ); 832 } 833131 AUE_FLOCK STD { 834 int flock( 835 int fd, 836 int how 837 ); 838 } 839132 AUE_MKFIFO STD { 840 int mkfifo( 841 _In_z_ const char *path, 842 mode_t mode 843 ); 844 } 845133 AUE_SENDTO STD { 846 int sendto( 847 int s, 848 _In_reads_bytes_(len) const void *buf, 849 size_t len, 850 int flags, 851 _In_reads_bytes_opt_(tolen) const struct sockaddr *to, 852 int tolen 853 ); 854 } 855134 AUE_SHUTDOWN STD { 856 int shutdown( 857 int s, 858 int how 859 ); 860 } 861135 AUE_SOCKETPAIR STD { 862 int socketpair( 863 int domain, 864 int type, 865 int protocol, 866 _Out_writes_(2) int *rsv 867 ); 868 } 869136 AUE_MKDIR STD { 870 int mkdir( 871 _In_z_ const char *path, 872 mode_t mode 873 ); 874 } 875137 AUE_RMDIR STD { 876 int rmdir( 877 _In_z_ const char *path 878 ); 879 } 880138 AUE_UTIMES STD { 881 int utimes( 882 _In_z_ const char *path, 883 _In_ struct timeval *tptr 884 ); 885 } 886139 AUE_NULL OBSOL 4.2 sigreturn 887140 AUE_ADJTIME STD { 888 int adjtime( 889 _In_ struct timeval *delta, 890 _Out_opt_ struct timeval *olddelta 891 ); 892 } 893141 AUE_GETPEERNAME COMPAT { 894 int getpeername( 895 int fdes, 896 _Out_writes_bytes_(*alen) struct sockaddr *asa, 897 _Inout_opt_ int *alen 898 ); 899 } 900142 AUE_SYSCTL COMPAT { 901 long gethostid(void); 902 } 903143 AUE_SYSCTL COMPAT { 904 int sethostid( 905 long hostid 906 ); 907 } 908144 AUE_GETRLIMIT COMPAT { 909 int getrlimit( 910 u_int which, 911 _Out_ struct orlimit *rlp 912 ); 913 } 914145 AUE_SETRLIMIT COMPAT { 915 int setrlimit( 916 u_int which, 917 _Out_ struct orlimit *rlp 918 ); 919 } 920146 AUE_KILLPG COMPAT { 921 int killpg( 922 int pgid, 923 int signum 924 ); 925 } 926147 AUE_SETSID STD { 927 int setsid(void); 928 } 929148 AUE_QUOTACTL STD { 930 int quotactl( 931 _In_z_ const char *path, 932 int cmd, 933 int uid, 934 _In_ void *arg 935 ); 936 } 937149 AUE_O_QUOTA COMPAT { 938 int quota(void); 939 } 940150 AUE_GETSOCKNAME COMPAT|NOARGS { 941 int getsockname( 942 int fdec, 943 _Out_writes_bytes_(*alen) struct sockaddr *asa, 944 _Inout_ int *alen 945 ); 946 } getsockname getsockname_args int 947 948; Syscalls 151-180 inclusive are reserved for vendor-specific 949; system calls. (This includes various calls added for compatibity 950; with other Unix variants.) 951; Some of these calls are now supported by BSD. 952151 AUE_NULL UNIMPL sem_lock (BSD/OS 2.x) 953152 AUE_NULL UNIMPL sem_wakeup (BSD/OS 2.x) 954153 AUE_NULL UNIMPL asyncdaemon (BSD/OS 2.x) 955; 154 is initialised by the NLM code, if present. 956154 AUE_NULL NOSTD { 957 int nlm_syscall( 958 int debug_level, 959 int grace_period, 960 int addr_count, 961 _In_reads_(addr_count) char **addrs 962 ); 963 } 964; 155 is initialized by the NFS code, if present. 965155 AUE_NFS_SVC NOSTD { 966 int nfssvc( 967 int flag, 968 _In_ void *argp 969 ); 970 } 971156 AUE_GETDIRENTRIES COMPAT { 972 int getdirentries( 973 int fd, 974 _Out_writes_bytes_(count) char *buf, 975 u_int count, 976 _Out_ long *basep 977 ); 978 } 979157 AUE_STATFS COMPAT4 { 980 int statfs( 981 _In_z_ const char *path, 982 _Out_ struct ostatfs *buf 983 ); 984 } 985158 AUE_FSTATFS COMPAT4 { 986 int fstatfs( 987 int fd, 988 _Out_ struct ostatfs *buf 989 ); 990 } 991159 AUE_NULL UNIMPL nosys 992160 AUE_LGETFH STD { 993 int lgetfh( 994 _In_z_ const char *fname, 995 _Out_ struct fhandle *fhp 996 ); 997 } 998161 AUE_NFS_GETFH STD { 999 int getfh( 1000 _In_z_ const char *fname, 1001 _Out_ struct fhandle *fhp 1002 ); 1003 } 1004162 AUE_SYSCTL COMPAT4 { 1005 int getdomainname( 1006 _Out_writes_z_(len) char *domainname, 1007 int len 1008 ); 1009 } 1010163 AUE_SYSCTL COMPAT4 { 1011 int setdomainname( 1012 _In_reads_z_(len) char *domainname, 1013 int len 1014 ); 1015 } 1016164 AUE_NULL COMPAT4 { 1017 int uname( 1018 _Out_ struct utsname *name 1019 ); 1020 } 1021165 AUE_SYSARCH STD { 1022 int sysarch( 1023 int op, 1024 _In_z_ char *parms 1025 ); 1026 } 1027166 AUE_RTPRIO STD { 1028 int rtprio( 1029 int function, 1030 pid_t pid, 1031 _Inout_ struct rtprio *rtp 1032 ); 1033 } 1034167 AUE_NULL UNIMPL nosys 1035168 AUE_NULL UNIMPL nosys 1036169 AUE_SEMSYS NOSTD { 1037 int semsys( 1038 int which, 1039 int a2, 1040 int a3, 1041 int a4, 1042 int a5 1043 ); 1044 } 1045; XXX should be { int semsys(int which, ...); } 1046170 AUE_MSGSYS NOSTD { 1047 int msgsys( 1048 int which, 1049 int a2, 1050 int a3, 1051 int a4, 1052 int a5, 1053 int a6 1054 ); 1055 } 1056; XXX should be { int msgsys(int which, ...); } 1057171 AUE_SHMSYS NOSTD { 1058 int shmsys( 1059 int which, 1060 int a2, 1061 int a3, 1062 int a4 1063 ); 1064 } 1065; XXX should be { int shmsys(int which, ...); } 1066172 AUE_NULL UNIMPL nosys 1067173 AUE_PREAD COMPAT6 { 1068 ssize_t pread( 1069 int fd, 1070 _Out_writes_bytes_(nbyte) void *buf, 1071 size_t nbyte, 1072 int pad, 1073 off_t offset 1074 ); 1075 } 1076174 AUE_PWRITE COMPAT6 { 1077 ssize_t pwrite( 1078 int fd, 1079 _In_reads_bytes_(nbyte) const void *buf, 1080 size_t nbyte, 1081 int pad, 1082 off_t offset 1083 ); 1084 } 1085175 AUE_SETFIB STD { 1086 int setfib( 1087 int fibnum 1088 ); 1089 } 1090176 AUE_NTP_ADJTIME STD { 1091 int ntp_adjtime( 1092 _Inout_ struct timex *tp 1093 ); 1094 } 1095177 AUE_NULL UNIMPL sfork (BSD/OS 2.x) 1096178 AUE_NULL UNIMPL getdescriptor (BSD/OS 2.x) 1097179 AUE_NULL UNIMPL setdescriptor (BSD/OS 2.x) 1098180 AUE_NULL UNIMPL nosys 1099 1100; Syscalls 181-199 are used by/reserved for BSD 1101181 AUE_SETGID STD { 1102 int setgid( 1103 gid_t gid 1104 ); 1105 } 1106182 AUE_SETEGID STD { 1107 int setegid( 1108 gid_t egid 1109 ); 1110 } 1111183 AUE_SETEUID STD { 1112 int seteuid( 1113 uid_t euid 1114 ); 1115 } 1116184 AUE_NULL OBSOL lfs_bmapv 1117185 AUE_NULL OBSOL lfs_markv 1118186 AUE_NULL OBSOL lfs_segclean 1119187 AUE_NULL OBSOL lfs_segwait 1120188 AUE_STAT COMPAT11 { 1121 int stat( 1122 _In_z_ const char *path, 1123 _Out_ struct freebsd11_stat *ub 1124 ); 1125 } 1126189 AUE_FSTAT COMPAT11 { 1127 int fstat( 1128 int fd, 1129 _Out_ struct freebsd11_stat *sb 1130 ); 1131 } 1132190 AUE_LSTAT COMPAT11 { 1133 int lstat( 1134 _In_z_ const char *path, 1135 _Out_ struct freebsd11_stat *ub 1136 ); 1137 } 1138191 AUE_PATHCONF STD { 1139 int pathconf( 1140 _In_z_ const char *path, 1141 int name 1142 ); 1143 } 1144192 AUE_FPATHCONF STD { 1145 int fpathconf( 1146 int fd, 1147 int name 1148 ); 1149 } 1150193 AUE_NULL UNIMPL nosys 1151194 AUE_GETRLIMIT STD { 1152 int getrlimit( 1153 u_int which, 1154 _Out_ struct rlimit *rlp 1155 ); 1156 } getrlimit __getrlimit_args int 1157195 AUE_SETRLIMIT STD { 1158 int setrlimit( 1159 u_int which, 1160 _In_ struct rlimit *rlp 1161 ); 1162 } setrlimit __setrlimit_args int 1163196 AUE_GETDIRENTRIES COMPAT11 { 1164 int getdirentries( 1165 int fd, 1166 _Out_writes_bytes_(count) char *buf, 1167 u_int count, 1168 _Out_ long *basep 1169 ); 1170 } 1171197 AUE_MMAP COMPAT6 { 1172 void *mmap( 1173 _In_ void *addr, 1174 size_t len, 1175 int prot, 1176 int flags, 1177 int fd, 1178 int pad, 1179 off_t pos 1180 ); 1181 } 1182198 AUE_NULL NOPROTO { 1183 int nosys(void); 1184 } __syscall __syscall_args int 1185199 AUE_LSEEK COMPAT6 { 1186 off_t lseek( 1187 int fd, 1188 int pad, 1189 off_t offset, 1190 int whence 1191 ); 1192 } 1193200 AUE_TRUNCATE COMPAT6 { 1194 int truncate( 1195 _In_z_ const char *path, 1196 int pad, 1197 off_t length 1198 ); 1199 } 1200201 AUE_FTRUNCATE COMPAT6 { 1201 int ftruncate( 1202 int fd, 1203 int pad, 1204 off_t length 1205 ); 1206 } 1207202 AUE_SYSCTL STD { 1208 int __sysctl( 1209 _In_reads_(namelen) int *name, 1210 u_int namelen, 1211 _Out_writes_bytes_opt_(*oldlenp) void *old, 1212 _Inout_opt_ size_t *oldlenp, 1213 _In_reads_bytes_opt_(newlen) const void *new, 1214 size_t newlen 1215 ); 1216 } __sysctl sysctl_args int 1217203 AUE_MLOCK STD { 1218 int mlock( 1219 _In_ const void *addr, 1220 size_t len 1221 ); 1222 } 1223204 AUE_MUNLOCK STD { 1224 int munlock( 1225 _In_ const void *addr, 1226 size_t len 1227 ); 1228 } 1229205 AUE_UNDELETE STD { 1230 int undelete( 1231 _In_z_ const char *path 1232 ); 1233 } 1234206 AUE_FUTIMES STD { 1235 int futimes( 1236 int fd, 1237 _In_reads_(2) struct timeval *tptr 1238 ); 1239 } 1240207 AUE_GETPGID STD { 1241 int getpgid( 1242 pid_t pid 1243 ); 1244 } 1245208 AUE_NULL UNIMPL nosys 1246209 AUE_POLL STD { 1247 int poll( 1248 _Inout_updates_(nfds) struct pollfd *fds, 1249 u_int nfds, 1250 int timeout 1251 ); 1252 } 1253; 1254; The following are reserved for loadable syscalls 1255; 1256210 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1257211 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1258212 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1259213 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1260214 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1261215 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1262216 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1263217 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1264218 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1265219 AUE_NULL NODEF|NOTSTATIC lkmnosys lkmnosys nosys_args int 1266 1267220 AUE_SEMCTL COMPAT7|NOSTD { 1268 int __semctl( 1269 int semid, 1270 int semnum, 1271 int cmd, 1272 union semun_old *arg 1273 ); 1274 } 1275221 AUE_SEMGET NOSTD { 1276 int semget( 1277 key_t key, 1278 int nsems, 1279 int semflg 1280 ); 1281 } 1282222 AUE_SEMOP NOSTD { 1283 int semop( 1284 int semid, 1285 _In_reads_(nsops) struct sembuf *sops, 1286 size_t nsops 1287 ); 1288 } 1289223 AUE_NULL OBSOL semconfig 1290224 AUE_MSGCTL COMPAT7|NOSTD { 1291 int msgctl( 1292 int msqid, 1293 int cmd, 1294 struct msqid_ds_old *buf 1295 ); 1296 } 1297225 AUE_MSGGET NOSTD { 1298 int msgget( 1299 key_t key, 1300 int msgflg 1301 ); 1302 } 1303226 AUE_MSGSND NOSTD { 1304 int msgsnd( 1305 int msqid, 1306 _In_reads_bytes_(msgsz) const void *msgp, 1307 size_t msgsz, 1308 int msgflg 1309 ); 1310 } 1311227 AUE_MSGRCV NOSTD { 1312 ssize_t msgrcv( 1313 int msqid, 1314 _Out_writes_bytes_(msgsz) void *msgp, 1315 size_t msgsz, 1316 long msgtyp, 1317 int msgflg 1318 ); 1319 } 1320228 AUE_SHMAT NOSTD { 1321 void *shmat( 1322 int shmid, 1323 _In_ const void *shmaddr, 1324 int shmflg 1325 ); 1326 } 1327229 AUE_SHMCTL COMPAT7|NOSTD { 1328 int shmctl( 1329 int shmid, 1330 int cmd, 1331 struct shmid_ds_old *buf 1332 ); 1333 } 1334230 AUE_SHMDT NOSTD { 1335 int shmdt( 1336 _In_ const void *shmaddr 1337 ); 1338 } 1339231 AUE_SHMGET NOSTD { 1340 int shmget( 1341 key_t key, 1342 size_t size, 1343 int shmflg 1344 ); 1345 } 1346232 AUE_NULL STD { 1347 int clock_gettime( 1348 clockid_t clock_id, 1349 _Out_ struct timespec *tp 1350 ); 1351 } 1352233 AUE_CLOCK_SETTIME STD { 1353 int clock_settime( 1354 clockid_t clock_id, 1355 _In_ const struct timespec *tp 1356 ); 1357 } 1358234 AUE_NULL STD { 1359 int clock_getres( 1360 clockid_t clock_id, 1361 _Out_ struct timespec *tp 1362 ); 1363 } 1364235 AUE_NULL STD { 1365 int ktimer_create( 1366 clockid_t clock_id, 1367 _In_ struct sigevent *evp, 1368 _Out_ int *timerid 1369 ); 1370 } 1371236 AUE_NULL STD { 1372 int ktimer_delete( 1373 int timerid 1374 ); 1375 } 1376237 AUE_NULL STD { 1377 int ktimer_settime( 1378 int timerid, 1379 int flags, 1380 _In_ const struct itimerspec *value, 1381 _Out_opt_ struct itimerspec *ovalue 1382 ); 1383 } 1384238 AUE_NULL STD { 1385 int ktimer_gettime( 1386 int timerid, 1387 _Out_ struct itimerspec *value 1388 ); 1389 } 1390239 AUE_NULL STD { 1391 int ktimer_getoverrun( 1392 int timerid 1393 ); 1394 } 1395240 AUE_NULL STD { 1396 int nanosleep( 1397 _In_ const struct timespec *rqtp, 1398 _Out_opt_ struct timespec *rmtp 1399 ); 1400 } 1401241 AUE_NULL STD { 1402 int ffclock_getcounter( 1403 _Out_ ffcounter *ffcount 1404 ); 1405 } 1406242 AUE_NULL STD { 1407 int ffclock_setestimate( 1408 _In_ struct ffclock_estimate *cest 1409 ); 1410 } 1411243 AUE_NULL STD { 1412 int ffclock_getestimate( 1413 _Out_ struct ffclock_estimate *cest 1414 ); 1415 } 1416244 AUE_NULL STD { 1417 int clock_nanosleep( 1418 clockid_t clock_id, 1419 int flags, 1420 _In_ const struct timespec *rqtp, 1421 _Out_opt_ struct timespec *rmtp 1422 ); 1423 } 1424245-246 AUE_NULL UNIMPL nosys 1425247 AUE_NULL STD { 1426 int clock_getcpuclockid2( 1427 id_t id, 1428 int which, 1429 _Out_ clockid_t *clock_id 1430 ); 1431 } 1432248 AUE_NULL STD { 1433 int ntp_gettime( 1434 _Out_ struct ntptimeval *ntvp 1435 ); 1436 } 1437249 AUE_NULL UNIMPL nosys 1438; syscall numbers initially used in OpenBSD 1439250 AUE_MINHERIT STD { 1440 int minherit( 1441 _In_ void *addr, 1442 size_t len, 1443 int inherit 1444 ); 1445 } 1446251 AUE_RFORK STD { 1447 int rfork( 1448 int flags 1449 ); 1450 } 1451252 AUE_POLL OBSOL openbsd_poll 1452253 AUE_ISSETUGID STD { 1453 int issetugid(void); 1454 } 1455254 AUE_LCHOWN STD { 1456 int lchown( 1457 _In_z_ const char *path, 1458 int uid, 1459 int gid 1460 ); 1461 } 1462255 AUE_AIO_READ STD { 1463 int aio_read( 1464 _Inout_ struct aiocb *aiocbp 1465 ); 1466 } 1467256 AUE_AIO_WRITE STD { 1468 int aio_write( 1469 _Inout_ struct aiocb *aiocbp 1470 ); 1471 } 1472257 AUE_LIO_LISTIO STD { 1473 int lio_listio( 1474 int mode, 1475 _Inout_updates_(nent) struct aiocb * const *acb_list, 1476 int nent, 1477 _In_opt_ struct sigevent *sig 1478 ); 1479 } 1480258-271 AUE_NULL UNIMPL nosys 1481272 AUE_O_GETDENTS COMPAT11 { 1482 int getdents( 1483 int fd, 1484 _Out_writes_bytes_(count) char *buf, 1485 size_t count 1486 ); 1487 } 1488273 AUE_NULL UNIMPL nosys 1489274 AUE_LCHMOD STD { 1490 int lchmod( 1491 _In_z_ const char *path, 1492 mode_t mode 1493 ); 1494 } 1495275 AUE_NULL OBSOL netbsd_lchown 1496276 AUE_LUTIMES STD { 1497 int lutimes( 1498 _In_z_ const char *path, 1499 _In_ struct timeval *tptr 1500 ); 1501 } 1502277 AUE_NULL OBSOL netbsd_msync 1503278 AUE_STAT COMPAT11 { 1504 int nstat( 1505 _In_z_ const char *path, 1506 _Out_ struct nstat *ub 1507 ); 1508 } 1509279 AUE_FSTAT COMPAT11 { 1510 int nfstat( 1511 int fd, 1512 _Out_ struct nstat *sb 1513 ); 1514 } 1515280 AUE_LSTAT COMPAT11 { 1516 int nlstat( 1517 _In_z_ const char *path, 1518 _Out_ struct nstat *ub 1519 ); 1520 } 1521281-288 AUE_NULL UNIMPL nosys 1522289 AUE_PREADV STD { 1523 ssize_t preadv( 1524 int fd, 1525 _In_reads_(iovcnt) struct iovec *iovp, 1526 u_int iovcnt, 1527 off_t offset 1528 ); 1529 } 1530290 AUE_PWRITEV STD { 1531 ssize_t pwritev( 1532 int fd, 1533 _In_reads_(iovcnt) struct iovec *iovp, 1534 u_int iovcnt, 1535 off_t offset 1536 ); 1537 } 1538291-296 AUE_NULL UNIMPL nosys 1539297 AUE_FHSTATFS COMPAT4 { 1540 int fhstatfs( 1541 _In_ const struct fhandle *u_fhp, 1542 _Out_ struct ostatfs *buf 1543 ); 1544 } 1545298 AUE_FHOPEN STD { 1546 int fhopen( 1547 _In_ const struct fhandle *u_fhp, 1548 int flags 1549 ); 1550 } 1551299 AUE_FHSTAT COMPAT11 { 1552 int fhstat( 1553 _In_ const struct fhandle *u_fhp, 1554 _Out_ struct freebsd11_stat *sb 1555 ); 1556 } 1557300 AUE_NULL STD { 1558 int modnext( 1559 int modid 1560 ); 1561 } 1562301 AUE_NULL STD { 1563 int modstat( 1564 int modid, 1565 _Out_ struct module_stat *stat 1566 ); 1567 } 1568302 AUE_NULL STD { 1569 int modfnext( 1570 int modid 1571 ); 1572 } 1573303 AUE_NULL STD { 1574 int modfind( 1575 _In_z_ const char *name 1576 ); 1577 } 1578304 AUE_MODLOAD STD { 1579 int kldload( 1580 _In_z_ const char *file 1581 ); 1582 } 1583305 AUE_MODUNLOAD STD { 1584 int kldunload( 1585 int fileid 1586 ); 1587 } 1588306 AUE_NULL STD { 1589 int kldfind( 1590 _In_z_ const char *file 1591 ); 1592 } 1593307 AUE_NULL STD { 1594 int kldnext( 1595 int fileid 1596 ); 1597 } 1598308 AUE_NULL STD { 1599 int kldstat( 1600 int fileid, 1601 _Out_ struct kld_file_stat *stat 1602 ); 1603 } 1604309 AUE_NULL STD { 1605 int kldfirstmod( 1606 int fileid 1607 ); 1608 } 1609310 AUE_GETSID STD { 1610 int getsid( 1611 pid_t pid 1612 ); 1613 } 1614311 AUE_SETRESUID STD { 1615 int setresuid( 1616 uid_t ruid, 1617 uid_t euid, 1618 uid_t suid 1619 ); 1620 } 1621312 AUE_SETRESGID STD { 1622 int setresgid( 1623 gid_t rgid, 1624 gid_t egid, 1625 gid_t sgid 1626 ); 1627 } 1628313 AUE_NULL OBSOL signanosleep 1629314 AUE_AIO_RETURN STD { 1630 ssize_t aio_return( 1631 _Inout_ struct aiocb *aiocbp 1632 ); 1633 } 1634315 AUE_AIO_SUSPEND STD { 1635 int aio_suspend( 1636 _Inout_updates_(nent) struct aiocb * const * aiocbp, 1637 int nent, 1638 _In_opt_ const struct timespec *timeout 1639 ); 1640 } 1641316 AUE_AIO_CANCEL STD { 1642 int aio_cancel( 1643 int fd, 1644 _In_opt_ struct aiocb *aiocbp 1645 ); 1646 } 1647317 AUE_AIO_ERROR STD { 1648 int aio_error( 1649 _In_ struct aiocb *aiocbp 1650 ); 1651 } 1652318 AUE_AIO_READ COMPAT6 { 1653 int aio_read( 1654 _Inout_ struct oaiocb *aiocbp 1655 ); 1656 } 1657319 AUE_AIO_WRITE COMPAT6 { 1658 int aio_write( 1659 _Inout_ struct oaiocb *aiocbp 1660 ); 1661 } 1662320 AUE_LIO_LISTIO COMPAT6 { 1663 int lio_listio( 1664 int mode, 1665 _Inout_updates_(nent) struct oaiocb * const *acb_list, 1666 int nent, 1667 _In_opt_ struct osigevent *sig 1668 ); 1669 } 1670321 AUE_NULL STD { 1671 int yield(void); 1672 } 1673322 AUE_NULL OBSOL thr_sleep 1674323 AUE_NULL OBSOL thr_wakeup 1675324 AUE_MLOCKALL STD { 1676 int mlockall( 1677 int how 1678 ); 1679 } 1680325 AUE_MUNLOCKALL STD { 1681 int munlockall(void); } 1682326 AUE_GETCWD STD { 1683 int __getcwd( 1684 _Out_writes_z_(buflen) char *buf, 1685 size_t buflen 1686 ); 1687 } 1688327 AUE_NULL STD { 1689 int sched_setparam( 1690 pid_t pid, 1691 _In_ const struct sched_param *param 1692 ); 1693 } 1694328 AUE_NULL STD { 1695 int sched_getparam( 1696 pid_t pid, 1697 _Out_ struct sched_param *param 1698 ); 1699 } 1700329 AUE_NULL STD { 1701 int sched_setscheduler( 1702 pid_t pid, 1703 int policy, 1704 _In_ const struct sched_param *param 1705 ); 1706 } 1707330 AUE_NULL STD { 1708 int sched_getscheduler( 1709 pid_t pid 1710 ); 1711 } 1712331 AUE_NULL STD { 1713 int sched_yield(void); 1714 } 1715332 AUE_NULL STD { 1716 int sched_get_priority_max( 1717 int policy 1718 ); 1719 } 1720333 AUE_NULL STD { 1721 int sched_get_priority_min( 1722 int policy 1723 ); 1724 } 1725334 AUE_NULL STD { 1726 int sched_rr_get_interval( 1727 pid_t pid, 1728 _Out_ struct timespec *interval 1729 ); 1730 } 1731335 AUE_NULL STD { 1732 int utrace( 1733 _In_reads_bytes_(len) const void *addr, 1734 size_t len 1735 ); 1736 } 1737336 AUE_SENDFILE COMPAT4 { 1738 int sendfile( 1739 int fd, 1740 int s, 1741 off_t offset, 1742 size_t nbytes, 1743 _In_opt_ struct sf_hdtr *hdtr, 1744 _Out_opt_ off_t *sbytes, 1745 int flags 1746 ); 1747 } 1748337 AUE_NULL STD { 1749 int kldsym( 1750 int fileid, 1751 int cmd, 1752 _In_ void *data 1753 ); 1754 } 1755338 AUE_JAIL STD { 1756 int jail( 1757 _In_ struct jail *jail 1758 ); 1759 } 1760339 AUE_NULL NOSTD|NOTSTATIC { 1761 int nnpfs_syscall( 1762 int operation, 1763 char *a_pathP, 1764 int a_opcode, 1765 void *a_paramsP, 1766 int a_followSymlinks 1767 ); 1768 } 1769340 AUE_SIGPROCMASK STD { 1770 int sigprocmask( 1771 int how, 1772 _In_opt_ const sigset_t *set, 1773 _Out_opt_ sigset_t *oset 1774 ); 1775 } 1776341 AUE_SIGSUSPEND STD { 1777 int sigsuspend( 1778 _In_ const sigset_t *sigmask 1779 ); 1780 } 1781342 AUE_SIGACTION COMPAT4 { 1782 int sigaction( 1783 int sig, 1784 _In_opt_ const struct sigaction *act, 1785 _Out_opt_ struct sigaction *oact 1786 ); 1787 } 1788343 AUE_SIGPENDING STD { 1789 int sigpending( 1790 _In_ sigset_t *set 1791 ); 1792 } 1793344 AUE_SIGRETURN COMPAT4 { 1794 int sigreturn( 1795 _In_ const struct ucontext4 *sigcntxp 1796 ); 1797 } 1798345 AUE_SIGWAIT STD { 1799 int sigtimedwait( 1800 _In_ const sigset_t *set, 1801 _Out_opt_ siginfo_t *info, 1802 _In_opt_ const struct timespec *timeout 1803 ); 1804 } 1805346 AUE_NULL STD { 1806 int sigwaitinfo( 1807 _In_ const sigset_t *set, 1808 _Out_opt_ siginfo_t *info 1809 ); 1810 } 1811347 AUE_ACL_GET_FILE STD { 1812 int __acl_get_file( 1813 _In_z_ const char *path, 1814 acl_type_t type, 1815 _Out_ struct acl *aclp 1816 ); 1817 } 1818348 AUE_ACL_SET_FILE STD { 1819 int __acl_set_file( 1820 _In_z_ const char *path, 1821 acl_type_t type, 1822 _In_ struct acl *aclp 1823 ); 1824 } 1825349 AUE_ACL_GET_FD STD { 1826 int __acl_get_fd( 1827 int filedes, 1828 acl_type_t type, 1829 _Out_ struct acl *aclp 1830 ); 1831 } 1832350 AUE_ACL_SET_FD STD { 1833 int __acl_set_fd( 1834 int filedes, 1835 acl_type_t type, 1836 _In_ struct acl *aclp 1837 ); 1838 } 1839351 AUE_ACL_DELETE_FILE STD { 1840 int __acl_delete_file( 1841 _In_z_ const char *path, 1842 acl_type_t type 1843 ); 1844 } 1845352 AUE_ACL_DELETE_FD STD { 1846 int __acl_delete_fd( 1847 int filedes, 1848 acl_type_t type 1849 ); 1850 } 1851353 AUE_ACL_CHECK_FILE STD { 1852 int __acl_aclcheck_file( 1853 _In_z_ const char *path, 1854 acl_type_t type, 1855 _In_ struct acl *aclp 1856 ); 1857 } 1858354 AUE_ACL_CHECK_FD STD { 1859 int __acl_aclcheck_fd( 1860 int filedes, 1861 acl_type_t type, 1862 _In_ struct acl *aclp 1863 ); 1864 } 1865355 AUE_EXTATTRCTL STD { 1866 int extattrctl( 1867 _In_z_ const char *path, 1868 int cmd, 1869 _In_z_opt_ const char *filename, 1870 int attrnamespace, 1871 _In_z_ const char *attrname 1872 ); 1873 } 1874356 AUE_EXTATTR_SET_FILE STD { 1875 ssize_t extattr_set_file( 1876 _In_z_ const char *path, 1877 int attrnamespace, 1878 _In_z_ const char *attrname, 1879 _In_reads_bytes_(nbytes) void *data, 1880 size_t nbytes 1881 ); 1882 } 1883357 AUE_EXTATTR_GET_FILE STD { 1884 ssize_t extattr_get_file( 1885 _In_z_ const char *path, 1886 int attrnamespace, 1887 _In_z_ const char *attrname, 1888 _Out_writes_bytes_(nbytes) void *data, 1889 size_t nbytes 1890 ); 1891 } 1892358 AUE_EXTATTR_DELETE_FILE STD { 1893 int extattr_delete_file( 1894 _In_z_ const char *path, 1895 int attrnamespace, 1896 _In_z_ const char *attrname 1897 ); 1898 } 1899359 AUE_AIO_WAITCOMPLETE STD { 1900 ssize_t aio_waitcomplete( 1901 _Outptr_result_maybenull_ struct aiocb **aiocbp, 1902 _In_opt_ struct timespec *timeout 1903 ); 1904 } 1905360 AUE_GETRESUID STD { 1906 int getresuid( 1907 _Out_opt_ uid_t *ruid, 1908 _Out_opt_ uid_t *euid, 1909 _Out_opt_ uid_t *suid 1910 ); 1911 } 1912361 AUE_GETRESGID STD { 1913 int getresgid( 1914 _Out_opt_ gid_t *rgid, 1915 _Out_opt_ gid_t *egid, 1916 _Out_opt_ gid_t *sgid 1917 ); 1918 } 1919362 AUE_KQUEUE STD { 1920 int kqueue(void); 1921 } 1922363 AUE_KEVENT COMPAT11 { 1923 int kevent( 1924 int fd, 1925 _In_reads_opt_(nchanges) struct kevent_freebsd11 *changelist, 1926 int nchanges, 1927 _Out_writes_opt_(nevents) struct kevent_freebsd11 *eventlist, 1928 int nevents, 1929 _In_opt_ const struct timespec *timeout 1930 ); 1931 } 1932364 AUE_NULL OBSOL __cap_get_proc 1933365 AUE_NULL OBSOL __cap_set_proc 1934366 AUE_NULL OBSOL __cap_get_fd 1935367 AUE_NULL OBSOL __cap_get_file 1936368 AUE_NULL OBSOL __cap_set_fd 1937369 AUE_NULL OBSOL __cap_set_file 1938370 AUE_NULL UNIMPL nosys 1939371 AUE_EXTATTR_SET_FD STD { 1940 ssize_t extattr_set_fd( 1941 int fd, 1942 int attrnamespace, 1943 _In_z_ const char *attrname, 1944 _In_reads_bytes_(nbytes) void *data, 1945 size_t nbytes 1946 ); 1947 } 1948372 AUE_EXTATTR_GET_FD STD { 1949 ssize_t extattr_get_fd( 1950 int fd, 1951 int attrnamespace, 1952 _In_z_ const char *attrname, 1953 _Out_writes_bytes_(nbytes) void *data, 1954 size_t nbytes 1955 ); 1956 } 1957373 AUE_EXTATTR_DELETE_FD STD { 1958 int extattr_delete_fd( 1959 int fd, 1960 int attrnamespace, 1961 _In_z_ const char *attrname 1962 ); 1963 } 1964374 AUE_SETUGID STD { 1965 int __setugid( 1966 int flag 1967 ); 1968 } 1969375 AUE_NULL OBSOL nfsclnt 1970376 AUE_EACCESS STD { 1971 int eaccess( 1972 _In_z_ const char *path, 1973 int amode 1974 ); 1975 } 1976377 AUE_NULL NOSTD|NOTSTATIC { 1977 int afs3_syscall( 1978 long syscall, 1979 long parm1, 1980 long parm2, 1981 long parm3, 1982 long parm4, 1983 long parm5, 1984 long parm6 1985 ); 1986 } 1987378 AUE_NMOUNT STD { 1988 int nmount( 1989 _In_reads_(iovcnt) struct iovec *iovp, 1990 unsigned int iovcnt, 1991 int flags 1992 ); 1993 } 1994379 AUE_NULL OBSOL kse_exit 1995380 AUE_NULL OBSOL kse_wakeup 1996381 AUE_NULL OBSOL kse_create 1997382 AUE_NULL OBSOL kse_thr_interrupt 1998383 AUE_NULL OBSOL kse_release 1999384 AUE_NULL STD { 2000 int __mac_get_proc( 2001 _In_ struct mac *mac_p 2002 ); 2003 } 2004385 AUE_NULL STD { 2005 int __mac_set_proc( 2006 _In_ struct mac *mac_p 2007 ); 2008 } 2009386 AUE_NULL STD { 2010 int __mac_get_fd( 2011 int fd, 2012 _In_ struct mac *mac_p 2013 ); 2014 } 2015387 AUE_NULL STD { 2016 int __mac_get_file( 2017 _In_z_ const char *path_p, 2018 _In_ struct mac *mac_p 2019 ); 2020 } 2021388 AUE_NULL STD { 2022 int __mac_set_fd( 2023 int fd, 2024 _In_ struct mac *mac_p 2025 ); 2026 } 2027389 AUE_NULL STD { 2028 int __mac_set_file( 2029 _In_z_ const char *path_p, 2030 _In_ struct mac *mac_p 2031 ); 2032 } 2033390 AUE_NULL STD { 2034 int kenv( 2035 int what, 2036 _In_z_opt_ const char *name, 2037 _Inout_updates_opt_(len) char *value, 2038 int len 2039 ); 2040 } 2041391 AUE_LCHFLAGS STD { 2042 int lchflags( 2043 _In_z_ const char *path, 2044 u_long flags 2045 ); 2046 } 2047392 AUE_NULL STD { 2048 int uuidgen( 2049 _Out_writes_(count) struct uuid *store, 2050 int count 2051 ); 2052 } 2053393 AUE_SENDFILE STD { 2054 int sendfile( 2055 int fd, 2056 int s, 2057 off_t offset, 2058 size_t nbytes, 2059 _In_opt_ struct sf_hdtr *hdtr, 2060 _Out_opt_ off_t *sbytes, 2061 int flags 2062 ); 2063 } 2064394 AUE_NULL STD { 2065 int mac_syscall( 2066 _In_z_ const char *policy, 2067 int call, 2068 _In_opt_ void *arg 2069 ); 2070 } 2071395 AUE_GETFSSTAT COMPAT11 { 2072 int getfsstat( 2073 _Out_writes_bytes_opt_(bufsize) struct freebsd11_statfs *buf, 2074 long bufsize, 2075 int mode 2076 ); 2077 } 2078396 AUE_STATFS COMPAT11 { 2079 int statfs( 2080 _In_z_ const char *path, 2081 _Out_ struct freebsd11_statfs *buf 2082 ); 2083 } 2084397 AUE_FSTATFS COMPAT11 { 2085 int fstatfs( 2086 int fd, 2087 _Out_ struct freebsd11_statfs *buf 2088 ); 2089 } 2090398 AUE_FHSTATFS COMPAT11 { 2091 int fhstatfs( 2092 _In_ const struct fhandle *u_fhp, 2093 _Out_ struct freebsd11_statfs *buf 2094 ); 2095 } 2096399 AUE_NULL UNIMPL nosys 2097400 AUE_SEMCLOSE NOSTD { 2098 int ksem_close( 2099 semid_t id 2100 ); 2101 } 2102401 AUE_SEMPOST NOSTD { 2103 int ksem_post( 2104 semid_t id 2105 ); 2106 } 2107402 AUE_SEMWAIT NOSTD { 2108 int ksem_wait( 2109 semid_t id 2110 ); 2111 } 2112403 AUE_SEMTRYWAIT NOSTD { 2113 int ksem_trywait( 2114 semid_t id 2115 ); 2116 } 2117404 AUE_SEMINIT NOSTD { 2118 int ksem_init( 2119 _Out_ semid_t *idp, 2120 unsigned int value 2121 ); 2122 } 2123405 AUE_SEMOPEN NOSTD { 2124 int ksem_open( 2125 _Out_ semid_t *idp, 2126 _In_z_ const char *name, 2127 int oflag, 2128 mode_t mode, 2129 unsigned int value 2130 ); 2131 } 2132406 AUE_SEMUNLINK NOSTD { 2133 int ksem_unlink( 2134 _In_z_ const char *name 2135 ); 2136 } 2137407 AUE_SEMGETVALUE NOSTD { 2138 int ksem_getvalue( 2139 semid_t id, 2140 _Out_ int *val 2141 ); 2142 } 2143408 AUE_SEMDESTROY NOSTD { 2144 int ksem_destroy( 2145 semid_t id 2146 ); 2147 } 2148409 AUE_NULL STD { 2149 int __mac_get_pid( 2150 pid_t pid, 2151 _In_ struct mac *mac_p 2152 ); 2153 } 2154410 AUE_NULL STD { 2155 int __mac_get_link( 2156 _In_z_ const char *path_p, 2157 _In_ struct mac *mac_p 2158 ); 2159 } 2160411 AUE_NULL STD { 2161 int __mac_set_link( 2162 _In_z_ const char *path_p, 2163 _In_ struct mac *mac_p 2164 ); 2165 } 2166412 AUE_EXTATTR_SET_LINK STD { 2167 ssize_t extattr_set_link( 2168 _In_z_ const char *path, 2169 int attrnamespace, 2170 _In_z_ const char *attrname, 2171 _In_reads_bytes_(nbytes) void *data, 2172 size_t nbytes 2173 ); 2174 } 2175413 AUE_EXTATTR_GET_LINK STD { 2176 ssize_t extattr_get_link( 2177 _In_z_ const char *path, 2178 int attrnamespace, 2179 _In_z_ const char *attrname, 2180 _Out_writes_bytes_(nbytes) void *data, 2181 size_t nbytes 2182 ); 2183 } 2184414 AUE_EXTATTR_DELETE_LINK STD { 2185 int extattr_delete_link( 2186 _In_z_ const char *path, 2187 int attrnamespace, 2188 _In_z_ const char *attrname 2189 ); 2190 } 2191415 AUE_NULL STD { 2192 int __mac_execve( 2193 _In_z_ const char *fname, 2194 _In_ char **argv, 2195 _In_ char **envv, 2196 _In_ struct mac *mac_p 2197 ); 2198 } 2199416 AUE_SIGACTION STD { 2200 int sigaction( 2201 int sig, 2202 _In_opt_ const struct sigaction *act, 2203 _Out_opt_ struct sigaction *oact 2204 ); 2205 } 2206417 AUE_SIGRETURN STD { 2207 int sigreturn( 2208 _In_ const struct __ucontext *sigcntxp 2209 ); 2210 } 2211418 AUE_NULL UNIMPL __xstat 2212419 AUE_NULL UNIMPL __xfstat 2213420 AUE_NULL UNIMPL __xlstat 2214421 AUE_NULL STD { 2215 int getcontext( 2216 _Out_ struct __ucontext *ucp 2217 ); 2218 } 2219422 AUE_NULL STD { 2220 int setcontext( 2221 _In_ const struct __ucontext *ucp 2222 ); 2223 } 2224423 AUE_NULL STD { 2225 int swapcontext( 2226 _Out_ struct __ucontext *oucp, 2227 _In_ const struct __ucontext *ucp 2228 ); 2229 } 2230424 AUE_SWAPOFF STD { 2231 int swapoff( 2232 _In_z_ const char *name 2233 ); 2234 } 2235425 AUE_ACL_GET_LINK STD { 2236 int __acl_get_link( 2237 _In_z_ const char *path, 2238 acl_type_t type, 2239 _Out_ struct acl *aclp 2240 ); 2241 } 2242426 AUE_ACL_SET_LINK STD { 2243 int __acl_set_link( 2244 _In_z_ const char *path, 2245 acl_type_t type, 2246 _In_ struct acl *aclp 2247 ); 2248 } 2249427 AUE_ACL_DELETE_LINK STD { 2250 int __acl_delete_link( 2251 _In_z_ const char *path, 2252 acl_type_t type 2253 ); 2254 } 2255428 AUE_ACL_CHECK_LINK STD { 2256 int __acl_aclcheck_link( 2257 _In_z_ const char *path, 2258 acl_type_t type, 2259 _In_ struct acl *aclp 2260 ); 2261 } 2262429 AUE_SIGWAIT STD { 2263 int sigwait( 2264 _In_ const sigset_t *set, 2265 _Out_ int *sig 2266 ); 2267 } 2268430 AUE_THR_CREATE STD { 2269 int thr_create( 2270 _In_ ucontext_t *ctx, 2271 _Out_ long *id, 2272 int flags 2273 ); 2274 } 2275431 AUE_THR_EXIT STD { 2276 void thr_exit( 2277 _Out_opt_ long *state 2278 ); 2279 } 2280432 AUE_NULL STD { 2281 int thr_self( 2282 _Out_ long *id 2283 ); 2284 } 2285433 AUE_THR_KILL STD { 2286 int thr_kill( 2287 long id, 2288 int sig 2289 ); 2290 } 2291 2292434 AUE_NULL COMPAT10 { 2293 int _umtx_lock( 2294 _Inout_ struct umtx *umtx 2295 ); 2296 } 2297 2298435 AUE_NULL COMPAT10 { 2299 int _umtx_unlock( 2300 _Inout_ struct umtx *umtx 2301 ); 2302 } 2303 2304436 AUE_JAIL_ATTACH STD { 2305 int jail_attach( 2306 int jid 2307 ); 2308 } 2309437 AUE_EXTATTR_LIST_FD STD { 2310 ssize_t extattr_list_fd( 2311 int fd, 2312 int attrnamespace, 2313 _Out_writes_bytes_opt_(nbytes) void *data, 2314 size_t nbytes 2315 ); 2316 } 2317438 AUE_EXTATTR_LIST_FILE STD { 2318 ssize_t extattr_list_file( 2319 _In_z_ const char *path, 2320 int attrnamespace, 2321 _Out_writes_bytes_opt_(nbytes) void *data, 2322 size_t nbytes 2323 ); 2324 } 2325439 AUE_EXTATTR_LIST_LINK STD { 2326 ssize_t extattr_list_link( 2327 _In_z_ const char *path, 2328 int attrnamespace, 2329 _Out_writes_bytes_opt_(nbytes) 2330 void *data, 2331 size_t nbytes 2332 ); 2333 } 2334440 AUE_NULL OBSOL kse_switchin 2335441 AUE_SEMWAIT NOSTD { 2336 int ksem_timedwait( 2337 semid_t id, 2338 _In_opt_ const struct timespec *abstime 2339 ); 2340 } 2341442 AUE_NULL STD { 2342 int thr_suspend( 2343 _In_opt_ const struct timespec *timeout 2344 ); 2345 } 2346443 AUE_NULL STD { 2347 int thr_wake( 2348 long id 2349 ); 2350 } 2351444 AUE_MODUNLOAD STD { 2352 int kldunloadf( 2353 int fileid, 2354 int flags 2355 ); 2356 } 2357445 AUE_AUDIT STD { 2358 int audit( 2359 _In_reads_bytes_(length) const void *record, 2360 u_int length 2361 ); 2362 } 2363446 AUE_AUDITON STD { 2364 int auditon( 2365 int cmd, 2366 _In_opt_ void *data, 2367 u_int length 2368 ); 2369 } 2370447 AUE_GETAUID STD { 2371 int getauid( 2372 _Out_ uid_t *auid 2373 ); 2374 } 2375448 AUE_SETAUID STD { 2376 int setauid( 2377 _In_ uid_t *auid 2378 ); 2379 } 2380449 AUE_GETAUDIT STD { 2381 int getaudit( 2382 _Out_ struct auditinfo *auditinfo 2383 ); 2384 } 2385450 AUE_SETAUDIT STD { 2386 int setaudit( 2387 _In_ struct auditinfo *auditinfo 2388 ); 2389 } 2390451 AUE_GETAUDIT_ADDR STD { 2391 int getaudit_addr( 2392 _Out_writes_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2393 u_int length 2394 ); 2395 } 2396452 AUE_SETAUDIT_ADDR STD { 2397 int setaudit_addr( 2398 _In_reads_bytes_(length) struct auditinfo_addr *auditinfo_addr, 2399 u_int length 2400 ); 2401 } 2402453 AUE_AUDITCTL STD { 2403 int auditctl( 2404 _In_z_ const char *path 2405 ); 2406 } 2407454 AUE_NULL STD { 2408 int _umtx_op( 2409 _Inout_ void *obj, 2410 int op, 2411 u_long val, 2412 _In_ void *uaddr1, 2413 _In_ void *uaddr2 2414 ); 2415 } 2416455 AUE_THR_NEW STD { 2417 int thr_new( 2418 _In_ struct thr_param *param, 2419 int param_size 2420 ); 2421 } 2422456 AUE_NULL STD { 2423 int sigqueue( 2424 pid_t pid, 2425 int signum, 2426 _In_ void *value 2427 ); 2428 } 2429 2430457 AUE_MQ_OPEN NOSTD { 2431 int kmq_open( 2432 _In_z_ const char *path, 2433 int flags, 2434 mode_t mode, 2435 _In_opt_ const struct mq_attr *attr 2436 ); 2437 } 2438458 AUE_MQ_SETATTR NOSTD { 2439 int kmq_setattr( 2440 int mqd, 2441 _In_opt_ const struct mq_attr *attr, 2442 _Out_opt_ struct mq_attr *oattr 2443 ); 2444 } 2445459 AUE_MQ_TIMEDRECEIVE NOSTD { 2446 int kmq_timedreceive( 2447 int mqd, 2448 _Out_writes_bytes_(msg_len) char *msg_ptr, 2449 size_t msg_len, 2450 _Out_opt_ unsigned *msg_prio, 2451 _In_opt_ const struct timespec *abs_timeout 2452 ); 2453 } 2454460 AUE_MQ_TIMEDSEND NOSTD { 2455 int kmq_timedsend( 2456 int mqd, 2457 _In_reads_bytes_(msg_len) const char *msg_ptr, 2458 size_t msg_len, 2459 unsigned msg_prio, 2460 _In_opt_ const struct timespec *abs_timeout 2461 ); 2462 } 2463461 AUE_MQ_NOTIFY NOSTD { 2464 int kmq_notify( 2465 int mqd, 2466 _In_opt_ const struct sigevent *sigev 2467 ); 2468 } 2469462 AUE_MQ_UNLINK NOSTD { 2470 int kmq_unlink( 2471 _In_z_ const char *path 2472 ); 2473 } 2474463 AUE_NULL STD { 2475 int abort2( 2476 _In_z_ const char *why, 2477 int nargs, 2478 _In_reads_(nargs) void **args 2479 ); 2480 } 2481464 AUE_NULL STD { 2482 int thr_set_name( 2483 long id, 2484 _In_z_ const char *name 2485 ); 2486 } 2487465 AUE_AIO_FSYNC STD { 2488 int aio_fsync( 2489 int op, 2490 _In_ struct aiocb *aiocbp 2491 ); 2492 } 2493466 AUE_RTPRIO STD { 2494 int rtprio_thread( 2495 int function, 2496 lwpid_t lwpid, 2497 _Inout_ struct rtprio *rtp 2498 ); 2499 } 2500467-468 AUE_NULL UNIMPL nosys 2501469 AUE_NULL UNIMPL __getpath_fromfd 2502470 AUE_NULL UNIMPL __getpath_fromaddr 2503471 AUE_SCTP_PEELOFF NOSTD { 2504 int sctp_peeloff( 2505 int sd, 2506 uint32_t name 2507 ); 2508 } 2509472 AUE_SCTP_GENERIC_SENDMSG NOSTD { 2510 int sctp_generic_sendmsg( 2511 int sd, 2512 _In_reads_bytes_(mlen) void *msg, 2513 int mlen, 2514 _In_reads_bytes_(tolen) struct sockaddr *to, 2515 __socklen_t tolen, 2516 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2517 int flags 2518 ); 2519 } 2520473 AUE_SCTP_GENERIC_SENDMSG_IOV NOSTD { 2521 int sctp_generic_sendmsg_iov( 2522 int sd, 2523 _In_reads_(iovlen) struct iovec *iov, 2524 int iovlen, 2525 _In_reads_bytes_(tolen) struct sockaddr *to, 2526 __socklen_t tolen, 2527 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2528 int flags 2529 ); 2530 } 2531474 AUE_SCTP_GENERIC_RECVMSG NOSTD { 2532 int sctp_generic_recvmsg( 2533 int sd, 2534 _In_reads_(iovlen) struct iovec *iov, 2535 int iovlen, 2536 _Out_writes_bytes_(*fromlenaddr) struct sockaddr *from, 2537 _Out_ __socklen_t *fromlenaddr, 2538 _In_opt_ struct sctp_sndrcvinfo *sinfo, 2539 _Out_opt_ int *msg_flags 2540 ); 2541 } 2542475 AUE_PREAD STD { 2543 ssize_t pread( 2544 int fd, 2545 _Out_writes_bytes_(nbyte) void *buf, 2546 size_t nbyte, 2547 off_t offset 2548 ); 2549 } 2550476 AUE_PWRITE STD { 2551 ssize_t pwrite( 2552 int fd, 2553 _In_reads_bytes_(nbyte) const void *buf, 2554 size_t nbyte, 2555 off_t offset 2556 ); 2557 } 2558477 AUE_MMAP STD { 2559 void *mmap( 2560 _In_ void *addr, 2561 size_t len, 2562 int prot, 2563 int flags, 2564 int fd, 2565 off_t pos 2566 ); 2567 } 2568478 AUE_LSEEK STD { 2569 off_t lseek( 2570 int fd, 2571 off_t offset, 2572 int whence 2573 ); 2574 } 2575479 AUE_TRUNCATE STD { 2576 int truncate( 2577 _In_z_ const char *path, 2578 off_t length 2579 ); 2580 } 2581480 AUE_FTRUNCATE STD { 2582 int ftruncate( 2583 int fd, 2584 off_t length 2585 ); 2586 } 2587481 AUE_THR_KILL2 STD { 2588 int thr_kill2( 2589 pid_t pid, 2590 long id, 2591 int sig 2592 ); 2593 } 2594482 AUE_SHMOPEN COMPAT12 { 2595 int shm_open( 2596 _In_z_ const char *path, 2597 int flags, 2598 mode_t mode 2599 ); 2600 } 2601483 AUE_SHMUNLINK STD { 2602 int shm_unlink( 2603 _In_z_ const char *path 2604 ); 2605 } 2606484 AUE_NULL STD { 2607 int cpuset( 2608 _Out_ cpusetid_t *setid 2609 ); 2610 } 2611485 AUE_NULL STD { 2612 int cpuset_setid( 2613 cpuwhich_t which, 2614 id_t id, 2615 cpusetid_t setid 2616 ); 2617 } 2618486 AUE_NULL STD { 2619 int cpuset_getid( 2620 cpulevel_t level, 2621 cpuwhich_t which, 2622 id_t id, 2623 _Out_ cpusetid_t *setid 2624 ); 2625 } 2626487 AUE_NULL STD { 2627 int cpuset_getaffinity( 2628 cpulevel_t level, 2629 cpuwhich_t which, 2630 id_t id, 2631 size_t cpusetsize, 2632 _Out_ cpuset_t *mask 2633 ); 2634 } 2635488 AUE_NULL STD { 2636 int cpuset_setaffinity( 2637 cpulevel_t level, 2638 cpuwhich_t which, 2639 id_t id, 2640 size_t cpusetsize, 2641 _Out_ const cpuset_t *mask 2642 ); 2643 } 2644489 AUE_FACCESSAT STD { 2645 int faccessat( 2646 int fd, 2647 _In_z_ const char *path, 2648 int amode, 2649 int flag 2650 ); 2651 } 2652490 AUE_FCHMODAT STD { 2653 int fchmodat( 2654 int fd, 2655 _In_z_ const char *path, 2656 mode_t mode, 2657 int flag 2658 ); 2659 } 2660491 AUE_FCHOWNAT STD { 2661 int fchownat( 2662 int fd, 2663 _In_z_ const char *path, 2664 uid_t uid, 2665 gid_t gid, 2666 int flag 2667 ); 2668 } 2669492 AUE_FEXECVE STD { 2670 int fexecve( 2671 int fd, 2672 _In_ char **argv, 2673 _In_ char **envv 2674 ); 2675 } 2676493 AUE_FSTATAT COMPAT11 { 2677 int fstatat( 2678 int fd, 2679 _In_z_ const char *path, 2680 _Out_ struct freebsd11_stat *buf, 2681 int flag 2682 ); 2683 } 2684494 AUE_FUTIMESAT STD { 2685 int futimesat( 2686 int fd, 2687 _In_z_ const char *path, 2688 _In_reads_(2) struct timeval *times 2689 ); 2690 } 2691495 AUE_LINKAT STD { 2692 int linkat( 2693 int fd1, 2694 _In_z_ const char *path1, 2695 int fd2, 2696 _In_z_ const char *path2, 2697 int flag 2698 ); 2699 } 2700496 AUE_MKDIRAT STD { 2701 int mkdirat( 2702 int fd, 2703 _In_z_ const char *path, 2704 mode_t mode 2705 ); 2706 } 2707497 AUE_MKFIFOAT STD { 2708 int mkfifoat( 2709 int fd, 2710 _In_z_ const char *path, 2711 mode_t mode 2712 ); 2713 } 2714498 AUE_MKNODAT COMPAT11 { 2715 int mknodat( 2716 int fd, 2717 _In_z_ const char *path, 2718 mode_t mode, 2719 uint32_t dev 2720 ); 2721 } 2722; XXX: see the comment for open 2723499 AUE_OPENAT_RWTC STD { 2724 int openat( 2725 int fd, 2726 _In_z_ const char *path, 2727 int flag, 2728 mode_t mode 2729 ); 2730 } 2731500 AUE_READLINKAT STD { 2732 ssize_t readlinkat( 2733 int fd, 2734 _In_z_ const char *path, 2735 _Out_writes_bytes_(bufsize) char *buf, 2736 size_t bufsize 2737 ); 2738 } 2739501 AUE_RENAMEAT STD { 2740 int renameat( 2741 int oldfd, 2742 _In_z_ const char *old, 2743 int newfd, 2744 _In_z_ const char *new 2745 ); 2746 } 2747502 AUE_SYMLINKAT STD { 2748 int symlinkat( 2749 _In_z_ const char *path1, 2750 int fd, 2751 _In_z_ const char *path2 2752 ); 2753 } 2754503 AUE_UNLINKAT STD { 2755 int unlinkat( 2756 int fd, 2757 _In_z_ const char *path, 2758 int flag 2759 ); 2760 } 2761504 AUE_POSIX_OPENPT STD { 2762 int posix_openpt( 2763 int flags 2764 ); 2765 } 2766; 505 is initialised by the kgssapi code, if present. 2767505 AUE_NULL NOSTD { 2768 int gssd_syscall( 2769 _In_z_ const char *path 2770 ); 2771 } 2772506 AUE_JAIL_GET STD { 2773 int jail_get( 2774 _In_reads_(iovcnt) struct iovec *iovp, 2775 unsigned int iovcnt, 2776 int flags 2777 ); 2778 } 2779507 AUE_JAIL_SET STD { 2780 int jail_set( 2781 _In_reads_(iovcnt) struct iovec *iovp, 2782 unsigned int iovcnt, 2783 int flags 2784 ); 2785 } 2786508 AUE_JAIL_REMOVE STD { 2787 int jail_remove( 2788 int jid 2789 ); 2790 } 2791509 AUE_CLOSEFROM COMPAT12 { 2792 int closefrom( 2793 int lowfd 2794 ); 2795 } 2796510 AUE_SEMCTL NOSTD { 2797 int __semctl( 2798 int semid, 2799 int semnum, 2800 int cmd, 2801 _Inout_ union semun *arg 2802 ); 2803 } 2804511 AUE_MSGCTL NOSTD { 2805 int msgctl( 2806 int msqid, 2807 int cmd, 2808 _Inout_opt_ struct msqid_ds *buf 2809 ); 2810 } 2811512 AUE_SHMCTL NOSTD { 2812 int shmctl( 2813 int shmid, 2814 int cmd, 2815 _Inout_opt_ struct shmid_ds *buf 2816 ); 2817 } 2818513 AUE_LPATHCONF STD { 2819 int lpathconf( 2820 _In_z_ const char *path, 2821 int name 2822 ); 2823 } 2824514 AUE_NULL OBSOL cap_new 2825515 AUE_CAP_RIGHTS_GET STD { 2826 int __cap_rights_get( 2827 int version, 2828 int fd, 2829 _Out_ cap_rights_t *rightsp 2830 ); 2831 } 2832516 AUE_CAP_ENTER STD { 2833 int cap_enter(void); 2834 } 2835517 AUE_CAP_GETMODE STD { 2836 int cap_getmode( 2837 _Out_ u_int *modep 2838 ); 2839 } 2840518 AUE_PDFORK STD { 2841 int pdfork( 2842 _Out_ int *fdp, 2843 int flags 2844 ); 2845 } 2846519 AUE_PDKILL STD { 2847 int pdkill( 2848 int fd, 2849 int signum 2850 ); 2851 } 2852520 AUE_PDGETPID STD { 2853 int pdgetpid( 2854 int fd, 2855 _Out_ pid_t *pidp 2856 ); 2857 } 2858521 AUE_PDWAIT UNIMPL pdwait4 2859522 AUE_SELECT STD { 2860 int pselect( 2861 int nd, 2862 _Inout_opt_ fd_set *in, 2863 _Inout_opt_ fd_set *ou, 2864 _Inout_opt_ fd_set *ex, 2865 _In_opt_ const struct timespec *ts, 2866 _In_opt_ const sigset_t *sm 2867 ); 2868 } 2869523 AUE_GETLOGINCLASS STD { 2870 int getloginclass( 2871 _Out_writes_z_(namelen) char *namebuf, 2872 size_t namelen 2873 ); 2874 } 2875524 AUE_SETLOGINCLASS STD { 2876 int setloginclass( 2877 _In_z_ const char *namebuf 2878 ); 2879 } 2880525 AUE_NULL STD { 2881 int rctl_get_racct( 2882 _In_reads_bytes_(inbuflen) const void *inbufp, 2883 size_t inbuflen, 2884 _Out_writes_bytes_(outbuflen) void *outbufp, 2885 size_t outbuflen 2886 ); 2887 } 2888526 AUE_NULL STD { 2889 int rctl_get_rules( 2890 _In_reads_bytes_(inbuflen) const void *inbufp, 2891 size_t inbuflen, 2892 _Out_writes_bytes_(outbuflen) void *outbufp, 2893 size_t outbuflen 2894 ); 2895 } 2896527 AUE_NULL STD { 2897 int rctl_get_limits( 2898 _In_reads_bytes_(inbuflen) const void *inbufp, 2899 size_t inbuflen, 2900 _Out_writes_bytes_(outbuflen) void *outbufp, 2901 size_t outbuflen 2902 ); 2903 } 2904528 AUE_NULL STD { 2905 int rctl_add_rule( 2906 _In_reads_bytes_(inbuflen) const void *inbufp, 2907 size_t inbuflen, 2908 _Out_writes_bytes_(outbuflen) void *outbufp, 2909 size_t outbuflen 2910 ); 2911 } 2912529 AUE_NULL STD { 2913 int rctl_remove_rule( 2914 _In_reads_bytes_(inbuflen) const void *inbufp, 2915 size_t inbuflen, 2916 _Out_writes_bytes_(outbuflen) void *outbufp, 2917 size_t outbuflen 2918 ); 2919 } 2920530 AUE_POSIX_FALLOCATE STD { 2921 int posix_fallocate( 2922 int fd, 2923 off_t offset, 2924 off_t len 2925 ); 2926 } 2927531 AUE_POSIX_FADVISE STD { 2928 int posix_fadvise( 2929 int fd, 2930 off_t offset, 2931 off_t len, 2932 int advice 2933 ); 2934 } 2935532 AUE_WAIT6 STD { 2936 int wait6( 2937 idtype_t idtype, 2938 id_t id, 2939 _Out_opt_ int *status, 2940 int options, 2941 _Out_opt_ struct __wrusage *wrusage, 2942 _Out_opt_ siginfo_t *info 2943 ); 2944 } 2945533 AUE_CAP_RIGHTS_LIMIT STD { 2946 int cap_rights_limit( 2947 int fd, 2948 _In_ cap_rights_t *rightsp 2949 ); 2950 } 2951534 AUE_CAP_IOCTLS_LIMIT STD { 2952 int cap_ioctls_limit( 2953 int fd, 2954 _In_reads_(ncmds) const u_long *cmds, 2955 size_t ncmds 2956 ); 2957 } 2958535 AUE_CAP_IOCTLS_GET STD { 2959 ssize_t cap_ioctls_get( 2960 int fd, 2961 _Out_writes_(maxcmds) u_long *cmds, 2962 size_t maxcmds 2963 ); 2964 } 2965536 AUE_CAP_FCNTLS_LIMIT STD { 2966 int cap_fcntls_limit( 2967 int fd, 2968 uint32_t fcntlrights 2969 ); 2970 } 2971537 AUE_CAP_FCNTLS_GET STD { 2972 int cap_fcntls_get( 2973 int fd, 2974 _Out_ uint32_t *fcntlrightsp 2975 ); 2976 } 2977538 AUE_BINDAT STD { 2978 int bindat( 2979 int fd, 2980 int s, 2981 _In_reads_bytes_(namelen) const struct sockaddr *name, 2982 int namelen 2983 ); 2984 } 2985539 AUE_CONNECTAT STD { 2986 int connectat( 2987 int fd, 2988 int s, 2989 _In_reads_bytes_(namelen) const struct sockaddr *name, 2990 int namelen 2991 ); 2992 } 2993540 AUE_CHFLAGSAT STD { 2994 int chflagsat( 2995 int fd, 2996 _In_z_ const char *path, 2997 u_long flags, 2998 int atflag 2999 ); 3000 } 3001541 AUE_ACCEPT STD { 3002 int accept4( 3003 int s, 3004 _Out_writes_bytes_opt_(*anamelen) struct sockaddr *name, 3005 _Inout_opt_ __socklen_t *anamelen, 3006 int flags 3007 ); 3008 } 3009542 AUE_PIPE STD { 3010 int pipe2( 3011 _Out_writes_(2) int *fildes, 3012 int flags 3013 ); 3014 } 3015543 AUE_AIO_MLOCK STD { 3016 int aio_mlock( 3017 _In_ struct aiocb *aiocbp 3018 ); 3019 } 3020544 AUE_PROCCTL STD { 3021 int procctl( 3022 idtype_t idtype, 3023 id_t id, 3024 int com, 3025 _In_opt_ void *data 3026 ); 3027 } 3028545 AUE_POLL STD { 3029 int ppoll( 3030 _Inout_updates_(nfds) struct pollfd *fds, 3031 u_int nfds, 3032 _In_opt_ const struct timespec *ts, 3033 _In_opt_ const sigset_t *set 3034 ); 3035 } 3036546 AUE_FUTIMES STD { 3037 int futimens( 3038 int fd, 3039 _In_reads_(2) struct timespec *times 3040 ); 3041 } 3042547 AUE_FUTIMESAT STD { 3043 int utimensat( 3044 int fd, 3045 _In_z_ const char *path, 3046 _In_reads_(2) struct timespec *times, 3047 int flag 3048 ); 3049 } 3050548 AUE_NULL OBSOL numa_getaffinity 3051549 AUE_NULL OBSOL numa_setaffinity 3052550 AUE_FSYNC STD { 3053 int fdatasync( 3054 int fd 3055 ); 3056 } 3057551 AUE_FSTAT STD { 3058 int fstat( 3059 int fd, 3060 _Out_ struct stat *sb 3061 ); 3062 } 3063552 AUE_FSTATAT STD { 3064 int fstatat( 3065 int fd, 3066 _In_z_ const char *path, 3067 _Out_ struct stat *buf, 3068 int flag 3069 ); 3070 } 3071553 AUE_FHSTAT STD { 3072 int fhstat( 3073 _In_ const struct fhandle *u_fhp, 3074 _Out_ struct stat *sb 3075 ); 3076 } 3077554 AUE_GETDIRENTRIES STD { 3078 ssize_t getdirentries( 3079 int fd, 3080 _Out_writes_bytes_(count) char *buf, 3081 size_t count, 3082 _Out_ off_t *basep 3083 ); 3084 } 3085555 AUE_STATFS STD { 3086 int statfs( 3087 _In_z_ const char *path, 3088 _Out_ struct statfs *buf 3089 ); 3090 } 3091556 AUE_FSTATFS STD { 3092 int fstatfs( 3093 int fd, 3094 _Out_ struct statfs *buf 3095 ); 3096 } 3097557 AUE_GETFSSTAT STD { 3098 int getfsstat( 3099 _Out_writes_bytes_opt_(bufsize) struct statfs *buf, 3100 long bufsize, 3101 int mode 3102 ); 3103 } 3104558 AUE_FHSTATFS STD { 3105 int fhstatfs( 3106 _In_ const struct fhandle *u_fhp, 3107 _Out_ struct statfs *buf 3108 ); 3109 } 3110559 AUE_MKNODAT STD { 3111 int mknodat( 3112 int fd, 3113 _In_z_ const char *path, 3114 mode_t mode, 3115 dev_t dev 3116 ); 3117 } 3118560 AUE_KEVENT STD { 3119 int kevent( 3120 int fd, 3121 _In_reads_opt_(nchanges) struct kevent *changelist, 3122 int nchanges, 3123 _Out_writes_opt_(nevents) struct kevent *eventlist, 3124 int nevents, 3125 _In_opt_ const struct timespec *timeout 3126 ); 3127 } 3128561 AUE_NULL STD { 3129 int cpuset_getdomain( 3130 cpulevel_t level, 3131 cpuwhich_t which, 3132 id_t id, 3133 size_t domainsetsize, 3134 _Out_writes_bytes_(domainsetsize) domainset_t *mask, 3135 _Out_ int *policy 3136 ); 3137 } 3138562 AUE_NULL STD { 3139 int cpuset_setdomain( 3140 cpulevel_t level, 3141 cpuwhich_t which, 3142 id_t id, 3143 size_t domainsetsize, 3144 _In_ domainset_t *mask, 3145 int policy 3146 ); 3147 } 3148563 AUE_NULL STD { 3149 int getrandom( 3150 _Out_writes_bytes_(buflen) void *buf, 3151 size_t buflen, 3152 unsigned int flags 3153 ); 3154 } 3155564 AUE_NULL STD { 3156 int getfhat( 3157 int fd, 3158 _In_z_ char *path, 3159 _Out_ struct fhandle *fhp, 3160 int flags 3161 ); 3162 } 3163565 AUE_NULL STD { 3164 int fhlink( 3165 _In_ struct fhandle *fhp, 3166 _In_z_ const char *to 3167 ); 3168 } 3169566 AUE_NULL STD { 3170 int fhlinkat( 3171 _In_ struct fhandle *fhp, 3172 int tofd, 3173 _In_z_ const char *to, 3174 ); 3175 } 3176567 AUE_NULL STD { 3177 int fhreadlink( 3178 _In_ struct fhandle *fhp, 3179 _Out_writes_(bufsize) char *buf, 3180 size_t bufsize 3181 ); 3182 } 3183568 AUE_UNLINKAT STD { 3184 int funlinkat( 3185 int dfd, 3186 _In_z_ const char *path, 3187 int fd, 3188 int flag 3189 ); 3190 } 3191569 AUE_NULL STD { 3192 ssize_t copy_file_range( 3193 int infd, 3194 _Inout_opt_ off_t *inoffp, 3195 int outfd, 3196 _Inout_opt_ off_t *outoffp, 3197 size_t len, 3198 unsigned int flags 3199 ); 3200 } 3201570 AUE_SYSCTL STD { 3202 int __sysctlbyname( 3203 _In_reads_(namelen) const char *name, 3204 size_t namelen, 3205 _Out_writes_bytes_opt_(*oldlenp) void *old, 3206 _Inout_opt_ size_t *oldlenp, 3207 _In_reads_bytes_opt_(newlen) void *new, 3208 size_t newlen 3209 ); 3210 } 3211571 AUE_SHMOPEN STD { 3212 int shm_open2( 3213 _In_z_ const char *path, 3214 int flags, 3215 mode_t mode, 3216 int shmflags, 3217 _In_z_ const char *name 3218 ); 3219 } 3220572 AUE_SHMRENAME STD { 3221 int shm_rename( 3222 _In_z_ const char *path_from, 3223 _In_z_ const char *path_to, 3224 int flags 3225 ); 3226 } 3227573 AUE_NULL STD { 3228 int sigfastblock( 3229 int cmd, 3230 _Inout_opt_ uint32_t *ptr 3231 ); 3232 } 3233574 AUE_REALPATHAT STD { 3234 int __realpathat( 3235 int fd, 3236 _In_z_ const char *path, 3237 _Out_writes_z_(size) char *buf, 3238 size_t size, 3239 int flags 3240 ); 3241 } 3242575 AUE_CLOSERANGE STD { 3243 int close_range( 3244 u_int lowfd, 3245 u_int highfd, 3246 int flags 3247 ); 3248 } 3249; 576 is initialised by the krpc code, if present. 3250576 AUE_NULL NOSTD { 3251 int rpctls_syscall( 3252 int op, 3253 _In_z_ const char *path 3254 ); 3255 } 3256577 AUE_SPECIALFD STD { 3257 int __specialfd( 3258 int type, 3259 _In_reads_bytes_(len) const void *req, 3260 size_t len 3261 ); 3262 } 3263578 AUE_AIO_WRITEV STD { 3264 int aio_writev( 3265 _Inout_ struct aiocb *aiocbp 3266 ); 3267 } 3268579 AUE_AIO_READV STD { 3269 int aio_readv( 3270 _Inout_ struct aiocb *aiocbp 3271 ); 3272 } 3273 3274; Please copy any additions and changes to the following compatability tables: 3275; sys/compat/freebsd32/syscalls.master 3276; vim: syntax=off 3277