include cleanups: remove unused headers and add feature test macros

This commit is contained in:
Szabolcs Nagy 2013-12-12 05:09:18 +00:00
commit 571744447c
157 changed files with 68 additions and 207 deletions

View file

@ -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)

View file

@ -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"

View file

@ -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);

View file

@ -1,6 +1,5 @@
#include <dirent.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include "__dirent.h"
#include "libc.h"

View file

@ -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 *),