/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
#undef APPLET
#undef APPLET_NOUSAGE
};
#endif
-#include "busybox.h"
#include <getopt.h>
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
#include <time.h>
#include <dirent.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_memory_exhausted
#define bb_need_name_too_long
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_memory_exhausted
-#include "messages.c"
-
/* These defines are very important for BusyBox. Without these,
* huge chunks of ram are pre-allocated making the BusyBox bss
* size Freaking Huge(tm), which is a bad thing.*/
/* I don't like nested includes, but the string and io functions are used
* too often
*/
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_memory_exhausted
+#include "messages.c"
+
#define memzero(s, n) memset ((void *)(s), 0, (n))
#ifndef RETSIGTYPE
# include <unistd.h>
#endif
-#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
-# include <stdlib.h>
-#else
-extern int errno;
-#endif
-
#if defined(DIRENT)
# include <dirent.h>
typedef struct dirent dir_type;
# include <fcntl.h>
#endif
-#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
-# include <stdlib.h>
-#else
-extern int errno;
-#endif
-
/* ===========================================================================
* Copy input to output unchanged: zcat == cat with --force.
* IN assertion: insize bytes have already been read in inbuf.
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#define bb_need_name_longer_than_foo
-#include "messages.c"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_io_error
+#define bb_need_name_longer_than_foo
+#include "messages.c"
#ifdef BB_FEATURE_TAR_GZIP
extern int unzip(int in, int out);
*
*/
-#include "busybox.h"
#include <stdlib.h>
+#include "busybox.h"
#include <string.h>
extern int basename_main(int argc, char **argv)
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
#undef APPLET
#undef APPLET_NOUSAGE
*
*/
-#include "busybox.h"
#include <stdlib.h>
+#include "busybox.h"
extern int cat_main(int argc, char **argv)
{
*
*/
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_invalid_option
#define bb_need_too_few_args
#include "messages.c"
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
static long uid = -1;
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
+#include "busybox.h"
int chroot_main(int argc, char **argv)
{
*
* busyboxed by Erik Andersen
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/vt.h> */
static const int VT_ACTIVATE = 0x5606; /* make vt active */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int clear_main(int argc, char **argv)
//#define TEST
+#include <stdio.h>
+#include <errno.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/ioctl.h>
+#include <ctype.h>
+#include <signal.h>
+#include <limits.h>
+
+#ifdef BB_FEATURE_SH_TAB_COMPLETION
+#include <dirent.h>
+#include <sys/stat.h>
+#endif
+
#ifndef TEST
#define BB_FEATURE_GETUSERNAME_AND_HOMEDIR
#endif
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/ioctl.h>
-#include <ctype.h>
-#include <signal.h>
-#include <limits.h>
-
-#ifdef BB_FEATURE_SH_TAB_COMPLETION
-#include <dirent.h>
-#include <sys/stat.h>
-#endif
-
#ifdef BB_FEATURE_GETUSERNAME_AND_HOMEDIR
#ifndef TEST
#include "pwd_grp/pwd.h"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
int cmp_main(int argc, char **argv)
{
*
* busyboxed by Erik Andersen
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/vt.h> */
static const int VT_ACTIVATE = 0x5606; /* make vt active */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int clear_main(int argc, char **argv)
* disalloc.c - aeb - 940501 - Disallocate virtual terminal(s)
* Renamed deallocvt.
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/vt.h> */
static const int VT_DISALLOCATE = 0x5608; /* free memory associated to vt */
*
*/
-#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/kd.h> */
struct kbentry {
* Peter Novodvorsky <petya@logic.ru>
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
+#include <sys/kd.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/kd.h>
+#include "busybox.h"
typedef unsigned short unicode;
* Loads the console font, and possibly the corresponding screen map(s).
* (Adapted for busybox by Matej Vela.)
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/kd.h>
#include <endian.h>
+#include "busybox.h"
static const int PSF_MAGIC1 = 0x36;
static const int PSF_MAGIC2 = 0x04;
*
*/
-#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BINARY_KEYMAP_MAGIC "bkeymap"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int reset_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/kd.h> */
*
*/
-#include "busybox.h"
#include <stdlib.h>
+#include "busybox.h"
#include <string.h>
extern int basename_main(int argc, char **argv)
*
*/
-#include "busybox.h"
#include <stdlib.h>
+#include "busybox.h"
extern int cat_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
+#include "busybox.h"
int chroot_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
int cmp_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_invalid_date
-#define bb_need_memory_exhausted
-#include "messages.c"
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_invalid_date
+#define bb_need_memory_exhausted
+#include "messages.c"
/* This 'date' command supports only 2 time setting formats,
*
*/
-#include "busybox.h"
-
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
+#include "busybox.h"
+
static const struct suffix_mult dd_suffixes[] = {
{ "c", 1 },
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <mntent.h>
#include <sys/vfs.h>
#include <getopt.h>
+#include "busybox.h"
extern const char mtab_file[]; /* Defined in utility.c */
#ifdef BB_FEATURE_HUMAN_READABLE
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
-#include "busybox.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
extern int dirname_main(int argc, char **argv)
{
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
int dos2unix_main( int argc, char **argv ) {
int c;
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_name_too_long
-#include "messages.c"
-
#include <sys/types.h>
#include <fcntl.h>
#include <dirent.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_name_too_long
+#include "messages.c"
+
#ifdef BB_FEATURE_HUMAN_READABLE
unsigned long du_disp_hr = KILOBYTE;
return status;
}
-/* $Id: du.c,v 1.37 2001/02/14 21:23:05 andersen Exp $ */
+/* $Id: du.c,v 1.38 2001/02/20 06:14:07 andersen Exp $ */
/*
Local Variables:
c-file-style: "linux"
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
extern int
echo_main(int argc, char** argv)
* One function can handle multiple operators all of equal precedence,
* provided they all associate ((x op x) op x). */
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <regex.h>
#include <sys/types.h>
+#include "busybox.h"
/* The kinds of value we can have. */
*
*/
-#include "busybox.h"
#include <errno.h>
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
int head(int len, FILE *fp)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int hostid_main(int argc, char **argv)
{
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include "busybox.h"
extern int length_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_not_a_directory
-#include "messages.c"
-
#include <stdio.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_not_a_directory
+#include "messages.c"
+
static const int LN_SYMLINK = 1;
static const int LN_FORCE = 2;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int logname_main(int argc, char **argv)
{
/************************************************************************/
-#include "busybox.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#ifndef MAJOR
#define MAJOR(dev) (((dev)>>8)&0xff)
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu> */
/* Hacked to work with BusyBox by Alfred M. Szmidt <ams@trillian.itslinux.org> */
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <getopt.h>
+#include "busybox.h"
/* For some silly reason, this file uses backwards TRUE and FALSE conventions */
#undef TRUE
*
*/
+#include <stdio.h>
+#include <errno.h>
+#include <string.h>
+#include <stdlib.h>
#include "busybox.h"
#define bb_need_name_too_long
#define BB_DECLARE_EXTERN
#include "messages.c"
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
static int parentFlag = FALSE;
static mode_t mode = 0777;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
extern int mkfifo_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
-#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <sys/types.h>
+#include "busybox.h"
int mknod_main(int argc, char **argv)
{
// 19990508 Busy Boxed! Dave Cinege
-#include "busybox.h"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
+#include "busybox.h"
#ifndef S_IFMT
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int pwd_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <utime.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
static int recursiveFlag = FALSE;
static int forceFlag = FALSE;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int rmdir_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int sleep_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
int compare_ascii(const void *x, const void *y)
{
*/
-#include "busybox.h"
#include <termios.h>
#include <sys/ioctl.h>
#include <limits.h>
#include <memory.h>
#include <fcntl.h>
+#include "busybox.h"
#define STREQ(a, b) (strcmp ((a), (b)) == 0)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int sync_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <fcntl.h>
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
static const struct suffix_mult tail_suffixes[] = {
{ "b", 512 },
* "This program is in the Public Domain."
*/
-#include "busybox.h"
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int touch_main(int argc, char **argv)
{
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_write_error
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
extern int tty_main(int argc, char **argv)
{
/* Busyboxed by Erik Andersen */
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#if defined (HAVE_SYSINFO) && defined (HAVE_SYS_SYSTEMINFO_H)
# include <sys/systeminfo.h>
#endif
+#include "busybox.h"
static void print_element(unsigned int mask, char *element);
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
static int print_count;
static int print_uniq = 1;
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int usleep_main(int argc, char **argv)
{
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
#include "pwd_grp/pwd.h"
#include "pwd_grp/grp.h"
/* Hacked to work with BusyBox by Alfred M. Szmidt */
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
#define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
static int total_lines, total_words, total_chars, max_length;
static int print_lines, print_words, print_chars, print_length;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int whoami_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int yes_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_name_too_long
-#define bb_need_omitting_directory
-#define bb_need_not_a_directory
-#include "messages.c"
-
#include <stdio.h>
#include <time.h>
#include <utime.h>
#include <errno.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_name_too_long
+#define bb_need_omitting_directory
+#define bb_need_not_a_directory
+#include "messages.c"
+
static const int is_cp = 0;
static const int is_mv = 1;
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_invalid_date
-#define bb_need_memory_exhausted
-#include "messages.c"
#include <stdlib.h>
#include <errno.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <getopt.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_invalid_date
+#define bb_need_memory_exhausted
+#include "messages.c"
/* This 'date' command supports only 2 time setting formats,
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
+#include "busybox.h"
/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */
*
*/
-#include "busybox.h"
-
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <fcntl.h>
+#include "busybox.h"
+
static const struct suffix_mult dd_suffixes[] = {
{ "c", 1 },
* disalloc.c - aeb - 940501 - Disallocate virtual terminal(s)
* Renamed deallocvt.
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/vt.h> */
static const int VT_DISALLOCATE = 0x5608; /* free memory associated to vt */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <mntent.h>
#include <sys/vfs.h>
#include <getopt.h>
+#include "busybox.h"
extern const char mtab_file[]; /* Defined in utility.c */
#ifdef BB_FEATURE_HUMAN_READABLE
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
-#include "busybox.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
extern int dirname_main(int argc, char **argv)
{
* Support, replaced getopt, added some gotos for redundant stuff.
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#else
# include <sys/klog.h>
#endif
+#include "busybox.h"
int dmesg_main(int argc, char **argv)
{
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
int dos2unix_main( int argc, char **argv ) {
int c;
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_name_too_long
-#include "messages.c"
-
#include <sys/types.h>
#include <fcntl.h>
#include <dirent.h>
#include <stdlib.h>
#include <getopt.h>
#include <errno.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_name_too_long
+#include "messages.c"
+
#ifdef BB_FEATURE_HUMAN_READABLE
unsigned long du_disp_hr = KILOBYTE;
return status;
}
-/* $Id: du.c,v 1.37 2001/02/14 21:23:05 andersen Exp $ */
+/* $Id: du.c,v 1.38 2001/02/20 06:14:07 andersen Exp $ */
/*
Local Variables:
c-file-style: "linux"
*
*/
-#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/kd.h> */
struct kbentry {
* Erik Andersen <andersen@lineo.com>
*/
-#include "busybox.h"
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#include "messages.c"
#include <utmp.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_io_error
+#include "messages.c"
extern int dutmp_main(int argc, char **argv)
{
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
extern int
echo_main(int argc, char** argv)
* One function can handle multiple operators all of equal precedence,
* provided they all associate ((x op x) op x). */
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <regex.h>
#include <sys/types.h>
+#include "busybox.h"
/* The kinds of value we can have. */
* Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define DEFAULTFBDEV "/dev/fb0"
#define DEFAULTFBMODE "/etc/fb.modes"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdlib.h>
+#include "busybox.h"
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <fnmatch.h>
#include <time.h>
#include <ctype.h>
+#include "busybox.h"
static char *pattern;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <dirent.h>
#include <fnmatch.h>
#include <time.h>
#include <ctype.h>
+#include "busybox.h"
static char *pattern;
*
*/
-#include "busybox.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int which_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
int xargs_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
extern int free_main(int argc, char **argv)
{
* enforced (but it's not much fun on a character device :-).
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <termios.h>
#include <mntent.h>
#include <sys/param.h>
+#include "busybox.h"
typedef unsigned char u8;
};
#endif
-#include "busybox.h"
#include <getopt.h>
#include <ctype.h>
#include <sys/types.h>
#include <stdlib.h>
#include <time.h>
#include <dirent.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_memory_exhausted
#define bb_need_name_too_long
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_memory_exhausted
-#include "messages.c"
-
/* These defines are very important for BusyBox. Without these,
* huge chunks of ram are pre-allocated making the BusyBox bss
* size Freaking Huge(tm), which is a bad thing.*/
/* I don't like nested includes, but the string and io functions are used
* too often
*/
+#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_memory_exhausted
+#include "messages.c"
+
#define memzero(s, n) memset ((void *)(s), 0, (n))
#ifndef RETSIGTYPE
# include <unistd.h>
#endif
-#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
-# include <stdlib.h>
-#else
-extern int errno;
-#endif
-
#if defined(DIRENT)
# include <dirent.h>
typedef struct dirent dir_type;
# include <fcntl.h>
#endif
-#if defined(STDC_HEADERS) || !defined(NO_STDLIB_H)
-# include <stdlib.h>
-#else
-extern int errno;
-#endif
-
/* ===========================================================================
* Copy input to output unchanged: zcat == cat with --force.
* IN assertion: insize bytes have already been read in inbuf.
*
*/
-#include "busybox.h"
#include <errno.h>
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
int head(int len, FILE *fp)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int hostid_main(int argc, char **argv)
{
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.2 2001/02/14 21:23:06 andersen Exp $
+ * $Id: ifconfig.c,v 1.3 2001/02/20 06:14:07 andersen Exp $
*
*/
-#include "busybox.h"
-#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h> // strcmp and friends
#include <ctype.h> // isdigit and friends
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <linux/if_ether.h>
+#include "busybox.h"
static int sockfd; /* socket fd we use to manipulate stuff with */
#define DEBUG_INIT
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include "busybox.h"
+#define bb_need_full_version
+#define BB_DECLARE_EXTERN
+#include "messages.c"
#ifdef BB_SYSLOGD
# include <sys/syslog.h>
#endif
-#define bb_need_full_version
-#define BB_DECLARE_EXTERN
-#include "messages.c"
/* From <linux/vt.h> */
struct vt_stat {
#define DEBUG_INIT
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include "busybox.h"
+#define bb_need_full_version
+#define BB_DECLARE_EXTERN
+#include "messages.c"
#ifdef BB_SYSLOGD
# include <sys/syslog.h>
#endif
-#define bb_need_full_version
-#define BB_DECLARE_EXTERN
-#include "messages.c"
/* From <linux/vt.h> */
struct vt_stat {
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <sys/utsname.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
//----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242
#ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1;
-#ident "$Id: insmod.c,v 1.47 2001/02/15 19:07:43 andersen Exp $"
+#ident "$Id: insmod.c,v 1.48 2001/02/20 06:14:07 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
#ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1;
-#ident "$Id: insmod.c,v 1.47 2001/02/15 19:07:43 andersen Exp $"
+#ident "$Id: insmod.c,v 1.48 2001/02/20 06:14:07 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
+#include "busybox.h"
static const int KILL = 0;
static const int KILLALL = 1;
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include "busybox.h"
extern int length_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_not_a_directory
-#include "messages.c"
-
#include <stdio.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_not_a_directory
+#include "messages.c"
+
static const int LN_SYMLINK = 1;
static const int LN_FORCE = 2;
* Peter Novodvorsky <petya@logic.ru>
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
+#include <sys/kd.h>
#include <sys/types.h>
#include <sys/ioctl.h>
-#include <sys/kd.h>
+#include "busybox.h"
typedef unsigned short unicode;
* Loads the console font, and possibly the corresponding screen map(s).
* (Adapted for busybox by Matej Vela.)
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/kd.h>
#include <endian.h>
+#include "busybox.h"
static const int PSF_MAGIC1 = 0x36;
static const int PSF_MAGIC2 = 0x04;
*
*/
-#include "busybox.h"
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BINARY_KEYMAP_MAGIC "bkeymap"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
#if !defined BB_SYSLOGD
#define SYSLOG_NAMES
* structures. Argh.... bad libc, bad, bad...
*/
#include <sys/syslog.h>
+
typedef struct _code {
char *c_name;
int c_val;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int logname_main(int argc, char **argv)
{
/************************************************************************/
-#include "busybox.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#ifndef MAJOR
#define MAJOR(dev) (((dev)>>8)&0xff)
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <getopt.h>
#include <sys/utsname.h>
#include <sys/file.h>
+#include "busybox.h"
* known bugs: can't deal with alpha ranges
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
int makedevs_main(int argc, char **argv)
{
/* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu> */
/* Hacked to work with BusyBox by Alfred M. Szmidt <ams@trillian.itslinux.org> */
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <ctype.h>
#include <getopt.h>
+#include "busybox.h"
/* For some silly reason, this file uses backwards TRUE and FALSE conventions */
#undef TRUE
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
+#include "busybox.h"
/* Tiny RPN calculator, because "expr" didn't give me bitwise operations. */
* Erik Andersen <andersen@lineo.com>
*/
-#include "busybox.h"
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#include "messages.c"
#include <utmp.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_io_error
+#include "messages.c"
extern int dutmp_main(int argc, char **argv)
{
* known bugs: can't deal with alpha ranges
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
int makedevs_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int mktemp_main(int argc, char **argv)
{
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/mtio.h>
#include <sys/fcntl.h>
+#include "busybox.h"
struct mt_opcodes {
char *name;
*
*/
-#include "busybox.h"
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
int readlink_main(int argc, char **argv)
{
* earlier) kernel. 2.2.x and higher flush filesystem buffers automatically.
*/
-#include "busybox.h"
#include <sys/param.h>
#include <sys/syslog.h>
#include <unistd.h> /* for getopt() */
#include <linux/unistd.h>
static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */
+#include "busybox.h"
static unsigned int sync_duration = 30;
static unsigned int flush_duration = 5;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int watchdog_main(int argc, char **argv)
{
*
*/
+#include <stdio.h>
+#include <errno.h>
+#include <string.h>
+#include <stdlib.h>
#include "busybox.h"
#define bb_need_name_too_long
#define BB_DECLARE_EXTERN
#include "messages.c"
-#include <stdio.h>
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
static int parentFlag = FALSE;
static mode_t mode = 0777;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
extern int mkfifo_main(int argc, char **argv)
{
* removed getopt based parser and added a hand rolled one.
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <mntent.h>
+#include "busybox.h"
typedef unsigned char u8;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
-#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include <sys/types.h>
+#include "busybox.h"
int mknod_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/utsname.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
+#include "busybox.h"
#ifndef _IO
/* pre-1.3.45 */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int mktemp_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <sys/utsname.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
//----------------------------------------------------------------------------
//--------modutils module.h, lines 45-242
#ifndef MODUTILS_MODULE_H
static const int MODUTILS_MODULE_H = 1;
-#ident "$Id: insmod.c,v 1.47 2001/02/15 19:07:43 andersen Exp $"
+#ident "$Id: insmod.c,v 1.48 2001/02/20 06:14:07 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
#ifndef MODUTILS_OBJ_H
static const int MODUTILS_OBJ_H = 1;
-#ident "$Id: insmod.c,v 1.47 2001/02/15 19:07:43 andersen Exp $"
+#ident "$Id: insmod.c,v 1.48 2001/02/20 06:14:07 andersen Exp $"
/* The relocatable object is manipulated using elfin types. */
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <stddef.h>
#include <getopt.h>
#include <sys/utsname.h>
#include <sys/file.h>
+#include "busybox.h"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
#define __LIBRARY__
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#if defined BB_FEATURE_USE_DEVPS_PATCH
#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */
#endif
+#include "busybox.h"
enum {
MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/mtio.h>
#include <sys/fcntl.h>
+#include "busybox.h"
struct mt_opcodes {
char *name;
/* vi: set sw=4 ts=4: */
-#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <mntent.h>
#include <fstab.h>
#include <sys/mount.h>
+#include "busybox.h"
extern const char mtab_file[]; /* Defined in utility.c */
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/ioctl.h>
+#include "busybox.h"
int nc_main(int argc, char **argv)
{
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: ifconfig.c,v 1.2 2001/02/14 21:23:06 andersen Exp $
+ * $Id: ifconfig.c,v 1.3 2001/02/20 06:14:07 andersen Exp $
*
*/
-#include "busybox.h"
-#include <sys/types.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h> // strcmp and friends
#include <ctype.h> // isdigit and friends
+#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <net/if.h>
#include <net/if_arp.h>
#include <linux/if_ether.h>
+#include "busybox.h"
static int sockfd; /* socket fd we use to manipulate stuff with */
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <netdb.h>
#include <sys/time.h>
#include <sys/ioctl.h>
+#include "busybox.h"
int nc_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
+#include "busybox.h"
/*
| I'm only implementing non-interactive mode;
return EXIT_SUCCESS;
}
-/* $Id: nslookup.c,v 1.21 2001/02/14 21:23:06 andersen Exp $ */
+/* $Id: nslookup.c,v 1.22 2001/02/20 06:14:08 andersen Exp $ */
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.37 2001/02/14 21:23:06 andersen Exp $
+ * $Id: ping.c,v 1.38 2001/02/20 06:14:08 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
/* It turns out that libc5 doesn't have proper icmp support
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: route.c,v 1.6 2001/02/18 20:12:25 andersen Exp $
+ * $Id: route.c,v 1.7 2001/02/20 06:14:08 andersen Exp $
*
* displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru>
* busybox style adjustments by Larry Doolittle <LRDoolittle@lbl.gov>
* displayroute() format now matches net-tools-1.57/lib/inet_gr.c line 173.
*/
-#include "busybox.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <getopt.h>
#include <unistd.h>
#include <ctype.h>
+#include "busybox.h"
#define _(x) x
*
*/
-#include "busybox.h"
#include <termios.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include "busybox.h"
#if 0
static const int DOTRACE = 1;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <netdb.h>
+#include "busybox.h"
+
/* Stupid libc5 doesn't define this... */
#ifndef timersub
#define timersub(a, b, result) \
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.27 2001/02/14 21:23:06 andersen Exp $
+ * $Id: wget.c,v 1.28 2001/02/20 06:14:08 andersen Exp $
*/
* nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
*/
-#include "busybox.h"
-#undef FALSE
-#undef TRUE
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
-#include <rpc/rpc.h>
-#include <rpc/pmap_prot.h>
-#include <rpc/pmap_clnt.h>
#include <sys/socket.h>
#include <time.h>
#include <sys/utsname.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-
-#include "nfsmount.h"
+#include <stdlib.h>
+#include "busybox.h"
+#undef TRUE
+#undef FALSE
+#include <rpc/rpc.h>
+#include <rpc/pmap_prot.h>
+#include <rpc/pmap_clnt.h>
#include <linux/nfs.h> /* For the kernels nfs stuff */
+#include "nfsmount.h"
#ifndef NFS_FHSIZE
static const int NFS_FHSIZE = 32;
*
*/
-#include "busybox.h"
#include <ctype.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
+#include "busybox.h"
/*
| I'm only implementing non-interactive mode;
return EXIT_SUCCESS;
}
-/* $Id: nslookup.c,v 1.21 2001/02/14 21:23:06 andersen Exp $ */
+/* $Id: nslookup.c,v 1.22 2001/02/20 06:14:08 andersen Exp $ */
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.37 2001/02/14 21:23:06 andersen Exp $
+ * $Id: ping.c,v 1.38 2001/02/20 06:14:08 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
/* It turns out that libc5 doesn't have proper icmp support
*
* busyboxed by Evin Robertson
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
#ifndef __NR_pivot_root
#error Sorry, but this kernel does not support the pivot_root syscall
// 19990508 Busy Boxed! Dave Cinege
-#include "busybox.h"
#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
#include <stdlib.h>
#include <fcntl.h>
#include <ctype.h>
+#include "busybox.h"
#ifndef S_IFMT
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
extern int free_main(int argc, char **argv)
{
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
+#include "busybox.h"
static const int KILL = 0;
static const int KILLALL = 1;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include "busybox.h"
extern int renice_main(int argc, char **argv)
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
static const int FSHIFT = 16; /* nr of bits of precision */
#define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int pwd_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#include "messages.c"
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#include "messages.c"
static const int RFC_868_BIAS = 2208988800UL;
*
*/
-#include "busybox.h"
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
int readlink_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/time.h>
#include <sys/resource.h>
+#include "busybox.h"
extern int renice_main(int argc, char **argv)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int reset_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <utime.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
static int recursiveFlag = FALSE;
static int forceFlag = FALSE;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int rmdir_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
#define __LIBRARY__
* Foundation; either version 2 of the License, or (at
* your option) any later version.
*
- * $Id: route.c,v 1.6 2001/02/18 20:12:25 andersen Exp $
+ * $Id: route.c,v 1.7 2001/02/20 06:14:08 andersen Exp $
*
* displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru>
* busybox style adjustments by Larry Doolittle <LRDoolittle@lbl.gov>
* displayroute() format now matches net-tools-1.57/lib/inet_gr.c line 173.
*/
-#include "busybox.h"
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <getopt.h>
#include <unistd.h>
#include <ctype.h>
+#include "busybox.h"
#define _(x) x
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
-#include "busybox.h"
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
/*
* Some general definitions
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
+#include "busybox.h"
/* From <linux/kd.h> */
//#define TEST
+#include <stdio.h>
+#include <errno.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/ioctl.h>
+#include <ctype.h>
+#include <signal.h>
+#include <limits.h>
+
+#ifdef BB_FEATURE_SH_TAB_COMPLETION
+#include <dirent.h>
+#include <sys/stat.h>
+#endif
+
#ifndef TEST
#define BB_FEATURE_GETUSERNAME_AND_HOMEDIR
#endif
-#include <stdio.h>
-#include <errno.h>
-#include <unistd.h>
-#include <stdlib.h>
-#include <string.h>
-#include <sys/ioctl.h>
-#include <ctype.h>
-#include <signal.h>
-#include <limits.h>
-
-#ifdef BB_FEATURE_SH_TAB_COMPLETION
-#include <dirent.h>
-#include <sys/stat.h>
-#endif
-
#ifdef BB_FEATURE_GETUSERNAME_AND_HOMEDIR
#ifndef TEST
#include "pwd_grp/pwd.h"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int sleep_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
int compare_ascii(const void *x, const void *y)
{
*/
-#include "busybox.h"
#include <termios.h>
#include <sys/ioctl.h>
#include <limits.h>
#include <memory.h>
#include <fcntl.h>
+#include "busybox.h"
#define STREQ(a, b) (strcmp ((a), (b)) == 0)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <dirent.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int sync_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
#if !defined BB_SYSLOGD
#define SYSLOG_NAMES
* structures. Argh.... bad libc, bad, bad...
*/
#include <sys/syslog.h>
+
typedef struct _code {
char *c_name;
int c_val;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#else
# include <sys/klog.h>
#endif
+#include "busybox.h"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#else
# include <sys/klog.h>
#endif
+#include "busybox.h"
*
*/
-#include "busybox.h"
#include <fcntl.h>
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
static const struct suffix_mult tail_suffixes[] = {
{ "b", 512 },
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#define bb_need_name_longer_than_foo
-#include "messages.c"
#include <stdio.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#define bb_need_io_error
+#define bb_need_name_longer_than_foo
+#include "messages.c"
#ifdef BB_FEATURE_TAR_GZIP
extern int unzip(int in, int out);
*
*/
-#include "busybox.h"
#include <termios.h>
#include <unistd.h>
#include <errno.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
+#include "busybox.h"
#if 0
static const int DOTRACE = 1;
* "This program is in the Public Domain."
*/
-#include "busybox.h"
#include <sys/types.h>
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/types.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int touch_main(int argc, char **argv)
{
* Original copyright notice is retained at the end of this file.
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_write_error
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdlib.h>
+#include "busybox.h"
extern int true_main(int argc, char **argv)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
+#include "busybox.h"
extern int tty_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
static const int MNT_FORCE = 1;
/* Busyboxed by Erik Andersen */
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#if defined (HAVE_SYSINFO) && defined (HAVE_SYS_SYSTEMINFO_H)
# include <sys/systeminfo.h>
#endif
+#include "busybox.h"
static void print_element(unsigned int mask, char *element);
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <string.h>
#include <getopt.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
static int print_count;
static int print_uniq = 1;
* earlier) kernel. 2.2.x and higher flush filesystem buffers automatically.
*/
-#include "busybox.h"
#include <sys/param.h>
#include <sys/syslog.h>
#include <unistd.h> /* for getopt() */
#include <linux/unistd.h>
static _syscall2(int, bdflush, int, func, int, data);
#endif /* __GLIBC__ */
+#include "busybox.h"
static unsigned int sync_duration = 30;
static unsigned int flush_duration = 5;
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <errno.h>
#include <stdlib.h>
+#include "busybox.h"
static const int FSHIFT = 16; /* nr of bits of precision */
#define FIXED_1 (1<<FSHIFT) /* 1.0 as fixed-point */
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int usleep_main(int argc, char **argv)
{
* Support, replaced getopt, added some gotos for redundant stuff.
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#else
# include <sys/klog.h>
#endif
+#include "busybox.h"
int dmesg_main(int argc, char **argv)
{
* Geert Uytterhoeven (Geert.Uytterhoeven@cs.kuleuven.ac.be)
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define DEFAULTFBDEV "/dev/fb0"
#define DEFAULTFBMODE "/etc/fb.modes"
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdlib.h>
+#include "busybox.h"
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
* enforced (but it's not much fun on a character device :-).
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
#include <termios.h>
#include <mntent.h>
#include <sys/param.h>
+#include "busybox.h"
typedef unsigned char u8;
* removed getopt based parser and added a hand rolled one.
*/
-#include "busybox.h"
#include <stdio.h>
#include <time.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/param.h>
#include <mntent.h>
+#include "busybox.h"
typedef unsigned char u8;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <sys/utsname.h>
#include <asm/page.h> /* for PAGE_SIZE and PAGE_SHIFT */
/* we also get PAGE_SIZE via getpagesize() */
+#include "busybox.h"
#ifndef _IO
/* pre-1.3.45 */
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <sys/ioctl.h>
+#include "busybox.h"
#define BB_DECLARE_EXTERN
#define bb_need_help
#include "messages.c"
*
*/
-#include "busybox.h"
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#if defined BB_FEATURE_USE_DEVPS_PATCH
#include <linux/devmtab.h> /* For Erik's nifty devmtab device driver */
#endif
+#include "busybox.h"
enum {
MS_MGC_VAL = 0xc0ed0000, /* Magic number indicatng "new" flags */
* nfsmount.c,v 1.1.1.1 1993/11/18 08:40:51 jrs Exp
*/
-#include "busybox.h"
-#undef FALSE
-#undef TRUE
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <netdb.h>
-#include <rpc/rpc.h>
-#include <rpc/pmap_prot.h>
-#include <rpc/pmap_clnt.h>
#include <sys/socket.h>
#include <time.h>
#include <sys/utsname.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-
-#include "nfsmount.h"
+#include <stdlib.h>
+#include "busybox.h"
+#undef TRUE
+#undef FALSE
+#include <rpc/rpc.h>
+#include <rpc/pmap_prot.h>
+#include <rpc/pmap_clnt.h>
#include <linux/nfs.h> /* For the kernels nfs stuff */
+#include "nfsmount.h"
#ifndef NFS_FHSIZE
static const int NFS_FHSIZE = 32;
*
* busyboxed by Evin Robertson
*/
-#include "busybox.h"
#include <stdlib.h>
#include <stdio.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
#ifndef __NR_pivot_root
#error Sorry, but this kernel does not support the pivot_root syscall
*
*/
-#include "busybox.h"
-#define BB_DECLARE_EXTERN
-#include "messages.c"
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <getopt.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
+#define BB_DECLARE_EXTERN
+#include "messages.c"
static const int RFC_868_BIAS = 2208988800UL;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <dirent.h>
#include <sys/mount.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
+#include "busybox.h"
_syscall2(int, swapon, const char *, path, int, flags);
_syscall1(int, swapoff, const char *, path);
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <mntent.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
static const int MNT_FORCE = 1;
*
*/
+#include <stdio.h>
+#include <string.h>
+#include <errno.h>
+#include <fcntl.h>
+#include <dirent.h>
+#include <time.h>
+#include <utime.h>
+#include <unistd.h>
+#include <ctype.h>
+#include <stdlib.h>
+#include <limits.h>
+#include <sys/ioctl.h>
+#include <sys/utsname.h> /* for uname(2) */
+
#include "busybox.h"
#if defined (BB_CHMOD_CHOWN_CHGRP) \
|| defined (BB_CP_MV) \
#include "messages.c"
#include "usage.h"
-#include <stdio.h>
-#include <string.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <dirent.h>
-#include <time.h>
-#include <utime.h>
-#include <unistd.h>
-#include <ctype.h>
-#include <stdlib.h>
-#include <limits.h>
-#include <sys/ioctl.h>
-#include <sys/utsname.h> /* for uname(2) */
-
#include "pwd_grp/pwd.h"
#include "pwd_grp/grp.h"
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
#include <string.h>
#include <stdlib.h>
+#include "busybox.h"
#include "pwd_grp/pwd.h"
#include "pwd_grp/grp.h"
/* Hacked to work with BusyBox by Alfred M. Szmidt */
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
#define RW (S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH)
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdlib.h>
+#include "busybox.h"
extern int watchdog_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <getopt.h>
#include <stdlib.h>
+#include "busybox.h"
static int total_lines, total_words, total_chars, max_length;
static int print_lines, print_words, print_chars, print_length;
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <arpa/inet.h>
#include <netdb.h>
+#include "busybox.h"
+
/* Stupid libc5 doesn't define this... */
#ifndef timersub
#define timersub(a, b, result) \
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: wget.c,v 1.27 2001/02/14 21:23:06 andersen Exp $
+ * $Id: wget.c,v 1.28 2001/02/20 06:14:08 andersen Exp $
*/
*
*/
-#include "busybox.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int which_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include "busybox.h"
extern int whoami_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "busybox.h"
int xargs_main(int argc, char **argv)
{
*
*/
-#include "busybox.h"
#include <stdio.h>
#include <stdlib.h>
+#include "busybox.h"
extern int yes_main(int argc, char **argv)
{