@@ -846,116 +846,15 @@ pub const O_ACCMODE: ::c_int = 3;
846846pub const ST_RELATIME : :: c_ulong = 4096 ;
847847pub const NI_MAXHOST : :: socklen_t = 1025 ;
848848
849+ // Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
850+ // following are only available on newer Linux versions than the versions
851+ // currently used in CI in some configurations, so we define them here.
849852cfg_if ! {
850853 if #[ cfg( not( target_arch = "s390x" ) ) ] {
851- pub const ADFS_SUPER_MAGIC : :: c_long = 0x0000adf5 ;
852- pub const AFFS_SUPER_MAGIC : :: c_long = 0x0000adff ;
853- pub const AFS_SUPER_MAGIC : :: c_long = 0x5346414f ;
854- pub const AUTOFS_SUPER_MAGIC : :: c_long = 0x0187 ;
855854 pub const BINDERFS_SUPER_MAGIC : :: c_long = 0x6c6f6f70 ;
856- pub const BPF_FS_MAGIC : :: c_long = 0xcafe4a11 ;
857- pub const BTRFS_SUPER_MAGIC : :: c_long = 0x9123683e ;
858- pub const CGROUP2_SUPER_MAGIC : :: c_long = 0x63677270 ;
859- pub const CGROUP_SUPER_MAGIC : :: c_long = 0x27e0eb ;
860- pub const CODA_SUPER_MAGIC : :: c_long = 0x73757245 ;
861- pub const CRAMFS_MAGIC : :: c_long = 0x28cd3d45 ;
862- pub const DEBUGFS_MAGIC : :: c_long = 0x64626720 ;
863- pub const DEVPTS_SUPER_MAGIC : :: c_long = 0x1cd1 ;
864- pub const ECRYPTFS_SUPER_MAGIC : :: c_long = 0xf15f ;
865- pub const EFS_SUPER_MAGIC : :: c_long = 0x00414a53 ;
866- pub const EXT2_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
867- pub const EXT3_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
868- pub const EXT4_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
869- pub const F2FS_SUPER_MAGIC : :: c_long = 0xf2f52010 ;
870- pub const FUSE_SUPER_MAGIC : :: c_long = 0x65735546 ;
871- pub const FUTEXFS_SUPER_MAGIC : :: c_long = 0xbad1dea ;
872- pub const HOSTFS_SUPER_MAGIC : :: c_long = 0x00c0ffee ;
873- pub const HPFS_SUPER_MAGIC : :: c_long = 0xf995e849 ;
874- pub const HUGETLBFS_MAGIC : :: c_long = 0x958458f6 ;
875- pub const ISOFS_SUPER_MAGIC : :: c_long = 0x00009660 ;
876- pub const JFFS2_SUPER_MAGIC : :: c_long = 0x000072b6 ;
877- pub const MINIX2_SUPER_MAGIC2 : :: c_long = 0x00002478 ;
878- pub const MINIX2_SUPER_MAGIC : :: c_long = 0x00002468 ;
879- pub const MINIX3_SUPER_MAGIC : :: c_long = 0x4d5a ;
880- pub const MINIX_SUPER_MAGIC2 : :: c_long = 0x0000138f ;
881- pub const MINIX_SUPER_MAGIC : :: c_long = 0x0000137f ;
882- pub const MSDOS_SUPER_MAGIC : :: c_long = 0x00004d44 ;
883- pub const NCP_SUPER_MAGIC : :: c_long = 0x0000564c ;
884- pub const NFS_SUPER_MAGIC : :: c_long = 0x00006969 ;
885- pub const NILFS_SUPER_MAGIC : :: c_long = 0x3434 ;
886- pub const OCFS2_SUPER_MAGIC : :: c_long = 0x7461636f ;
887- pub const OPENPROM_SUPER_MAGIC : :: c_long = 0x00009fa1 ;
888- pub const OVERLAYFS_SUPER_MAGIC : :: c_long = 0x794c7630 ;
889- pub const PROC_SUPER_MAGIC : :: c_long = 0x00009fa0 ;
890- pub const QNX4_SUPER_MAGIC : :: c_long = 0x0000002f ;
891- pub const QNX6_SUPER_MAGIC : :: c_long = 0x68191122 ;
892- pub const RDTGROUP_SUPER_MAGIC : :: c_long = 0x7655821 ;
893- pub const REISERFS_SUPER_MAGIC : :: c_long = 0x52654973 ;
894- pub const SECURITYFS_MAGIC : :: c_long = 0x73636673 ;
895- pub const SELINUX_MAGIC : :: c_long = 0xf97cff8c ;
896- pub const SMACK_MAGIC : :: c_long = 0x43415d53 ;
897- pub const SMB_SUPER_MAGIC : :: c_long = 0x0000517b ;
898- pub const SYSFS_MAGIC : :: c_long = 0x62656572 ;
899- pub const TMPFS_MAGIC : :: c_long = 0x01021994 ;
900- pub const TRACEFS_MAGIC : :: c_long = 0x74726163 ;
901- pub const UDF_SUPER_MAGIC : :: c_long = 0x15013346 ;
902- pub const USBDEVICE_SUPER_MAGIC : :: c_long = 0x00009fa2 ;
903- pub const XENFS_SUPER_MAGIC : :: c_long = 0xabba1974 ;
904855 pub const XFS_SUPER_MAGIC : :: c_long = 0x58465342 ;
905856 } else if #[ cfg( target_arch = "s390x" ) ] {
906- pub const ADFS_SUPER_MAGIC : :: c_uint = 0x0000adf5 ;
907- pub const AFFS_SUPER_MAGIC : :: c_uint = 0x0000adff ;
908- pub const AFS_SUPER_MAGIC : :: c_uint = 0x5346414f ;
909- pub const AUTOFS_SUPER_MAGIC : :: c_uint = 0x0187 ;
910857 pub const BINDERFS_SUPER_MAGIC : :: c_uint = 0x6c6f6f70 ;
911- pub const BPF_FS_MAGIC : :: c_uint = 0xcafe4a11 ;
912- pub const BTRFS_SUPER_MAGIC : :: c_uint = 0x9123683e ;
913- pub const CGROUP2_SUPER_MAGIC : :: c_uint = 0x63677270 ;
914- pub const CGROUP_SUPER_MAGIC : :: c_uint = 0x27e0eb ;
915- pub const CODA_SUPER_MAGIC : :: c_uint = 0x73757245 ;
916- pub const CRAMFS_MAGIC : :: c_uint = 0x28cd3d45 ;
917- pub const DEBUGFS_MAGIC : :: c_uint = 0x64626720 ;
918- pub const DEVPTS_SUPER_MAGIC : :: c_uint = 0x1cd1 ;
919- pub const ECRYPTFS_SUPER_MAGIC : :: c_uint = 0xf15f ;
920- pub const EFS_SUPER_MAGIC : :: c_uint = 0x00414a53 ;
921- pub const EXT2_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
922- pub const EXT3_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
923- pub const EXT4_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
924- pub const F2FS_SUPER_MAGIC : :: c_uint = 0xf2f52010 ;
925- pub const FUSE_SUPER_MAGIC : :: c_uint = 0x65735546 ;
926- pub const FUTEXFS_SUPER_MAGIC : :: c_uint = 0xbad1dea ;
927- pub const HOSTFS_SUPER_MAGIC : :: c_uint = 0x00c0ffee ;
928- pub const HPFS_SUPER_MAGIC : :: c_uint = 0xf995e849 ;
929- pub const HUGETLBFS_MAGIC : :: c_uint = 0x958458f6 ;
930- pub const ISOFS_SUPER_MAGIC : :: c_uint = 0x00009660 ;
931- pub const JFFS2_SUPER_MAGIC : :: c_uint = 0x000072b6 ;
932- pub const MINIX2_SUPER_MAGIC2 : :: c_uint = 0x00002478 ;
933- pub const MINIX2_SUPER_MAGIC : :: c_uint = 0x00002468 ;
934- pub const MINIX3_SUPER_MAGIC : :: c_uint = 0x4d5a ;
935- pub const MINIX_SUPER_MAGIC2 : :: c_uint = 0x0000138f ;
936- pub const MINIX_SUPER_MAGIC : :: c_uint = 0x0000137f ;
937- pub const MSDOS_SUPER_MAGIC : :: c_uint = 0x00004d44 ;
938- pub const NCP_SUPER_MAGIC : :: c_uint = 0x0000564c ;
939- pub const NFS_SUPER_MAGIC : :: c_uint = 0x00006969 ;
940- pub const NILFS_SUPER_MAGIC : :: c_uint = 0x3434 ;
941- pub const OCFS2_SUPER_MAGIC : :: c_uint = 0x7461636f ;
942- pub const OPENPROM_SUPER_MAGIC : :: c_uint = 0x00009fa1 ;
943- pub const OVERLAYFS_SUPER_MAGIC : :: c_uint = 0x794c7630 ;
944- pub const PROC_SUPER_MAGIC : :: c_uint = 0x00009fa0 ;
945- pub const QNX4_SUPER_MAGIC : :: c_uint = 0x0000002f ;
946- pub const QNX6_SUPER_MAGIC : :: c_uint = 0x68191122 ;
947- pub const RDTGROUP_SUPER_MAGIC : :: c_uint = 0x7655821 ;
948- pub const REISERFS_SUPER_MAGIC : :: c_uint = 0x52654973 ;
949- pub const SECURITYFS_MAGIC : :: c_uint = 0x73636673 ;
950- pub const SELINUX_MAGIC : :: c_uint = 0xf97cff8c ;
951- pub const SMACK_MAGIC : :: c_uint = 0x43415d53 ;
952- pub const SMB_SUPER_MAGIC : :: c_uint = 0x0000517b ;
953- pub const SYSFS_MAGIC : :: c_uint = 0x62656572 ;
954- pub const TMPFS_MAGIC : :: c_uint = 0x01021994 ;
955- pub const TRACEFS_MAGIC : :: c_uint = 0x74726163 ;
956- pub const UDF_SUPER_MAGIC : :: c_uint = 0x15013346 ;
957- pub const USBDEVICE_SUPER_MAGIC : :: c_uint = 0x00009fa2 ;
958- pub const XENFS_SUPER_MAGIC : :: c_uint = 0xabba1974 ;
959858 pub const XFS_SUPER_MAGIC : :: c_uint = 0x58465342 ;
960859 }
961860}
0 commit comments