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

@@ -15,7 +15,6 @@
* Support, replaced getopt, added some gotos for redundant stuff.
*/
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
@@ -33,6 +32,7 @@ static inline _syscall3(int, klogctl, int, type, char *, b, int, len);
#else
# include <sys/klog.h>
#endif
#include "busybox.h"
int dmesg_main(int argc, char **argv)
{

View File

@@ -24,7 +24,6 @@
* Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
*/
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -33,6 +32,7 @@
#include <ctype.h>
#include <string.h>
#include <sys/ioctl.h>
#include "busybox.h"
#define DEFAULTFBDEV "/dev/fb0"
#define DEFAULTFBMODE "/etc/fb.modes"

View File

@@ -21,11 +21,11 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdlib.h>
#include "busybox.h"
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)

View File

@@ -86,7 +86,6 @@
* enforced (but it's not much fun on a character device :-).
*/
#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
@@ -97,6 +96,7 @@
#include <termios.h>
#include <mntent.h>
#include <sys/param.h>
#include "busybox.h"
typedef unsigned char u8;

View File

@@ -62,7 +62,6 @@
* removed getopt based parser and added a hand rolled one.
*/
#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
@@ -75,6 +74,7 @@
#include <sys/ioctl.h>
#include <sys/param.h>
#include <mntent.h>
#include "busybox.h"
typedef unsigned char u8;

View File

@@ -35,7 +35,6 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
@@ -45,6 +44,7 @@
#include <sys/utsname.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
#include "busybox.h"
#ifndef _IO
/* pre-1.3.45 */

View File

@@ -25,12 +25,12 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <sys/ioctl.h>
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"

View File

@@ -43,7 +43,6 @@
*
*/
#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
@@ -54,6 +53,7 @@
#if defined BB_FEATURE_USE_DEVPS_PATCH
#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */
#endif
#include "busybox.h"
enum {
MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */

View File

@@ -33,25 +33,25 @@
* nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
*/
#include "busybox.h"
#undef FALSE
#undef TRUE
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <sys/socket.h>
#include <time.h>
#include <sys/utsname.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include "nfsmount.h"
#include <stdlib.h>
#include "busybox.h"
#undef TRUE
#undef FALSE
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
#include <rpc/pmap_clnt.h>
#include <linux/nfs.h> /* For the kernels nfs stuff */
#include "nfsmount.h"
#ifndef NFS_FHSIZE
static const int NFS_FHSIZE = 32;

View File

@@ -4,11 +4,11 @@
*
* busyboxed by Evin Robertson
*/
#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
#include "busybox.h"
#ifndef __NR_pivot_root
#error Sorry, but this kernel does not support the pivot_root syscall

View File

@@ -21,9 +21,6 @@
*
*/
#include "busybox.h"
#define BB_DECLARE_EXTERN
#include "messages.c"
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
@@ -33,6 +30,9 @@
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
#include "busybox.h"
#define BB_DECLARE_EXTERN
#include "messages.c"
static const int RFC_868_BIAS = 2208988800UL;

View File

@@ -22,7 +22,6 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <dirent.h>
@@ -31,6 +30,7 @@
#include <sys/mount.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
#include "busybox.h"
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);

View File

@@ -22,12 +22,12 @@
*
*/
#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include "busybox.h"
static const int MNT_FORCE = 1;