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.

TEST=Ran on x86_64 and arm test devices.

Change-Id: Ifb283005c4998580bca02cdcb2490d0233ce320c
Commit-Ready: Hidehiko Abe <>
Tested-by: Hidehiko Abe <>
Reviewed-by: Kazuhiro Inaba <>
Reviewed-by: Junichi Uekawa <>
Reviewed-by: Dylan Reid <>
(cherry picked from commit 675becfa942005b40cd417da181815e47434774b)
(cherry picked from commit 2111d26af549efcff8f01908148309df2cef08af)
Trybot-Ready: Hidehiko Abe <>
Commit-Queue: Hidehiko Abe <>
1 file changed