aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/kernel-features.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-09-07 06:21:02 +0000
committerUlrich Drepper <drepper@redhat.com>2000-09-07 06:21:02 +0000
commit675e4015896d39a88264d4db515c6824bdd6bf27 (patch)
tree20986ad19f4aa5662c67e6ba4246241f9dfa4a7a /sysdeps/unix/sysv/linux/kernel-features.h
parent04ba87901c8be7f38906147854e0fc1e4351f486 (diff)
downloadglibc-675e4015896d39a88264d4db515c6824bdd6bf27.tar
glibc-675e4015896d39a88264d4db515c6824bdd6bf27.tar.gz
glibc-675e4015896d39a88264d4db515c6824bdd6bf27.tar.bz2
glibc-675e4015896d39a88264d4db515c6824bdd6bf27.zip
Update.
* sysdeps/unix/opendir.c: If O_DIRECTORY_WORKS is defined don't use the hack with tryopen_o_directory to determine at runtime whether it works. * sysdeps/unix/sysv/linux/opendir.c: New file. * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_O_DIRECTORY if kernel knows O_DIRECTORY.
Diffstat (limited to 'sysdeps/unix/sysv/linux/kernel-features.h')
-rw-r--r--sysdeps/unix/sysv/linux/kernel-features.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h
index 2f9d12bb28..c7ff66e2e4 100644
--- a/sysdeps/unix/sysv/linux/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/kernel-features.h
@@ -142,3 +142,9 @@
#if __LINUX_KERNEL_VERSION >= 132097
# define __ASSUME_GETDENTS64_SYSCALL 1
#endif
+
+/* When did O_DIRECTORY became available? Early in 2.3 but when?
+ Be safe, use 2.3.99. */
+#if __LINUX_KERNEL_VERSION >= 131939
+# define __ASSUME_O_DIRECTORY 1
+#endif