| ... | ... | @@ -470,70 +470,99 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 470 | 470 | // int sched_rr_get_interval(pid_t pid, struct timespec *tp); |
| 471 | 471 | |
| 472 | 472 | // mlock |
| 473 | // int mlock(const void addr[.len], size_t len); |
| 473 | 474 | |
| 474 | 475 | // munlock |
| 476 | // int munlock(const void addr[.len], size_t len); |
| 475 | 477 | |
| 476 | 478 | // mlockall |
| 479 | // int mlockall(int flags); |
| 477 | 480 | |
| 478 | 481 | // munlockall |
| 482 | // int munlockall(void); |
| 479 | 483 | |
| 480 | 484 | // vhangup |
| 485 | // int vhangup(void); |
| 481 | 486 | |
| 482 | 487 | // modify_ldt |
| 488 | // int syscall(SYS_modify_ldt, int func, void ptr[.bytecount], unsigned long bytecount); |
| 483 | 489 | |
| 484 | 490 | // pivot_root |
| 491 | // int syscall(SYS_pivot_root, const char *new_root, const char *put_old); |
| 485 | 492 | |
| 486 | 493 | // _sysctl |
| 494 | // [[deprecated]] int _sysctl(struct __sysctl_args *args); |
| 487 | 495 | |
| 488 | 496 | // prctl |
| 497 | // int prctl(int op, ... /* unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5 */ ); |
| 489 | 498 | |
| 490 | 499 | // arch_prctl |
| 491 | 500 | |
| 492 | 501 | // adjtimex |
| 502 | // int adjtimex(struct timex *buf); |
| 493 | 503 | |
| 494 | 504 | // setrlimit |
| 495 | 505 | // int setrlimit(int resource, const struct rlimit *rlim); |
| 496 | 506 | |
| 497 | 507 | // chroot |
| 508 | // int chroot(const char *path); |
| 498 | 509 | |
| 499 | 510 | // sync |
| 511 | // void sync(void); |
| 500 | 512 | |
| 501 | 513 | // acct |
| 514 | // int acct(const char *_Nullable filename); |
| 502 | 515 | |
| 503 | 516 | // settimeofday |
| 504 | 517 | // int settimeofday(const struct timeval *tv, const struct timezone *_Nullable tz); |
| 505 | 518 | |
| 506 | 519 | // mount |
| 520 | // int mount(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *_Nullable data); |
| 507 | 521 | |
| 508 | 522 | // umount2 |
| 523 | // int umount2(const char *target, int flags); |
| 509 | 524 | |
| 510 | 525 | // swapon |
| 526 | // int swapon(const char *path, int swapflags); |
| 511 | 527 | |
| 512 | 528 | // swapoff |
| 529 | // int swapoff(const char *path); |
| 513 | 530 | |
| 514 | 531 | // reboot |
| 532 | // int reboot(int op); |
| 515 | 533 | |
| 516 | 534 | // sethostname |
| 535 | // int sethostname(const char *name, size_t len); |
| 517 | 536 | |
| 518 | 537 | // setdomainname |
| 538 | // int setdomainname(const char *name, size_t len); |
| 519 | 539 | |
| 520 | 540 | // iopl |
| 541 | // [[deprecated]] int iopl(int level); |
| 521 | 542 | |
| 522 | 543 | // ioperm |
| 544 | // int ioperm(unsigned long from, unsigned long num, int turn_on); |
| 523 | 545 | |
| 524 | 546 | // create_module |
| 547 | // [[deprecated]] caddr_t create_module(const char *name, size_t size); |
| 525 | 548 | |
| 526 | 549 | // init_module |
| 550 | // int syscall(SYS_init_module, void module_image[.len], unsigned long len, const char *param_values); |
| 527 | 551 | |
| 528 | 552 | // delete_module |
| 553 | // int syscall(SYS_delete_module, const char *name, unsigned int flags); |
| 529 | 554 | |
| 530 | 555 | // get_kernel_syms |
| 556 | // [[deprecated]] int get_kernel_syms(struct kernel_sym *table); |
| 531 | 557 | |
| 532 | 558 | // query_module |
| 559 | // [[deprecated]] int query_module(const char *name, int which, void buf[.bufsize], size_t bufsize, size_t *ret); |
| 533 | 560 | |
| 534 | 561 | // quotactl |
| 562 | // int quotactl(int op, const char *_Nullable special, int id, caddr_t addr); |
| 535 | 563 | |
| 536 | 564 | // nfsservctl |
| 565 | // long nfsservctl(int cmd, struct nfsctl_arg *argp, union nfsctl_res *resp); |
| 537 | 566 | |
| 538 | 567 | // getpmsg |
| 539 | 568 | |
| ... | ... | @@ -546,102 +575,147 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 546 | 575 | // security |
| 547 | 576 | |
| 548 | 577 | // gettid |
| 578 | // pid_t gettid(void); |
| 549 | 579 | |
| 550 | 580 | // readahead |
| 581 | // ssize_t readahead(int fd, off_t offset, size_t count); |
| 551 | 582 | |
| 552 | 583 | // setxattr |
| 584 | // int setxattr(const char *path, const char *name, const void value[.size], size_t size, int flags); |
| 553 | 585 | |
| 554 | 586 | // lsetxattr |
| 587 | // int lsetxattr(const char *path, const char *name, const void value[.size], size_t size, int flags); |
| 555 | 588 | |
| 556 | 589 | // fsetxattr |
| 590 | // int fsetxattr(int fd, const char *name, const void value[.size], size_t size, int flags); |
| 557 | 591 | |
| 558 | 592 | // getxattr |
| 593 | // ssize_t getxattr(const char *path, const char *name, void value[.size], size_t size); |
| 559 | 594 | |
| 560 | 595 | // lgetxattr |
| 596 | // ssize_t lgetxattr(const char *path, const char *name, void value[.size], size_t size); |
| 561 | 597 | |
| 562 | 598 | // fgetxattr |
| 599 | // ssize_t fgetxattr(int fd, const char *name, void value[.size], size_t size); |
| 563 | 600 | |
| 564 | 601 | // listxattr |
| 602 | // ssize_t listxattr(const char *path, char *_Nullable list, size_t size); |
| 565 | 603 | |
| 566 | 604 | // llistxattr |
| 605 | // ssize_t llistxattr(const char *path, char *_Nullable list, size_t size); |
| 567 | 606 | |
| 568 | 607 | // flistxattr |
| 608 | // ssize_t flistxattr(int fd, char *_Nullable list, size_t size); |
| 569 | 609 | |
| 570 | 610 | // removexattr |
| 611 | // int removexattr(const char *path, const char *name); |
| 571 | 612 | |
| 572 | 613 | // lremovexattr |
| 614 | // int lremovexattr(const char *path, const char *name); |
| 573 | 615 | |
| 574 | 616 | // fremovexattr |
| 617 | // int fremovexattr(int fd, const char *name); |
| 575 | 618 | |
| 576 | 619 | // tkill |
| 620 | // [[deprecated]] int syscall(SYS_tkill, pid_t tid, int sig); |
| 577 | 621 | |
| 578 | 622 | // time |
| 623 | // time_t time(time_t *_Nullable tloc); |
| 579 | 624 | |
| 580 | 625 | // futex |
| 626 | // long syscall(SYS_futex, uint32_t *uaddr, int futex_op, uint32_t val, const struct timespec *timeout, /* or: uint32_t val2 */ uint32_t *uaddr2, uint32_t val3); |
| 581 | 627 | |
| 582 | 628 | // sched_setaffinity |
| 629 | // int sched_setaffinity(pid_t pid, size_t cpusetsize, const cpu_set_t *mask); |
| 583 | 630 | |
| 584 | 631 | // sched_getaffinity |
| 632 | // int sched_getaffinity(pid_t pid, size_t cpusetsize, cpu_set_t *mask); |
| 585 | 633 | |
| 586 | 634 | // set_thread_area |
| 587 | 635 | |
| 588 | 636 | // io_setup |
| 637 | // long io_setup(unsigned int nr_events, aio_context_t *ctx_idp); |
| 589 | 638 | |
| 590 | 639 | // io_destroy |
| 640 | // int syscall(SYS_io_destroy, aio_context_t ctx_id); |
| 591 | 641 | |
| 592 | 642 | // io_getevents |
| 643 | // int syscall(SYS_io_getevents, aio_context_t ctx_id, long min_nr, long nr, struct io_event *events, struct timespec *timeout); |
| 593 | 644 | |
| 594 | 645 | // io_submit |
| 646 | // int io_submit(aio_context_t ctx_id, long nr, struct iocb **iocbpp); |
| 595 | 647 | |
| 596 | 648 | // io_cancel |
| 649 | // int syscall(SYS_io_cancel, aio_context_t ctx_id, struct iocb *iocb, struct io_event *result); |
| 597 | 650 | |
| 598 | 651 | // get_thread_area |
| 599 | 652 | |
| 600 | 653 | // lookup_dcookie |
| 654 | // int syscall(SYS_lookup_dcookie, uint64_t cookie, char *buffer, size_t len); |
| 601 | 655 | |
| 602 | 656 | // epoll_create |
| 657 | // int epoll_create(int size); |
| 603 | 658 | |
| 604 | 659 | // epoll_ctl_old |
| 660 | // int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event); |
| 605 | 661 | |
| 606 | 662 | // epoll_wait_old |
| 663 | // int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); |
| 607 | 664 | |
| 608 | 665 | // remap_file_pages |
| 666 | // [[deprecated]] int remap_file_pages(void addr[.size], size_t size, int prot, size_t pgoff, int flags); |
| 609 | 667 | |
| 610 | 668 | // getdents64 |
| 669 | // ssize_t getdents64(int fd, void dirp[.count], size_t count); |
| 611 | 670 | |
| 612 | 671 | // set_tid_address |
| 672 | // pid_t syscall(SYS_set_tid_address, int *tidptr); |
| 613 | 673 | |
| 614 | 674 | // restart_syscall |
| 615 | 675 | |
| 616 | 676 | // semtimedop |
| 677 | // int semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *_Nullable timeout); |
| 617 | 678 | |
| 618 | 679 | // fadvise64 |
| 619 | 680 | |
| 620 | 681 | // timer_create |
| 682 | // int timer_create(clockid_t clockid, struct sigevent *_Nullable restrict sevp, timer_t *restrict timerid); |
| 621 | 683 | |
| 622 | 684 | // timer_settime |
| 685 | // int timer_settime(timer_t timerid, int flags, const struct itimerspec *restrict new_value, struct itimerspec *_Nullable restrict old_value); |
| 623 | 686 | |
| 624 | 687 | // timer_gettime |
| 688 | // int timer_gettime(timer_t timerid, struct itimerspec *curr_value); |
| 625 | 689 | |
| 626 | 690 | // timer_getoverrun |
| 691 | // int timer_getoverrun(timer_t timerid); |
| 627 | 692 | |
| 628 | 693 | // timer_delete |
| 694 | // int timer_delete(timer_t timerid); |
| 629 | 695 | |
| 630 | 696 | // clock_settime |
| 697 | // int clock_settime(clockid_t clockid, const struct timespec *tp); |
| 631 | 698 | |
| 632 | 699 | // clock_gettime |
| 700 | // int clock_gettime(clockid_t clockid, struct timespec *tp); |
| 633 | 701 | |
| 634 | 702 | // clock_getres |
| 703 | // int clock_getres(clockid_t clockid, struct timespec *_Nullable res); |
| 635 | 704 | |
| 636 | 705 | // clock_nanosleep |
| 706 | // int clock_nanosleep(clockid_t clockid, int flags, const struct timespec *t, struct timespec *_Nullable remain); |
| 637 | 707 | |
| 638 | 708 | // exit_group |
| 709 | // [[noreturn]] void syscall(SYS_exit_group, int status); |
| 639 | 710 | |
| 640 | 711 | // epoll_wait |
| 712 | // int epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); |
| 641 | 713 | |
| 642 | 714 | // epoll_ctl |
| 715 | // int epoll_ctl(int epfd, int op, int fd, struct epoll_event *_Nullable event); |
| 643 | 716 | |
| 644 | 717 | // tgkill |
| 718 | // int tgkill(pid_t tgid, pid_t tid, int sig); |
| 645 | 719 | |
| 646 | 720 | // utimes |
| 647 | 721 | // int utimes(const char *filename, const struct timeval times[_Nullable 2]); |
| ... | ... | @@ -649,44 +723,64 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 649 | 723 | // vserver |
| 650 | 724 | |
| 651 | 725 | // mbind |
| 726 | // long mbind(void addr[.len], unsigned long len, int mode, const unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, unsigned int flags); |
| 652 | 727 | |
| 653 | 728 | // set_mempolicy |
| 729 | // long set_mempolicy(int mode, const unsigned long *nodemask, unsigned long maxnode); |
| 654 | 730 | |
| 655 | 731 | // get_mempolicy |
| 732 | // long get_mempolicy(int *mode, unsigned long nodemask[(.maxnode + ULONG_WIDTH - 1) / ULONG_WIDTH], unsigned long maxnode, void *addr, unsigned long flags); |
| 656 | 733 | |
| 657 | 734 | // mq_open |
| 735 | // mqd_t mq_open(const char *name, int oflag, mode_t mode, struct mq_attr *attr); |
| 658 | 736 | |
| 659 | 737 | // mq_unlink |
| 738 | // int mq_unlink(const char *name); |
| 660 | 739 | |
| 661 | 740 | // mq_timedsend |
| 741 | // int mq_timedsend(mqd_t mqdes, const char msg_ptr[.msg_len], size_t msg_len, unsigned int msg_prio, const struct timespec *abs_timeout); |
| 662 | 742 | |
| 663 | 743 | // mq_timedreceive |
| 744 | // ssize_t mq_timedreceive(mqd_t mqdes, char *restrict msg_ptr[.msg_len], size_t msg_len, unsigned int *restrict msg_prio, const struct timespec *restrict abs_timeout); |
| 664 | 745 | |
| 665 | 746 | // mq_notify |
| 747 | // int mq_notify(mqd_t mqdes, const struct sigevent *sevp); |
| 666 | 748 | |
| 667 | 749 | // mq_getsetattr |
| 750 | // int syscall(SYS_mq_getsetattr, mqd_t mqdes, const struct mq_attr *newattr, struct mq_attr *oldattr); |
| 668 | 751 | |
| 669 | 752 | // kexec_load |
| 753 | // long syscall(SYS_kexec_load, unsigned long entry, unsigned long nr_segments, struct kexec_segment *segments, unsigned long flags); |
| 670 | 754 | |
| 671 | 755 | // waitid |
| 756 | // int waitid(idtype_t idtype, id_t id, siginfo_t *infop, int options); |
| 672 | 757 | |
| 673 | 758 | // add_key |
| 759 | // key_serial_t add_key(const char *type, const char *description, const void payload[.plen], size_t plen, key_serial_t keyring); |
| 674 | 760 | |
| 675 | 761 | // request_key |
| 762 | // key_serial_t request_key(const char *type, const char *description, const char *_Nullable callout_info, key_serial_t dest_keyring); |
| 676 | 763 | |
| 677 | 764 | // keyctl |
| 765 | // long syscall(SYS_keyctl, int operation, unsigned long arg2, unsigned long arg3, unsigned long arg4, unsigned long arg5); |
| 678 | 766 | |
| 679 | 767 | // ioprio_set |
| 768 | // int syscall(SYS_ioprio_set, int which, int who, int ioprio); |
| 680 | 769 | |
| 681 | 770 | // ioprio_get |
| 771 | // int syscall(SYS_ioprio_set, int which, int who, int ioprio); |
| 682 | 772 | |
| 683 | 773 | // inotify_init |
| 774 | // int inotify_init(void); |
| 684 | 775 | |
| 685 | 776 | // inotify_add_watch |
| 777 | // int inotify_add_watch(int fd, const char *pathname, uint32_t mask); |
| 686 | 778 | |
| 687 | 779 | // inotify_rm_watch |
| 780 | // int inotify_rm_watch(int fd, int wd); |
| 688 | 781 | |
| 689 | 782 | // migrate_pages |
| 783 | // long migrate_pages(int pid, unsigned long maxnode, const unsigned long *old_nodes, const unsigned long *new_nodes); |
| 690 | 784 | |
| 691 | 785 | // openat |
| 692 | 786 | // int openat(int dirfd, const char *pathname, int flags, ... /* mode_t mode */ ); |
| ... | ... | @@ -698,8 +792,10 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 698 | 792 | // int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev); |
| 699 | 793 | |
| 700 | 794 | // fchownat |
| 795 | // int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags); |
| 701 | 796 | |
| 702 | 797 | // futimesat |
| 798 | // [[deprecated]] int futimesat(int dirfd, const char *pathname, const struct timeval times[2]); |
| 703 | 799 | |
| 704 | 800 | // fstatat64 |
| 705 | 801 | // int fstatat(int dirfd, const char *restrict pathname, struct stat *restrict statbuf, int flags); |
| ... | ... | @@ -735,22 +831,31 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 735 | 831 | // int unshare(int flags); |
| 736 | 832 | |
| 737 | 833 | // set_robust_list |
| 834 | // long syscall(SYS_set_robust_list, struct robust_list_head *head, size_t len); |
| 738 | 835 | |
| 739 | 836 | // get_robust_list |
| 837 | // long syscall(SYS_get_robust_list, int pid, struct robust_list_head **head_ptr, size_t *len_ptr); |
| 740 | 838 | |
| 741 | 839 | // splice |
| 840 | // ssize_t splice(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags); |
| 742 | 841 | |
| 743 | 842 | // tee |
| 843 | // ssize_t tee(int fd_in, int fd_out, size_t len, unsigned int flags); |
| 744 | 844 | |
| 745 | 845 | // sync_file_range |
| 846 | // int sync_file_range(int fd, off_t offset, off_t nbytes, unsigned int flags); |
| 746 | 847 | |
| 747 | 848 | // vmsplice |
| 849 | // ssize_t vmsplice(int fd, const struct iovec *iov, size_t nr_segs, unsigned int flags); |
| 748 | 850 | |
| 749 | 851 | // move_pages |
| 852 | // long move_pages(int pid, unsigned long count, void *pages[.count], const int nodes[.count], int status[.count], int flags); |
| 750 | 853 | |
| 751 | 854 | // utimensat |
| 855 | // int utimensat(int dirfd, const char *pathname, const struct timespec times[_Nullable 2], int flags); |
| 752 | 856 | |
| 753 | 857 | // epoll_pwait |
| 858 | // int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask); |
| 754 | 859 | |
| 755 | 860 | // signalfd |
| 756 | 861 | |
| ... | ... | @@ -772,6 +877,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 772 | 877 | // eventfd2 |
| 773 | 878 | |
| 774 | 879 | // epoll_create1 |
| 880 | // int epoll_create1(int flags); |
| 775 | 881 | |
| 776 | 882 | // dup3 |
| 777 | 883 | // int dup3(int oldfd, int newfd, int flags); |
| ... | ... | @@ -780,6 +886,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 780 | 886 | // int pipe2(int pipefd[2], int flags); |
| 781 | 887 | |
| 782 | 888 | // inotify_init1 |
| 889 | // int inotify_init1(int flags); |
| 783 | 890 | |
| 784 | 891 | // preadv |
| 785 | 892 | // ssize_t preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset); |
| ... | ... | @@ -805,8 +912,10 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 805 | 912 | // open_by_handle_at |
| 806 | 913 | |
| 807 | 914 | // clock_adjtime |
| 915 | // int clock_adjtime(clockid_t clk_id, struct timex *buf); |
| 808 | 916 | |
| 809 | 917 | // syncfs |
| 918 | // int syncfs(int fd); |
| 810 | 919 | |
| 811 | 920 | // sendmmsg |
| 812 | 921 | |
| ... | ... | @@ -821,6 +930,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 821 | 930 | // kcmp |
| 822 | 931 | |
| 823 | 932 | // finit_module |
| 933 | // int syscall(SYS_finit_module, int fd, const char *param_values, int flags); |
| 824 | 934 | |
| 825 | 935 | // sched_setattr |
| 826 | 936 | |
| ... | ... | @@ -846,6 +956,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 846 | 956 | // membarrier |
| 847 | 957 | |
| 848 | 958 | // mlock2 |
| 959 | // int mlock2(const void addr[.len], size_t len, unsigned int flags); |
| 849 | 960 | |
| 850 | 961 | // copy_file_range |
| 851 | 962 | |
| ... | ... | @@ -904,6 +1015,7 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 904 | 1015 | // process_madvise |
| 905 | 1016 | |
| 906 | 1017 | // epoll_pwait2 |
| 1018 | // int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask); |
| 907 | 1019 | |
| 908 | 1020 | // mount_setattr |
| 909 | 1021 | |