CHROMIUM: alt-syscall: fallocate emulation.

Some dependent library directly uses the fallocate system call,
which is not supported on some file system, such as ecryptfs.
Because we use ecryptfs, it needs to be emulated using ftruncate,
which is supported on the file system.

BUG=b:29732697
TEST=Ran on x86_64 and arm test devices.

Change-Id: Ifb283005c4998580bca02cdcb2490d0233ce320c
Reviewed-on: https://chromium-review.googlesource.com/360266
Commit-Ready: Hidehiko Abe <hidehiko@chromium.org>
Tested-by: Hidehiko Abe <hidehiko@chromium.org>
Reviewed-by: Kazuhiro Inaba <kinaba@chromium.org>
Reviewed-by: Junichi Uekawa <uekawa@chromium.org>
Reviewed-by: Dylan Reid <dgreid@chromium.org>
(cherry picked from commit 675becfa942005b40cd417da181815e47434774b)
Reviewed-on: https://chromium-review.googlesource.com/360741
(cherry picked from commit 2111d26af549efcff8f01908148309df2cef08af)
Reviewed-on: https://chromium-review.googlesource.com/362532
Trybot-Ready: Hidehiko Abe <hidehiko@chromium.org>
Commit-Queue: Hidehiko Abe <hidehiko@chromium.org>
1 file changed