diff --git a/lib/std/os/linux/syscalls.zig b/lib/std/os/linux/syscalls.zig index ef04387ea62d..41cfb421531b 100644 --- a/lib/std/os/linux/syscalls.zig +++ b/lib/std/os/linux/syscalls.zig @@ -1,5 +1,6 @@ -// This file is automatically generated. +// This file is automatically generated, DO NOT edit it manually. // See tools/generate_linux_syscalls.zig for more info. +// This list current as of kernel: 6.11.0 pub const X86 = enum(usize) { restart_syscall = 0, @@ -792,6 +793,7 @@ pub const X64 = enum(usize) { statx = 332, io_pgetevents = 333, rseq = 334, + uretprobe = 335, pidfd_send_signal = 424, io_uring_setup = 425, io_uring_enter = 426, @@ -5431,7 +5433,7 @@ pub const Arm64 = enum(usize) { pwrite64 = 68, preadv = 69, pwritev = 70, - sendfile64 = 71, + sendfile = 71, pselect6 = 72, ppoll = 73, signalfd4 = 74, @@ -5440,7 +5442,7 @@ pub const Arm64 = enum(usize) { tee = 77, readlinkat = 78, fstatat64 = 79, - fstat64 = 80, + fstat = 80, sync = 81, fsync = 82, fdatasync = 83, @@ -5583,7 +5585,7 @@ pub const Arm64 = enum(usize) { clone = 220, execve = 221, mmap = 222, - fadvise64_64 = 223, + fadvise64 = 223, swapon = 224, swapoff = 225, mprotect = 226, @@ -5897,6 +5899,8 @@ pub const RiscV32 = enum(usize) { rt_tgsigqueueinfo = 240, perf_event_open = 241, accept4 = 242, + riscv_hwprobe = 258, + riscv_flush_icache = 259, prlimit64 = 261, fanotify_init = 262, fanotify_mark = 263, @@ -5929,26 +5933,26 @@ pub const RiscV32 = enum(usize) { statx = 291, rseq = 293, kexec_file_load = 294, - clock_gettime = 403, - clock_settime = 404, - clock_adjtime = 405, - clock_getres = 406, - clock_nanosleep = 407, - timer_gettime = 408, - timer_settime = 409, - timerfd_gettime = 410, - timerfd_settime = 411, - utimensat = 412, - pselect6 = 413, - ppoll = 414, - io_pgetevents = 416, - recvmmsg = 417, - mq_timedsend = 418, - mq_timedreceive = 419, - semtimedop = 420, - rt_sigtimedwait = 421, - futex = 422, - sched_rr_get_interval = 423, + clock_gettime64 = 403, + clock_settime64 = 404, + clock_adjtime64 = 405, + clock_getres_time64 = 406, + clock_nanosleep_time64 = 407, + timer_gettime64 = 408, + timer_settime64 = 409, + timerfd_gettime64 = 410, + timerfd_settime64 = 411, + utimensat_time64 = 412, + pselect6_time64 = 413, + ppoll_time64 = 414, + io_pgetevents_time64 = 416, + recvmmsg_time64 = 417, + mq_timedsend_time64 = 418, + mq_timedreceive_time64 = 419, + semtimedop_time64 = 420, + rt_sigtimedwait_time64 = 421, + futex_time64 = 422, + sched_rr_get_interval_time64 = 423, pidfd_send_signal = 424, io_uring_setup = 425, io_uring_enter = 426, @@ -5988,8 +5992,6 @@ pub const RiscV32 = enum(usize) { lsm_set_self_attr = 460, lsm_list_modules = 461, mseal = 462, - riscv_flush_icache = (244 + 15), - riscv_hwprobe = (244 + 14), }; pub const RiscV64 = enum(usize) { @@ -6063,7 +6065,7 @@ pub const RiscV64 = enum(usize) { pwrite64 = 68, preadv = 69, pwritev = 70, - sendfile64 = 71, + sendfile = 71, pselect6 = 72, ppoll = 73, signalfd4 = 74, @@ -6072,7 +6074,7 @@ pub const RiscV64 = enum(usize) { tee = 77, readlinkat = 78, fstatat64 = 79, - fstat64 = 80, + fstat = 80, sync = 81, fsync = 82, fdatasync = 83, @@ -6215,7 +6217,7 @@ pub const RiscV64 = enum(usize) { clone = 220, execve = 221, mmap = 222, - fadvise64_64 = 223, + fadvise64 = 223, swapon = 224, swapoff = 225, mprotect = 226, @@ -6236,6 +6238,8 @@ pub const RiscV64 = enum(usize) { perf_event_open = 241, accept4 = 242, recvmmsg = 243, + riscv_hwprobe = 258, + riscv_flush_icache = 259, wait4 = 260, prlimit64 = 261, fanotify_init = 262, @@ -6310,8 +6314,6 @@ pub const RiscV64 = enum(usize) { lsm_set_self_attr = 460, lsm_list_modules = 461, mseal = 462, - riscv_flush_icache = (244 + 15), - riscv_hwprobe = (244 + 14), }; pub const LoongArch64 = enum(usize) { @@ -6385,7 +6387,7 @@ pub const LoongArch64 = enum(usize) { pwrite64 = 68, preadv = 69, pwritev = 70, - sendfile64 = 71, + sendfile = 71, pselect6 = 72, ppoll = 73, signalfd4 = 74, @@ -6393,6 +6395,8 @@ pub const LoongArch64 = enum(usize) { splice = 76, tee = 77, readlinkat = 78, + fstatat64 = 79, + fstat = 80, sync = 81, fsync = 82, fdatasync = 83, @@ -6533,7 +6537,7 @@ pub const LoongArch64 = enum(usize) { clone = 220, execve = 221, mmap = 222, - fadvise64_64 = 223, + fadvise64 = 223, swapon = 224, swapoff = 225, mprotect = 226, @@ -6634,7 +6638,7 @@ pub const Arc = enum(usize) { io_destroy = 1, io_submit = 2, io_cancel = 3, - io_getevents_time32 = 4, + io_getevents = 4, setxattr = 5, lsetxattr = 6, fsetxattr = 7, @@ -6702,8 +6706,8 @@ pub const Arc = enum(usize) { preadv = 69, pwritev = 70, sendfile64 = 71, - pselect6_time32 = 72, - ppoll_time32 = 73, + pselect6 = 72, + ppoll = 73, signalfd4 = 74, vmsplice = 75, splice = 76, @@ -6716,9 +6720,9 @@ pub const Arc = enum(usize) { fdatasync = 83, sync_file_range = 84, timerfd_create = 85, - timerfd_settime32 = 86, - timerfd_gettime32 = 87, - utimensat_time32 = 88, + timerfd_settime = 86, + timerfd_gettime = 87, + utimensat = 88, acct = 89, capget = 90, capset = 91, @@ -6728,24 +6732,24 @@ pub const Arc = enum(usize) { waitid = 95, set_tid_address = 96, unshare = 97, - futex_time32 = 98, + futex = 98, set_robust_list = 99, get_robust_list = 100, - nanosleep_time32 = 101, + nanosleep = 101, getitimer = 102, setitimer = 103, kexec_load = 104, init_module = 105, delete_module = 106, timer_create = 107, - timer_gettime32 = 108, + timer_gettime = 108, timer_getoverrun = 109, - timer_settime32 = 110, + timer_settime = 110, timer_delete = 111, - clock_settime32 = 112, - clock_gettime32 = 113, - clock_getres_time32 = 114, - clock_nanosleep_time32 = 115, + clock_settime = 112, + clock_gettime = 113, + clock_getres = 114, + clock_nanosleep = 115, syslog = 116, ptrace = 117, sched_setparam = 118, @@ -6757,7 +6761,7 @@ pub const Arc = enum(usize) { sched_yield = 124, sched_get_priority_max = 125, sched_get_priority_min = 126, - sched_rr_get_interval_time32 = 127, + sched_rr_get_interval = 127, restart_syscall = 128, kill = 129, tkill = 130, @@ -6767,7 +6771,7 @@ pub const Arc = enum(usize) { rt_sigaction = 134, rt_sigprocmask = 135, rt_sigpending = 136, - rt_sigtimedwait_time32 = 137, + rt_sigtimedwait = 137, rt_sigqueueinfo = 138, rt_sigreturn = 139, setpriority = 140, @@ -6801,7 +6805,7 @@ pub const Arc = enum(usize) { getcpu = 168, gettimeofday = 169, settimeofday = 170, - adjtimex_time32 = 171, + adjtimex = 171, getpid = 172, getppid = 173, getuid = 174, @@ -6812,8 +6816,8 @@ pub const Arc = enum(usize) { sysinfo = 179, mq_open = 180, mq_unlink = 181, - mq_timedsend_time32 = 182, - mq_timedreceive_time32 = 183, + mq_timedsend = 182, + mq_timedreceive = 183, mq_notify = 184, mq_getsetattr = 185, msgget = 186, @@ -6822,7 +6826,7 @@ pub const Arc = enum(usize) { msgsnd = 189, semget = 190, semctl = 191, - semtimedop_time32 = 192, + semtimedop = 192, semop = 193, shmget = 194, shmctl = 195, @@ -6873,14 +6877,19 @@ pub const Arc = enum(usize) { rt_tgsigqueueinfo = 240, perf_event_open = 241, accept4 = 242, - recvmmsg_time32 = 243, + recvmmsg = 243, + cacheflush = 244, + arc_settls = 245, + arc_gettls = 246, + sysfs = 247, + arc_usr_cmpxchg = 248, wait4 = 260, prlimit64 = 261, fanotify_init = 262, fanotify_mark = 263, name_to_handle_at = 264, open_by_handle_at = 265, - clock_adjtime32 = 266, + clock_adjtime = 266, syncfs = 267, setns = 268, sendmmsg = 269, @@ -6906,29 +6915,29 @@ pub const Arc = enum(usize) { pkey_alloc = 289, pkey_free = 290, statx = 291, - io_pgetevents_time32 = 292, + io_pgetevents = 292, rseq = 293, kexec_file_load = 294, - clock_gettime = 403, - clock_settime = 404, - clock_adjtime = 405, - clock_getres = 406, - clock_nanosleep = 407, - timer_gettime = 408, - timer_settime = 409, - timerfd_gettime = 410, - timerfd_settime = 411, - utimensat = 412, - pselect6 = 413, - ppoll = 414, - io_pgetevents = 416, - recvmmsg = 417, - mq_timedsend = 418, - mq_timedreceive = 419, - semtimedop = 420, - rt_sigtimedwait = 421, - futex = 422, - sched_rr_get_interval = 423, + clock_gettime64 = 403, + clock_settime64 = 404, + clock_adjtime64 = 405, + clock_getres_time64 = 406, + clock_nanosleep_time64 = 407, + timer_gettime64 = 408, + timer_settime64 = 409, + timerfd_gettime64 = 410, + timerfd_settime64 = 411, + utimensat_time64 = 412, + pselect6_time64 = 413, + ppoll_time64 = 414, + io_pgetevents_time64 = 416, + recvmmsg_time64 = 417, + mq_timedsend_time64 = 418, + mq_timedreceive_time64 = 419, + semtimedop_time64 = 420, + rt_sigtimedwait_time64 = 421, + futex_time64 = 422, + sched_rr_get_interval_time64 = 423, pidfd_send_signal = 424, io_uring_setup = 425, io_uring_enter = 426, @@ -6967,11 +6976,6 @@ pub const Arc = enum(usize) { lsm_set_self_attr = 460, lsm_list_modules = 461, mseal = 462, - cacheflush = (244 + 0), - arc_settls = (244 + 1), - arc_gettls = (244 + 2), - arc_usr_cmpxchg = (244 + 4), - sysfs = (244 + 3), }; pub const CSky = enum(usize) { @@ -6979,7 +6983,7 @@ pub const CSky = enum(usize) { io_destroy = 1, io_submit = 2, io_cancel = 3, - io_getevents_time32 = 4, + io_getevents = 4, setxattr = 5, lsetxattr = 6, fsetxattr = 7, @@ -7046,8 +7050,8 @@ pub const CSky = enum(usize) { preadv = 69, pwritev = 70, sendfile64 = 71, - pselect6_time32 = 72, - ppoll_time32 = 73, + pselect6 = 72, + ppoll = 73, signalfd4 = 74, vmsplice = 75, splice = 76, @@ -7060,9 +7064,9 @@ pub const CSky = enum(usize) { fdatasync = 83, sync_file_range = 84, timerfd_create = 85, - timerfd_settime32 = 86, - timerfd_gettime32 = 87, - utimensat_time32 = 88, + timerfd_settime = 86, + timerfd_gettime = 87, + utimensat = 88, acct = 89, capget = 90, capset = 91, @@ -7072,24 +7076,24 @@ pub const CSky = enum(usize) { waitid = 95, set_tid_address = 96, unshare = 97, - futex_time32 = 98, + futex = 98, set_robust_list = 99, get_robust_list = 100, - nanosleep_time32 = 101, + nanosleep = 101, getitimer = 102, setitimer = 103, kexec_load = 104, init_module = 105, delete_module = 106, timer_create = 107, - timer_gettime32 = 108, + timer_gettime = 108, timer_getoverrun = 109, - timer_settime32 = 110, + timer_settime = 110, timer_delete = 111, - clock_settime32 = 112, - clock_gettime32 = 113, - clock_getres_time32 = 114, - clock_nanosleep_time32 = 115, + clock_settime = 112, + clock_gettime = 113, + clock_getres = 114, + clock_nanosleep = 115, syslog = 116, ptrace = 117, sched_setparam = 118, @@ -7101,7 +7105,7 @@ pub const CSky = enum(usize) { sched_yield = 124, sched_get_priority_max = 125, sched_get_priority_min = 126, - sched_rr_get_interval_time32 = 127, + sched_rr_get_interval = 127, restart_syscall = 128, kill = 129, tkill = 130, @@ -7111,7 +7115,7 @@ pub const CSky = enum(usize) { rt_sigaction = 134, rt_sigprocmask = 135, rt_sigpending = 136, - rt_sigtimedwait_time32 = 137, + rt_sigtimedwait = 137, rt_sigqueueinfo = 138, rt_sigreturn = 139, setpriority = 140, @@ -7145,7 +7149,7 @@ pub const CSky = enum(usize) { getcpu = 168, gettimeofday = 169, settimeofday = 170, - adjtimex_time32 = 171, + adjtimex = 171, getpid = 172, getppid = 173, getuid = 174, @@ -7156,8 +7160,8 @@ pub const CSky = enum(usize) { sysinfo = 179, mq_open = 180, mq_unlink = 181, - mq_timedsend_time32 = 182, - mq_timedreceive_time32 = 183, + mq_timedsend = 182, + mq_timedreceive = 183, mq_notify = 184, mq_getsetattr = 185, msgget = 186, @@ -7166,7 +7170,7 @@ pub const CSky = enum(usize) { msgsnd = 189, semget = 190, semctl = 191, - semtimedop_time32 = 192, + semtimedop = 192, semop = 193, shmget = 194, shmctl = 195, @@ -7217,14 +7221,16 @@ pub const CSky = enum(usize) { rt_tgsigqueueinfo = 240, perf_event_open = 241, accept4 = 242, - recvmmsg_time32 = 243, + recvmmsg = 243, + set_thread_area = 244, + cacheflush = 245, wait4 = 260, prlimit64 = 261, fanotify_init = 262, fanotify_mark = 263, name_to_handle_at = 264, open_by_handle_at = 265, - clock_adjtime32 = 266, + clock_adjtime = 266, syncfs = 267, setns = 268, sendmmsg = 269, @@ -7250,29 +7256,29 @@ pub const CSky = enum(usize) { pkey_alloc = 289, pkey_free = 290, statx = 291, - io_pgetevents_time32 = 292, + io_pgetevents = 292, rseq = 293, kexec_file_load = 294, - clock_gettime = 403, - clock_settime = 404, - clock_adjtime = 405, - clock_getres = 406, - clock_nanosleep = 407, - timer_gettime = 408, - timer_settime = 409, - timerfd_gettime = 410, - timerfd_settime = 411, - utimensat = 412, - pselect6 = 413, - ppoll = 414, - io_pgetevents = 416, - recvmmsg = 417, - mq_timedsend = 418, - mq_timedreceive = 419, - semtimedop = 420, - rt_sigtimedwait = 421, - futex = 422, - sched_rr_get_interval = 423, + clock_gettime64 = 403, + clock_settime64 = 404, + clock_adjtime64 = 405, + clock_getres_time64 = 406, + clock_nanosleep_time64 = 407, + timer_gettime64 = 408, + timer_settime64 = 409, + timerfd_gettime64 = 410, + timerfd_settime64 = 411, + utimensat_time64 = 412, + pselect6_time64 = 413, + ppoll_time64 = 414, + io_pgetevents_time64 = 416, + recvmmsg_time64 = 417, + mq_timedsend_time64 = 418, + mq_timedreceive_time64 = 419, + semtimedop_time64 = 420, + rt_sigtimedwait_time64 = 421, + futex_time64 = 422, + sched_rr_get_interval_time64 = 423, pidfd_send_signal = 424, io_uring_setup = 425, io_uring_enter = 426, @@ -7311,8 +7317,6 @@ pub const CSky = enum(usize) { lsm_set_self_attr = 460, lsm_list_modules = 461, mseal = 462, - set_thread_area = (244 + 0), - cacheflush = (244 + 1), }; pub const Hexagon = enum(usize) { @@ -7320,7 +7324,7 @@ pub const Hexagon = enum(usize) { io_destroy = 1, io_submit = 2, io_cancel = 3, - io_getevents_time32 = 4, + io_getevents = 4, setxattr = 5, lsetxattr = 6, fsetxattr = 7, @@ -7388,8 +7392,8 @@ pub const Hexagon = enum(usize) { preadv = 69, pwritev = 70, sendfile64 = 71, - pselect6_time32 = 72, - ppoll_time32 = 73, + pselect6 = 72, + ppoll = 73, signalfd4 = 74, vmsplice = 75, splice = 76, @@ -7402,9 +7406,9 @@ pub const Hexagon = enum(usize) { fdatasync = 83, sync_file_range = 84, timerfd_create = 85, - timerfd_settime32 = 86, - timerfd_gettime32 = 87, - utimensat_time32 = 88, + timerfd_settime = 86, + timerfd_gettime = 87, + utimensat = 88, acct = 89, capget = 90, capset = 91, @@ -7414,24 +7418,24 @@ pub const Hexagon = enum(usize) { waitid = 95, set_tid_address = 96, unshare = 97, - futex_time32 = 98, + futex = 98, set_robust_list = 99, get_robust_list = 100, - nanosleep_time32 = 101, + nanosleep = 101, getitimer = 102, setitimer = 103, kexec_load = 104, init_module = 105, delete_module = 106, timer_create = 107, - timer_gettime32 = 108, + timer_gettime = 108, timer_getoverrun = 109, - timer_settime32 = 110, + timer_settime = 110, timer_delete = 111, - clock_settime32 = 112, - clock_gettime32 = 113, - clock_getres_time32 = 114, - clock_nanosleep_time32 = 115, + clock_settime = 112, + clock_gettime = 113, + clock_getres = 114, + clock_nanosleep = 115, syslog = 116, ptrace = 117, sched_setparam = 118, @@ -7443,7 +7447,7 @@ pub const Hexagon = enum(usize) { sched_yield = 124, sched_get_priority_max = 125, sched_get_priority_min = 126, - sched_rr_get_interval_time32 = 127, + sched_rr_get_interval = 127, restart_syscall = 128, kill = 129, tkill = 130, @@ -7453,7 +7457,7 @@ pub const Hexagon = enum(usize) { rt_sigaction = 134, rt_sigprocmask = 135, rt_sigpending = 136, - rt_sigtimedwait_time32 = 137, + rt_sigtimedwait = 137, rt_sigqueueinfo = 138, rt_sigreturn = 139, setpriority = 140, @@ -7487,7 +7491,7 @@ pub const Hexagon = enum(usize) { getcpu = 168, gettimeofday = 169, settimeofday = 170, - adjtimex_time32 = 171, + adjtimex = 171, getpid = 172, getppid = 173, getuid = 174, @@ -7498,8 +7502,8 @@ pub const Hexagon = enum(usize) { sysinfo = 179, mq_open = 180, mq_unlink = 181, - mq_timedsend_time32 = 182, - mq_timedreceive_time32 = 183, + mq_timedsend = 182, + mq_timedreceive = 183, mq_notify = 184, mq_getsetattr = 185, msgget = 186, @@ -7508,7 +7512,7 @@ pub const Hexagon = enum(usize) { msgsnd = 189, semget = 190, semctl = 191, - semtimedop_time32 = 192, + semtimedop = 192, semop = 193, shmget = 194, shmctl = 195, @@ -7559,14 +7563,14 @@ pub const Hexagon = enum(usize) { rt_tgsigqueueinfo = 240, perf_event_open = 241, accept4 = 242, - recvmmsg_time32 = 243, + recvmmsg = 243, wait4 = 260, prlimit64 = 261, fanotify_init = 262, fanotify_mark = 263, name_to_handle_at = 264, open_by_handle_at = 265, - clock_adjtime32 = 266, + clock_adjtime = 266, syncfs = 267, setns = 268, sendmmsg = 269, @@ -7592,29 +7596,29 @@ pub const Hexagon = enum(usize) { pkey_alloc = 289, pkey_free = 290, statx = 291, - io_pgetevents_time32 = 292, + io_pgetevents = 292, rseq = 293, kexec_file_load = 294, - clock_gettime = 403, - clock_settime = 404, - clock_adjtime = 405, - clock_getres = 406, - clock_nanosleep = 407, - timer_gettime = 408, - timer_settime = 409, - timerfd_gettime = 410, - timerfd_settime = 411, - utimensat = 412, - pselect6 = 413, - ppoll = 414, - io_pgetevents = 416, - recvmmsg = 417, - mq_timedsend = 418, - mq_timedreceive = 419, - semtimedop = 420, - rt_sigtimedwait = 421, - futex = 422, - sched_rr_get_interval = 423, + clock_gettime64 = 403, + clock_settime64 = 404, + clock_adjtime64 = 405, + clock_getres_time64 = 406, + clock_nanosleep_time64 = 407, + timer_gettime64 = 408, + timer_settime64 = 409, + timerfd_gettime64 = 410, + timerfd_settime64 = 411, + utimensat_time64 = 412, + pselect6_time64 = 413, + ppoll_time64 = 414, + io_pgetevents_time64 = 416, + recvmmsg_time64 = 417, + mq_timedsend_time64 = 418, + mq_timedreceive_time64 = 419, + semtimedop_time64 = 420, + rt_sigtimedwait_time64 = 421, + futex_time64 = 422, + sched_rr_get_interval_time64 = 423, pidfd_send_signal = 424, io_uring_setup = 425, io_uring_enter = 426, @@ -7626,6 +7630,7 @@ pub const Hexagon = enum(usize) { fsmount = 432, fspick = 433, pidfd_open = 434, + clone3 = 435, close_range = 436, openat2 = 437, pidfd_getfd = 438,