Lines Matching full:stat
47 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_y2038_with_utimensat() localVariable
50 TryInto::<u64>::try_into(stat.st_mtime).unwrap() as u64, in test_y2038_with_utimensat()
55 assert_eq!(stat.st_mtime_nsec as u32, m_nsec); in test_y2038_with_utimensat()
57 assert_eq!(stat.st_mtimensec as u32, m_nsec); in test_y2038_with_utimensat()
59 assert!(TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 >= a_sec); in test_y2038_with_utimensat()
63 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat()
64 || stat.st_atime_nsec as u32 >= a_nsec in test_y2038_with_utimensat()
68 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat()
69 || stat.st_atimensec as u32 >= a_nsec in test_y2038_with_utimensat()
74 let stat = fstat(&file).unwrap(); in test_y2038_with_utimensat() localVariable
77 TryInto::<u64>::try_into(stat.st_mtime).unwrap() as u64, in test_y2038_with_utimensat()
82 assert_eq!(stat.st_mtime_nsec as u32, m_nsec); in test_y2038_with_utimensat()
84 assert_eq!(stat.st_mtimensec as u32, m_nsec); in test_y2038_with_utimensat()
86 assert!(TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 >= a_sec); in test_y2038_with_utimensat()
90 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat()
91 || stat.st_atime_nsec as u32 >= a_nsec in test_y2038_with_utimensat()
95 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_utimensat()
96 || stat.st_atimensec as u32 >= a_nsec in test_y2038_with_utimensat()
146 let stat = statat(&dir, "foo", AtFlags::empty()).unwrap(); in test_y2038_with_futimens() localVariable
148 assert_eq!(TryInto::<u64>::try_into(stat.st_mtime).unwrap(), m_sec); in test_y2038_with_futimens()
151 assert_eq!(stat.st_mtime_nsec as u32, m_nsec); in test_y2038_with_futimens()
153 assert_eq!(stat.st_mtimensec as u32, m_nsec); in test_y2038_with_futimens()
155 assert!(TryInto::<u64>::try_into(stat.st_atime).unwrap() >= a_sec); in test_y2038_with_futimens()
159 TryInto::<u64>::try_into(stat.st_atime).unwrap() > a_sec in test_y2038_with_futimens()
160 || stat.st_atime_nsec as u32 >= a_nsec in test_y2038_with_futimens()
164 TryInto::<u64>::try_into(stat.st_atime).unwrap() > a_sec in test_y2038_with_futimens()
165 || stat.st_atimensec as u32 >= a_nsec in test_y2038_with_futimens()
170 let stat = fstat(&file).unwrap(); in test_y2038_with_futimens() localVariable
173 TryInto::<u64>::try_into(stat.st_mtime).unwrap() as u64, in test_y2038_with_futimens()
178 assert_eq!(stat.st_mtime_nsec as u32, m_nsec); in test_y2038_with_futimens()
180 assert_eq!(stat.st_mtimensec as u32, m_nsec); in test_y2038_with_futimens()
182 assert!(TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 >= a_sec); in test_y2038_with_futimens()
186 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_futimens()
187 || stat.st_atime_nsec as u32 >= a_nsec in test_y2038_with_futimens()
191 TryInto::<u64>::try_into(stat.st_atime).unwrap() as u64 > a_sec in test_y2038_with_futimens()
192 || stat.st_atimensec as u32 >= a_nsec in test_y2038_with_futimens()