Renamed "internal.h" to the more sensible "busybox.h".

-Erik
This commit is contained in:
Eric Andersen 2000-09-25 21:45:58 +00:00
parent caffb6eff0
commit 3570a34de4
224 changed files with 245 additions and 712 deletions

View File

@ -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.

View File

@ -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

View 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[] = {

View File

@ -1,4 +1,4 @@
#include "internal.h"
#include "busybox.h"
#if defined BB_AR
const char ar_usage[] =

2
ar.c
View 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 */

View 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 */

View File

@ -27,7 +27,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <getopt.h>
/* These defines are very important for BusyBox. Without these,

View File

@ -29,7 +29,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_memory_exhausted
#include "messages.c"

View 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

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int basename_main(int argc, char **argv)

View 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[] = {

2
cat.c
View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int cat_main(int argc, char **argv)

View 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

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>

2
chvt.c
View File

@ -4,7 +4,7 @@
*
* busyboxed by Erik Andersen
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>

View 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>

View File

@ -4,7 +4,7 @@
*
* busyboxed by Erik Andersen
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>

View 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>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>

View 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>

View 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>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>

View File

@ -23,7 +23,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int reset_main(int argc, char **argv)

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int basename_main(int argc, char **argv)

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int cat_main(int argc, char **argv)

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>

View File

@ -26,7 +26,7 @@
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "internal.h"
#include "busybox.h"
/* globals from other files */

View 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

View File

@ -29,7 +29,7 @@
*/
#include "internal.h"
#include "busybox.h"
#include <features.h>
#include <stdio.h>
#include <fcntl.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <sys/vfs.h>

View 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)

View 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 ) {

View 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"

View 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

View 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>

View 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 $ */

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int hostid_main(int argc, char **argv)

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <pwd.h>

View 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>

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_not_a_directory
#include "messages.c"

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int logname_main(int argc, char **argv)

View File

@ -47,7 +47,7 @@
/************************************************************************/
#include "internal.h"
#include "busybox.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>

View 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
//----------------------------------------------------------------------------

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#define bb_need_name_too_long
#define BB_DECLARE_EXTERN
#include "messages.c"

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <sys/types.h>

View 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>

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <utime.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <errno.h>

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int sleep_main(int argc, char **argv)

View 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 $ */

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int sync_main(int argc, char **argv)

View 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

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <getopt.h>
#include <stdio.h>

View 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>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>

View 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>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>

View 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>

View 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 $ */

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>

View 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>

View 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>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <getopt.h>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <pwd.h>

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int yes_main(int argc, char **argv)

View File

@ -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

2
cut.c
View File

@ -26,7 +26,7 @@
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include "internal.h"
#include "busybox.h"
/* globals from other files */

2
date.c
View 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

2
dc.c
View 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>

2
dd.c
View File

@ -29,7 +29,7 @@
*/
#include "internal.h"
#include "busybox.h"
#include <features.h>
#include <stdio.h>
#include <fcntl.h>

View 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>

2
df.c
View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <sys/vfs.h>

View 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)

View 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>

View 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 ) {

4
du.c
View 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"

View File

@ -20,7 +20,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>

View File

@ -12,7 +12,7 @@
* Erik Andersen <andersen@lineo.com>
*/
#include "internal.h"
#include "busybox.h"
#include <sys/types.h>
#include <fcntl.h>

2
echo.c
View 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

View 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

2
expr.c
View 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>

View 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>

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>

2
find.c
View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>

View File

@ -22,7 +22,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>

View 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() */

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
extern int which_main(int argc, char **argv)

View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

2
free.c
View File

@ -21,7 +21,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <stdio.h>
#include <errno.h>

View 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 */

View 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>

View 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 */

2
grep.c
View 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() */

View File

@ -27,7 +27,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#include <getopt.h>
/* These defines are very important for BusyBox. Without these,

2
gzip.c
View File

@ -29,7 +29,7 @@
*
*/
#include "internal.h"
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_memory_exhausted
#include "messages.c"

Some files were not shown because too many files have changed in this diff Show More