diff options
224 files changed, 245 insertions, 712 deletions
@@ -32,6 +32,7 @@ * Fixed chmod option parsing so things like 'chmod -r /tmp/file' now work (previously it thought -r was an option). Doh! * Fixed tar handling of stdin and stdout + * Renamed "internal.h" to the more sensible "busybox.h" * Preliminary support for GNU HURD. * Tons of other bugfixes. @@ -177,7 +177,7 @@ busybox.links: Config.h - ./busybox.mkll | sort >$@ nfsmount.o cmdedit.o: %.o: %.h -$(OBJECTS): %.o: Config.h internal.h %.c Makefile +$(OBJECTS): %.o: Config.h busybox.h %.c Makefile utility.o: loop.h diff --git a/applets/busybox.c b/applets/busybox.c index 17a4c44..825f40e 100644 --- a/applets/busybox.c +++ b/applets/busybox.c @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <errno.h> @@ -369,7 +369,7 @@ const char *applet_name; #ifdef BB_FEATURE_INSTALLER /* * directory table - * this should be consistent w/ the enum, internal.h::Location, + * this should be consistent w/ the enum, busybox.h::Location, * or else... */ static char* install_dir[] = { diff --git a/applets/usage.c b/applets/usage.c index c4da08a..ae6cbaa 100644 --- a/applets/usage.c +++ b/applets/usage.c @@ -1,4 +1,4 @@ -#include "internal.h" +#include "busybox.h" #if defined BB_AR const char ar_usage[] = @@ -35,7 +35,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <malloc.h> -#include "internal.h" +#include "busybox.h" #define BLOCK_SIZE 60 #define PRESERVE_DATE 1 /* preserve original dates */ diff --git a/archival/ar.c b/archival/ar.c index 59c3a77..f3ba59b 100644 --- a/archival/ar.c +++ b/archival/ar.c @@ -35,7 +35,7 @@ #include <sys/types.h> #include <sys/stat.h> #include <malloc.h> -#include "internal.h" +#include "busybox.h" #define BLOCK_SIZE 60 #define PRESERVE_DATE 1 /* preserve original dates */ diff --git a/archival/gunzip.c b/archival/gunzip.c index b27ebed..ee86930 100644 --- a/archival/gunzip.c +++ b/archival/gunzip.c @@ -27,7 +27,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <getopt.h> /* These defines are very important for BusyBox. Without these, diff --git a/archival/gzip.c b/archival/gzip.c index c083268..e518ffd 100644 --- a/archival/gzip.c +++ b/archival/gzip.c @@ -29,7 +29,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_memory_exhausted #include "messages.c" diff --git a/archival/tar.c b/archival/tar.c index e4bdd0a..c14a619 100644 --- a/archival/tar.c +++ b/archival/tar.c @@ -36,7 +36,7 @@ */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_io_error #define bb_need_name_longer_then_foo @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int basename_main(int argc, char **argv) @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <errno.h> @@ -369,7 +369,7 @@ const char *applet_name; #ifdef BB_FEATURE_INSTALLER /* * directory table - * this should be consistent w/ the enum, internal.h::Location, + * this should be consistent w/ the enum, busybox.h::Location, * or else... */ static char* install_dir[] = { @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int cat_main(int argc, char **argv) diff --git a/chmod_chown_chgrp.c b/chmod_chown_chgrp.c index b347707..1ec7eec 100644 --- a/chmod_chown_chgrp.c +++ b/chmod_chown_chgrp.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_invalid_option #define bb_need_too_few_args @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <errno.h> @@ -4,7 +4,7 @@ * * busyboxed by Erik Andersen */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> @@ -31,7 +31,7 @@ terminal width. (more then one line.) However, history will. */ -#include "internal.h" +#include "busybox.h" #ifdef BB_FEATURE_SH_COMMAND_EDITING #include <stdio.h> diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 87a1248..d4b16a0 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c @@ -4,7 +4,7 @@ * * busyboxed by Erik Andersen */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> diff --git a/console-tools/clear.c b/console-tools/clear.c index dba1056..4a8e045 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index bb9632f..65af79b 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -3,7 +3,7 @@ * disalloc.c - aeb - 940501 - Disallocate virtual terminal(s) * Renamed deallocvt. */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <fcntl.h> diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index 13b7d89..2d989df 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c index 7f669bf..826c2a3 100644 --- a/console-tools/loadacm.c +++ b/console-tools/loadacm.c @@ -7,7 +7,7 @@ * Peter Novodvorsky <petya@logic.ru> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <memory.h> diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index e93ca31..d6eadc3 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c @@ -7,7 +7,7 @@ * Loads the console font, and possibly the corresponding screen map(s). * (Adapted for busybox by Matej Vela.) */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <fcntl.h> diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 2321a1e..3f8d726 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> diff --git a/console-tools/reset.c b/console-tools/reset.c index 6c4ae35..8e2c491 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c @@ -23,7 +23,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int reset_main(int argc, char **argv) diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index 284ffa1..63c1063 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> diff --git a/coreutils/basename.c b/coreutils/basename.c index 5b83eef..4d9fc4e 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int basename_main(int argc, char **argv) diff --git a/coreutils/cat.c b/coreutils/cat.c index d47f814..51f1d27 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int cat_main(int argc, char **argv) diff --git a/coreutils/chroot.c b/coreutils/chroot.c index e8ce539..f0a2981 100644 --- a/coreutils/chroot.c +++ b/coreutils/chroot.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <errno.h> diff --git a/coreutils/cut.c b/coreutils/cut.c index fec52d3..1d36a4e 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c @@ -26,7 +26,7 @@ #include <string.h> #include <ctype.h> #include <errno.h> -#include "internal.h" +#include "busybox.h" /* globals from other files */ diff --git a/coreutils/date.c b/coreutils/date.c index 571a556..2e99aea 100644 --- a/coreutils/date.c +++ b/coreutils/date.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_invalid_date #define bb_need_memory_exhausted diff --git a/coreutils/dd.c b/coreutils/dd.c index 697cb7e..01441c3 100644 --- a/coreutils/dd.c +++ b/coreutils/dd.c @@ -29,7 +29,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <features.h> #include <stdio.h> #include <fcntl.h> diff --git a/coreutils/df.c b/coreutils/df.c index d8f8b77..8d6242c 100644 --- a/coreutils/df.c +++ b/coreutils/df.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <mntent.h> #include <sys/vfs.h> diff --git a/coreutils/dirname.c b/coreutils/dirname.c index e63fef3..23f46be 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c @@ -20,7 +20,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int dirname_main(int argc, char **argv) diff --git a/coreutils/dos2unix.c b/coreutils/dos2unix.c index 9634687..c9f783f 100644 --- a/coreutils/dos2unix.c +++ b/coreutils/dos2unix.c @@ -22,7 +22,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> int dos2unix_main( int argc, char **argv ) { diff --git a/coreutils/du.c b/coreutils/du.c index 5a08abb..408ad99 100644 --- a/coreutils/du.c +++ b/coreutils/du.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_name_too_long #include "messages.c" @@ -163,7 +163,7 @@ int du_main(int argc, char **argv) return(0); } -/* $Id: du.c,v 1.24 2000/07/17 16:17:19 proski Exp $ */ +/* $Id: du.c,v 1.25 2000/09/25 21:45:57 andersen Exp $ */ /* Local Variables: c-file-style: "linux" diff --git a/coreutils/echo.c b/coreutils/echo.c index 924cdd4..6890d95 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c @@ -22,7 +22,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int diff --git a/coreutils/expr.c b/coreutils/expr.c index 9e3c04a..670352e 100644 --- a/coreutils/expr.c +++ b/coreutils/expr.c @@ -33,7 +33,7 @@ * One function can handle multiple operators all of equal precedence, * provided they all associate ((x op x) op x). */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> diff --git a/coreutils/head.c b/coreutils/head.c index 58b3cae..c232e11 100644 --- a/coreutils/head.c +++ b/coreutils/head.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <stdio.h> @@ -100,4 +100,4 @@ int head_main(int argc, char **argv) return(0); } -/* $Id: head.c,v 1.13 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: head.c,v 1.14 2000/09/25 21:45:57 andersen Exp $ */ diff --git a/coreutils/hostid.c b/coreutils/hostid.c index f1010a6..47bd8d7 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int hostid_main(int argc, char **argv) diff --git a/coreutils/id.c b/coreutils/id.c index a1a1792..fdfc33c 100644 --- a/coreutils/id.c +++ b/coreutils/id.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <pwd.h> diff --git a/coreutils/length.c b/coreutils/length.c index cf4fb1c..14d15c8 100644 --- a/coreutils/length.c +++ b/coreutils/length.c @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <string.h> #include <stdio.h> diff --git a/coreutils/ln.c b/coreutils/ln.c index d5f44ea..8ef8d05 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_not_a_directory #include "messages.c" diff --git a/coreutils/logname.c b/coreutils/logname.c index a0aff42..09ee249 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int logname_main(int argc, char **argv) diff --git a/coreutils/ls.c b/coreutils/ls.c index 0e08f76..385d6b2 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c @@ -47,7 +47,7 @@ /************************************************************************/ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c index a791a41..c7e5402 100644 --- a/coreutils/md5sum.c +++ b/coreutils/md5sum.c @@ -20,7 +20,7 @@ /* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu> */ /* Hacked to work with BusyBox by Alfred M. Szmidt <ams@trillian.itslinux.org> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <ctype.h> @@ -66,7 +66,7 @@ extern _IO_ssize_t getline __P ((char **, size_t *, FILE *)); #include <string.h> #include <endian.h> -#include "internal.h" +#include "busybox.h" //---------------------------------------------------------------------------- //--------md5.h //---------------------------------------------------------------------------- diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index f824cdc..04310e4 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define bb_need_name_too_long #define BB_DECLARE_EXTERN #include "messages.c" diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index 5d4126a..5e1bc1a 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <errno.h> diff --git a/coreutils/mknod.c b/coreutils/mknod.c index b815aa1..ecb0e47 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <sys/types.h> diff --git a/coreutils/printf.c b/coreutils/printf.c index 94b8093..832ca13 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c @@ -47,7 +47,7 @@ // 19990508 Busy Boxed! Dave Cinege -#include "internal.h" +#include "busybox.h" #include <unistd.h> #include <stdio.h> #include <sys/types.h> diff --git a/coreutils/pwd.c b/coreutils/pwd.c index f0c923b..c9de777 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <dirent.h> #include <errno.h> diff --git a/coreutils/rm.c b/coreutils/rm.c index c93a94c..4f97cad 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <utime.h> diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index 500890e..14ebf92 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/coreutils/sleep.c b/coreutils/sleep.c index d6705c4..709e3de 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int sleep_main(int argc, char **argv) diff --git a/coreutils/sort.c b/coreutils/sort.c index a74f96a..3fe4c77 100644 --- a/coreutils/sort.c +++ b/coreutils/sort.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <fcntl.h> #include <dirent.h> @@ -288,4 +288,4 @@ int sort_main(int argc, char **argv) return(0); } -/* $Id: sort.c,v 1.21 2000/09/13 02:46:13 kraai Exp $ */ +/* $Id: sort.c,v 1.22 2000/09/25 21:45:58 andersen Exp $ */ diff --git a/coreutils/sync.c b/coreutils/sync.c index 3737cb1..8f101cf 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int sync_main(int argc, char **argv) diff --git a/coreutils/tail.c b/coreutils/tail.c index dcb4f67..1091d28 100644 --- a/coreutils/tail.c +++ b/coreutils/tail.c @@ -38,7 +38,7 @@ #include <unistd.h> #include <string.h> #include <getopt.h> -#include "internal.h" +#include "busybox.h" #define STDIN "standard input" #define LINES 0 diff --git a/coreutils/tee.c b/coreutils/tee.c index dc98760..6218013 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <getopt.h> #include <stdio.h> diff --git a/coreutils/test.c b/coreutils/test.c index a2bec44..acd6947 100644 --- a/coreutils/test.c +++ b/coreutils/test.c @@ -31,7 +31,7 @@ * "This program is in the Public Domain." */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <unistd.h> #include <ctype.h> diff --git a/coreutils/touch.c b/coreutils/touch.c index 464aedb..7db6c6e 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <fcntl.h> diff --git a/coreutils/tr.c b/coreutils/tr.c index 0040924..54b6abc 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c @@ -24,7 +24,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/coreutils/tty.c b/coreutils/tty.c index bbc051f..6eebed9 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> diff --git a/coreutils/uname.c b/coreutils/uname.c index 55616dd..8d9427c 100644 --- a/coreutils/uname.c +++ b/coreutils/uname.c @@ -31,7 +31,7 @@ /* Busyboxed by Erik Andersen */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <sys/utsname.h> diff --git a/coreutils/uniq.c b/coreutils/uniq.c index 016fc77..ef38587 100644 --- a/coreutils/uniq.c +++ b/coreutils/uniq.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <errno.h> @@ -179,4 +179,4 @@ int uniq_main(int argc, char **argv) return(0); } -/* $Id: uniq.c,v 1.13 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: uniq.c,v 1.14 2000/09/25 21:45:58 andersen Exp $ */ diff --git a/coreutils/usleep.c b/coreutils/usleep.c index fcdf3bb..69790ef 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <unistd.h> diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 90bef92..965ded5 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c @@ -51,7 +51,7 @@ /* Reworked to GNU style by Ian Lance Taylor, ian@airs.com, August 93. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/coreutils/uuencode.c b/coreutils/uuencode.c index 1433c7f..5835bd2 100644 --- a/coreutils/uuencode.c +++ b/coreutils/uuencode.c @@ -52,7 +52,7 @@ /* Reworked to GNU style by Ian Lance Taylor, ian@airs.com, August 93. */ /* Hacked to work with BusyBox by Alfred M. Szmidt */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/coreutils/wc.c b/coreutils/wc.c index ca5b368..b1c9a51 100644 --- a/coreutils/wc.c +++ b/coreutils/wc.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <getopt.h> diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 84b27fe..f3c21b3 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <pwd.h> diff --git a/coreutils/yes.c b/coreutils/yes.c index 11fa537..46873f3 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int yes_main(int argc, char **argv) @@ -25,7 +25,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_name_too_long #define bb_need_omitting_directory @@ -26,7 +26,7 @@ #include <string.h> #include <ctype.h> #include <errno.h> -#include "internal.h" +#include "busybox.h" /* globals from other files */ @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_invalid_date #define bb_need_memory_exhausted @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> @@ -29,7 +29,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <features.h> #include <stdio.h> #include <fcntl.h> diff --git a/deallocvt.c b/deallocvt.c index bb9632f..65af79b 100644 --- a/deallocvt.c +++ b/deallocvt.c @@ -3,7 +3,7 @@ * disalloc.c - aeb - 940501 - Disallocate virtual terminal(s) * Renamed deallocvt. */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <fcntl.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <mntent.h> #include <sys/vfs.h> @@ -20,7 +20,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int dirname_main(int argc, char **argv) @@ -15,7 +15,7 @@ * Support, replaced getopt, added some gotos for redundant stuff. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> @@ -22,7 +22,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> int dos2unix_main( int argc, char **argv ) { @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_name_too_long #include "messages.c" @@ -163,7 +163,7 @@ int du_main(int argc, char **argv) return(0); } -/* $Id: du.c,v 1.24 2000/07/17 16:17:19 proski Exp $ */ +/* $Id: du.c,v 1.25 2000/09/25 21:45:57 andersen Exp $ */ /* Local Variables: c-file-style: "linux" @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> @@ -12,7 +12,7 @@ * Erik Andersen <andersen@lineo.com> */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <fcntl.h> @@ -22,7 +22,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int diff --git a/editors/sed.c b/editors/sed.c index 0e0d7f5..cb3f1bb 100644 --- a/editors/sed.c +++ b/editors/sed.c @@ -49,7 +49,7 @@ #include <string.h> /* for strdup() */ #include <errno.h> #include <ctype.h> /* for isspace() */ -#include "internal.h" +#include "busybox.h" #define bb_need_full_version #define BB_DECLARE_EXTERN @@ -33,7 +33,7 @@ * One function can handle multiple operators all of equal precedence, * provided they all associate ((x op x) op x). */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> @@ -24,7 +24,7 @@ * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/ioctl.h> #include <fcntl.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <dirent.h> diff --git a/findutils/find.c b/findutils/find.c index 1c209ae..48faf2c 100644 --- a/findutils/find.c +++ b/findutils/find.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <dirent.h> diff --git a/findutils/grep.c b/findutils/grep.c index 3ee409c..003dae9 100644 --- a/findutils/grep.c +++ b/findutils/grep.c @@ -26,7 +26,7 @@ #include <regex.h> #include <string.h> /* for strerror() */ #include <errno.h> -#include "internal.h" +#include "busybox.h" extern int optind; /* in unistd.h */ extern int errno; /* for use with strerror() */ diff --git a/findutils/which.c b/findutils/which.c index 7df2557..da8801f 100644 --- a/findutils/which.c +++ b/findutils/which.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int which_main(int argc, char **argv) diff --git a/findutils/xargs.c b/findutils/xargs.c index b8ac31a..4a3fe3c 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/freeramdisk.c b/freeramdisk.c index 64915b3..22fc3e6 100644 --- a/freeramdisk.c +++ b/freeramdisk.c @@ -27,7 +27,7 @@ #include <fcntl.h> #include <sys/ioctl.h> #include <errno.h> -#include "internal.h" +#include "busybox.h" /* From linux/fs.h */ diff --git a/fsck_minix.c b/fsck_minix.c index 04c2b33..ef65e30 100644 --- a/fsck_minix.c +++ b/fsck_minix.c @@ -86,7 +86,7 @@ * enforced (but it's not much fun on a character device :-). */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <unistd.h> @@ -49,7 +49,7 @@ #include <ctype.h> #include <getopt.h> -#include "internal.h" +#include "busybox.h" /* NON_OPT is the code that is returned when a non-option is found in '+' mode */ @@ -26,7 +26,7 @@ #include <regex.h> #include <string.h> /* for strerror() */ #include <errno.h> -#include "internal.h" +#include "busybox.h" extern int optind; /* in unistd.h */ extern int errno; /* for use with strerror() */ @@ -27,7 +27,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <getopt.h> /* These defines are very important for BusyBox. Without these, @@ -29,7 +29,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_memory_exhausted #include "messages.c" @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int halt_main(int argc, char **argv) @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <stdio.h> @@ -100,4 +100,4 @@ int head_main(int argc, char **argv) return(0); } -/* $Id: head.c,v 1.13 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: head.c,v 1.14 2000/09/25 21:45:57 andersen Exp $ */ @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int hostid_main(int argc, char **argv) @@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: hostname.c,v 1.12 2000/07/16 20:57:15 kraai Exp $ + * $Id: hostname.c,v 1.13 2000/09/25 21:45:57 andersen Exp $ * Mini hostname implementation for busybox * * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <arpa/inet.h> #include <netdb.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <pwd.h> @@ -27,7 +27,7 @@ #define DEBUG_INIT */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/init/halt.c b/init/halt.c index 2ca36d0..c3e2523 100644 --- a/init/halt.c +++ b/init/halt.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int halt_main(int argc, char **argv) diff --git a/init/init.c b/init/init.c index 2c23e60..17e605b 100644 --- a/init/init.c +++ b/init/init.c @@ -27,7 +27,7 @@ #define DEBUG_INIT */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/init/poweroff.c b/init/poweroff.c index 126a0fb..3101a20 100644 --- a/init/poweroff.c +++ b/init/poweroff.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int poweroff_main(int argc, char **argv) diff --git a/init/reboot.c b/init/reboot.c index bde8dbd..354286d 100644 --- a/init/reboot.c +++ b/init/reboot.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int reboot_main(int argc, char **argv) @@ -36,7 +36,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <stddef.h> @@ -77,7 +77,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.24 2000/09/24 03:44:29 andersen Exp $" +#ident "$Id: insmod.c,v 1.25 2000/09/25 21:45:58 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -283,7 +283,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.24 2000/09/24 03:44:29 andersen Exp $" +#ident "$Id: insmod.c,v 1.25 2000/09/25 21:45:58 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ diff --git a/internal.h b/internal.h deleted file mode 100644 index 69f4554..0000000 --- a/internal.h +++ /dev/null @@ -1,468 +0,0 @@ -/* vi: set sw=4 ts=4: */ -/* - * Busybox main internal header file - * - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - * Based in part on code from sash, Copyright (c) 1999 by David I. Bell - * Permission has been granted to redistribute this code under the GPL. - * - */ -#ifndef _BB_INTERNAL_H_ -#define _BB_INTERNAL_H_ 1 - -#include "Config.h" - -#ifdef DMALLOC -#include "dmalloc.h" -#endif - -#include <stdlib.h> -#include <stdarg.h> -#include <string.h> -#include <unistd.h> -#include <errno.h> -#include <sys/stat.h> -#include <sys/param.h> -#include <mntent.h> -#include <regex.h> -/* for the _syscall() macros */ -#include <sys/syscall.h> -#include <linux/unistd.h> - - -/* Some useful definitions */ -#define FALSE ((int) 1) -#define TRUE ((int) 0) - -/* for mtab.c */ -#define MTAB_GETMOUNTPT '1' -#define MTAB_GETDEVICE '2' - -#define BUF_SIZE 8192 -#define EXPAND_ALLOC 1024 - - -#define isBlank(ch) (((ch) == ' ') || ((ch) == '\t')) -#define isDecimal(ch) (((ch) >= '0') && ((ch) <= '9')) -#define isOctal(ch) (((ch) >= '0') && ((ch) <= '7')) -#define isWildCard(ch) (((ch) == '*') || ((ch) == '?') || ((ch) == '[')) - -/* Macros for min/max. */ -#ifndef MIN -#define MIN(a,b) (((a)<(b))?(a):(b)) -#endif - -#ifndef MAX -#define MAX(a,b) (((a)>(b))?(a):(b)) -#endif - - -/* I don't like nested includes, but the string and io functions are used - * too often - */ -#include <stdio.h> -#if !defined(NO_STRING_H) || defined(STDC_HEADERS) -# include <string.h> -# if !defined(STDC_HEADERS) && !defined(NO_MEMORY_H) && !defined(__GNUC__) -# include <memory.h> -# endif -# define memzero(s, n) memset ((void *)(s), 0, (n)) -#else -# include <strings.h> -# 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, - _BB_DIR_SBIN, - _BB_DIR_USR_BIN, - _BB_DIR_USR_SBIN -}; - -struct BB_applet { - const char* name; - int (*main)(int argc, char** argv); - enum Location location; - const char* usage; -}; -/* From busybox.c */ -extern const struct BB_applet applets[]; - -extern int ar_main(int argc, char **argv); -extern int basename_main(int argc, char **argv); -extern int bogomips_main(int argc, char **argv); -extern int busybox_main(int argc, char** argv); -extern int cat_main(int argc, char** argv); -extern int chmod_chown_chgrp_main(int argc, char** argv); -extern int chroot_main(int argc, char** argv); -extern int chvt_main(int argc, char** argv); -extern int clear_main(int argc, char** argv); -extern int cp_mv_main(int argc, char** argv); -extern int cut_main(int argc, char** argv); -extern int date_main(int argc, char** argv); -extern int dc_main(int argc, char** argv); -extern int dd_main(int argc, char** argv); -extern int dirname_main(int argc, char** argv); -extern int deallocvt_main(int argc, char** argv); -extern int df_main(int argc, char** argv); -extern int dmesg_main(int argc, char** argv); -extern int dos2unix_main(int argc, char** argv); -extern int du_main(int argc, char** argv); -extern int dumpkmap_main(int argc, char** argv); -extern int dutmp_main(int argc, char** argv); -extern int echo_main(int argc, char** argv); -extern int expr_main(int argc, char** argv); -extern int false_main(int argc, char** argv); -extern int fbset_main(int argc, char** argv); -extern int fdisk_main(int argc, char** argv); -extern int fdflush_main(int argc, char **argv); -extern int fsck_minix_main(int argc, char **argv); -extern int find_main(int argc, char** argv); -extern int free_main(int argc, char** argv); -extern int freeramdisk_main(int argc, char** argv); -extern int getopt_main(int argc, char** argv); -extern int grep_main(int argc, char** argv); -extern int gunzip_main (int argc, char** argv); -extern int gzip_main(int argc, char** argv); -extern int halt_main(int argc, char** argv); -extern int head_main(int argc, char** argv); -extern int hostid_main(int argc, char** argv); -extern int hostname_main(int argc, char** argv); -extern int id_main(int argc, char** argv); -extern int init_main(int argc, char** argv); -extern int insmod_main(int argc, char** argv); -extern int kill_main(int argc, char** argv); -extern int length_main(int argc, char** argv); -extern int ln_main(int argc, char** argv); -extern int loadacm_main(int argc, char** argv); -extern int loadfont_main(int argc, char** argv); -extern int loadkmap_main(int argc, char** argv); -extern int losetup_main(int argc, char** argv); -extern int logger_main(int argc, char **argv); -extern int logname_main(int argc, char **argv); -extern int ls_main(int argc, char** argv); -extern int lsmod_main(int argc, char** argv); -extern int makedevs_main(int argc, char** argv); -extern int md5sum_main(int argc, char** argv); -extern int mkdir_main(int argc, char** argv); -extern int mkfifo_main(int argc, char **argv); -extern int mkfs_minix_main(int argc, char **argv); -extern int mknod_main(int argc, char** argv); -extern int mkswap_main(int argc, char** argv); -extern int mktemp_main(int argc, char **argv); -extern int nc_main(int argc, char** argv); -extern int more_main(int argc, char** argv); -extern int mount_main(int argc, char** argv); -extern int mt_main(int argc, char** argv); -extern int nslookup_main(int argc, char **argv); -extern int ping_main(int argc, char **argv); -extern int poweroff_main(int argc, char **argv); -extern int printf_main(int argc, char** argv); -extern int ps_main(int argc, char** argv); -extern int pwd_main(int argc, char** argv); -extern int rdate_main(int argc, char** argv); -extern int reboot_main(int argc, char** argv); -extern int renice_main(int argc, char** argv); -extern int reset_main(int argc, char** argv); -extern int rm_main(int argc, char** argv); -extern int rmdir_main(int argc, char **argv); -extern int rmmod_main(int argc, char** argv); -extern int sed_main(int argc, char** argv); -extern int sfdisk_main(int argc, char** argv); -extern int setkeycodes_main(int argc, char** argv); -extern int shell_main(int argc, char** argv); -extern int sleep_main(int argc, char** argv); -extern int sort_main(int argc, char** argv); -extern int swap_on_off_main(int argc, char** argv); -extern int sync_main(int argc, char** argv); -extern int syslogd_main(int argc, char **argv); -extern int tail_main(int argc, char** argv); -extern int tar_main(int argc, char** argv); -extern int tee_main(int argc, char** argv); -extern int test_main(int argc, char** argv); -extern int telnet_main(int argc, char** argv); -extern int touch_main(int argc, char** argv); -extern int tr_main(int argc, char** argv); -extern int true_main(int argc, char** argv); -extern int tput_main(int argc, char** argv); -extern int tryopen_main(int argc, char** argv); -extern int tty_main(int argc, char** argv); -extern int umount_main(int argc, char** argv); -extern int uname_main(int argc, char** argv); -extern int uniq_main(int argc, char** argv); -extern int unix2dos_main(int argc, char** argv); -extern int unrpm_main(int argc, char** argv); -extern int update_main(int argc, char** argv); -extern int uptime_main(int argc, char** argv); -extern int usleep_main(int argc, char** argv); -extern int uuencode_main(int argc, char** argv); -extern int uudecode_main(int argc, char** argv); -extern int wc_main(int argc, char** argv); -extern int wget_main(int argc, char** argv); -extern int which_main(int argc, char** argv); -extern int whoami_main(int argc, char** argv); -extern int xargs_main(int argc, char** argv); -extern int yes_main(int argc, char** argv); - -extern const char ar_usage[]; -extern const char basename_usage[]; -extern const char cat_usage[]; -extern const char chgrp_usage[]; -extern const char chmod_usage[]; -extern const char chown_usage[]; -extern const char chroot_usage[]; -extern const char chvt_usage[]; -extern const char clear_usage[]; -extern const char cp_usage[]; -extern const char cut_usage[]; -extern const char date_usage[]; -extern const char dc_usage[]; -extern const char dd_usage[]; -extern const char deallocvt_usage[]; -extern const char df_usage[]; -extern const char dirname_usage[]; -extern const char dmesg_usage[]; -extern const char dos2unix_usage[]; -extern const char du_usage[]; -extern const char dumpkmap_usage[]; -extern const char dutmp_usage[]; -extern const char echo_usage[]; -extern const char expr_usage[]; -extern const char false_usage[]; -extern const char fdflush_usage[]; -extern const char find_usage[]; -extern const char free_usage[]; -extern const char freeramdisk_usage[]; -extern const char fsck_minix_usage[]; -extern const char grep_usage[]; -extern const char gunzip_usage[]; -extern const char gzip_usage[]; -extern const char halt_usage[]; -extern const char head_usage[]; -extern const char hostid_usage[]; -extern const char hostname_usage[]; -extern const char id_usage[]; -extern const char insmod_usage[]; -extern const char kill_usage[]; -extern const char killall_usage[]; -extern const char length_usage[]; -extern const char ln_usage[]; -extern const char loadacm_usage[]; -extern const char loadfont_usage[]; -extern const char loadkmap_usage[]; -extern const char logger_usage[]; -extern const char logname_usage[]; -extern const char ls_usage[]; -extern const char lsmod_usage[]; -extern const char makedevs_usage[]; -extern const char md5sum_usage[]; -extern const char mkdir_usage[]; -extern const char mkfifo_usage[]; -extern const char mkfs_minix_usage[]; -extern const char mknod_usage[]; -extern const char mkswap_usage[]; -extern const char mktemp_usage[]; -extern const char more_usage[]; -extern const char mount_usage[]; -extern const char mt_usage[]; -extern const char mv_usage[]; -extern const char nc_usage[]; -extern const char nslookup_usage[]; -extern const char ping_usage[]; -extern const char poweroff_usage[]; -extern const char printf_usage[]; -extern const char ps_usage[]; -extern const char pwd_usage[]; -extern const char rdate_usage[]; -extern const char reboot_usage[]; -extern const char renice_usage[]; -extern const char reset_usage[]; -extern const char rm_usage[]; -extern const char rmdir_usage[]; -extern const char rmmod_usage[]; -extern const char sed_usage[]; -extern const char setkeycodes_usage[]; -extern const char shell_usage[]; -extern const char sleep_usage[]; -extern const char sort_usage[]; -extern const char swapoff_usage[]; -extern const char swapon_usage[]; -extern const char sync_usage[]; -extern const char syslogd_usage[]; -extern const char tail_usage[]; -extern const char tar_usage[]; -extern const char tee_usage[]; -extern const char telnet_usage[]; -extern const char test_usage[]; -extern const char touch_usage[]; -extern const char tr_usage[]; -extern const char true_usage[]; -extern const char tty_usage[]; -extern const char umount_usage[]; -extern const char uname_usage[]; -extern const char uniq_usage[]; -extern const char unix2dos_usage[]; -extern const char unrpm_usage[]; -extern const char update_usage[]; -extern const char uptime_usage[]; -extern const char usleep_usage[]; -extern const char uudecode_usage[]; -extern const char uuencode_usage[]; -extern const char wc_usage[]; -extern const char wget_usage[]; -extern const char which_usage[]; -extern const char whoami_usage[]; -extern const char xargs_usage[]; -extern const char yes_usage[]; - -extern const char *applet_name; - -extern void usage(const char *usage) __attribute__ ((noreturn)); -extern void errorMsg(const char *s, ...) __attribute__ ((format (printf, 1, 2))); -extern void fatalError(const char *s, ...) __attribute__ ((noreturn, format (printf, 1, 2))); - -const char *modeString(int mode); -const char *timeString(time_t timeVal); -int isDirectory(const char *name, const int followLinks, struct stat *statBuf); -int isDevice(const char *name); - -typedef struct ino_dev_hash_bucket_struct { - struct ino_dev_hash_bucket_struct *next; - ino_t ino; - dev_t dev; - char name[1]; -} ino_dev_hashtable_bucket_t; -int is_in_ino_dev_hashtable(const struct stat *statbuf, char **name); -void add_to_ino_dev_hashtable(const struct stat *statbuf, const char *name); -void reset_ino_dev_hashtable(void); - -int copyFile(const char *srcName, const char *destName, - int setModes, int followLinks, int forceFlag); -int copySubFile(int srcFd, int dstFd, size_t remaining); -char *buildName(const char *dirName, const char *fileName); -int makeString(int argc, const char **argv, char *buf, int bufLen); -char *getChunk(int size); -char *chunkstrdup(const char *str); -void freeChunks(void); -int fullWrite(int fd, const char *buf, int len); -int fullRead(int fd, char *buf, int len); -int recursiveAction(const char *fileName, int recurse, int followLinks, int depthFirst, - int (*fileAction) (const char *fileName, struct stat* statbuf, void* userData), - int (*dirAction) (const char *fileName, struct stat* statbuf, void* userData), - void* userData); - -extern int createPath (const char *name, int mode); -extern int parse_mode( const char* s, mode_t* theMode); - -extern int get_kernel_revision(void); - -extern int get_console_fd(char* tty_name); -extern struct mntent *findMountPoint(const char *name, const char *table); -extern void write_mtab(char* blockDevice, char* directory, - char* filesystemType, long flags, char* string_flags); -extern void erase_mtab(const char * name); -extern void mtab_read(void); -extern char *mtab_first(void **iter); -extern char *mtab_next(void **iter); -extern char *mtab_getinfo(const char *match, const char which); -extern int check_wildcard_match(const char* text, const char* pattern); -extern long getNum (const char *cp); -extern pid_t* findPidByName( char* pidName); -extern int find_real_root_device_name(char* name); -extern char *get_line_from_file(FILE *file); -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); - -#ifndef DMALLOC -extern void *xmalloc (size_t size); -extern void *xrealloc(void *old, size_t size); -extern void *xcalloc(size_t nmemb, size_t size); -extern char *xstrdup (const char *s); -#endif -extern char *xstrndup (const char *s, int n); - - -/* These parse entries in /etc/passwd and /etc/group. This is desirable - * for BusyBox since we want to avoid using the glibc NSS stuff, which - * increases target size and is often not needed embedded systems. */ -extern long my_getpwnam(char *name); -extern long my_getgrnam(char *name); -extern void my_getpwuid(char *name, long uid); -extern void my_getgrgid(char *group, long gid); -extern long my_getpwnamegid(char *name); - -extern int device_open(char *device, int mode); - -#if defined BB_FEATURE_MOUNT_LOOP -extern int del_loop(const char *device); -extern int set_loop(const char *device, const char *file, int offset, int *loopro); -extern char *find_unused_loop_device (void); -#endif - - -#if (__GLIBC__ < 2) && (defined BB_SYSLOGD || defined BB_INIT) -extern int vdprintf(int d, const char *format, va_list ap); -#endif - -#if defined BB_NFSMOUNT -int nfsmount(const char *spec, const char *node, int *flags, - char **extra_opts, char **mount_opts, int running_bg); -#endif - -#ifndef RB_POWER_OFF -/* Stop system and switch power off if possible. */ -#define RB_POWER_OFF 0x4321fedc -#endif - -/* Include our own copy of struct sysinfo to avoid binary compatability - * problems with Linux 2.4, which changed things. Grumble, grumble. */ -struct sysinfo { - long uptime; /* Seconds since boot */ - unsigned long loads[3]; /* 1, 5, and 15 minute load averages */ - unsigned long totalram; /* Total usable main memory size */ - unsigned long freeram; /* Available memory size */ - unsigned long sharedram; /* Amount of shared memory */ - unsigned long bufferram; /* Memory used by buffers */ - unsigned long totalswap; /* Total swap space size */ - unsigned long freeswap; /* swap space still available */ - unsigned short procs; /* Number of current processes */ - unsigned long totalhigh; /* Total high memory size */ - unsigned long freehigh; /* Available high memory size */ - unsigned int mem_unit; /* Memory unit size in bytes */ - char _f[20-2*sizeof(long)-sizeof(int)]; /* Padding: libc5 uses this.. */ -}; -extern int sysinfo (struct sysinfo* info); - -/* Bit map related macros -- libc5 doens't provide these... sigh. */ -#ifndef setbit -#define NBBY CHAR_BIT -#define setbit(a,i) ((a)[(i)/NBBY] |= 1<<((i)%NBBY)) -#define clrbit(a,i) ((a)[(i)/NBBY] &= ~(1<<((i)%NBBY))) -#define isset(a,i) ((a)[(i)/NBBY] & (1<<((i)%NBBY))) -#define isclr(a,i) (((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0) -#endif - -#endif /* _BB_INTERNAL_H_ */ @@ -21,7 +21,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> @@ -32,7 +32,7 @@ //#define DEBUG_SHELL -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <string.h> #include <stdio.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_not_a_directory #include "messages.c" @@ -7,7 +7,7 @@ * Peter Novodvorsky <petya@logic.ru> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <memory.h> @@ -7,7 +7,7 @@ * Loads the console font, and possibly the corresponding screen map(s). * (Adapted for busybox by Matej Vela.) */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <fcntl.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <fcntl.h> #include <stdio.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <sys/types.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int logname_main(int argc, char **argv) @@ -47,7 +47,7 @@ /************************************************************************/ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <stddef.h> @@ -7,7 +7,7 @@ * known bugs: can't deal with alpha ranges */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -20,7 +20,7 @@ /* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu> */ /* Hacked to work with BusyBox by Alfred M. Szmidt <ams@trillian.itslinux.org> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <ctype.h> @@ -66,7 +66,7 @@ extern _IO_ssize_t getline __P ((char **, size_t *, FILE *)); #include <string.h> #include <endian.h> -#include "internal.h" +#include "busybox.h" //---------------------------------------------------------------------------- //--------md5.h //---------------------------------------------------------------------------- @@ -36,7 +36,7 @@ //Then just use the string memory_exhausted when it is needed. // -#include "internal.h" +#include "busybox.h" #ifndef _BB_MESSAGES_C #define _BB_MESSAGES_C diff --git a/miscutils/dc.c b/miscutils/dc.c index fac48e8..48aa830 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <ctype.h> #include <stdio.h> #include <stdlib.h> diff --git a/miscutils/dutmp.c b/miscutils/dutmp.c index ec10941..cf5f1cf 100644 --- a/miscutils/dutmp.c +++ b/miscutils/dutmp.c @@ -12,7 +12,7 @@ * Erik Andersen <andersen@lineo.com> */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <fcntl.h> diff --git a/miscutils/makedevs.c b/miscutils/makedevs.c index c9802cc..f979871 100644 --- a/miscutils/makedevs.c +++ b/miscutils/makedevs.c @@ -7,7 +7,7 @@ * known bugs: can't deal with alpha ranges */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/miscutils/mktemp.c b/miscutils/mktemp.c index 2ec0785..62ca870 100644 --- a/miscutils/mktemp.c +++ b/miscutils/mktemp.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/miscutils/mt.c b/miscutils/mt.c index e77f58a..6acae4e 100644 --- a/miscutils/mt.c +++ b/miscutils/mt.c @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/mtio.h> #include <sys/fcntl.h> diff --git a/miscutils/update.c b/miscutils/update.c index 3f3d68b..e9f4969 100644 --- a/miscutils/update.c +++ b/miscutils/update.c @@ -28,7 +28,7 @@ * earlier) kernel. 2.2.x and higher flush filesystem buffers automatically. */ -#include "internal.h" +#include "busybox.h" #include <sys/param.h> #include <sys/syslog.h> #include <unistd.h> /* for getopt() */ @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define bb_need_name_too_long #define BB_DECLARE_EXTERN #include "messages.c" @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <errno.h> diff --git a/mkfs_minix.c b/mkfs_minix.c index fafcc23..15cf531 100644 --- a/mkfs_minix.c +++ b/mkfs_minix.c @@ -62,7 +62,7 @@ * removed getopt based parser and added a hand rolled one. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <unistd.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <sys/types.h> @@ -35,7 +35,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <string.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/modutils/insmod.c b/modutils/insmod.c index 136f9f0..0c81af6 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -36,7 +36,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <stddef.h> @@ -77,7 +77,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.24 2000/09/24 03:44:29 andersen Exp $" +#ident "$Id: insmod.c,v 1.25 2000/09/25 21:45:58 andersen Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -283,7 +283,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.24 2000/09/24 03:44:29 andersen Exp $" +#ident "$Id: insmod.c,v 1.25 2000/09/25 21:45:58 andersen Exp $" /* The relocatable object is manipulated using elfin types. */ diff --git a/modutils/lsmod.c b/modutils/lsmod.c index a4a0ece..ab4726b 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <stddef.h> diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 67b1084..dd29352 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <unistd.h> @@ -25,7 +25,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <fcntl.h> #include <signal.h> @@ -43,7 +43,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <unistd.h> #include <errno.h> @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/mtio.h> #include <sys/fcntl.h> @@ -1,5 +1,5 @@ /* vi: set sw=4 ts=4: */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <unistd.h> #include <errno.h> @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/networking/hostname.c b/networking/hostname.c index 77b545d..4320a96 100644 --- a/networking/hostname.c +++ b/networking/hostname.c @@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: hostname.c,v 1.12 2000/07/16 20:57:15 kraai Exp $ + * $Id: hostname.c,v 1.13 2000/09/25 21:45:57 andersen Exp $ * Mini hostname implementation for busybox * * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> @@ -23,7 +23,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -#include "internal.h" +#include "busybox.h" #include <errno.h> #include <arpa/inet.h> #include <netdb.h> diff --git a/networking/nc.c b/networking/nc.c index a544f32..fcacb0c 100644 --- a/networking/nc.c +++ b/networking/nc.c @@ -25,7 +25,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/networking/nslookup.c b/networking/nslookup.c index 10d36b2..acb3e3b 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <ctype.h> #include <errno.h> #include <stdio.h> @@ -170,4 +170,4 @@ int nslookup_main(int argc, char **argv) return( TRUE); } -/* $Id: nslookup.c,v 1.11 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: nslookup.c,v 1.12 2000/09/25 21:45:58 andersen Exp $ */ diff --git a/networking/ping.c b/networking/ping.c index f3ce6fb..70ea0f1 100644 --- a/networking/ping.c +++ b/networking/ping.c @@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: ping.c,v 1.24 2000/09/20 04:33:30 kraai Exp $ + * $Id: ping.c,v 1.25 2000/09/25 21:45:58 andersen Exp $ * Mini ping implementation for busybox * * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> @@ -31,7 +31,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <sys/param.h> #include <sys/socket.h> #include <sys/file.h> diff --git a/networking/telnet.c b/networking/telnet.c index cf55de6..bfa9644 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -31,7 +31,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <termios.h> #include <unistd.h> #include <errno.h> diff --git a/networking/wget.c b/networking/wget.c index c06e76d..58801ee 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -7,7 +7,7 @@ * <chip@laserlink.net> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -33,7 +33,7 @@ * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ -#include "internal.h" +#include "busybox.h" #undef FALSE #undef TRUE #include <unistd.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <ctype.h> #include <errno.h> #include <stdio.h> @@ -170,4 +170,4 @@ int nslookup_main(int argc, char **argv) return( TRUE); } -/* $Id: nslookup.c,v 1.11 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: nslookup.c,v 1.12 2000/09/25 21:45:58 andersen Exp $ */ @@ -1,6 +1,6 @@ /* vi: set sw=4 ts=4: */ /* - * $Id: ping.c,v 1.24 2000/09/20 04:33:30 kraai Exp $ + * $Id: ping.c,v 1.25 2000/09/25 21:45:58 andersen Exp $ * Mini ping implementation for busybox * * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> @@ -31,7 +31,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <sys/param.h> #include <sys/socket.h> #include <sys/file.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int poweroff_main(int argc, char **argv) @@ -47,7 +47,7 @@ // 19990508 Busy Boxed! Dave Cinege -#include "internal.h" +#include "busybox.h" #include <unistd.h> #include <stdio.h> #include <sys/types.h> diff --git a/procps/free.c b/procps/free.c index d8c3f0b..a33fa9a 100644 --- a/procps/free.c +++ b/procps/free.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> diff --git a/procps/kill.c b/procps/kill.c index 8f48ba0..7ade822 100644 --- a/procps/kill.c +++ b/procps/kill.c @@ -21,7 +21,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <errno.h> diff --git a/procps/ps.c b/procps/ps.c index a326bc5..df32161 100644 --- a/procps/ps.c +++ b/procps/ps.c @@ -28,7 +28,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <dirent.h> diff --git a/procps/renice.c b/procps/renice.c index af7ce94..d79a64d 100644 --- a/procps/renice.c +++ b/procps/renice.c @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <sys/time.h> diff --git a/procps/uptime.c b/procps/uptime.c index efdbccf..fe4e48c 100644 --- a/procps/uptime.c +++ b/procps/uptime.c @@ -28,7 +28,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <errno.h> @@ -28,7 +28,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <dirent.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <dirent.h> #include <errno.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #include "messages.c" #include <sys/time.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <signal.h> extern int reboot_main(int argc, char **argv) @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <sys/time.h> @@ -23,7 +23,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int reset_main(int argc, char **argv) @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <utime.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <unistd.h> @@ -49,7 +49,7 @@ #include <string.h> /* for strdup() */ #include <errno.h> #include <ctype.h> /* for isspace() */ -#include "internal.h" +#include "busybox.h" #define bb_need_full_version #define BB_DECLARE_EXTERN diff --git a/setkeycodes.c b/setkeycodes.c index 284ffa1..63c1063 100644 --- a/setkeycodes.c +++ b/setkeycodes.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <fcntl.h> @@ -32,7 +32,7 @@ //#define DEBUG_SHELL -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> diff --git a/shell/cmdedit.c b/shell/cmdedit.c index 04abc93..af29b05 100644 --- a/shell/cmdedit.c +++ b/shell/cmdedit.c @@ -31,7 +31,7 @@ terminal width. (more then one line.) However, history will. */ -#include "internal.h" +#include "busybox.h" #ifdef BB_FEATURE_SH_COMMAND_EDITING #include <stdio.h> diff --git a/shell/lash.c b/shell/lash.c index b8f4072..77efc6a 100644 --- a/shell/lash.c +++ b/shell/lash.c @@ -32,7 +32,7 @@ //#define DEBUG_SHELL -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int sleep_main(int argc, char **argv) @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <fcntl.h> #include <dirent.h> @@ -288,4 +288,4 @@ int sort_main(int argc, char **argv) return(0); } -/* $Id: sort.c,v 1.21 2000/09/13 02:46:13 kraai Exp $ */ +/* $Id: sort.c,v 1.22 2000/09/25 21:45:58 andersen Exp $ */ diff --git a/swaponoff.c b/swaponoff.c index 6aafe51..4a1c8f9 100644 --- a/swaponoff.c +++ b/swaponoff.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/mount.h> #include <mntent.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int sync_main(int argc, char **argv) diff --git a/sysklogd/logger.c b/sysklogd/logger.c index f4a0f82..fa1cf6d 100644 --- a/sysklogd/logger.c +++ b/sysklogd/logger.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <sys/types.h> diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index d647866..9bedc84 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c @@ -23,7 +23,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -23,7 +23,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> @@ -38,7 +38,7 @@ #include <unistd.h> #include <string.h> #include <getopt.h> -#include "internal.h" +#include "busybox.h" #define STDIN "standard input" #define LINES 0 @@ -36,7 +36,7 @@ */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #define bb_need_io_error #define bb_need_name_longer_then_foo @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <getopt.h> #include <stdio.h> @@ -31,7 +31,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <termios.h> #include <unistd.h> #include <errno.h> @@ -31,7 +31,7 @@ * "This program is in the Public Domain." */ -#include "internal.h" +#include "busybox.h" #include <sys/types.h> #include <unistd.h> #include <ctype.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <fcntl.h> @@ -24,7 +24,7 @@ * Original copyright notice is retained at the end of this file. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/true_false.c b/true_false.c index c56f5e7..b3b221e 100644 --- a/true_false.c +++ b/true_false.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" extern int true_main(int argc, char **argv) @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <mntent.h> #include <errno.h> @@ -31,7 +31,7 @@ /* Busyboxed by Erik Andersen */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/types.h> #include <sys/utsname.h> @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <string.h> #include <errno.h> @@ -179,4 +179,4 @@ int uniq_main(int argc, char **argv) return(0); } -/* $Id: uniq.c,v 1.13 2000/07/16 20:57:15 kraai Exp $ */ +/* $Id: uniq.c,v 1.14 2000/09/25 21:45:58 andersen Exp $ */ @@ -22,7 +22,7 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> int unix2dos_main( int argc, char **argv ) { @@ -13,7 +13,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ -#include "internal.h" +#include "busybox.h" #include <unistd.h> #include <stdio.h> #include <stdlib.h> @@ -28,7 +28,7 @@ * earlier) kernel. 2.2.x and higher flush filesystem buffers automatically. */ -#include "internal.h" +#include "busybox.h" #include <sys/param.h> #include <sys/syslog.h> #include <unistd.h> /* for getopt() */ @@ -28,7 +28,7 @@ */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <errno.h> @@ -1,4 +1,4 @@ -#include "internal.h" +#include "busybox.h" #if defined BB_AR const char ar_usage[] = @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <unistd.h> diff --git a/util-linux/dmesg.c b/util-linux/dmesg.c index 99d053a..88b5d13 100644 --- a/util-linux/dmesg.c +++ b/util-linux/dmesg.c @@ -15,7 +15,7 @@ * Support, replaced getopt, added some gotos for redundant stuff. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 235338c..32325a7 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c @@ -24,7 +24,7 @@ * Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be) */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> diff --git a/util-linux/fdflush.c b/util-linux/fdflush.c index 6bc3e7d..6633e12 100644 --- a/util-linux/fdflush.c +++ b/util-linux/fdflush.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/ioctl.h> #include <fcntl.h> diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index 64915b3..22fc3e6 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -27,7 +27,7 @@ #include <fcntl.h> #include <sys/ioctl.h> #include <errno.h> -#include "internal.h" +#include "busybox.h" /* From linux/fs.h */ diff --git a/util-linux/fsck_minix.c b/util-linux/fsck_minix.c index 04c2b33..ef65e30 100644 --- a/util-linux/fsck_minix.c +++ b/util-linux/fsck_minix.c @@ -86,7 +86,7 @@ * enforced (but it's not much fun on a character device :-). */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> #include <unistd.h> diff --git a/util-linux/getopt.c b/util-linux/getopt.c index fb75790..919ae6c 100644 --- a/util-linux/getopt.c +++ b/util-linux/getopt.c @@ -49,7 +49,7 @@ #include <ctype.h> #include <getopt.h> -#include "internal.h" +#include "busybox.h" /* NON_OPT is the code that is returned when a non-option is found in '+' mode */ diff --git a/util-linux/mkfs_minix.c b/util-linux/mkfs_minix.c index fafcc23..15cf531 100644 --- a/util-linux/mkfs_minix.c +++ b/util-linux/mkfs_minix.c @@ -62,7 +62,7 @@ * removed getopt based parser and added a hand rolled one. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <time.h> #include <unistd.h> diff --git a/util-linux/mkswap.c b/util-linux/mkswap.c index 70028dc..8a9767c 100644 --- a/util-linux/mkswap.c +++ b/util-linux/mkswap.c @@ -35,7 +35,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <unistd.h> #include <string.h> diff --git a/util-linux/more.c b/util-linux/more.c index 45b7c12..caabc44 100644 --- a/util-linux/more.c +++ b/util-linux/more.c @@ -25,7 +25,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <fcntl.h> #include <signal.h> diff --git a/util-linux/mount.c b/util-linux/mount.c index 598b650..8b115c9 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c @@ -43,7 +43,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <unistd.h> #include <errno.h> diff --git a/util-linux/nfsmount.c b/util-linux/nfsmount.c index 628772b..abae19a 100644 --- a/util-linux/nfsmount.c +++ b/util-linux/nfsmount.c @@ -33,7 +33,7 @@ * nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp */ -#include "internal.h" +#include "busybox.h" #undef FALSE #undef TRUE #include <unistd.h> diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 20536d2..915c4bd 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #define BB_DECLARE_EXTERN #include "messages.c" #include <sys/time.h> diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index 6aafe51..4a1c8f9 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <sys/mount.h> #include <mntent.h> diff --git a/util-linux/umount.c b/util-linux/umount.c index 6a5e4ca..1d9c6bb 100644 --- a/util-linux/umount.c +++ b/util-linux/umount.c @@ -22,7 +22,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <mntent.h> #include <errno.h> @@ -25,7 +25,7 @@ * */ -#include "internal.h" +#include "busybox.h" #if defined (BB_CHMOD_CHOWN_CHGRP) \ || defined (BB_CP_MV) \ || defined (BB_FIND) \ @@ -51,7 +51,7 @@ /* Reworked to GNU style by Ian Lance Taylor, ian@airs.com, August 93. */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> @@ -52,7 +52,7 @@ /* Reworked to GNU style by Ian Lance Taylor, ian@airs.com, August 93. */ /* Hacked to work with BusyBox by Alfred M. Szmidt */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <errno.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <getopt.h> @@ -7,7 +7,7 @@ * <chip@laserlink.net> */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int which_main(int argc, char **argv) @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> #include <pwd.h> @@ -21,7 +21,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -20,7 +20,7 @@ * */ -#include "internal.h" +#include "busybox.h" #include <stdio.h> extern int yes_main(int argc, char **argv) |