From ed3ef50c233ffb1b50ea0e7382a8e60b86491009 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sat, 27 Jan 2001 08:24:39 +0000 Subject: Fix header file usage -- there were many unnecessary header files included in busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik --- busybox.h | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'busybox.h') diff --git a/busybox.h b/busybox.h index be6c6f305..5f9425a5b 100644 --- a/busybox.h +++ b/busybox.h @@ -26,19 +26,10 @@ #include "Config.h" -#include +#include #include -#include -#include -#include #include -#include #include -#include -#include -/* for the _syscall() macros */ -#include -#include #ifdef DMALLOC #include "dmalloc.h" @@ -69,26 +60,6 @@ static inline int is_octal(ch) { return ((ch >= '0') && (ch <= '7')); } #endif -/* I don't like nested includes, but the string and io functions are used - * too often - */ -#include -#if !defined(NO_STRING_H) || defined(STDC_HEADERS) -# include -# if !defined(STDC_HEADERS) && !defined(NO_MEMORY_H) && !defined(__GNUC__) -# include -# endif -# define memzero(s, n) memset ((void *)(s), 0, (n)) -#else -# include -# define strchr index -# define strrchr rindex -# define memcpy(d, s, n) bcopy((s), (d), (n)) -# define memcmp(s1, s2, n) bcmp((s1), (s2), (n)) -# define memzero(s, n) bzero((s), (n)) -#endif - - enum Location { _BB_DIR_ROOT = 0, _BB_DIR_BIN, @@ -179,7 +150,6 @@ extern void print_file(FILE *file); extern int print_file_by_name(char *filename); extern char process_escape_sequence(char **ptr); extern char *get_last_path_component(char *path); -extern void xregcomp(regex_t *preg, const char *regex, int cflags); extern FILE *wfopen(const char *path, const char *mode); extern FILE *xfopen(const char *path, const char *mode); -- cgit v1.2.3