Closed
Description
Following code, when compiled and run on arm-linux-gnueabihf
constantly prints 0x800001000
no matter of optimizations.
use std::io::fs::PathExtensions;
use std::io::{File};
fn main() {
let path = Path::new("foo.txt");
{
let mut file = File::create(&path);
file.write(b"foobar").ok().expect("err writing");
}
println!("{:#x}", path.stat().unwrap().size);
}
Same result obtained when using various rustc versions from 2014-11-21 to 2014-12-15. My guess would be stat struct differing between architectures?