It turns out that DODMALLOC was broken when I reorganized busybox.h

header file usage before the 0.49 release.  To fix it, I had to move
the '#include "busybox.h"' to the end of the list of #include files.
 -Erik
This commit is contained in:
Eric Andersen
2001-02-20 06:14:08 +00:00
parent 94456f5984
commit cbe31dace5
204 changed files with 362 additions and 378 deletions

View File

@@ -1,10 +1,10 @@
/* vi: set sw=4 ts=4: */
#include "busybox.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#include "busybox.h"
/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */

View File

@@ -12,17 +12,17 @@
* Erik Andersen <andersen@lineo.com>
*/
#include "busybox.h"
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#define BB_DECLARE_EXTERN
#define bb_need_io_error
#include "messages.c"
#include <utmp.h>
#include <stdlib.h>
#include <unistd.h>
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_io_error
#include "messages.c"
extern int dutmp_main(int argc, char **argv)
{

View File

@@ -7,13 +7,13 @@
* known bugs: can't deal with alpha ranges
*/
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include "busybox.h"
int makedevs_main(int argc, char **argv)
{

View File

@@ -22,11 +22,11 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "busybox.h"
extern int mktemp_main(int argc, char **argv)
{

View File

@@ -1,9 +1,9 @@
/* vi: set sw=4 ts=4: */
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/mtio.h>
#include <sys/fcntl.h>
#include "busybox.h"
struct mt_opcodes {
char *name;

View File

@@ -22,10 +22,10 @@
*
*/
#include "busybox.h"
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include "busybox.h"
int readlink_main(int argc, char **argv)
{

View File

@@ -28,7 +28,6 @@
* earlier) kernel. 2.2.x and higher flush filesystem buffers automatically.
*/
#include "busybox.h"
#include <sys/param.h>
#include <sys/syslog.h>
#include <unistd.h> /* for getopt() */
@@ -42,6 +41,7 @@
#include <linux/unistd.h>
static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */
#include "busybox.h"
static unsigned int sync_duration = 30;
static unsigned int flush_duration = 5;

View File

@@ -20,11 +20,11 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
#include "busybox.h"
extern int watchdog_main(int argc, char **argv)
{