From: Rich Felker Date: Tue, 11 Sep 2018 18:09:20 +0000 (-0400) Subject: remove unused __getdents, rename and move file X-Git-Tag: v1.1.21~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebb6afde680fc420f85a124d548831d59650b611;p=musl remove unused __getdents, rename and move file the __-prefixed filename does not make sense when the only purpose of this file is implementing a public function that's not used as a backend for implementing the standard dirent functions. --- diff --git a/src/dirent/__getdents.c b/src/linux/getdents.c similarity index 50% rename from src/dirent/__getdents.c rename to src/linux/getdents.c index 1acd5a69..90f7556e 100644 --- a/src/dirent/__getdents.c +++ b/src/linux/getdents.c @@ -1,12 +1,9 @@ #include #include "syscall.h" -#include "libc.h" -int __getdents(int fd, struct dirent *buf, size_t len) +int getdents(int fd, struct dirent *buf, size_t len) { return syscall(SYS_getdents, fd, buf, len); } -weak_alias(__getdents, getdents); - LFS64(getdents);