about summary refs log tree commit diff
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
parent3fe595de83e398dbc3cdbe303cacaf8485c9ae08 (diff)
downloadmusl-ebb6afde680fc420f85a124d548831d59650b611.tar.gz
musl-ebb6afde680fc420f85a124d548831d59650b611.tar.xz
musl-ebb6afde680fc420f85a124d548831d59650b611.zip
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.
-rw-r--r--src/linux/getdents.c (renamed from src/dirent/__getdents.c)5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dirent/__getdents.c b/src/linux/getdents.c
index 1acd5a69..90f7556e 100644
--- a/src/dirent/__getdents.c
+++ b/src/linux/getdents.c
@@ -1,12 +1,9 @@
 #include <dirent.h>
 #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);