[ARM] set errno in ftruncate and truncate stubs.
[AArch64] Set errno in ftruncate() and truncate().