• R/O
  • HTTP
  • SSH
  • HTTPS

uclibc-ng: 提交


Commit MetaInfo

修訂69c3592d7ffdf7b0dfb35c85f2607e5d79ab5f5a (tree)
時間2016-01-04 22:19:28
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

ARCH_HAS_DEPRECATED_SYSCALLS case fix.
getdents is deprecated.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Change Summary

差異

--- a/libc/sysdeps/linux/common/getdents.c
+++ b/libc/sysdeps/linux/common/getdents.c
@@ -91,7 +91,7 @@ ssize_t __getdents (int fd, char *buf, size_t nbytes)
9191 const size_t size_diff = (offsetof (struct dirent, d_name)
9292 - offsetof (struct kernel_dirent, d_name));
9393
94-# ifdef __ARCH_HAS_DEPRECATED_SYSCALLS__
94+# ifndef __ARCH_HAS_DEPRECATED_SYSCALLS__
9595 red_nbytes = MIN (nbytes - ((nbytes /
9696 (offsetof (struct dirent, d_name) + 14)) * size_diff),
9797 nbytes - size_diff);
Show on old repository browser