include cleanups: remove unused headers and add feature test macros
This commit is contained in:
parent
ac45692a53
commit
571744447c
157 changed files with 68 additions and 207 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include "__dirent.h"
|
||||
#include "libc.h"
|
||||
|
|
|
|||
|
|
@ -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 *),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue