From ebb6afde680fc420f85a124d548831d59650b611 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 11 Sep 2018 14:09:20 -0400 Subject: 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/linux/getdents.c | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/linux/getdents.c (limited to 'src/linux/getdents.c') 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); -- cgit v1.2.1