remove unused __getdents, rename and move file
authorRich Felker <dalias@aerifal.cx>
Tue, 11 Sep 2018 18:09:20 +0000 (14:09 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 12 Sep 2018 18:34:35 +0000 (14:34 -0400)
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 [deleted file]
src/linux/getdents.c [new file with mode: 0644]

diff --git a/src/dirent/__getdents.c b/src/dirent/__getdents.c
deleted file mode 100644 (file)
index 1acd5a6..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-#include <dirent.h>
-#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 (file)
index 0000000..90f7556
--- /dev/null
@@ -0,0 +1,9 @@
+#include <dirent.h>
+#include "syscall.h"
+
+int getdents(int fd, struct dirent *buf, size_t len)
+{
+       return syscall(SYS_getdents, fd, buf, len);
+}
+
+LFS64(getdents);