[PATCH] use __getdents for __getdents64 if __NR_getdents64 not defined
Atsushi Nemoto
anemo at mba.ocn.ne.jp
Mon Jul 3 15:44:47 UTC 2006
Some archs (such as mips64) do not have getdents64 syscall but have
getdents syscall. Define alias for it.
diff -urNp uClibc.org/libc/sysdeps/linux/common/getdents.c uClibc/libc/sysdeps/linux/common/getdents.c
--- uClibc.org/libc/sysdeps/linux/common/getdents.c 2006-06-11 16:11:15.000000000 +0900
+++ uClibc/libc/sysdeps/linux/common/getdents.c 2006-07-02 00:32:31.000000000 +0900
@@ -101,6 +101,9 @@ ssize_t __getdents (int fd, char *buf, s
return (char *) dp - buf;
}
+#if defined __UCLIBC_HAS_LFS__ && ! defined __NR_getdents64
+attribute_hidden strong_alias(__getdents,__getdents64)
+#endif
#elif __WORDSIZE == 32
libc_hidden_proto(memmove)
More information about the uClibc
mailing list