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 {
7373// rt_sigaction
7474
7575// rt_sigprocmask
76// int sigprocmask(int how, const sigset_t *_Nullable restrict set, sigset_t *_Nullable restrict oldset);
7677
7778// rt_sigreturn
79// int sigreturn(...);
7880
7981// ioctl
8082
......@@ -409,12 +411,16 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
409411// int syscall(SYS_capset, cap_user_header_t hdrp, const cap_user_data_t datap);
410412
411413// rt_sigpending
414// int sigpending(sigset_t *set);
412415
413416// rt_sigtimedwait
417// int sigtimedwait(const sigset_t *restrict set, siginfo_t *_Nullable restrict info, const struct timespec *restrict timeout);
414418
415419// rt_sigqueueinfo
420// int syscall(SYS_rt_sigqueueinfo, pid_t tgid, int sig, siginfo_t *info);
416421
417422// rt_sigsuspend
423// int sigsuspend(const sigset_t *mask);
418424
419425// sigaltstack
420426// 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 {
858864// int epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const sigset_t *_Nullable sigmask);
859865
860866// signalfd
867// int signalfd(int fd, const sigset_t *mask, int flags);
861868
862869// timerfd_create
870// int timerfd_create(int clockid, int flags);
863871
864872// eventfd
873// int eventfd(unsigned int initval, int flags);
865874
866875// fallocate
876// int fallocate(int fd, int mode, off_t offset, off_t len);
867877
868878// timerfd_settime
879// int timerfd_settime(int fd, int flags, const struct itimerspec *new_value, struct itimerspec *_Nullable old_value);
869880
870881// timerfd_gettime
882// int timerfd_gettime(int fd, struct itimerspec *curr_value);
871883
872884// accept4
873885// int accept4(int sockfd, struct sockaddr *_Nullable restrict addr, socklen_t *_Nullable restrict addrlen, int flags);
874886
875887// signalfd4
888// int signalfd(int fd, const sigset_t *mask, int flags);
876889
877890// eventfd2
891// int eventfd(unsigned int initval, int flags);
878892
879893// epoll_create1
880894// int epoll_create1(int flags);
......@@ -895,21 +909,28 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
895909// ssize_t pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset);
896910
897911// rt_tgsigqueueinfo
912// int syscall(SYS_rt_tgsigqueueinfo, pid_t tgid, pid_t tid, int sig, siginfo_t *info);
898913
899914// 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
901917// recvmmsg
918// int recvmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags, struct timespec *timeout);
902919
903920// fanotify_init
921// int fanotify_init(unsigned int flags, unsigned int event_f_flags);
904922
905923// fanotify_mark
924// int fanotify_mark(int fanotify_fd, unsigned int flags, uint64_t mask, int dirfd, const char *_Nullable pathname);
906925
907926// prlimit64
908927// int prlimit(pid_t pid, int resource, const struct rlimit *_Nullable new_limit, struct rlimit *_Nullable old_limit);
909928
910929// 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
912932// open_by_handle_at
933// int open_by_handle_at(int mount_fd, struct file_handle *handle, int flags);
913934
914935// clock_adjtime
915936// 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 {
918939// int syncfs(int fd);
919940
920941// sendmmsg
942// int sendmmsg(int sockfd, struct mmsghdr *msgvec, unsigned int vlen, int flags);
921943
922944// setns
945// int setns(int fd, int nstype);
923946
924947// getcpu
948// int getcpu(unsigned int *_Nullable cpu, unsigned int *_Nullable node);
925949
926950// 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
928953// 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
930956// kcmp
957// int syscall(SYS_kcmp, pid_t pid1, pid_t pid2, int type, unsigned long idx1, unsigned long idx2);
931958
932959// finit_module
933960// int syscall(SYS_finit_module, int fd, const char *param_values, int flags);
934961
935962// sched_setattr
963// int syscall(SYS_sched_setattr, pid_t pid, struct sched_attr *attr, unsigned int flags);
936964
937965// sched_getattr
966// int syscall(SYS_sched_getattr, pid_t pid, struct sched_attr *attr, unsigned int size, unsigned int flags);
938967
939968// renameat2
940969// int renameat2(int olddirfd, const char *oldpath, int newdirfd, const char *newpath, unsigned int flags);
941970
942971// seccomp
972// int syscall(SYS_seccomp, unsigned int operation, unsigned int flags, void *args);
943973
944974// getrandom
975// ssize_t getrandom(void buf[.buflen], size_t buflen, unsigned int flags);
945976
946977// memfd_create
978// int memfd_create(const char *name, unsigned int flags);
947979
948980// 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
950983// bpf
984// int bpf(int cmd, union bpf_attr *attr, unsigned int size);
951985
952986// execveat
987// int execveat(int dirfd, const char *pathname, char *const _Nullable argv[], char *const _Nullable envp[], int flags);
953988
954989// userfaultfd
990// int syscall(SYS_userfaultfd, int flags);
955991
956992// membarrier
993// int syscall(SYS_membarrier, int cmd, unsigned int flags, int cpu_id);
957994
958995// mlock2
959996// int mlock2(const void addr[.len], size_t len, unsigned int flags);
960997
961998// 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
9631001// preadv2
9641002// 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 {
9701008// int pkey_mprotect(void addr[.len], size_t len, int prot, int pkey);
9711009
9721010// pkey_alloc
1011// int pkey_alloc(unsigned int flags, unsigned int access_rights);
9731012
9741013// pkey_free
1014// int pkey_free(int pkey);
9751015
9761016// statx
1017// int statx(int dirfd, const char *restrict pathname, int flags, unsigned int mask, struct statx *restrict statxbuf);
9771018
9781019// io_pgetevents
9791020
9801021// rseq
9811022
9821023// pidfd_send_signal
1024// int syscall(SYS_pidfd_send_signal, int pidfd, int sig, siginfo_t *_Nullable info, unsigned int flags);
9831025
9841026// io_uring_setup
9851027
......@@ -1000,34 +1042,45 @@ pub fn write(fd: c_int, buf: []const u8) errno.Error!usize {
10001042// fspick
10011043
10021044// pidfd_open
1045// int syscall(SYS_pidfd_open, pid_t pid, unsigned int flags);
10031046
10041047// clone3
1048// long syscall(SYS_clone3, struct clone_args *cl_args, size_t size);
10051049
10061050// close_range
1051// int close_range(unsigned int first, unsigned int last, int flags);
10071052
10081053// openat2
10091054// int openat2(int dirfd, const char *pathname, const struct open_how *how, size_t size);
10101055
10111056// pidfd_getfd
1057// int syscall(SYS_pidfd_getfd, int pidfd, int targetfd, unsigned int flags);
10121058
10131059// faccessat2
1060// int syscall(SYS_faccessat2, int dirfd, const char *pathname, int mode, int flags);
10141061
10151062// process_madvise
1063// ssize_t process_madvise(int pidfd, const struct iovec iovec[.n], size_t n, int advice, unsigned int flags);
10161064
10171065// epoll_pwait2
10181066// int epoll_pwait2(int epfd, struct epoll_event *events, int maxevents, const struct timespec *_Nullable timeout, const sigset_t *_Nullable sigmask);
10191067
10201068// mount_setattr
1069// int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size);
10211070
10221071// quotactl_fd
10231072
10241073// landlock_create_ruleset
1074// int syscall(SYS_landlock_create_ruleset, const struct landlock_ruleset_attr *attr, size_t size , uint32_t flags);
10251075
10261076// 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
10281079// landlock_restrict_self
1080// int syscall(SYS_landlock_restrict_self, int ruleset_fd, uint32_t flags);
10291081
10301082// memfd_secret
1083// int syscall(SYS_memfd_secret, unsigned int flags);
10311084
10321085// process_mrelease
10331086