Skip to content

Commit f7f0656

Browse files
committed
Consolodate the Linux *_SUPER_MAGIC constants.
Move the Linux `*_SUPER_MAGIC` constants out of android/uclibc/gnu-specific directories and into the common `linux_like` directory so that they're available on all Linux-family platforms, and so that that all Linux-family platforms have all the constants.
1 parent cf597c2 commit f7f0656

File tree

4 files changed

+114
-192
lines changed

4 files changed

+114
-192
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,33 +1269,6 @@ pub const TOSTOP: ::tcflag_t = 0x00000100;
12691269
pub const FLUSHO: ::tcflag_t = 0x00001000;
12701270
pub const EXTPROC: ::tcflag_t = 0o200000;
12711271

1272-
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
1273-
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
1274-
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
1275-
pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
1276-
pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
1277-
pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
1278-
pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
1279-
pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
1280-
pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
1281-
pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
1282-
pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
1283-
pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
1284-
pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
1285-
pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
1286-
pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
1287-
pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
1288-
pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
1289-
pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
1290-
pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
1291-
pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
1292-
pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
1293-
pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
1294-
pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
1295-
pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
1296-
pub const TMPFS_MAGIC: ::c_long = 0x01021994;
1297-
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
1298-
12991272
pub const MAP_HUGETLB: ::c_int = 0x040000;
13001273

13011274
pub const PTRACE_TRACEME: ::c_int = 0;

src/unix/linux_like/linux/gnu/mod.rs

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -846,120 +846,6 @@ pub const O_ACCMODE: ::c_int = 3;
846846
pub const ST_RELATIME: ::c_ulong = 4096;
847847
pub const NI_MAXHOST: ::socklen_t = 1025;
848848

849-
cfg_if! {
850-
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;
855-
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;
904-
pub const XFS_SUPER_MAGIC: ::c_long = 0x58465342;
905-
} 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;
910-
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;
959-
pub const XFS_SUPER_MAGIC: ::c_uint = 0x58465342;
960-
}
961-
}
962-
963849
pub const CPU_SETSIZE: ::c_int = 0x400;
964850

965851
pub const PTRACE_TRACEME: ::c_uint = 0;

src/unix/linux_like/linux/uclibc/mod.rs

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -87,57 +87,6 @@ pub const SIGEV_THREAD_ID: ::c_int = 4;
8787

8888
pub const AF_VSOCK: ::c_int = 40;
8989

90-
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
91-
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
92-
pub const AFS_SUPER_MAGIC: ::c_long = 0x5346414f;
93-
pub const AUTOFS_SUPER_MAGIC: ::c_long = 0x0187;
94-
pub const BINDERFS_SUPER_MAGIC: ::c_long = 0x6c6f6f70;
95-
pub const BPF_FS_MAGIC: ::c_long = 0xcafe4a11;
96-
pub const BTRFS_SUPER_MAGIC: ::c_long = 0x9123683e;
97-
pub const CGROUP2_SUPER_MAGIC: ::c_long = 0x63677270;
98-
pub const CGROUP_SUPER_MAGIC: ::c_long = 0x27e0eb;
99-
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
100-
pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
101-
pub const DEBUGFS_MAGIC: ::c_long = 0x64626720;
102-
pub const DEVPTS_SUPER_MAGIC: ::c_long = 0x1cd1;
103-
pub const ECRYPTFS_SUPER_MAGIC: ::c_long = 0xf15f;
104-
pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
105-
pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
106-
pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
107-
pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
108-
pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010;
109-
pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea;
110-
pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee;
111-
pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
112-
pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
113-
pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
114-
pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
115-
pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
116-
pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
117-
pub const MINIX3_SUPER_MAGIC: ::c_long = 0x4d5a;
118-
pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
119-
pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
120-
pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
121-
pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
122-
pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
123-
pub const NILFS_SUPER_MAGIC: ::c_long = 0x3434;
124-
pub const OCFS2_SUPER_MAGIC: ::c_long = 0x7461636f;
125-
pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
126-
pub const OVERLAYFS_SUPER_MAGIC: ::c_long = 0x794c7630;
127-
pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
128-
pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
129-
pub const QNX6_SUPER_MAGIC: ::c_long = 0x68191122;
130-
pub const RDTGROUP_SUPER_MAGIC: ::c_long = 0x7655821;
131-
pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
132-
pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
133-
pub const SYSFS_MAGIC: ::c_long = 0x62656572;
134-
pub const TMPFS_MAGIC: ::c_long = 0x01021994;
135-
pub const TRACEFS_MAGIC: ::c_long = 0x74726163;
136-
pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346;
137-
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
138-
pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974;
139-
pub const XFS_SUPER_MAGIC: ::c_long = 0x58465342;
140-
14190
pub const PTRACE_TRACEME: ::c_int = 0;
14291
pub const PTRACE_PEEKTEXT: ::c_int = 1;
14392
pub const PTRACE_PEEKDATA: ::c_int = 2;

