summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/getcwd.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/getcwd.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/getcwd.c')
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index db3e292964..fb0dcefd58 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -124,9 +124,6 @@ __getcwd (char *buf, size_t size)
 	  return buf;
 	}
 
-      // XXX This should not be necessary but the full getcwd implementation
-      // drags in too much for the current build proces of ld.so to handle
-#ifndef NOT_IN_libc
       /* The system call cannot handle paths longer than a page.
 	 Neither can the magic symlink in /proc/self.  Just use the
 	 generic implementation right away.  */
@@ -149,7 +146,6 @@ __getcwd (char *buf, size_t size)
 
 	  return result;
 	}
-#endif
 
 # if __ASSUME_GETCWD_SYSCALL
       /* It should never happen that the `getcwd' syscall failed because
@@ -241,11 +237,7 @@ __getcwd (char *buf, size_t size)
 }
 weak_alias (__getcwd, getcwd)
 
-      // XXX This should not be necessary but the full getcwd implementation
-      // drags in too much for the current build proces of ld.so to handle
-#ifndef NOT_IN_libc
 /* Get the code for the generic version.  */
 #define GETCWD_RETURN_TYPE	static char * internal_function
 #define __getcwd		generic_getcwd
 #include <sysdeps/posix/getcwd.c>
-#endif