[erlang-questions] file:read_file_info giving wrong size on a MIPS32 CPU

Petr Gotthard petr.gotthard@REDACTED
Sat Feb 11 00:21:42 CET 2017


Hello,
we built Erlang for a MIPS32 CPU. Everything looks OK, however file:read_file_info returns incorrect file sizes.
 
Where linux stat returns size of 6522 (0x197A), the file:read_file_info returns size of 28011776711034 (0x197A0000197A). The upper 4 bytes should be 0, however they are equal to the lower 4 bytes.
 
Did anyone ever experienced something like this? It is a 32b CPU with SIZEOF_OFF_T=8.
 
 
Kind Regards,
Petr



More information about the erlang-questions mailing list