about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-07-23 18:09:13 +0000
committerUlrich Drepper <drepper@redhat.com>2007-07-23 18:09:13 +0000
commitc1bf9f14ab383737ff4d6668d6118f44528a3965 (patch)
tree7c8db24cfc01d2ca2289d7cc5d97126627aed16e /sysdeps
parenteb7721f232df0721906eeb0993651aa8c32aed8d (diff)
downloadglibc-c1bf9f14ab383737ff4d6668d6118f44528a3965.tar.gz
glibc-c1bf9f14ab383737ff4d6668d6118f44528a3965.tar.xz
glibc-c1bf9f14ab383737ff4d6668d6118f44528a3965.zip
* io/Makefile (tests): Add tst-posix_fallocate.
	* io/tst-posix_fallocate.c: New file.

	* sysdeps/unix/sysv/linux/kernel-features.h: Define
	__ASSUME_FALLOCATE.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index f6bd906f5d..f8116d8885 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -468,3 +468,8 @@
 #if __LINUX_KERNEL_VERSION >= 0x020616
 # define __ASSUME_PRIVATE_FUTEX	1
 #endif
+
+/* Support for fallocate was added in 2.6.23.  */
+#if __LINUX_KERNEL_VERSION >= 0x020617
+# define __ASSUME_FALLOCATE	1
+#endif