about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/dl-opendir.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2011-05-08 14:53:20 -0400
committerUlrich Drepper <drepper@gmail.com>2011-05-08 14:53:20 -0400
commit6fb2dde3f1aa3a1419cb6c2dfa53dd1d506722a4 (patch)
tree1ea14aa26ff3a32c8c14bf1849b7d94fbf685069 /sysdeps/unix/sysv/linux/dl-opendir.c
parent7fb90fb89bbdf273ab7ab96517fe1b156cd7aee1 (diff)
downloadglibc-6fb2dde3f1aa3a1419cb6c2dfa53dd1d506722a4.tar.gz
glibc-6fb2dde3f1aa3a1419cb6c2dfa53dd1d506722a4.tar.xz
glibc-6fb2dde3f1aa3a1419cb6c2dfa53dd1d506722a4.zip
Make complete getcwd work in rtld
Diffstat (limited to 'sysdeps/unix/sysv/linux/dl-opendir.c')
-rw-r--r--sysdeps/unix/sysv/linux/dl-opendir.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-opendir.c b/sysdeps/unix/sysv/linux/dl-opendir.c
new file mode 100644
index 0000000000..72d2c06cdc
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/dl-opendir.c
@@ -0,0 +1,6 @@
+/* In this implementation we do not really care whether the opened
+   file descriptor has the CLOEXEC bit set.  The only call happens
+   long before there is a call to fork or exec.  */
+#undef __ASSUME_O_CLOEXEC
+#define __ASSUME_O_CLOEXEC 1
+#include <opendir.c>