Skip to content

Commit 51e6614

Browse files
heihersunfishcode
authored andcommitted
loongarch64: Update to bindgen 0.66. (#74)
1 parent 6cdaefd commit 51e6614

File tree

9 files changed

+50
-50
lines changed

9 files changed

+50
-50
lines changed

src/loongarch64/errno.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub const EPERM: u32 = 1;
44
pub const ENOENT: u32 = 2;

src/loongarch64/general.rs

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;
@@ -1127,7 +1127,7 @@ pub const FSCRYPT_MODE_ADIANTUM: u32 = 9;
11271127
pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10;
11281128
pub const FSCRYPT_POLICY_V1: u32 = 0;
11291129
pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8;
1130-
pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0";
1130+
pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0";
11311131
pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8;
11321132
pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64;
11331133
pub const FSCRYPT_POLICY_V2: u32 = 2;
@@ -1156,7 +1156,7 @@ pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4;
11561156
pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5;
11571157
pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6;
11581158
pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9;
1159-
pub const FS_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0";
1159+
pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0";
11601160
pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8;
11611161
pub const FS_MAX_KEY_SIZE: u32 = 64;
11621162
pub const MS_RDONLY: u32 = 1;
@@ -1419,9 +1419,9 @@ pub const QNX4_SUPER_MAGIC: u32 = 47;
14191419
pub const QNX6_SUPER_MAGIC: u32 = 1746473250;
14201420
pub const AFS_FS_MAGIC: u32 = 1799439955;
14211421
pub const REISERFS_SUPER_MAGIC: u32 = 1382369651;
1422-
pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9usize] = b"ReIsErFs\0";
1423-
pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr2Fs\0";
1424-
pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10usize] = b"ReIsEr3Fs\0";
1422+
pub const REISERFS_SUPER_MAGIC_STRING: &[u8; 9] = b"ReIsErFs\0";
1423+
pub const REISER2FS_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr2Fs\0";
1424+
pub const REISER2FS_JR_SUPER_MAGIC_STRING: &[u8; 10] = b"ReIsEr3Fs\0";
14251425
pub const SMB_SUPER_MAGIC: u32 = 20859;
14261426
pub const CIFS_SUPER_MAGIC: u32 = 4283649346;
14271427
pub const SMB2_SUPER_MAGIC: u32 = 4266872130;
@@ -2350,40 +2350,40 @@ pub const P_PGID: u32 = 2;
23502350
pub const P_PIDFD: u32 = 3;
23512351
pub const XATTR_CREATE: u32 = 1;
23522352
pub const XATTR_REPLACE: u32 = 2;
2353-
pub const XATTR_OS2_PREFIX: &[u8; 5usize] = b"os2.\0";
2354-
pub const XATTR_MAC_OSX_PREFIX: &[u8; 5usize] = b"osx.\0";
2355-
pub const XATTR_BTRFS_PREFIX: &[u8; 7usize] = b"btrfs.\0";
2356-
pub const XATTR_HURD_PREFIX: &[u8; 5usize] = b"gnu.\0";
2357-
pub const XATTR_SECURITY_PREFIX: &[u8; 10usize] = b"security.\0";
2358-
pub const XATTR_SYSTEM_PREFIX: &[u8; 8usize] = b"system.\0";
2359-
pub const XATTR_TRUSTED_PREFIX: &[u8; 9usize] = b"trusted.\0";
2360-
pub const XATTR_USER_PREFIX: &[u8; 6usize] = b"user.\0";
2361-
pub const XATTR_EVM_SUFFIX: &[u8; 4usize] = b"evm\0";
2362-
pub const XATTR_NAME_EVM: &[u8; 13usize] = b"security.evm\0";
2363-
pub const XATTR_IMA_SUFFIX: &[u8; 4usize] = b"ima\0";
2364-
pub const XATTR_NAME_IMA: &[u8; 13usize] = b"security.ima\0";
2365-
pub const XATTR_SELINUX_SUFFIX: &[u8; 8usize] = b"selinux\0";
2366-
pub const XATTR_NAME_SELINUX: &[u8; 17usize] = b"security.selinux\0";
2367-
pub const XATTR_SMACK_SUFFIX: &[u8; 8usize] = b"SMACK64\0";
2368-
pub const XATTR_SMACK_IPIN: &[u8; 12usize] = b"SMACK64IPIN\0";
2369-
pub const XATTR_SMACK_IPOUT: &[u8; 13usize] = b"SMACK64IPOUT\0";
2370-
pub const XATTR_SMACK_EXEC: &[u8; 12usize] = b"SMACK64EXEC\0";
2371-
pub const XATTR_SMACK_TRANSMUTE: &[u8; 17usize] = b"SMACK64TRANSMUTE\0";
2372-
pub const XATTR_SMACK_MMAP: &[u8; 12usize] = b"SMACK64MMAP\0";
2373-
pub const XATTR_NAME_SMACK: &[u8; 17usize] = b"security.SMACK64\0";
2374-
pub const XATTR_NAME_SMACKIPIN: &[u8; 21usize] = b"security.SMACK64IPIN\0";
2375-
pub const XATTR_NAME_SMACKIPOUT: &[u8; 22usize] = b"security.SMACK64IPOUT\0";
2376-
pub const XATTR_NAME_SMACKEXEC: &[u8; 21usize] = b"security.SMACK64EXEC\0";
2377-
pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26usize] = b"security.SMACK64TRANSMUTE\0";
2378-
pub const XATTR_NAME_SMACKMMAP: &[u8; 21usize] = b"security.SMACK64MMAP\0";
2379-
pub const XATTR_APPARMOR_SUFFIX: &[u8; 9usize] = b"apparmor\0";
2380-
pub const XATTR_NAME_APPARMOR: &[u8; 18usize] = b"security.apparmor\0";
2381-
pub const XATTR_CAPS_SUFFIX: &[u8; 11usize] = b"capability\0";
2382-
pub const XATTR_NAME_CAPS: &[u8; 20usize] = b"security.capability\0";
2383-
pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17usize] = b"posix_acl_access\0";
2384-
pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24usize] = b"system.posix_acl_access\0";
2385-
pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18usize] = b"posix_acl_default\0";
2386-
pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25usize] = b"system.posix_acl_default\0";
2353+
pub const XATTR_OS2_PREFIX: &[u8; 5] = b"os2.\0";
2354+
pub const XATTR_MAC_OSX_PREFIX: &[u8; 5] = b"osx.\0";
2355+
pub const XATTR_BTRFS_PREFIX: &[u8; 7] = b"btrfs.\0";
2356+
pub const XATTR_HURD_PREFIX: &[u8; 5] = b"gnu.\0";
2357+
pub const XATTR_SECURITY_PREFIX: &[u8; 10] = b"security.\0";
2358+
pub const XATTR_SYSTEM_PREFIX: &[u8; 8] = b"system.\0";
2359+
pub const XATTR_TRUSTED_PREFIX: &[u8; 9] = b"trusted.\0";
2360+
pub const XATTR_USER_PREFIX: &[u8; 6] = b"user.\0";
2361+
pub const XATTR_EVM_SUFFIX: &[u8; 4] = b"evm\0";
2362+
pub const XATTR_NAME_EVM: &[u8; 13] = b"security.evm\0";
2363+
pub const XATTR_IMA_SUFFIX: &[u8; 4] = b"ima\0";
2364+
pub const XATTR_NAME_IMA: &[u8; 13] = b"security.ima\0";
2365+
pub const XATTR_SELINUX_SUFFIX: &[u8; 8] = b"selinux\0";
2366+
pub const XATTR_NAME_SELINUX: &[u8; 17] = b"security.selinux\0";
2367+
pub const XATTR_SMACK_SUFFIX: &[u8; 8] = b"SMACK64\0";
2368+
pub const XATTR_SMACK_IPIN: &[u8; 12] = b"SMACK64IPIN\0";
2369+
pub const XATTR_SMACK_IPOUT: &[u8; 13] = b"SMACK64IPOUT\0";
2370+
pub const XATTR_SMACK_EXEC: &[u8; 12] = b"SMACK64EXEC\0";
2371+
pub const XATTR_SMACK_TRANSMUTE: &[u8; 17] = b"SMACK64TRANSMUTE\0";
2372+
pub const XATTR_SMACK_MMAP: &[u8; 12] = b"SMACK64MMAP\0";
2373+
pub const XATTR_NAME_SMACK: &[u8; 17] = b"security.SMACK64\0";
2374+
pub const XATTR_NAME_SMACKIPIN: &[u8; 21] = b"security.SMACK64IPIN\0";
2375+
pub const XATTR_NAME_SMACKIPOUT: &[u8; 22] = b"security.SMACK64IPOUT\0";
2376+
pub const XATTR_NAME_SMACKEXEC: &[u8; 21] = b"security.SMACK64EXEC\0";
2377+
pub const XATTR_NAME_SMACKTRANSMUTE: &[u8; 26] = b"security.SMACK64TRANSMUTE\0";
2378+
pub const XATTR_NAME_SMACKMMAP: &[u8; 21] = b"security.SMACK64MMAP\0";
2379+
pub const XATTR_APPARMOR_SUFFIX: &[u8; 9] = b"apparmor\0";
2380+
pub const XATTR_NAME_APPARMOR: &[u8; 18] = b"security.apparmor\0";
2381+
pub const XATTR_CAPS_SUFFIX: &[u8; 11] = b"capability\0";
2382+
pub const XATTR_NAME_CAPS: &[u8; 20] = b"security.capability\0";
2383+
pub const XATTR_POSIX_ACL_ACCESS: &[u8; 17] = b"posix_acl_access\0";
2384+
pub const XATTR_NAME_POSIX_ACL_ACCESS: &[u8; 24] = b"system.posix_acl_access\0";
2385+
pub const XATTR_POSIX_ACL_DEFAULT: &[u8; 18] = b"posix_acl_default\0";
2386+
pub const XATTR_NAME_POSIX_ACL_DEFAULT: &[u8; 25] = b"system.posix_acl_default\0";
23872387
pub const MFD_CLOEXEC: u32 = 1;
23882388
pub const MFD_ALLOW_SEALING: u32 = 2;
23892389
pub const MFD_HUGETLB: u32 = 4;

