authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-19 15:31:39 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2025-04-19 15:31:39 -07:00
log83930bdb867d473ed374394e824205c2a3fd1647
tree235a781af246a45baa8e2b88fa04e3010948c7f9
parent9f074e9ff967193c020656835de8422f9f25a20c

progress


1 files changed, 53 insertions(+), 0 deletions(-)

mod.zig+53
...@@ -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_sigaction73// rt_sigaction
7474
75// rt_sigprocmask75// rt_sigprocmask
76// int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset);
7677
77// rt_sigreturn78// rt_sigreturn
79// int sigreturn(...);
7880
79// ioctl81// ioctl
8082
...@@ -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);
410412
411// rt_sigpending413// rt_sigpending
414// int sigpending(sigset_t *set);
412415
413// rt_sigtimedwait416// rt_sigtimedwait
417// int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout);
414418
415// rt_sigqueueinfo419// rt_sigqueueinfo
420// int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info);
416421
417// rt_sigsuspend422// rt_sigsuspend
423// int sigsuspend(const sigset_t *mask);
418424
419// sigaltstack425// 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);
859865
860// signalfd866// signalfd
867// int signalfd(int fd, const sigset_t *mask, int flags);
861868
862// timerfd_create869// timerfd_create
870// int timerfd_create(int clockid, int flags);
863871
864// eventfd872// eventfd
873// int eventfd(unsigned int initval, int flags);
865874
866// fallocate875// fallocate
876// int fallocate(int fd, int mode, off_t offset, off_t len);
867877
868// timerfd_settime878// timerfd_settime
879// int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value);
869880
870// timerfd_gettime881// timerfd_gettime
882// int timerfd_gettime(int fd, struct itimerspec *curr_value);
871883
872// accept4884// 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);
874886
875// signalfd4887// signalfd4
888// int signalfd(int fd, const sigset_t *mask, int flags);
876889
877// eventfd2890// eventfd2
891// int eventfd(unsigned int initval, int flags);
878892
879// epoll_create1893// 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);
896910
897// rt_tgsigqueueinfo911// rt_tgsigqueueinfo
912// int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info);
898913
899// perf_event_open914// 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);
900916
901// recvmmsg917// recvmmsg
918// int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout);
902919
903// fanotify_init920// fanotify_init
921// int fanotify_init(unsigned int flags, unsigned int event_f_flags);
904922
905// fanotify_mark923// fanotify_mark
924// int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname);
906925
907// prlimit64926// 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);
909928
910// name_to_handle_at929// name_to_handle_at
930// int name_to_handle_at(int dirfd, const char *pathname, struct file_handle *handle, int *mount_id, int flags);
911931
912// open_by_handle_at932// open_by_handle_at
933// int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags);
913934
914// clock_adjtime935// 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);
919940
920// sendmmsg941// sendmmsg
942// int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags);
921943
922// setns944// setns
945// int setns(int fd, int nstype);
923946
924// getcpu947// getcpu
948// int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node);
925949
926// process_vm_readv950// 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);
927952
928// process_vm_writev953// 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);
929955
930// kcmp956// kcmp
957// int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2);
931958
932// finit_module959// 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);
934961
935// sched_setattr962// sched_setattr
963// int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags);
936964
937// sched_getattr965// sched_getattr
966// int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags);
938967
939// renameat2968// 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);
941970
942// seccomp971// seccomp
972// int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args);
943973
944// getrandom974// getrandom
975// ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags);
945976
946// memfd_create977// memfd_create
978// int memfd_create(const char *name, unsigned int flags);
947979
948// kexec_file_load980// 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);
949982
950// bpf983// bpf
984// int bpf(int cmd, union bpf_attr *attr, unsigned int size);
951985
952// execveat986// execveat
987// int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags);
953988
954// userfaultfd989// userfaultfd
990// int syscall(SYS_userfaultfd, int flags);
955991
956// membarrier992// membarrier
993// int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id);
957994
958// mlock2995// 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);
960997
961// copy_file_range998// 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);
9621000
963// preadv21001// 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);
9711009
972// pkey_alloc1010// pkey_alloc
1011// int pkey_alloc(unsigned int flags, unsigned int access_rights);
9731012
974// pkey_free1013// pkey_free
1014// int pkey_free(int pkey);
9751015
976// statx1016// statx
1017// int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf);
9771018
978// io_pgetevents1019// io_pgetevents
9791020
980// rseq1021// rseq
9811022
982// pidfd_send_signal1023// pidfd_send_signal
1024// int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags);
9831025
984// io_uring_setup1026// io_uring_setup
9851027
...@@ -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// fspick1042// fspick
10011043
1002// pidfd_open1044// pidfd_open
1045// int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags);
10031046
1004// clone31047// clone3
1048// long syscall(SYS_clone3, struct clone_args *cl_args, size_t size);
10051049
1006// close_range1050// close_range
1051// int close_range(unsigned int first, unsigned int last, int flags);
10071052
1008// openat21053// 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);
10101055
1011// pidfd_getfd1056// pidfd_getfd
1057// int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags);
10121058
1013// faccessat21059// faccessat2
1060// int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags);
10141061
1015// process_madvise1062// process_madvise
1063// ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags);
10161064
1017// epoll_pwait21065// 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);
10191067
1020// mount_setattr1068// mount_setattr
1069// int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size);
10211070
1022// quotactl_fd1071// quotactl_fd
10231072
1024// landlock_create_ruleset1073// landlock_create_ruleset
1074// int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags);
10251075
1026// landlock_add_rule1076// 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);
10271078
1028// landlock_restrict_self1079// landlock_restrict_self
1080// int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags);
10291081
1030// memfd_secret1082// memfd_secret
1083// int syscall(SYS_memfd_secret, unsigned int flags);
10311084
1032// process_mrelease1085// process_mrelease
10331086