diff options
author | Rich Felker <dalias@aerifal.cx> | 2018-09-11 14:09:20 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018-09-12 14:34:35 -0400 |
commit | ebb6afde680fc420f85a124d548831d59650b611 (patch) | |
tree | 9d833286d6d349bbcba2e34715ee0a8c0d24d465 /src/linux | |
parent | 3fe595de83e398dbc3cdbe303cacaf8485c9ae08 (diff) | |
download | musl-ebb6afde680fc420f85a124d548831d59650b611.zip musl-ebb6afde680fc420f85a124d548831d59650b611.tar.gz musl-ebb6afde680fc420f85a124d548831d59650b611.tar.bz2 |
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')
-rw-r--r-- | src/linux/getdents.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/linux/getdents.c b/src/linux/getdents.c new file mode 100644 index 0000000..90f7556 --- /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); |