File tree Expand file tree Collapse file tree
src/unix/linux_like/linux Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -767,19 +767,6 @@ pub const O_ACCMODE: c_int = 3;
767767pub const ST_RELATIME : c_ulong = 4096 ;
768768pub const NI_MAXHOST : crate :: socklen_t = 1025 ;
769769
770- // Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
771- // following are only available on newer Linux versions than the versions
772- // currently used in CI in some configurations, so we define them here.
773- cfg_if ! {
774- if #[ cfg( not( target_arch = "s390x" ) ) ] {
775- pub const BINDERFS_SUPER_MAGIC : c_long = 0x6c6f6f70 ;
776- pub const XFS_SUPER_MAGIC : c_long = 0x58465342 ;
777- } else if #[ cfg( target_arch = "s390x" ) ] {
778- pub const BINDERFS_SUPER_MAGIC : c_uint = 0x6c6f6f70 ;
779- pub const XFS_SUPER_MAGIC : c_uint = 0x58465342 ;
780- }
781- }
782-
783770pub const CPU_SETSIZE : c_int = 0x400 ;
784771
785772pub const PTRACE_TRACEME : c_uint = 0 ;
Original file line number Diff line number Diff line change @@ -2558,6 +2558,20 @@ pub const IN_ONLYDIR: u32 = 0x0100_0000;
25582558pub const IN_DONT_FOLLOW : u32 = 0x0200_0000 ;
25592559pub const IN_EXCL_UNLINK : u32 = 0x0400_0000 ;
25602560
2561+ // uapi/linux/magic.h
2562+ // Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
2563+ // following are only available on newer Linux versions than the versions
2564+ // currently used in CI in some configurations, so we define them here.
2565+ cfg_if ! {
2566+ if #[ cfg( not( target_arch = "s390x" ) ) ] {
2567+ pub const BINDERFS_SUPER_MAGIC : c_long = 0x6c6f6f70 ;
2568+ pub const XFS_SUPER_MAGIC : c_long = 0x58465342 ;
2569+ } else if #[ cfg( target_arch = "s390x" ) ] {
2570+ pub const BINDERFS_SUPER_MAGIC : c_uint = 0x6c6f6f70 ;
2571+ pub const XFS_SUPER_MAGIC : c_uint = 0x58465342 ;
2572+ }
2573+ }
2574+
25612575// uapi/linux/securebits.h
25622576const SECURE_NOROOT : c_int = 0 ;
25632577const SECURE_NOROOT_LOCKED : c_int = 1 ;
Original file line number Diff line number Diff line change @@ -229,12 +229,6 @@ pub const MCL_ONFAULT: c_int = 0x0004;
229229
230230pub const AF_VSOCK : c_int = 40 ;
231231
232- // Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
233- // following are only available on newer Linux versions than the versions
234- // currently used in CI in some configurations, so we define them here.
235- pub const BINDERFS_SUPER_MAGIC : c_long = 0x6c6f6f70 ;
236- pub const XFS_SUPER_MAGIC : c_long = 0x58465342 ;
237-
238232pub const PTRACE_TRACEME : c_int = 0 ;
239233pub const PTRACE_PEEKTEXT : c_int = 1 ;
240234pub const PTRACE_PEEKDATA : c_int = 2 ;
You can’t perform that action at this time.
0 commit comments