| ... | @@ -73,8 +73,10 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -73,8 +73,10 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 73 | // rt_sigaction | 73 | // rt_sigaction |
| 74 | | 74 | |
| 75 | // rt_sigprocmask | 75 | // rt_sigprocmask |
| | 76 | // int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset); |
| 76 | | 77 | |
| 77 | // rt_sigreturn | 78 | // rt_sigreturn |
| | 79 | // int sigreturn(...); |
| 78 | | 80 | |
| 79 | // ioctl | 81 | // ioctl |
| 80 | | 82 | |
| ... | @@ -409,12 +411,16 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -409,12 +411,16 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 409 | // int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap); | 411 | // int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap); |
| 410 | | 412 | |
| 411 | // rt_sigpending | 413 | // rt_sigpending |
| | 414 | // int sigpending(sigset_t *set); |
| 412 | | 415 | |
| 413 | // rt_sigtimedwait | 416 | // rt_sigtimedwait |
| | 417 | // int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout); |
| 414 | | 418 | |
| 415 | // rt_sigqueueinfo | 419 | // rt_sigqueueinfo |
| | 420 | // int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info); |
| 416 | | 421 | |
| 417 | // rt_sigsuspend | 422 | // rt_sigsuspend |
| | 423 | // int sigsuspend(const sigset_t *mask); |
| 418 | | 424 | |
| 419 | // sigaltstack | 425 | // sigaltstack |
| 420 | // int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss); | 426 | // int sigaltstack(const stack_t *_Nullable restrict ss, stack_t *_Nullable restrict old_ss); |
| ... | @@ -858,23 +864,31 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -858,23 +864,31 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 858 | // int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask); | 864 | // int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask); |
| 859 | | 865 | |
| 860 | // signalfd | 866 | // signalfd |
| | 867 | // int signalfd(int fd, const sigset_t *mask, int flags); |
| 861 | | 868 | |
| 862 | // timerfd_create | 869 | // timerfd_create |
| | 870 | // int timerfd_create(int clockid, int flags); |
| 863 | | 871 | |
| 864 | // eventfd | 872 | // eventfd |
| | 873 | // int eventfd(unsigned int initval, int flags); |
| 865 | | 874 | |
| 866 | // fallocate | 875 | // fallocate |
| | 876 | // int fallocate(int fd, int mode, off_t offset, off_t len); |
| 867 | | 877 | |
| 868 | // timerfd_settime | 878 | // timerfd_settime |
| | 879 | // int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value); |
| 869 | | 880 | |
| 870 | // timerfd_gettime | 881 | // timerfd_gettime |
| | 882 | // int timerfd_gettime(int fd, struct itimerspec *curr_value); |
| 871 | | 883 | |
| 872 | // accept4 | 884 | // accept4 |
| 873 | // int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags); | 885 | // int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags); |
| 874 | | 886 | |
| 875 | // signalfd4 | 887 | // signalfd4 |
| | 888 | // int signalfd(int fd, const sigset_t *mask, int flags); |
| 876 | | 889 | |
| 877 | // eventfd2 | 890 | // eventfd2 |
| | 891 | // int eventfd(unsigned int initval, int flags); |
| 878 | | 892 | |
| 879 | // epoll_create1 | 893 | // epoll_create1 |
| 880 | // int epoll_create1(int flags); | 894 | // int epoll_create1(int flags); |
| ... | @@ -895,21 +909,28 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -895,21 +909,28 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 895 | // ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset); | 909 | // ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset); |
| 896 | | 910 | |
| 897 | // rt_tgsigqueueinfo | 911 | // rt_tgsigqueueinfo |
| | 912 | // int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info); |
| 898 | | 913 | |
| 899 | // perf_event_open | 914 | // perf_event_open |
| | 915 | // int syscall(SYS_perf_event_open, struct perf_event_attr *attr, pid_t pid, int cpu, int group_fd, unsigned long flags); |
| 900 | | 916 | |
| 901 | // recvmmsg | 917 | // recvmmsg |
| | 918 | // int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout); |
| 902 | | 919 | |
| 903 | // fanotify_init | 920 | // fanotify_init |
| | 921 | // int fanotify_init(unsigned int flags, unsigned int event_f_flags); |
| 904 | | 922 | |
| 905 | // fanotify_mark | 923 | // fanotify_mark |
| | 924 | // int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname); |
| 906 | | 925 | |
| 907 | // prlimit64 | 926 | // prlimit64 |
| 908 | // int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit); | 927 | // int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit); |
| 909 | | 928 | |
| 910 | // name_to_handle_at | 929 | // name_to_handle_at |
| | 930 | // int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags); |
| 911 | | 931 | |
| 912 | // open_by_handle_at | 932 | // open_by_handle_at |
| | 933 | // int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags); |
| 913 | | 934 | |
| 914 | // clock_adjtime | 935 | // clock_adjtime |
| 915 | // int clock_adjtime(clockid_t clk_id, struct timex *buf); | 936 | // int clock_adjtime(clockid_t clk_id, struct timex *buf); |
| ... | @@ -918,47 +939,64 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -918,47 +939,64 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 918 | // int syncfs(int fd); | 939 | // int syncfs(int fd); |
| 919 | | 940 | |
| 920 | // sendmmsg | 941 | // sendmmsg |
| | 942 | // int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags); |
| 921 | | 943 | |
| 922 | // setns | 944 | // setns |
| | 945 | // int setns(int fd, int nstype); |
| 923 | | 946 | |
| 924 | // getcpu | 947 | // getcpu |
| | 948 | // int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node); |
| 925 | | 949 | |
| 926 | // process_vm_readv | 950 | // process_vm_readv |
| | 951 | // ssize_t process_vm_readv(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags); |
| 927 | | 952 | |
| 928 | // process_vm_writev | 953 | // process_vm_writev |
| | 954 | // ssize_t process_vm_writev(pid_t pid, const struct iovec *local_iov, unsigned long liovcnt, const struct iovec *remote_iov, unsigned long riovcnt, unsigned long flags); |
| 929 | | 955 | |
| 930 | // kcmp | 956 | // kcmp |
| | 957 | // int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2); |
| 931 | | 958 | |
| 932 | // finit_module | 959 | // finit_module |
| 933 | // int syscall(SYS_finit_module, int fd, const char *param_values, int flags); | 960 | // int syscall(SYS_finit_module, int fd, const char *param_values, int flags); |
| 934 | | 961 | |
| 935 | // sched_setattr | 962 | // sched_setattr |
| | 963 | // int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags); |
| 936 | | 964 | |
| 937 | // sched_getattr | 965 | // sched_getattr |
| | 966 | // int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags); |
| 938 | | 967 | |
| 939 | // renameat2 | 968 | // renameat2 |
| 940 | // int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); | 969 | // int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags); |
| 941 | | 970 | |
| 942 | // seccomp | 971 | // seccomp |
| | 972 | // int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args); |
| 943 | | 973 | |
| 944 | // getrandom | 974 | // getrandom |
| | 975 | // ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags); |
| 945 | | 976 | |
| 946 | // memfd_create | 977 | // memfd_create |
| | 978 | // int memfd_create(const char *name, unsigned int flags); |
| 947 | | 979 | |
| 948 | // kexec_file_load | 980 | // kexec_file_load |
| | 981 | // long syscall(SYS_kexec_file_load, int kernel_fd, int initrd_fd, unsigned long cmdline_len, const char *cmdline, unsigned long flags); |
| 949 | | 982 | |
| 950 | // bpf | 983 | // bpf |
| | 984 | // int bpf(int cmd, union bpf_attr *attr, unsigned int size); |
| 951 | | 985 | |
| 952 | // execveat | 986 | // execveat |
| | 987 | // int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags); |
| 953 | | 988 | |
| 954 | // userfaultfd | 989 | // userfaultfd |
| | 990 | // int syscall(SYS_userfaultfd, int flags); |
| 955 | | 991 | |
| 956 | // membarrier | 992 | // membarrier |
| | 993 | // int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id); |
| 957 | | 994 | |
| 958 | // mlock2 | 995 | // mlock2 |
| 959 | // int mlock2(const void addr[.len], size_t len, unsigned int flags); | 996 | // int mlock2(const void addr[.len], size_t len, unsigned int flags); |
| 960 | | 997 | |
| 961 | // copy_file_range | 998 | // copy_file_range |
| | 999 | // ssize_t copy_file_range(int fd_in, off_t *_Nullable off_in, int fd_out, off_t *_Nullable off_out, size_t len, unsigned int flags); |
| 962 | | 1000 | |
| 963 | // preadv2 | 1001 | // preadv2 |
| 964 | // ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); | 1002 | // ssize_t preadv2(int fd, const struct iovec *iov, int iovcnt, off_t offset, int flags); |
| ... | @@ -970,16 +1008,20 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -970,16 +1008,20 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 970 | // int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey); | 1008 | // int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey); |
| 971 | | 1009 | |
| 972 | // pkey_alloc | 1010 | // pkey_alloc |
| | 1011 | // int pkey_alloc(unsigned int flags, unsigned int access_rights); |
| 973 | | 1012 | |
| 974 | // pkey_free | 1013 | // pkey_free |
| | 1014 | // int pkey_free(int pkey); |
| 975 | | 1015 | |
| 976 | // statx | 1016 | // statx |
| | 1017 | // int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf); |
| 977 | | 1018 | |
| 978 | // io_pgetevents | 1019 | // io_pgetevents |
| 979 | | 1020 | |
| 980 | // rseq | 1021 | // rseq |
| 981 | | 1022 | |
| 982 | // pidfd_send_signal | 1023 | // pidfd_send_signal |
| | 1024 | // int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags); |
| 983 | | 1025 | |
| 984 | // io_uring_setup | 1026 | // io_uring_setup |
| 985 | | 1027 | |
| ... | @@ -1000,34 +1042,45 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { | ... | @@ -1000,34 +1042,45 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize { |
| 1000 | // fspick | 1042 | // fspick |
| 1001 | | 1043 | |
| 1002 | // pidfd_open | 1044 | // pidfd_open |
| | 1045 | // int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags); |
| 1003 | | 1046 | |
| 1004 | // clone3 | 1047 | // clone3 |
| | 1048 | // long syscall(SYS_clone3, struct clone_args *cl_args, size_t size); |
| 1005 | | 1049 | |
| 1006 | // close_range | 1050 | // close_range |
| | 1051 | // int close_range(unsigned int first, unsigned int last, int flags); |
| 1007 | | 1052 | |
| 1008 | // openat2 | 1053 | // openat2 |
| 1009 | // int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size); | 1054 | // int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size); |
| 1010 | | 1055 | |
| 1011 | // pidfd_getfd | 1056 | // pidfd_getfd |
| | 1057 | // int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags); |
| 1012 | | 1058 | |
| 1013 | // faccessat2 | 1059 | // faccessat2 |
| | 1060 | // int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags); |
| 1014 | | 1061 | |
| 1015 | // process_madvise | 1062 | // process_madvise |
| | 1063 | // ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags); |
| 1016 | | 1064 | |
| 1017 | // epoll_pwait2 | 1065 | // epoll_pwait2 |
| 1018 | // int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask); | 1066 | // int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask); |
| 1019 | | 1067 | |
| 1020 | // mount_setattr | 1068 | // mount_setattr |
| | 1069 | // int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size); |
| 1021 | | 1070 | |
| 1022 | // quotactl_fd | 1071 | // quotactl_fd |
| 1023 | | 1072 | |
| 1024 | // landlock_create_ruleset | 1073 | // landlock_create_ruleset |
| | 1074 | // int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags); |
| 1025 | | 1075 | |
| 1026 | // landlock_add_rule | 1076 | // landlock_add_rule |
| | 1077 | // int syscall(SYS_landlock_add_rule, int ruleset_fd, enum landlock_rule_type rule_type, const void *rule_attr, uint32_t flags); |
| 1027 | | 1078 | |
| 1028 | // landlock_restrict_self | 1079 | // landlock_restrict_self |
| | 1080 | // int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags); |
| 1029 | | 1081 | |
| 1030 | // memfd_secret | 1082 | // memfd_secret |
| | 1083 | // int syscall(SYS_memfd_secret, unsigned int flags); |
| 1031 | | 1084 | |
| 1032 | // process_mrelease | 1085 | // process_mrelease |
| 1033 | | 1086 | |