@@ -3161,6 +3161,121 @@ pub const CAN_RAW_RECV_OWN_MSGS: ::c_int = 4;
3161
3161
pub const CAN_RAW_FD_FRAMES : :: c_int = 5 ;
3162
3162
pub const CAN_RAW_JOIN_FILTERS : :: c_int = 6 ;
3163
3163
3164
+ // linux/magic.h
3165
+ cfg_if ! {
3166
+ if #[ cfg( not( target_arch = "s390x" ) ) ] {
3167
+ pub const ADFS_SUPER_MAGIC : :: c_long = 0x0000adf5 ;
3168
+ pub const AFFS_SUPER_MAGIC : :: c_long = 0x0000adff ;
3169
+ pub const AFS_SUPER_MAGIC : :: c_long = 0x5346414f ;
3170
+ pub const AUTOFS_SUPER_MAGIC : :: c_long = 0x0187 ;
3171
+ pub const BINDERFS_SUPER_MAGIC : :: c_long = 0x6c6f6f70 ;
3172
+ pub const BPF_FS_MAGIC : :: c_long = 0xcafe4a11 ;
3173
+ pub const BTRFS_SUPER_MAGIC : :: c_long = 0x9123683e ;
3174
+ pub const CGROUP2_SUPER_MAGIC : :: c_long = 0x63677270 ;
3175
+ pub const CGROUP_SUPER_MAGIC : :: c_long = 0x27e0eb ;
3176
+ pub const CODA_SUPER_MAGIC : :: c_long = 0x73757245 ;
3177
+ pub const CRAMFS_MAGIC : :: c_long = 0x28cd3d45 ;
3178
+ pub const DEBUGFS_MAGIC : :: c_long = 0x64626720 ;
3179
+ pub const DEVPTS_SUPER_MAGIC : :: c_long = 0x1cd1 ;
3180
+ pub const ECRYPTFS_SUPER_MAGIC : :: c_long = 0xf15f ;
3181
+ pub const EFS_SUPER_MAGIC : :: c_long = 0x00414a53 ;
3182
+ pub const EXT2_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
3183
+ pub const EXT3_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
3184
+ pub const EXT4_SUPER_MAGIC : :: c_long = 0x0000ef53 ;
3185
+ pub const F2FS_SUPER_MAGIC : :: c_long = 0xf2f52010 ;
3186
+ pub const FUSE_SUPER_MAGIC : :: c_long = 0x65735546 ;
3187
+ pub const FUTEXFS_SUPER_MAGIC : :: c_long = 0xbad1dea ;
3188
+ pub const HOSTFS_SUPER_MAGIC : :: c_long = 0x00c0ffee ;
3189
+ pub const HPFS_SUPER_MAGIC : :: c_long = 0xf995e849 ;
3190
+ pub const HUGETLBFS_MAGIC : :: c_long = 0x958458f6 ;
3191
+ pub const ISOFS_SUPER_MAGIC : :: c_long = 0x00009660 ;
3192
+ pub const JFFS2_SUPER_MAGIC : :: c_long = 0x000072b6 ;
3193
+ pub const MINIX2_SUPER_MAGIC2 : :: c_long = 0x00002478 ;
3194
+ pub const MINIX2_SUPER_MAGIC : :: c_long = 0x00002468 ;
3195
+ pub const MINIX3_SUPER_MAGIC : :: c_long = 0x4d5a ;
3196
+ pub const MINIX_SUPER_MAGIC2 : :: c_long = 0x0000138f ;
3197
+ pub const MINIX_SUPER_MAGIC : :: c_long = 0x0000137f ;
3198
+ pub const MSDOS_SUPER_MAGIC : :: c_long = 0x00004d44 ;
3199
+ pub const NCP_SUPER_MAGIC : :: c_long = 0x0000564c ;
3200
+ pub const NFS_SUPER_MAGIC : :: c_long = 0x00006969 ;
3201
+ pub const NILFS_SUPER_MAGIC : :: c_long = 0x3434 ;
3202
+ pub const OCFS2_SUPER_MAGIC : :: c_long = 0x7461636f ;
3203
+ pub const OPENPROM_SUPER_MAGIC : :: c_long = 0x00009fa1 ;
3204
+ pub const OVERLAYFS_SUPER_MAGIC : :: c_long = 0x794c7630 ;
3205
+ pub const PROC_SUPER_MAGIC : :: c_long = 0x00009fa0 ;
3206
+ pub const QNX4_SUPER_MAGIC : :: c_long = 0x0000002f ;
3207
+ pub const QNX6_SUPER_MAGIC : :: c_long = 0x68191122 ;
3208
+ pub const RDTGROUP_SUPER_MAGIC : :: c_long = 0x7655821 ;
3209
+ pub const REISERFS_SUPER_MAGIC : :: c_long = 0x52654973 ;
3210
+ pub const SECURITYFS_MAGIC : :: c_long = 0x73636673 ;
3211
+ pub const SELINUX_MAGIC : :: c_long = 0xf97cff8c ;
3212
+ pub const SMACK_MAGIC : :: c_long = 0x43415d53 ;
3213
+ pub const SMB_SUPER_MAGIC : :: c_long = 0x0000517b ;
3214
+ pub const SYSFS_MAGIC : :: c_long = 0x62656572 ;
3215
+ pub const TMPFS_MAGIC : :: c_long = 0x01021994 ;
3216
+ pub const TRACEFS_MAGIC : :: c_long = 0x74726163 ;
3217
+ pub const UDF_SUPER_MAGIC : :: c_long = 0x15013346 ;
3218
+ pub const USBDEVICE_SUPER_MAGIC : :: c_long = 0x00009fa2 ;
3219
+ pub const XENFS_SUPER_MAGIC : :: c_long = 0xabba1974 ;
3220
+ pub const XFS_SUPER_MAGIC : :: c_long = 0x58465342 ;
3221
+ } else if #[ cfg( target_arch = "s390x" ) ] {
3222
+ pub const ADFS_SUPER_MAGIC : :: c_uint = 0x0000adf5 ;
3223
+ pub const AFFS_SUPER_MAGIC : :: c_uint = 0x0000adff ;
3224
+ pub const AFS_SUPER_MAGIC : :: c_uint = 0x5346414f ;
3225
+ pub const AUTOFS_SUPER_MAGIC : :: c_uint = 0x0187 ;
3226
+ pub const BINDERFS_SUPER_MAGIC : :: c_uint = 0x6c6f6f70 ;
3227
+ pub const BPF_FS_MAGIC : :: c_uint = 0xcafe4a11 ;
3228
+ pub const BTRFS_SUPER_MAGIC : :: c_uint = 0x9123683e ;
3229
+ pub const CGROUP2_SUPER_MAGIC : :: c_uint = 0x63677270 ;
3230
+ pub const CGROUP_SUPER_MAGIC : :: c_uint = 0x27e0eb ;
3231
+ pub const CODA_SUPER_MAGIC : :: c_uint = 0x73757245 ;
3232
+ pub const CRAMFS_MAGIC : :: c_uint = 0x28cd3d45 ;
3233
+ pub const DEBUGFS_MAGIC : :: c_uint = 0x64626720 ;
3234
+ pub const DEVPTS_SUPER_MAGIC : :: c_uint = 0x1cd1 ;
3235
+ pub const ECRYPTFS_SUPER_MAGIC : :: c_uint = 0xf15f ;
3236
+ pub const EFS_SUPER_MAGIC : :: c_uint = 0x00414a53 ;
3237
+ pub const EXT2_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
3238
+ pub const EXT3_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
3239
+ pub const EXT4_SUPER_MAGIC : :: c_uint = 0x0000ef53 ;
3240
+ pub const F2FS_SUPER_MAGIC : :: c_uint = 0xf2f52010 ;
3241
+ pub const FUSE_SUPER_MAGIC : :: c_uint = 0x65735546 ;
3242
+ pub const FUTEXFS_SUPER_MAGIC : :: c_uint = 0xbad1dea ;
3243
+ pub const HOSTFS_SUPER_MAGIC : :: c_uint = 0x00c0ffee ;
3244
+ pub const HPFS_SUPER_MAGIC : :: c_uint = 0xf995e849 ;
3245
+ pub const HUGETLBFS_MAGIC : :: c_uint = 0x958458f6 ;
3246
+ pub const ISOFS_SUPER_MAGIC : :: c_uint = 0x00009660 ;
3247
+ pub const JFFS2_SUPER_MAGIC : :: c_uint = 0x000072b6 ;
3248
+ pub const MINIX2_SUPER_MAGIC2 : :: c_uint = 0x00002478 ;
3249
+ pub const MINIX2_SUPER_MAGIC : :: c_uint = 0x00002468 ;
3250
+ pub const MINIX3_SUPER_MAGIC : :: c_uint = 0x4d5a ;
3251
+ pub const MINIX_SUPER_MAGIC2 : :: c_uint = 0x0000138f ;
3252
+ pub const MINIX_SUPER_MAGIC : :: c_uint = 0x0000137f ;
3253
+ pub const MSDOS_SUPER_MAGIC : :: c_uint = 0x00004d44 ;
3254
+ pub const NCP_SUPER_MAGIC : :: c_uint = 0x0000564c ;
3255
+ pub const NFS_SUPER_MAGIC : :: c_uint = 0x00006969 ;
3256
+ pub const NILFS_SUPER_MAGIC : :: c_uint = 0x3434 ;
3257
+ pub const OCFS2_SUPER_MAGIC : :: c_uint = 0x7461636f ;
3258
+ pub const OPENPROM_SUPER_MAGIC : :: c_uint = 0x00009fa1 ;
3259
+ pub const OVERLAYFS_SUPER_MAGIC : :: c_uint = 0x794c7630 ;
3260
+ pub const PROC_SUPER_MAGIC : :: c_uint = 0x00009fa0 ;
3261
+ pub const QNX4_SUPER_MAGIC : :: c_uint = 0x0000002f ;
3262
+ pub const QNX6_SUPER_MAGIC : :: c_uint = 0x68191122 ;
3263
+ pub const RDTGROUP_SUPER_MAGIC : :: c_uint = 0x7655821 ;
3264
+ pub const REISERFS_SUPER_MAGIC : :: c_uint = 0x52654973 ;
3265
+ pub const SECURITYFS_MAGIC : :: c_uint = 0x73636673 ;
3266
+ pub const SELINUX_MAGIC : :: c_uint = 0xf97cff8c ;
3267
+ pub const SMACK_MAGIC : :: c_uint = 0x43415d53 ;
3268
+ pub const SMB_SUPER_MAGIC : :: c_uint = 0x0000517b ;
3269
+ pub const SYSFS_MAGIC : :: c_uint = 0x62656572 ;
3270
+ pub const TMPFS_MAGIC : :: c_uint = 0x01021994 ;
3271
+ pub const TRACEFS_MAGIC : :: c_uint = 0x74726163 ;
3272
+ pub const UDF_SUPER_MAGIC : :: c_uint = 0x15013346 ;
3273
+ pub const USBDEVICE_SUPER_MAGIC : :: c_uint = 0x00009fa2 ;
3274
+ pub const XENFS_SUPER_MAGIC : :: c_uint = 0xabba1974 ;
3275
+ pub const XFS_SUPER_MAGIC : :: c_uint = 0x58465342 ;
3276
+ }
3277
+ }
3278
+
3164
3279
f ! {
3165
3280
pub fn NLA_ALIGN ( len: :: c_int) -> :: c_int {
3166
3281
return ( ( len) + NLA_ALIGNTO - 1 ) & !( NLA_ALIGNTO - 1 )
0 commit comments