summaryrefslogtreecommitdiff
path: root/test/unistd/tst-fallocate64.c
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-09-07 15:33:46 -0400
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-09-09 13:48:45 +0200
commit33a12b5540b8abbc4ee0ecb3a51912b3c7868517 (patch)
tree399a161fa8ae09eab39c25f17686c496a05b9b2b /test/unistd/tst-fallocate64.c
parent7efe10ec5fc772f5328b35ba6716bde815212b45 (diff)
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 <blueness@gentoo.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'test/unistd/tst-fallocate64.c')
-rw-r--r--test/unistd/tst-fallocate64.c2
1 files changed, 2 insertions, 0 deletions
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"