[git commit 0_9_30] tweak getdents && LFS && __WORDSIZE==64

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Dec 17 12:42:26 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=ce42a3bf1849aa5b25920d5343f83e6963c74d02
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
 libc/sysdeps/linux/common/getdents.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/getdents.c b/libc/sysdeps/linux/common/getdents.c
index 73d10c4..b518cc0 100644
--- a/libc/sysdeps/linux/common/getdents.c
+++ b/libc/sysdeps/linux/common/getdents.c
@@ -18,6 +18,12 @@
 #include <bits/kernel_types.h>
 #include <bits/kernel-features.h>
 
+#if !(defined __UCLIBC_HAS_LFS__ && defined __NR_getdents64 && __WORDSIZE == 64)
+/* If the condition above is met, __getdents is defined as an alias
+ * for __getdents64 (see getdents64.c). Otherwise...
+ */
+
+
 /* With newer versions of linux, the getdents syscall returns d_type
  * information after the name field.
  *
@@ -163,5 +169,6 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
 
     return ret;
 }
+#endif
 
 #endif
-- 
1.6.3.3



More information about the uClibc-cvs mailing list