@@ -1799,6 +1799,34 @@ pub const BLKIOOPT: ::c_int = 0x1279;
1799
1799
pub const BLKSSZGET : :: c_int = 0x1268 ;
1800
1800
pub const BLKPBSZGET : :: c_int = 0x127B ;
1801
1801
1802
+ cfg_if ! {
1803
+ // Those type are constructed using the _IOC macro
1804
+ // DD-SS_SSSS_SSSS_SSSS-TTTT_TTTT-NNNN_NNNN
1805
+ // where D stands for direction (either None (00), Read (01) or Write (11))
1806
+ // where S stands for size (int, long, struct...)
1807
+ // where T stands for type ('f','v','X'...)
1808
+ // where N stands for NR (NumbeR)
1809
+ if #[ cfg( target_arch = "x86" ) ] {
1810
+ pub const FS_IOC_GETFLAGS : :: Ioctl = 0x80046601 ;
1811
+ pub const FS_IOC_SETFLAGS : :: Ioctl = 0x40046602 ;
1812
+ pub const FS_IOC_GETVERSION : :: Ioctl = 0x80047601 ;
1813
+ pub const FS_IOC_SETVERSION : :: Ioctl = 0x40047602 ;
1814
+ pub const FS_IOC32_GETFLAGS : :: Ioctl = 0x80046601 ;
1815
+ pub const FS_IOC32_SETFLAGS : :: Ioctl = 0x40046602 ;
1816
+ pub const FS_IOC32_GETVERSION : :: Ioctl = 0x80047601 ;
1817
+ pub const FS_IOC32_SETVERSION : :: Ioctl = 0x40047602 ;
1818
+ } else if #[ cfg( any( target_arch = "x86_64" , target_arch = "riscv64" , target_arch = "aarch64" ) ) ] {
1819
+ pub const FS_IOC_GETFLAGS : :: Ioctl = 0x80086601 ;
1820
+ pub const FS_IOC_SETFLAGS : :: Ioctl = 0x40086602 ;
1821
+ pub const FS_IOC_GETVERSION : :: Ioctl = 0x80087601 ;
1822
+ pub const FS_IOC_SETVERSION : :: Ioctl = 0x40087602 ;
1823
+ pub const FS_IOC32_GETFLAGS : :: Ioctl = 0x80046601 ;
1824
+ pub const FS_IOC32_SETFLAGS : :: Ioctl = 0x40046602 ;
1825
+ pub const FS_IOC32_GETVERSION : :: Ioctl = 0x80047601 ;
1826
+ pub const FS_IOC32_SETVERSION : :: Ioctl = 0x40047602 ;
1827
+ }
1828
+ }
1829
+
1802
1830
pub const EAI_AGAIN : :: c_int = 2 ;
1803
1831
pub const EAI_BADFLAGS : :: c_int = 3 ;
1804
1832
pub const EAI_FAIL : :: c_int = 4 ;
0 commit comments