OSDN Git Service

Renamed "internal.h" to the more sensible "busybox.h".
authorEric Andersen <andersen@codepoet.org>
Mon, 25 Sep 2000 21:45:58 +0000 (21:45 -0000)
committerEric Andersen <andersen@codepoet.org>
Mon, 25 Sep 2000 21:45:58 +0000 (21:45 -0000)
 -Erik

224 files changed:
Changelog
Makefile
applets/busybox.c
applets/usage.c
ar.c
archival/ar.c
archival/gunzip.c
archival/gzip.c
archival/tar.c
basename.c
busybox.c
cat.c
chmod_chown_chgrp.c
chroot.c
chvt.c
clear.c
cmdedit.c
console-tools/chvt.c
console-tools/clear.c
console-tools/deallocvt.c
console-tools/dumpkmap.c
console-tools/loadacm.c
console-tools/loadfont.c
console-tools/loadkmap.c
console-tools/reset.c
console-tools/setkeycodes.c
coreutils/basename.c
coreutils/cat.c
coreutils/chroot.c
coreutils/cut.c
coreutils/date.c
coreutils/dd.c
coreutils/df.c
coreutils/dirname.c
coreutils/dos2unix.c
coreutils/du.c
coreutils/echo.c
coreutils/expr.c
coreutils/head.c
coreutils/hostid.c
coreutils/id.c
coreutils/length.c
coreutils/ln.c
coreutils/logname.c
coreutils/ls.c
coreutils/md5sum.c
coreutils/mkdir.c
coreutils/mkfifo.c
coreutils/mknod.c
coreutils/printf.c
coreutils/pwd.c
coreutils/rm.c
coreutils/rmdir.c
coreutils/sleep.c
coreutils/sort.c
coreutils/sync.c
coreutils/tail.c
coreutils/tee.c
coreutils/test.c
coreutils/touch.c
coreutils/tr.c
coreutils/tty.c
coreutils/uname.c
coreutils/uniq.c
coreutils/usleep.c
coreutils/uudecode.c
coreutils/uuencode.c
coreutils/wc.c
coreutils/whoami.c
coreutils/yes.c
cp_mv.c
cut.c
date.c
dc.c
dd.c
deallocvt.c
df.c
dirname.c
dmesg.c
dos2unix.c
du.c
dumpkmap.c
dutmp.c
echo.c
editors/sed.c
expr.c
fbset.c
fdflush.c
find.c
findutils/find.c
findutils/grep.c
findutils/which.c
findutils/xargs.c
free.c
freeramdisk.c
fsck_minix.c
getopt.c
grep.c
gunzip.c
gzip.c
halt.c
head.c
hostid.c
hostname.c
id.c
init.c
init/halt.c
init/init.c
init/poweroff.c
init/reboot.c
insmod.c
internal.h [deleted file]
kill.c
lash.c
length.c
ln.c
loadacm.c
loadfont.c
loadkmap.c
logger.c
logname.c
ls.c
lsmod.c
makedevs.c
md5sum.c
messages.c
miscutils/dc.c
miscutils/dutmp.c
miscutils/makedevs.c
miscutils/mktemp.c
miscutils/mt.c
miscutils/update.c
mkdir.c
mkfifo.c
mkfs_minix.c
mknod.c
mkswap.c
mktemp.c
modutils/insmod.c
modutils/lsmod.c
modutils/rmmod.c
more.c
mount.c
mt.c
mtab.c
nc.c
networking/hostname.c
networking/nc.c
networking/nslookup.c
networking/ping.c
networking/telnet.c
networking/wget.c
nfsmount.c
nslookup.c
ping.c
poweroff.c
printf.c
procps/free.c
procps/kill.c
procps/ps.c
procps/renice.c
procps/uptime.c
ps.c
pwd.c
rdate.c
reboot.c
renice.c
reset.c
rm.c
rmdir.c
rmmod.c
sed.c
setkeycodes.c
sh.c
shell/cmdedit.c
shell/lash.c
sleep.c
sort.c
swaponoff.c
sync.c
sysklogd/logger.c
sysklogd/syslogd.c
syslogd.c
tail.c
tar.c
tee.c
telnet.c
test.c
touch.c
tr.c
true_false.c
tty.c
umount.c
uname.c
uniq.c
unix2dos.c
unrpm.c
update.c
uptime.c
usage.c
usleep.c
util-linux/dmesg.c
util-linux/fbset.c
util-linux/fdflush.c
util-linux/freeramdisk.c
util-linux/fsck_minix.c
util-linux/getopt.c
util-linux/mkfs_minix.c
util-linux/mkswap.c
util-linux/more.c
util-linux/mount.c
util-linux/nfsmount.c
util-linux/rdate.c
util-linux/swaponoff.c
util-linux/umount.c
utility.c
uudecode.c
uuencode.c
wc.c
wget.c
which.c
whoami.c
xargs.c
yes.c

