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