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://git.librecmc.org/?a=commitdiff_plain;h=ebb6afde680fc420f85a124d548831d59650b611;p=oweals%2Fmusl.git 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/dirent/__getdents.c deleted file mode 100644 index 1acd5a69..00000000 --- a/src/dirent/__getdents.c +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include "syscall.h" -#include "libc.h" - -int __getdents(int fd, struct dirent *buf, size_t len) -{ - return syscall(SYS_getdents, fd, buf, len); -} - -weak_alias(__getdents, getdents); - -LFS64(getdents); diff --git a/src/linux/getdents.c b/src/linux/getdents.c new file mode 100644 index 00000000..90f7556e --- /dev/null +++ b/src/linux/getdents.c @@ -0,0 +1,9 @@ +#include +#include "syscall.h" + +int getdents(int fd, struct dirent *buf, size_t len) +{ + return syscall(SYS_getdents, fd, buf, len); +} + +LFS64(getdents);