From 33a12b5540b8abbc4ee0ecb3a51912b3c7868517 Mon Sep 17 00:00:00 2001 From: "Anthony G. Basile" Date: Sun, 7 Sep 2014 15:33:46 -0400 Subject: libc: add fallocate() and fallocate64() We add the Linux-specific function fallocate() which allows the user to directly manipulate allocate space for a file. fallocate() can operate in different modes, but the default mode is equivalent to posix_fallocate() which is specified in POSIX.1. Recent releases of e2fsprogs 1.42.11 and above expect fallocate64() to be available. Signed-off-by: Anthony G. Basile Signed-off-by: Bernhard Reutner-Fischer --- test/unistd/tst-fallocate64.c | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 test/unistd/tst-fallocate64.c (limited to 'test/unistd/tst-fallocate64.c') diff --git a/test/unistd/tst-fallocate64.c b/test/unistd/tst-fallocate64.c new file mode 100644 index 000000000..720428f8f --- /dev/null +++ b/test/unistd/tst-fallocate64.c @@ -0,0 +1,2 @@ +#define TST_FALLOCATE64 +#include "tst-fallocate.c" -- cgit v1.2.3