@@ -1050,7 +1050,7 @@ pub struct io_uring_sqe {
10501050 pub user_data : io_uring_user_data ,
10511051 pub buf : buf_union ,
10521052 pub personality : u16 ,
1053- pub splice_fd_in_or_file_index : splice_fd_in_or_file_index_union ,
1053+ pub splice_fd_in_or_file_index_or_addr_len : splice_fd_in_or_file_index_or_addr_len_union ,
10541054 pub addr3_or_cmd : addr3_or_cmd_union ,
10551055}
10561056
@@ -1157,11 +1157,10 @@ pub union buf_union {
11571157 pub buf_group : u16 ,
11581158}
11591159
1160- // TODO: Rename this to include `addr_len` when we have a semver bump?
11611160#[ allow( missing_docs) ]
11621161#[ repr( C ) ]
11631162#[ derive( Copy , Clone ) ]
1164- pub union splice_fd_in_or_file_index_union {
1163+ pub union splice_fd_in_or_file_index_or_addr_len_union {
11651164 pub splice_fd_in : i32 ,
11661165 pub file_index : u32 ,
11671166 pub addr_len : addr_len_struct ,
@@ -1496,10 +1495,10 @@ impl Default for buf_union {
14961495 }
14971496}
14981497
1499- impl Default for splice_fd_in_or_file_index_union {
1498+ impl Default for splice_fd_in_or_file_index_or_addr_len_union {
15001499 #[ inline]
15011500 fn default ( ) -> Self {
1502- default_union ! ( splice_fd_in_or_file_index_union , splice_fd_in)
1501+ default_union ! ( splice_fd_in_or_file_index_or_addr_len_union , splice_fd_in)
15031502 }
15041503}
15051504
@@ -1527,7 +1526,10 @@ mod tests {
15271526 check_renamed_type ! ( addr3_or_cmd_union, io_uring_sqe__bindgen_ty_6) ;
15281527 check_renamed_type ! ( op_flags_union, io_uring_sqe__bindgen_ty_3) ;
15291528 check_renamed_type ! ( buf_union, io_uring_sqe__bindgen_ty_4) ;
1530- check_renamed_type ! ( splice_fd_in_or_file_index_union, io_uring_sqe__bindgen_ty_5) ;
1529+ check_renamed_type ! (
1530+ splice_fd_in_or_file_index_or_addr_len_union,
1531+ io_uring_sqe__bindgen_ty_5
1532+ ) ;
15311533 check_renamed_type ! ( addr_len_struct, io_uring_sqe__bindgen_ty_5__bindgen_ty_1) ;
15321534 check_renamed_type ! (
15331535 register_or_sqe_op_or_sqe_flags_union,
@@ -1549,7 +1551,11 @@ mod tests {
15491551 check_struct_field ! ( io_uring_sqe, user_data) ;
15501552 check_struct_renamed_field ! ( io_uring_sqe, buf, __bindgen_anon_4) ;
15511553 check_struct_field ! ( io_uring_sqe, personality) ;
1552- check_struct_renamed_field ! ( io_uring_sqe, splice_fd_in_or_file_index, __bindgen_anon_5) ;
1554+ check_struct_renamed_field ! (
1555+ io_uring_sqe,
1556+ splice_fd_in_or_file_index_or_addr_len,
1557+ __bindgen_anon_5
1558+ ) ;
15531559 check_struct_renamed_field ! ( io_uring_sqe, addr3_or_cmd, __bindgen_anon_6) ;
15541560
15551561 check_type ! ( io_uring_restriction) ;
0 commit comments