src/loongarch64/if_ether.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/loongarch64/io_uring.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;
@@ -515,7 +515,7 @@ pub const FSCRYPT_MODE_ADIANTUM: u32 = 9;
515515
pub const FSCRYPT_MODE_AES_256_HCTR2: u32 = 10;
516516
pub const FSCRYPT_POLICY_V1: u32 = 0;
517517
pub const FSCRYPT_KEY_DESCRIPTOR_SIZE: u32 = 8;
518-
pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0";
518+
pub const FSCRYPT_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0";
519519
pub const FSCRYPT_KEY_DESC_PREFIX_SIZE: u32 = 8;
520520
pub const FSCRYPT_MAX_KEY_SIZE: u32 = 64;
521521
pub const FSCRYPT_POLICY_V2: u32 = 2;
@@ -544,7 +544,7 @@ pub const FS_ENCRYPTION_MODE_AES_256_CTS: u32 = 4;
544544
pub const FS_ENCRYPTION_MODE_AES_128_CBC: u32 = 5;
545545
pub const FS_ENCRYPTION_MODE_AES_128_CTS: u32 = 6;
546546
pub const FS_ENCRYPTION_MODE_ADIANTUM: u32 = 9;
547-
pub const FS_KEY_DESC_PREFIX: &[u8; 9usize] = b"fscrypt:\0";
547+
pub const FS_KEY_DESC_PREFIX: &[u8; 9] = b"fscrypt:\0";
548548
pub const FS_KEY_DESC_PREFIX_SIZE: u32 = 8;
549549
pub const FS_MAX_KEY_SIZE: u32 = 64;
550550
pub const MS_RDONLY: u32 = 1;

src/loongarch64/ioctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub const FIONREAD: u32 = 21531;
44
pub const FIONBIO: u32 = 21537;

src/loongarch64/net.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/loongarch64/netlink.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
44
pub type __s8 = crate::ctypes::c_schar;

src/loongarch64/prctl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

src/loongarch64/system.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* automatically generated by rust-bindgen 0.65.1 */
1+
/* automatically generated by rust-bindgen 0.66.1 */
22

33
pub type __s8 = crate::ctypes::c_schar;
44
pub type __u8 = crate::ctypes::c_uchar;

0 commit comments

Comments
 (0)