index b374845..930a7df 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -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.
 
index 4695390..5cb8886 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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
 
index 17a4c44..825f40e 100644 (file)
@@ -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[] = {
index c4da08a..ae6cbaa 100644 (file)
@@ -1,4 +1,4 @@
-#include "internal.h"
+#include "busybox.h"
 
 #if defined BB_AR
 const char ar_usage[] =
diff --git a/ar.c b/ar.c
index 59c3a77..f3ba59b 100644 (file)
--- a/ar.c
+++ b/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 */
index 59c3a77..f3ba59b 100644 (file)
@@ -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 */
index b27ebed..ee86930 100644 (file)
@@ -27,7 +27,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <getopt.h>
 
 /* These defines are very important for BusyBox.  Without these,
index c083268..e518ffd 100644 (file)
@@ -29,7 +29,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #define bb_need_memory_exhausted
 #include "messages.c"
index e4bdd0a..c14a619 100644 (file)
@@ -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
index 5b83eef..4d9fc4e 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int basename_main(int argc, char **argv)
index 17a4c44..825f40e 100644 (file)
--- a/busybox.c
+++ b/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/cat.c b/cat.c
index d47f814..51f1d27 100644 (file)
--- a/cat.c
+++ b/cat.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int cat_main(int argc, char **argv)
index b347707..1ec7eec 100644 (file)
@@ -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
index e8ce539..f0a2981 100644 (file)
--- a/chroot.c
+++ b/chroot.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
diff --git a/chvt.c b/chvt.c
index 87a1248..d4b16a0 100644 (file)
--- a/chvt.c
+++ b/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/clear.c b/clear.c
index dba1056..4a8e045 100644 (file)
--- a/clear.c
+++ b/clear.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 
index 04abc93..af29b05 100644 (file)
--- a/cmdedit.c
+++ b/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>
index 87a1248..d4b16a0 100644 (file)
@@ -4,7 +4,7 @@
  *
  * busyboxed by Erik Andersen
  */
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
index dba1056..4a8e045 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 
index bb9632f..65af79b 100644 (file)
@@ -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>
index 13b7d89..2d989df 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 7f669bf..826c2a3 100644 (file)
@@ -7,7 +7,7 @@
  * Peter Novodvorsky <petya@logic.ru>
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <memory.h>
index e93ca31..d6eadc3 100644 (file)
@@ -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>
index 2321a1e..3f8d726 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index 6c4ae35..8e2c491 100644 (file)
@@ -23,7 +23,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int reset_main(int argc, char **argv)
index 284ffa1..63c1063 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
index 5b83eef..4d9fc4e 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int basename_main(int argc, char **argv)
index d47f814..51f1d27 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int cat_main(int argc, char **argv)
index e8ce539..f0a2981 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <errno.h>
index fec52d3..1d36a4e 100644 (file)
@@ -26,7 +26,7 @@
 #include <string.h>
 #include <ctype.h>
 #include <errno.h>
-#include "internal.h"
+#include "busybox.h"
 
 
 /* globals from other files */
index 571a556..2e99aea 100644 (file)
@@ -20,7 +20,7 @@
  *
 */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #define bb_need_invalid_date
 #define bb_need_memory_exhausted
index 697cb7e..01441c3 100644 (file)
@@ -29,7 +29,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <features.h>
 #include <stdio.h>
 #include <fcntl.h>
index d8f8b77..8d6242c 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <mntent.h>
 #include <sys/vfs.h>
index e63fef3..23f46be 100644 (file)
@@ -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)
index 9634687..c9f783f 100644 (file)
@@ -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 ) {
index 5a08abb..408ad99 100644 (file)
@@ -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"
index 924cdd4..6890d95 100644 (file)
@@ -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 
index 9e3c04a..670352e 100644 (file)
@@ -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>
 
index 58b3cae..c232e11 100644 (file)
@@ -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 $ */
index f1010a6..47bd8d7 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int hostid_main(int argc, char **argv)
index a1a1792..fdfc33c 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <pwd.h>
index cf4fb1c..14d15c8 100644 (file)
@@ -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>
index d5f44ea..8ef8d05 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #define bb_need_not_a_directory
 #include "messages.c"
index a0aff42..09ee249 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int logname_main(int argc, char **argv)
index 0e08f76..385d6b2 100644 (file)
@@ -47,7 +47,7 @@
 
 /************************************************************************/
 
-#include "internal.h"
+#include "busybox.h"
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <stdio.h>
index a791a41..c7e5402 100644 (file)
@@ -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
 //----------------------------------------------------------------------------
index f824cdc..04310e4 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #define bb_need_name_too_long
 #define BB_DECLARE_EXTERN
 #include "messages.c"
index 5d4126a..5e1bc1a 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <errno.h>
index b815aa1..ecb0e47 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <sys/types.h>
index 94b8093..832ca13 100644 (file)
@@ -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>
index f0c923b..c9de777 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <dirent.h>
 #include <errno.h>
index c93a94c..4f97cad 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <time.h>
 #include <utime.h>
index 500890e..14ebf92 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
index d6705c4..709e3de 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int sleep_main(int argc, char **argv)
index a74f96a..3fe4c77 100644 (file)
@@ -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 $ */
index 3737cb1..8f101cf 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int sync_main(int argc, char **argv)
index dcb4f67..1091d28 100644 (file)
@@ -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
index dc98760..6218013 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <getopt.h>
 #include <stdio.h>
 
index a2bec44..acd6947 100644 (file)
@@ -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>
index 464aedb..7db6c6e 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <fcntl.h>
index 0040924..54b6abc 100644 (file)
@@ -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>
index bbc051f..6eebed9 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 
index 55616dd..8d9427c 100644 (file)
@@ -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>
index 016fc77..ef38587 100644 (file)
@@ -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 $ */
index fcdf3bb..69790ef 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <unistd.h>
 
index 90bef92..965ded5 100644 (file)
@@ -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>
index 1433c7f..5835bd2 100644 (file)
@@ -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>
index ca5b368..b1c9a51 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <getopt.h>
 
index 84b27fe..f3c21b3 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <pwd.h>
 
index 11fa537..46873f3 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int yes_main(int argc, char **argv)
diff --git a/cp_mv.c b/cp_mv.c
index f56c6dd..2257f44 100644 (file)
--- a/cp_mv.c
+++ b/cp_mv.c
@@ -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
diff --git a/cut.c b/cut.c
index fec52d3..1d36a4e 100644 (file)
--- a/cut.c
+++ b/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/date.c b/date.c
index 571a556..2e99aea 100644 (file)
--- a/date.c
+++ b/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/dc.c b/dc.c
index fac48e8..48aa830 100644 (file)
--- a/dc.c
+++ b/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/dd.c b/dd.c
index 697cb7e..01441c3 100644 (file)
--- a/dd.c
+++ b/dd.c
@@ -29,7 +29,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <features.h>
 #include <stdio.h>
 #include <fcntl.h>
index bb9632f..65af79b 100644 (file)
@@ -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/df.c b/df.c
index d8f8b77..8d6242c 100644 (file)
--- a/df.c
+++ b/df.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <mntent.h>
 #include <sys/vfs.h>
index e63fef3..23f46be 100644 (file)
--- a/dirname.c
+++ b/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/dmesg.c b/dmesg.c
index 99d053a..88b5d13 100644 (file)
--- a/dmesg.c
+++ b/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>
 
index 9634687..c9f783f 100644 (file)
@@ -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/du.c b/du.c
index 5a08abb..408ad99 100644 (file)
--- a/du.c
+++ b/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"
index 13b7d89..2d989df 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
diff --git a/dutmp.c b/dutmp.c
index ec10941..cf5f1cf 100644 (file)
--- a/dutmp.c
+++ b/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/echo.c b/echo.c
index 924cdd4..6890d95 100644 (file)
--- a/echo.c
+++ b/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 
index 0e0d7f5..cb3f1bb 100644 (file)
@@ -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/expr.c b/expr.c
index 9e3c04a..670352e 100644 (file)
--- a/expr.c
+++ b/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/fbset.c b/fbset.c
index 235338c..32325a7 100644 (file)
--- a/fbset.c
+++ b/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>
index 6bc3e7d..6633e12 100644 (file)
--- a/fdflush.c
+++ b/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/find.c b/find.c
index 1c209ae..48faf2c 100644 (file)
--- a/find.c
+++ b/find.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <dirent.h>
index 1c209ae..48faf2c 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <dirent.h>
index 3ee409c..003dae9 100644 (file)
@@ -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() */
index 7df2557..da8801f 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int which_main(int argc, char **argv)
index b8ac31a..4a3fe3c 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/free.c b/free.c
index d8c3f0b..a33fa9a 100644 (file)
--- a/free.c
+++ b/free.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
index 64915b3..22fc3e6 100644 (file)
@@ -27,7 +27,7 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <errno.h>
-#include "internal.h"
+#include "busybox.h"
 
 
 /* From linux/fs.h */
index 04c2b33..ef65e30 100644 (file)
@@ -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>
index fb75790..919ae6c 100644 (file)
--- a/getopt.c
+++ b/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/grep.c b/grep.c
index 3ee409c..003dae9 100644 (file)
--- a/grep.c
+++ b/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() */
index b27ebed..ee86930 100644 (file)
--- a/gunzip.c
+++ b/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/gzip.c b/gzip.c
index c083268..e518ffd 100644 (file)
--- a/gzip.c
+++ b/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/halt.c b/halt.c
index 2ca36d0..c3e2523 100644 (file)
--- a/halt.c
+++ b/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/head.c b/head.c
index 58b3cae..c232e11 100644 (file)
--- a/head.c
+++ b/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 $ */
index f1010a6..47bd8d7 100644 (file)
--- a/hostid.c
+++ b/hostid.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int hostid_main(int argc, char **argv)
index 77b545d..4320a96 100644 (file)
@@ -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/id.c b/id.c
index a1a1792..fdfc33c 100644 (file)
--- a/id.c
+++ b/id.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <pwd.h>
diff --git a/init.c b/init.c
index 2c23e60..17e605b 100644 (file)
--- a/init.c
+++ b/init.c
@@ -27,7 +27,7 @@
 #define DEBUG_INIT
 */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
index 2ca36d0..c3e2523 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int halt_main(int argc, char **argv)
index 2c23e60..17e605b 100644 (file)
@@ -27,7 +27,7 @@
 #define DEBUG_INIT
 */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
index 126a0fb..3101a20 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int poweroff_main(int argc, char **argv)
index bde8dbd..354286d 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int reboot_main(int argc, char **argv)
index 136f9f0..0c81af6 100644 (file)
--- a/insmod.c
+++ b/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/internal.h b/internal.h
deleted file mode 100644 (file)
index 69f4554..0000000
+++ /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_ */
diff --git a/kill.c b/kill.c
index 8f48ba0..7ade822 100644 (file)
--- a/kill.c
+++ b/kill.c
@@ -21,7 +21,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
diff --git a/lash.c b/lash.c
index b8f4072..77efc6a 100644 (file)
--- a/lash.c
+++ b/lash.c
@@ -32,7 +32,7 @@
 //#define DEBUG_SHELL
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
index cf4fb1c..14d15c8 100644 (file)
--- a/length.c
+++ b/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/ln.c b/ln.c
index d5f44ea..8ef8d05 100644 (file)
--- a/ln.c
+++ b/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"
index 7f669bf..826c2a3 100644 (file)
--- a/loadacm.c
+++ b/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>
index e93ca31..d6eadc3 100644 (file)
@@ -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>
index 2321a1e..3f8d726 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <errno.h>
 #include <fcntl.h>
 #include <stdio.h>
index f4a0f82..fa1cf6d 100644 (file)
--- a/logger.c
+++ b/logger.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/types.h>
index a0aff42..09ee249 100644 (file)
--- a/logname.c
+++ b/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/ls.c b/ls.c
index 0e08f76..385d6b2 100644 (file)
--- a/ls.c
+++ b/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/lsmod.c b/lsmod.c
index a4a0ece..ab4726b 100644 (file)
--- a/lsmod.c
+++ b/lsmod.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <stddef.h>
index c9802cc..f979871 100644 (file)
@@ -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>
index a791a41..c7e5402 100644 (file)
--- a/md5sum.c
+++ b/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
 //----------------------------------------------------------------------------
index f7a772c..81fd9c7 100644 (file)
@@ -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
 
index fac48e8..48aa830 100644 (file)
@@ -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>
index ec10941..cf5f1cf 100644 (file)
@@ -12,7 +12,7 @@
  * Erik Andersen <andersen@lineo.com>
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <sys/types.h>
 #include <fcntl.h>
 
index c9802cc..f979871 100644 (file)
@@ -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>
index 2ec0785..62ca870 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
index e77f58a..6acae4e 100644 (file)
@@ -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>
index 3f3d68b..e9f4969 100644 (file)
@@ -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() */
diff --git a/mkdir.c b/mkdir.c
index f824cdc..04310e4 100644 (file)
--- a/mkdir.c
+++ b/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"
index 5d4126a..5e1bc1a 100644 (file)
--- a/mkfifo.c
+++ b/mkfifo.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 #include <errno.h>
index fafcc23..15cf531 100644 (file)
@@ -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/mknod.c b/mknod.c
index b815aa1..ecb0e47 100644 (file)
--- a/mknod.c
+++ b/mknod.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <sys/types.h>
index 70028dc..8a9767c 100644 (file)
--- a/mkswap.c
+++ b/mkswap.c
@@ -35,7 +35,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
index 2ec0785..62ca870 100644 (file)
--- a/mktemp.c
+++ b/mktemp.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
index 136f9f0..0c81af6 100644 (file)
@@ -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.  */
 
index a4a0ece..ab4726b 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <stddef.h>
index 67b1084..dd29352 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
diff --git a/more.c b/more.c
index 45b7c12..caabc44 100644 (file)
--- a/more.c
+++ b/more.c
@@ -25,7 +25,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <fcntl.h>
 #include <signal.h>
diff --git a/mount.c b/mount.c
index 598b650..8b115c9 100644 (file)
--- a/mount.c
+++ b/mount.c
@@ -43,7 +43,7 @@
  *     
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
diff --git a/mt.c b/mt.c
index e77f58a..6acae4e 100644 (file)
--- a/mt.c
+++ b/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/mtab.c b/mtab.c
index 27489cf..8984d88 100644 (file)
--- a/mtab.c
+++ b/mtab.c
@@ -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>
diff --git a/nc.c b/nc.c
index a544f32..fcacb0c 100644 (file)
--- a/nc.c
+++ b/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>
index 77b545d..4320a96 100644 (file)
@@ -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>
index a544f32..fcacb0c 100644 (file)
@@ -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>
index 10d36b2..acb3e3b 100644 (file)
@@ -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 $ */
index f3ce6fb..70ea0f1 100644 (file)
@@ -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>
index cf55de6..bfa9644 100644 (file)
@@ -31,7 +31,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <termios.h>
 #include <unistd.h>
 #include <errno.h>
index c06e76d..58801ee 100644 (file)
@@ -7,7 +7,7 @@
  * <chip@laserlink.net>
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
index 628772b..abae19a 100644 (file)
@@ -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>
index 10d36b2..acb3e3b 100644 (file)
@@ -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/ping.c b/ping.c
index f3ce6fb..70ea0f1 100644 (file)
--- a/ping.c
+++ b/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>
index 126a0fb..3101a20 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int poweroff_main(int argc, char **argv)
index 94b8093..832ca13 100644 (file)
--- a/printf.c
+++ b/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>
index d8c3f0b..a33fa9a 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
index 8f48ba0..7ade822 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <errno.h>
index a326bc5..df32161 100644 (file)
@@ -28,7 +28,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <dirent.h>
index af7ce94..d79a64d 100644 (file)
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <sys/time.h>
index efdbccf..fe4e48c 100644 (file)
@@ -28,7 +28,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <time.h>
 #include <errno.h>
diff --git a/ps.c b/ps.c
index a326bc5..df32161 100644 (file)
--- a/ps.c
+++ b/ps.c
@@ -28,7 +28,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <dirent.h>
diff --git a/pwd.c b/pwd.c
index f0c923b..c9de777 100644 (file)
--- a/pwd.c
+++ b/pwd.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <dirent.h>
 #include <errno.h>
diff --git a/rdate.c b/rdate.c
index 20536d2..915c4bd 100644 (file)
--- a/rdate.c
+++ b/rdate.c
@@ -21,7 +21,7 @@
  *
 */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #include "messages.c"
 #include <sys/time.h>
index bde8dbd..354286d 100644 (file)
--- a/reboot.c
+++ b/reboot.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <signal.h>
 
 extern int reboot_main(int argc, char **argv)
index af7ce94..d79a64d 100644 (file)
--- a/renice.c
+++ b/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/reset.c b/reset.c
index 6c4ae35..8e2c491 100644 (file)
--- a/reset.c
+++ b/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/rm.c b/rm.c
index c93a94c..4f97cad 100644 (file)
--- a/rm.c
+++ b/rm.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <time.h>
 #include <utime.h>
diff --git a/rmdir.c b/rmdir.c
index 500890e..14ebf92 100644 (file)
--- a/rmdir.c
+++ b/rmdir.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 
diff --git a/rmmod.c b/rmmod.c
index 67b1084..dd29352 100644 (file)
--- a/rmmod.c
+++ b/rmmod.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <errno.h>
 #include <unistd.h>
diff --git a/sed.c b/sed.c
index 0e0d7f5..cb3f1bb 100644 (file)
--- a/sed.c
+++ b/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
index 284ffa1..63c1063 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
diff --git a/sh.c b/sh.c
index b8f4072..77efc6a 100644 (file)
--- a/sh.c
+++ b/sh.c
@@ -32,7 +32,7 @@
 //#define DEBUG_SHELL
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
index 04abc93..af29b05 100644 (file)
@@ -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>
index b8f4072..77efc6a 100644 (file)
@@ -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/sleep.c b/sleep.c
index d6705c4..709e3de 100644 (file)
--- a/sleep.c
+++ b/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/sort.c b/sort.c
index a74f96a..3fe4c77 100644 (file)
--- a/sort.c
+++ b/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 $ */
index 6aafe51..4a1c8f9 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/mount.h>
 #include <mntent.h>
diff --git a/sync.c b/sync.c
index 3737cb1..8f101cf 100644 (file)
--- a/sync.c
+++ b/sync.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int sync_main(int argc, char **argv)
index f4a0f82..fa1cf6d 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <sys/types.h>
index d647866..9bedc84 100644 (file)
@@ -23,7 +23,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
index d647866..9bedc84 100644 (file)
--- a/syslogd.c
+++ b/syslogd.c
@@ -23,7 +23,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <ctype.h>
diff --git a/tail.c b/tail.c
index dcb4f67..1091d28 100644 (file)
--- a/tail.c
+++ b/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/tar.c b/tar.c
index e4bdd0a..c14a619 100644 (file)
--- a/tar.c
+++ b/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
diff --git a/tee.c b/tee.c
index dc98760..6218013 100644 (file)
--- a/tee.c
+++ b/tee.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <getopt.h>
 #include <stdio.h>
 
index cf55de6..bfa9644 100644 (file)
--- a/telnet.c
+++ b/telnet.c
@@ -31,7 +31,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <termios.h>
 #include <unistd.h>
 #include <errno.h>
diff --git a/test.c b/test.c
index a2bec44..acd6947 100644 (file)
--- a/test.c
+++ b/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/touch.c b/touch.c
index 464aedb..7db6c6e 100644 (file)
--- a/touch.c
+++ b/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/tr.c b/tr.c
index 0040924..54b6abc 100644 (file)
--- a/tr.c
+++ b/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>
index c56f5e7..b3b221e 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 
 
 extern int true_main(int argc, char **argv)
diff --git a/tty.c b/tty.c
index bbc051f..6eebed9 100644 (file)
--- a/tty.c
+++ b/tty.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/types.h>
 
index 6a5e4ca..1d9c6bb 100644 (file)
--- a/umount.c
+++ b/umount.c
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <mntent.h>
 #include <errno.h>
diff --git a/uname.c b/uname.c
index 55616dd..8d9427c 100644 (file)
--- a/uname.c
+++ b/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/uniq.c b/uniq.c
index 016fc77..ef38587 100644 (file)
--- a/uniq.c
+++ b/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 $ */
index c6cf81b..553ad0c 100644 (file)
@@ -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 ) {
diff --git a/unrpm.c b/unrpm.c
index cfcc0d1..26989e8 100644 (file)
--- a/unrpm.c
+++ b/unrpm.c
@@ -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>
index 3f3d68b..e9f4969 100644 (file)
--- a/update.c
+++ b/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() */
index efdbccf..fe4e48c 100644 (file)
--- a/uptime.c
+++ b/uptime.c
@@ -28,7 +28,7 @@
  */
 
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <time.h>
 #include <errno.h>
diff --git a/usage.c b/usage.c
index c4da08a..ae6cbaa 100644 (file)
--- a/usage.c
+++ b/usage.c
@@ -1,4 +1,4 @@
-#include "internal.h"
+#include "busybox.h"
 
 #if defined BB_AR
 const char ar_usage[] =
index fcdf3bb..69790ef 100644 (file)
--- a/usleep.c
+++ b/usleep.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <unistd.h>
 
index 99d053a..88b5d13 100644 (file)
@@ -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>
 
index 235338c..32325a7 100644 (file)
@@ -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>
index 6bc3e7d..6633e12 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/ioctl.h>
 #include <fcntl.h>
index 64915b3..22fc3e6 100644 (file)
@@ -27,7 +27,7 @@
 #include <fcntl.h>
 #include <sys/ioctl.h>
 #include <errno.h>
-#include "internal.h"
+#include "busybox.h"
 
 
 /* From linux/fs.h */
index 04c2b33..ef65e30 100644 (file)
@@ -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>
index fb75790..919ae6c 100644 (file)
@@ -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 */
index fafcc23..15cf531 100644 (file)
@@ -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>
index 70028dc..8a9767c 100644 (file)
@@ -35,7 +35,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <unistd.h>
 #include <string.h>
index 45b7c12..caabc44 100644 (file)
@@ -25,7 +25,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <fcntl.h>
 #include <signal.h>
index 598b650..8b115c9 100644 (file)
@@ -43,7 +43,7 @@
  *     
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
index 628772b..abae19a 100644 (file)
@@ -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>
index 20536d2..915c4bd 100644 (file)
@@ -21,7 +21,7 @@
  *
 */
 
-#include "internal.h"
+#include "busybox.h"
 #define BB_DECLARE_EXTERN
 #include "messages.c"
 #include <sys/time.h>
index 6aafe51..4a1c8f9 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <sys/mount.h>
 #include <mntent.h>
index 6a5e4ca..1d9c6bb 100644 (file)
@@ -22,7 +22,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <mntent.h>
 #include <errno.h>
index b014f2a..f7dda79 100644 (file)
--- a/utility.c
+++ b/utility.c
@@ -25,7 +25,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #if defined (BB_CHMOD_CHOWN_CHGRP) \
  || defined (BB_CP_MV)            \
  || defined (BB_FIND)             \
index 90bef92..965ded5 100644 (file)
@@ -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>
index 1433c7f..5835bd2 100644 (file)
@@ -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/wc.c b/wc.c
index ca5b368..b1c9a51 100644 (file)
--- a/wc.c
+++ b/wc.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <getopt.h>
 
diff --git a/wget.c b/wget.c
index c06e76d..58801ee 100644 (file)
--- a/wget.c
+++ b/wget.c
@@ -7,7 +7,7 @@
  * <chip@laserlink.net>
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <unistd.h>
diff --git a/which.c b/which.c
index 7df2557..da8801f 100644 (file)
--- a/which.c
+++ b/which.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int which_main(int argc, char **argv)
index 84b27fe..f3c21b3 100644 (file)
--- a/whoami.c
+++ b/whoami.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 #include <pwd.h>
 
diff --git a/xargs.c b/xargs.c
index b8ac31a..4a3fe3c 100644 (file)
--- a/xargs.c
+++ b/xargs.c
@@ -21,7 +21,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
diff --git a/yes.c b/yes.c
index 11fa537..46873f3 100644 (file)
--- a/yes.c
+++ b/yes.c
@@ -20,7 +20,7 @@
  *
  */
 
-#include "internal.h"
+#include "busybox.h"
 #include <stdio.h>
 
 extern int yes_main(int argc, char **argv)