summaryrefslogtreecommitdiff
path: root/include/busybox.h
diff options
context:
space:
mode:
authorRob Landley2006-05-31 22:09:03 +0000
committerRob Landley2006-05-31 22:09:03 +0000
commitb623a542dff149151c892344e2343a9e245275de (patch)
tree5170f214530005b5cb3ef2a89f0342bd8b9d1bda /include/busybox.h
parent8abbee474c4eff45bdc2cacb59047f466e1d6ae1 (diff)
downloadbusybox-b623a542dff149151c892344e2343a9e245275de.zip
busybox-b623a542dff149151c892344e2343a9e245275de.tar.gz
Header file cleanup. platform.h apparently needs to be included early on so it
can figure out what header files to include, and override stuff that comes later. But applets shouldn't include platform.h directly, they should include busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h to the top of busybox.h and platform.h near the top of libbb.h (right after bbconfig.h, which is something platform.h also needs access to). While we're at it, move some stuff from busybox.h to libbb.h so we have one big file to audit/clean up/try to make sense of instead of many.
Diffstat (limited to 'include/busybox.h')
-rw-r--r--include/busybox.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/include/busybox.h b/include/busybox.h
index 1f9f977..befbea5 100644
--- a/include/busybox.h
+++ b/include/busybox.h
@@ -9,15 +9,6 @@
#include "bb_config.h"
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-
-extern const char BB_BANNER[];
-
-/* Pull in the utility routines from libbb */
#include "libbb.h"
enum Location {
@@ -54,22 +45,4 @@ extern const struct BB_applet applets[];
#include "applets.h"
#undef PROTOTYPES
-#ifndef RB_POWER_OFF
-/* Stop system and switch power off if possible. */
-#define RB_POWER_OFF 0x4321fedc
-#endif
-
-/* Try to pull in PATH_MAX */
-#include <limits.h>
-
-/* for PATH_MAX on systems that don't have it in limits.h */
-#include <sys/param.h>
-#ifndef PATH_MAX
-#define PATH_MAX 256
-#endif
-
-#ifdef DMALLOC
-#include <dmalloc.h>
-#endif
-
#endif /* _BB_INTERNAL_H_ */