src/unix/linux_like/mod.rs

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,120 @@ pub const ARPHRD_IEEE802154: u16 = 804;
13651365
pub const ARPHRD_VOID: u16 = 0xFFFF;
13661366
pub const ARPHRD_NONE: u16 = 0xFFFE;
13671367

1368+
cfg_if! {
1369+
if #[cfg(not(target_arch = "s390x"))] {
1370+
pub const ADFS_SUPER_MAGIC: ::c_long = 0x0000adf5;
1371+
pub const AFFS_SUPER_MAGIC: ::c_long = 0x0000adff;
1372+
pub const AFS_SUPER_MAGIC: ::c_long = 0x5346414f;
1373+
pub const AUTOFS_SUPER_MAGIC: ::c_long = 0x0187;
1374+
pub const BINDERFS_SUPER_MAGIC: ::c_long = 0x6c6f6f70;
1375+
pub const BPF_FS_MAGIC: ::c_long = 0xcafe4a11;
1376+
pub const BTRFS_SUPER_MAGIC: ::c_long = 0x9123683e;
1377+
pub const CGROUP2_SUPER_MAGIC: ::c_long = 0x63677270;
1378+
pub const CGROUP_SUPER_MAGIC: ::c_long = 0x27e0eb;
1379+
pub const CODA_SUPER_MAGIC: ::c_long = 0x73757245;
1380+
pub const CRAMFS_MAGIC: ::c_long = 0x28cd3d45;
1381+
pub const DEBUGFS_MAGIC: ::c_long = 0x64626720;
1382+
pub const DEVPTS_SUPER_MAGIC: ::c_long = 0x1cd1;
1383+
pub const ECRYPTFS_SUPER_MAGIC: ::c_long = 0xf15f;
1384+
pub const EFS_SUPER_MAGIC: ::c_long = 0x00414a53;
1385+
pub const EXT2_SUPER_MAGIC: ::c_long = 0x0000ef53;
1386+
pub const EXT3_SUPER_MAGIC: ::c_long = 0x0000ef53;
1387+
pub const EXT4_SUPER_MAGIC: ::c_long = 0x0000ef53;
1388+
pub const F2FS_SUPER_MAGIC: ::c_long = 0xf2f52010;
1389+
pub const FUSE_SUPER_MAGIC: ::c_long = 0x65735546;
1390+
pub const FUTEXFS_SUPER_MAGIC: ::c_long = 0xbad1dea;
1391+
pub const HOSTFS_SUPER_MAGIC: ::c_long = 0x00c0ffee;
1392+
pub const HPFS_SUPER_MAGIC: ::c_long = 0xf995e849;
1393+
pub const HUGETLBFS_MAGIC: ::c_long = 0x958458f6;
1394+
pub const ISOFS_SUPER_MAGIC: ::c_long = 0x00009660;
1395+
pub const JFFS2_SUPER_MAGIC: ::c_long = 0x000072b6;
1396+
pub const MINIX2_SUPER_MAGIC2: ::c_long = 0x00002478;
1397+
pub const MINIX2_SUPER_MAGIC: ::c_long = 0x00002468;
1398+
pub const MINIX3_SUPER_MAGIC: ::c_long = 0x4d5a;
1399+
pub const MINIX_SUPER_MAGIC2: ::c_long = 0x0000138f;
1400+
pub const MINIX_SUPER_MAGIC: ::c_long = 0x0000137f;
1401+
pub const MSDOS_SUPER_MAGIC: ::c_long = 0x00004d44;
1402+
pub const NCP_SUPER_MAGIC: ::c_long = 0x0000564c;
1403+
pub const NFS_SUPER_MAGIC: ::c_long = 0x00006969;
1404+
pub const NILFS_SUPER_MAGIC: ::c_long = 0x3434;
1405+
pub const OCFS2_SUPER_MAGIC: ::c_long = 0x7461636f;
1406+
pub const OPENPROM_SUPER_MAGIC: ::c_long = 0x00009fa1;
1407+
pub const OVERLAYFS_SUPER_MAGIC: ::c_long = 0x794c7630;
1408+
pub const PROC_SUPER_MAGIC: ::c_long = 0x00009fa0;
1409+
pub const QNX4_SUPER_MAGIC: ::c_long = 0x0000002f;
1410+
pub const QNX6_SUPER_MAGIC: ::c_long = 0x68191122;
1411+
pub const RDTGROUP_SUPER_MAGIC: ::c_long = 0x7655821;
1412+
pub const REISERFS_SUPER_MAGIC: ::c_long = 0x52654973;
1413+
pub const SECURITYFS_MAGIC: ::c_long = 0x73636673;
1414+
pub const SELINUX_MAGIC: ::c_long = 0xf97cff8c;
1415+
pub const SMACK_MAGIC: ::c_long = 0x43415d53;
1416+
pub const SMB_SUPER_MAGIC: ::c_long = 0x0000517b;
1417+
pub const SYSFS_MAGIC: ::c_long = 0x62656572;
1418+
pub const TMPFS_MAGIC: ::c_long = 0x01021994;
1419+
pub const TRACEFS_MAGIC: ::c_long = 0x74726163;
1420+
pub const UDF_SUPER_MAGIC: ::c_long = 0x15013346;
1421+
pub const USBDEVICE_SUPER_MAGIC: ::c_long = 0x00009fa2;
1422+
pub const XENFS_SUPER_MAGIC: ::c_long = 0xabba1974;
1423+
pub const XFS_SUPER_MAGIC: ::c_long = 0x58465342;
1424+
} else if #[cfg(target_arch = "s390x")] {
1425+
pub const ADFS_SUPER_MAGIC: ::c_uint = 0x0000adf5;
1426+
pub const AFFS_SUPER_MAGIC: ::c_uint = 0x0000adff;
1427+
pub const AFS_SUPER_MAGIC: ::c_uint = 0x5346414f;
1428+
pub const AUTOFS_SUPER_MAGIC: ::c_uint = 0x0187;
1429+
pub const BINDERFS_SUPER_MAGIC: ::c_uint = 0x6c6f6f70;
1430+
pub const BPF_FS_MAGIC: ::c_uint = 0xcafe4a11;
1431+
pub const BTRFS_SUPER_MAGIC: ::c_uint = 0x9123683e;
1432+
pub const CGROUP2_SUPER_MAGIC: ::c_uint = 0x63677270;
1433+
pub const CGROUP_SUPER_MAGIC: ::c_uint = 0x27e0eb;
1434+
pub const CODA_SUPER_MAGIC: ::c_uint = 0x73757245;
1435+
pub const CRAMFS_MAGIC: ::c_uint = 0x28cd3d45;
1436+
pub const DEBUGFS_MAGIC: ::c_uint = 0x64626720;
1437+
pub const DEVPTS_SUPER_MAGIC: ::c_uint = 0x1cd1;
1438+
pub const ECRYPTFS_SUPER_MAGIC: ::c_uint = 0xf15f;
1439+
pub const EFS_SUPER_MAGIC: ::c_uint = 0x00414a53;
1440+
pub const EXT2_SUPER_MAGIC: ::c_uint = 0x0000ef53;
1441+
pub const EXT3_SUPER_MAGIC: ::c_uint = 0x0000ef53;
1442+
pub const EXT4_SUPER_MAGIC: ::c_uint = 0x0000ef53;
1443+
pub const F2FS_SUPER_MAGIC: ::c_uint = 0xf2f52010;
1444+
pub const FUSE_SUPER_MAGIC: ::c_uint = 0x65735546;
1445+
pub const FUTEXFS_SUPER_MAGIC: ::c_uint = 0xbad1dea;
1446+
pub const HOSTFS_SUPER_MAGIC: ::c_uint = 0x00c0ffee;
1447+
pub const HPFS_SUPER_MAGIC: ::c_uint = 0xf995e849;
1448+
pub const HUGETLBFS_MAGIC: ::c_uint = 0x958458f6;
1449+
pub const ISOFS_SUPER_MAGIC: ::c_uint = 0x00009660;
1450+
pub const JFFS2_SUPER_MAGIC: ::c_uint = 0x000072b6;
1451+
pub const MINIX2_SUPER_MAGIC2: ::c_uint = 0x00002478;
1452+
pub const MINIX2_SUPER_MAGIC: ::c_uint = 0x00002468;
1453+
pub const MINIX3_SUPER_MAGIC: ::c_uint = 0x4d5a;
1454+
pub const MINIX_SUPER_MAGIC2: ::c_uint = 0x0000138f;
1455+
pub const MINIX_SUPER_MAGIC: ::c_uint = 0x0000137f;
1456+
pub const MSDOS_SUPER_MAGIC: ::c_uint = 0x00004d44;
1457+
pub const NCP_SUPER_MAGIC: ::c_uint = 0x0000564c;
1458+
pub const NFS_SUPER_MAGIC: ::c_uint = 0x00006969;
1459+
pub const NILFS_SUPER_MAGIC: ::c_uint = 0x3434;
1460+
pub const OCFS2_SUPER_MAGIC: ::c_uint = 0x7461636f;
1461+
pub const OPENPROM_SUPER_MAGIC: ::c_uint = 0x00009fa1;
1462+
pub const OVERLAYFS_SUPER_MAGIC: ::c_uint = 0x794c7630;
1463+
pub const PROC_SUPER_MAGIC: ::c_uint = 0x00009fa0;
1464+
pub const QNX4_SUPER_MAGIC: ::c_uint = 0x0000002f;
1465+
pub const QNX6_SUPER_MAGIC: ::c_uint = 0x68191122;
1466+
pub const RDTGROUP_SUPER_MAGIC: ::c_uint = 0x7655821;
1467+
pub const REISERFS_SUPER_MAGIC: ::c_uint = 0x52654973;
1468+
pub const SECURITYFS_MAGIC: ::c_uint = 0x73636673;
1469+
pub const SELINUX_MAGIC: ::c_uint = 0xf97cff8c;
1470+
pub const SMACK_MAGIC: ::c_uint = 0x43415d53;
1471+
pub const SMB_SUPER_MAGIC: ::c_uint = 0x0000517b;
1472+
pub const SYSFS_MAGIC: ::c_uint = 0x62656572;
1473+
pub const TMPFS_MAGIC: ::c_uint = 0x01021994;
1474+
pub const TRACEFS_MAGIC: ::c_uint = 0x74726163;
1475+
pub const UDF_SUPER_MAGIC: ::c_uint = 0x15013346;
1476+
pub const USBDEVICE_SUPER_MAGIC: ::c_uint = 0x00009fa2;
1477+
pub const XENFS_SUPER_MAGIC: ::c_uint = 0xabba1974;
1478+
pub const XFS_SUPER_MAGIC: ::c_uint = 0x58465342;
1479+
}
1480+
}
1481+
13681482
const_fn! {
13691483
{const} fn CMSG_ALIGN(len: usize) -> usize {
13701484
len + ::mem::size_of::<usize>() - 1 & !(::mem::size_of::<usize>() - 1)

0 commit comments

Comments
 (0)