From ebb6afde680fc420f85a124d548831d59650b611 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 14:09:20 -0400 Subject: [PATCH] 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. --- src/{dirent/__getdents.c => linux/getdents.c} | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) rename src/{dirent/__getdents.c => linux/getdents.c} (50%) 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); -- 2.11.4.GIT