summaryrefslogtreecommitdiff
path: root/src/linux/getdents.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2018-09-11 14:09:20 -0400
committerRich Felker <dalias@aerifal.cx>2018-09-12 14:34:35 -0400
commitebb6afde680fc420f85a124d548831d59650b611 (patch)
tree9d833286d6d349bbcba2e34715ee0a8c0d24d465 /src/linux/getdents.c
parent3fe595de83e398dbc3cdbe303cacaf8485c9ae08 (diff)
downloadmusl-ebb6afde680fc420f85a124d548831d59650b611.tar.gz
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.
Diffstat (limited to 'src/linux/getdents.c')
-rw-r--r--src/linux/getdents.c9
1 files changed, 9 insertions, 0 deletions
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 <dirent.h>
+#include "syscall.h"
+
+int getdents(int fd, struct dirent *buf, size_t len)
+{
+ return syscall(SYS_getdents, fd, buf, len);
+}
+
+LFS64(getdents);