File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ pub mod pair_tgt_refcount;
6464pub mod pair_tgt_unsafe;
6565#[ path = r#"../socket/tgt_unsafe.rs"# ]
6666pub mod socket_tgt_unsafe;
67+ #[ path = r#"../stat/tgt_unsafe.rs"# ]
68+ pub mod stat_tgt_unsafe;
6769#[ path = r#"../stdio/tgt_refcount.rs"# ]
6870pub mod stdio_tgt_refcount;
6971#[ path = r#"../stdio/tgt_unsafe.rs"# ]
Original file line number Diff line number Diff line change @@ -135,11 +135,11 @@ pub unsafe fn test_mkdir_2() {
135135 let mut st: stat = std:: mem:: zeroed :: < stat > ( ) ;
136136 assert ! ( ( ( ( ( libc:: stat( path as * const i8 , ( & mut st as * mut stat) ) ) == ( 0 ) ) as i32 ) != 0 ) ) ;
137137 assert ! ( ( ( ( ( ( st. st_mode) & ( 61440_u32 ) ) == ( ( 16384 ) as u32 ) ) as i32 ) != 0 ) ) ;
138- ( * libc :: __errno_location ( ) ) = 0 ;
138+ ( * libcc2rs :: cpp2rust_errno ( ) ) = 0 ;
139139 assert ! ( ( ( ( ( libc:: mkdir( path as * const i8 , 493_u32 ) ) == ( -1_i32 ) ) as i32 ) != 0 ) ) ;
140- assert ! ( ( ( ( ( * libc :: __errno_location ( ) ) == ( 17 ) ) as i32 ) != 0 ) ) ;
140+ assert ! ( ( ( ( ( * libcc2rs :: cpp2rust_errno ( ) ) == ( 17 ) ) as i32 ) != 0 ) ) ;
141141 assert ! ( ( ( ( ( libc:: rmdir( path as * const i8 ) ) == ( 0 ) ) as i32 ) != 0 ) ) ;
142- ( * libc :: __errno_location ( ) ) = 0 ;
142+ ( * libcc2rs :: cpp2rust_errno ( ) ) = 0 ;
143143}
144144pub fn main ( ) {
145145 unsafe {
You can’t perform that action at this time.
0 commit comments