File tree Expand file tree Collapse file tree 6 files changed +8
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 6 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -4116,6 +4116,9 @@ fn test_linux(target: &str) {
41164116 true
41174117 }
41184118
4119+ // FIXME: Requires >= 6.6 kernel headers.
4120+ "SYS_fchmodat2" => true ,
4121+
41194122 // FIXME: seems to not be available all the time (from <include/linux/sched.h>:
41204123 "PF_VCPU"
41214124 | "PF_IDLE"
Original file line number Diff line number Diff line change @@ -1044,6 +1044,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
10441044pub const SYS_process_mrelease : :: c_long = 448 ;
10451045pub const SYS_futex_waitv : :: c_long = 449 ;
10461046pub const SYS_set_mempolicy_home_node : :: c_long = 450 ;
1047+ pub const SYS_fchmodat2 : :: c_long = 452 ;
10471048
10481049// offsets in user_regs_structs, from sys/reg.h
10491050pub const EBX : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -430,6 +430,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
430430pub const SYS_process_mrelease : :: c_long = 448 ;
431431pub const SYS_futex_waitv : :: c_long = 449 ;
432432pub const SYS_set_mempolicy_home_node : :: c_long = 450 ;
433+ pub const SYS_fchmodat2 : :: c_long = 452 ;
433434
434435extern "C" {
435436 pub fn sysctl (
Original file line number Diff line number Diff line change @@ -361,6 +361,7 @@ pub const SYS_memfd_secret: ::c_long = __X32_SYSCALL_BIT + 447;
361361pub const SYS_process_mrelease : :: c_long = __X32_SYSCALL_BIT + 448 ;
362362pub const SYS_futex_waitv : :: c_long = __X32_SYSCALL_BIT + 449 ;
363363pub const SYS_set_mempolicy_home_node : :: c_long = __X32_SYSCALL_BIT + 450 ;
364+ pub const SYS_fchmodat2 : :: c_long = __X32_SYSCALL_BIT + 452 ;
364365pub const SYS_rt_sigaction : :: c_long = __X32_SYSCALL_BIT + 512 ;
365366pub const SYS_rt_sigreturn : :: c_long = __X32_SYSCALL_BIT + 513 ;
366367pub const SYS_ioctl : :: c_long = __X32_SYSCALL_BIT + 514 ;
Original file line number Diff line number Diff line change @@ -936,6 +936,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
936936pub const SYS_process_mrelease : :: c_long = 448 ;
937937pub const SYS_futex_waitv : :: c_long = 449 ;
938938pub const SYS_set_mempolicy_home_node : :: c_long = 450 ;
939+ pub const SYS_fchmodat2 : :: c_long = 452 ;
939940
940941// offsets in user_regs_structs, from sys/reg.h
941942pub const EBX : :: c_int = 0 ;
Original file line number Diff line number Diff line change @@ -608,6 +608,7 @@ pub const SYS_memfd_secret: ::c_long = 447;
608608pub const SYS_process_mrelease : :: c_long = 448 ;
609609pub const SYS_futex_waitv : :: c_long = 449 ;
610610pub const SYS_set_mempolicy_home_node : :: c_long = 450 ;
611+ pub const SYS_fchmodat2 : :: c_long = 452 ;
611612
612613// offsets in user_regs_structs, from sys/reg.h
613614pub const R15 : :: c_int = 0 ;
You can’t perform that action at this time.
0 commit comments