X86: Hookup truncate/ftruncate syscalls on X86
X86: Hookup truncate/ftruncate syscalls on X86

This patch hooks up the truncate, ftruncate, truncate64 and ftruncate64
system calls on 32-bit and 64-bit X86.

These have been tested on both architectures.

ftruncate/ftruncate64 is needed for the f90 spec2k benchmarks.

joerocklin/gem5,gedare/gem5,powerjg/gem5-ci-test,aclifton/cpeg853-gem5,rallylee/gem5,zlfben/gem5,cancro7/gem5,HwisooSo/gemV-update,samueldotj/TeeRISC-Simulator,gem5/gem5,joerocklin/gem5,Weil0ng/gem5,KuroeKurose/gem5,TUD-OS/gem5-dtu,briancoutinho0905/2dsampling,samueldotj/TeeRISC-Simulator,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,qizenguf/MLC-STT,SanchayanMaity/gem5,rjschof/gem5,gem5/gem5,HwisooSo/gemV-update,sobercoder/gem5,rjschof/gem5,austinharris/gem5-riscv,cancro7/gem5,aclifton/cpeg853-gem5,briancoutinho0905/2dsampling,qizenguf/MLC-STT,gedare/gem5,joerocklin/gem5,austinharris/gem5-riscv,yb-kim/gemV,SanchayanMaity/gem5,gedare/gem5,TUD-OS/gem5-dtu,zlfben/gem5,qizenguf/MLC-STT,Weil0ng/gem5,yb-kim/gemV,samueldotj/TeeRISC-Simulator,powerjg/gem5-ci-test,rallylee/gem5,austinharris/gem5-riscv,briancoutinho0905/2dsampling,markoshorro/gem5,Weil0ng/gem5,HwisooSo/gemV-update,gedare/gem5,cancro7/gem5,rallylee/gem5,sobercoder/gem5,powerjg/gem5-ci-test,HwisooSo/gemV-update,TUD-OS/gem5-dtu,sobercoder/gem5,markoshorro/gem5,gem5/gem5,kaiyuanl/gem5,qizenguf/MLC-STT,markoshorro/gem5,sobercoder/gem5,gem5/gem5,yb-kim/gemV,rallylee/gem5,qizenguf/MLC-STT,kaiyuanl/gem5,briancoutinho0905/2dsampling,yb-kim/gemV,markoshorro/gem5,KuroeKurose/gem5,austinharris/gem5-riscv,joerocklin/gem5,SanchayanMaity/gem5,rjschof/gem5,rjschof/gem5,markoshorro/gem5,qizenguf/MLC-STT,zlfben/gem5,SanchayanMaity/gem5,rallylee/gem5,samueldotj/TeeRISC-Simulator,kaiyuanl/gem5,austinharris/gem5-riscv,HwisooSo/gemV-update,austinharris/gem5-riscv,gem5/gem5,powerjg/gem5-ci-test,yb-kim/gemV,rjschof/gem5,SanchayanMaity/gem5,powerjg/gem5-ci-test,samueldotj/TeeRISC-Simulator,aclifton/cpeg853-gem5,sobercoder/gem5,rjschof/gem5,joerocklin/gem5,gem5/gem5,rjschof/gem5,yb-kim/gemV,cancro7/gem5,HwisooSo/gemV-update,SanchayanMaity/gem5,TUD-OS/gem5-dtu,zlfben/gem5,zlfben/gem5,kaiyuanl/gem5,rallylee/gem5,KuroeKurose/gem5,TUD-OS/gem5-dtu,gedare/gem5,cancro7/gem5,Weil0ng/gem5,gedare/gem5,cancro7/gem5,powerjg/gem5-ci-test,Weil0ng/gem5,briancoutinho0905/2dsampling,aclifton/cpeg853-gem5,kaiyuanl/gem5,HwisooSo/gemV-update,kaiyuanl/gem5,gem5/gem5,zlfben/gem5,SanchayanMaity/gem5,Weil0ng/gem5,kaiyuanl/gem5,yb-kim/gemV,KuroeKurose/gem5,samueldotj/TeeRISC-Simulator,gedare/gem5,briancoutinho0905/2dsampling,markoshorro/gem5,joerocklin/gem5,TUD-OS/gem5-dtu,zlfben/gem5,KuroeKurose/gem5,markoshorro/gem5,aclifton/cpeg853-gem5,rallylee/gem5,joerocklin/gem5,austinharris/gem5-riscv,cancro7/gem5,samueldotj/TeeRISC-Simulator,qizenguf/MLC-STT,KuroeKurose/gem5,sobercoder/gem5,sobercoder/gem5,joerocklin/gem5,Weil0ng/gem5,yb-kim/gemV,powerjg/gem5-ci-test,KuroeKurose/gem5