diff options
Diffstat (limited to 'src/dirent')
-rw-r--r-- | src/dirent/fdopendir.c | 2 | ||||
-rw-r--r-- | src/dirent/opendir.c | 4 | ||||
-rw-r--r-- | src/dirent/readdir.c | 6 | ||||
-rw-r--r-- | src/dirent/readdir_r.c | 1 | ||||
-rw-r--r-- | src/dirent/scandir.c | 4 |
5 files changed, 2 insertions, 15 deletions
diff --git a/src/dirent/fdopendir.c b/src/dirent/fdopendir.c index c684a866..c377271d 100644 --- a/src/dirent/fdopendir.c +++ b/src/dirent/fdopendir.c @@ -3,8 +3,6 @@ #include <sys/stat.h> #include <errno.h> #include <stdlib.h> -#include <unistd.h> -#include <limits.h> #include "__dirent.h" DIR *fdopendir(int fd) diff --git a/src/dirent/opendir.c b/src/dirent/opendir.c index d33d8928..5cb84e30 100644 --- a/src/dirent/opendir.c +++ b/src/dirent/opendir.c @@ -1,11 +1,7 @@ #define _GNU_SOURCE #include <dirent.h> #include <fcntl.h> -#include <sys/stat.h> -#include <errno.h> #include <stdlib.h> -#include <unistd.h> -#include <limits.h> #include "__dirent.h" #include "syscall.h" diff --git a/src/dirent/readdir.c b/src/dirent/readdir.c index 2d27d29a..98ec029e 100644 --- a/src/dirent/readdir.c +++ b/src/dirent/readdir.c @@ -1,11 +1,5 @@ #include <dirent.h> -#include <fcntl.h> -#include <sys/stat.h> -#include <errno.h> -#include <stdlib.h> -#include <limits.h> #include "__dirent.h" -#include "syscall.h" #include "libc.h" int __getdents(int, struct dirent *, size_t); diff --git a/src/dirent/readdir_r.c b/src/dirent/readdir_r.c index 639d49a1..daa6c6ed 100644 --- a/src/dirent/readdir_r.c +++ b/src/dirent/readdir_r.c @@ -1,6 +1,5 @@ #include <dirent.h> #include <errno.h> -#include <stdlib.h> #include <string.h> #include "__dirent.h" #include "libc.h" diff --git a/src/dirent/scandir.c b/src/dirent/scandir.c index a85cfac1..3af2b50f 100644 --- a/src/dirent/scandir.c +++ b/src/dirent/scandir.c @@ -1,10 +1,10 @@ #include <dirent.h> #include <string.h> #include <stdlib.h> -#include <inttypes.h> +#include <stdint.h> #include <errno.h> #include <stddef.h> -#include <libc.h> +#include "libc.h" int scandir(const char *path, struct dirent ***res, int (*sel)(const struct dirent *), |