quiet_cmd_gen_usage_compressed = GEN include/usage_compressed.h
cmd_gen_usage_compressed = $(srctree)/applets/usage_compressed include/usage_compressed.h applets
-include/usage_compressed.h: $(srctree)/include/usage.h applets/usage
+include/usage_compressed.h: .config $(srctree)/include/usage.h applets/usage
$(call cmd,gen_usage_compressed)
bb_error_msg_and_die("applet not found");
}
+int busybox_main(int argc, char **argv);
int busybox_main(int argc, char **argv)
{
/*
#define AR_OPT_CREATE 0x20
#define AR_OPT_INSERT 0x40
+int ar_main(int argc, char **argv);
int ar_main(int argc, char **argv)
{
archive_handle_t *archive_handle;
#define BUNZIP2_OPT_STDOUT 1
#define BUNZIP2_OPT_FORCE 2
+int bunzip2_main(int argc, char **argv);
int bunzip2_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
#define CPIO_OPT_CREATE_LEADING_DIR 0x20
#define CPIO_OPT_PRESERVE_MTIME 0x40
+int cpio_main(int argc, char **argv);
int cpio_main(int argc, char **argv)
{
archive_handle_t *archive_handle;
set_status(status_num, "installed", 3);
}
+int dpkg_main(int argc, char **argv);
int dpkg_main(int argc, char **argv)
{
deb_file_t **deb_file = NULL;
#define DPKG_DEB_OPT_EXTRACT 8
#define DPKG_DEB_OPT_EXTRACT_VERBOSE 16
+int dpkg_deb_main(int argc, char **argv);
int dpkg_deb_main(int argc, char **argv)
{
archive_handle_t *ar_archive;
#define GUNZIP_OPT_DECOMPRESS 8
#define GUNZIP_OPT_VERBOSE 0x10
+int gunzip_main(int argc, char **argv);
int gunzip_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
exit(1);
}
+int gzip_main(int argc, char **argv);
int gzip_main(int argc, char **argv)
{
enum {
static void fileaction_setowngrp(char *filename, int fileref);
static void loop_through_files(int filetag, void (*fileaction)(char *filename, int fileref));
+int rpm_main(int argc, char **argv);
int rpm_main(int argc, char **argv)
{
int opt = 0, func = 0, rpm_fd, offset;
}
/* No getopt required */
+int rpm2cpio_main(int argc, char **argv);
int rpm2cpio_main(int argc, char **argv)
{
struct rpm_lead lead;
};
#endif
+int tar_main(int argc, char **argv);
int tar_main(int argc, char **argv)
{
char (*get_header_ptr)(archive_handle_t *) = get_header_tar;
#define GUNZIP_TO_STDOUT 1
#define GUNZIP_FORCE 2
+int uncompress_main(int argc, char **argv);
int uncompress_main(int argc, char **argv)
{
int status = EXIT_SUCCESS;
#define UNLZMA_OPT_STDOUT 1
+int unlzma_main(int argc, char **argv);
int unlzma_main(int argc, char **argv)
{
USE_DESKTOP(long long) int status;
return 0;
}
+int unzip_main(int argc, char **argv);
int unzip_main(int argc, char **argv)
{
zip_header_t zip_header;
VT_WAITACTIVE = 0x5607 /* wait for vt active */
};
+int chvt_main(int argc, char **argv);
int chvt_main(int argc, char **argv)
{
int fd, num;
#include "busybox.h"
+int clear_main(int argc, char **argv);
int clear_main(int argc, char **argv)
{
return printf("\033[H\033[J") != 6;
/* From <linux/vt.h> */
enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */
+int deallocvt_main(int argc, char *argv[]);
int deallocvt_main(int argc, char *argv[])
{
/* num = 0 deallocate all unused consoles */
#define NR_KEYS 128
#define MAX_NR_KEYMAPS 256
+int dumpkmap_main(int argc, char **argv);
int dumpkmap_main(int argc, char **argv)
{
struct kbentry ke;
int i, j, fd;
- char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap";
+ char flags[MAX_NR_KEYMAPS];
- if (argc >= 2 && *argv[1] == '-')
+ if (argc >= 2 && argv[1][0] == '-')
bb_show_usage();
fd = xopen(CURRENT_VC, O_RDWR);
- write(1, magic, 7);
+ write(1, "bkeymap", 7);
/* Here we want to set everything to 0 except for indexes:
* [0-2] [4-6] [8-10] [12] */
static void loadnewfont(int fd);
+int loadfont_main(int argc, char **argv);
int loadfont_main(int argc, char **argv)
{
int fd;
#define NR_KEYS 128
#define MAX_NR_KEYMAPS 256
+int loadkmap_main(int argc, char **argv);
int loadkmap_main(int argc, char **argv)
{
struct kbentry ke;
#include "busybox.h"
+int openvt_main(int argc, char **argv);
int openvt_main(int argc, char **argv)
{
int fd;
#include <unistd.h>
#include "busybox.h"
+int reset_main(int argc, char **argv);
int reset_main(int argc, char **argv)
{
if (isatty(1)) {
/* no options, no getopt */
#include "busybox.h"
+int resize_main(int argc, char **argv);
int resize_main(int argc, char **argv)
{
struct termios old, new;
#define OPT_SETCONS_RESET 1
+int setconsole_main(int argc, char **argv);
int setconsole_main(int argc, char **argv)
{
unsigned long flags;
* Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <fcntl.h>
#include <sys/ioctl.h>
#include "busybox.h"
KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */
};
-extern int
-setkeycodes_main(int argc, char** argv)
+int setkeycodes_main(int argc, char** argv);
+int setkeycodes_main(int argc, char** argv)
{
int fd, sc;
struct kbkeycode a;
#include <string.h>
#include "busybox.h"
+int basename_main(int argc, char **argv);
int basename_main(int argc, char **argv)
{
size_t m, n;
#define J_WEEK_LEN (WEEK_LEN + 7)
#define HEAD_SEP 2 /* spaces between day headings */
+int cal_main(int argc, char **argv);
int cal_main(int argc, char **argv)
{
struct tm *local_time;
return retval;
}
+int cat_main(int argc, char **argv);
int cat_main(int argc, char **argv)
{
getopt32(argc, argv, "u");
#include "busybox.h"
+int catv_main(int argc, char **argv);
int catv_main(int argc, char **argv)
{
int retval = EXIT_SUCCESS, fd;
/* FIXME - move to .h */
extern int chown_main(int argc, char **argv);
+int chgrp_main(int argc, char **argv);
int chgrp_main(int argc, char **argv)
{
/* "chgrp [opts] abc file(s)" == "chown [opts] :abc file(s)" */
return FALSE;
}
+int chmod_main(int argc, char **argv);
int chmod_main(int argc, char **argv)
{
int retval = EXIT_SUCCESS;
return FALSE;
}
+int chown_main(int argc, char **argv);
int chown_main(int argc, char **argv)
{
char *groupName;
#include "busybox.h"
+int chroot_main(int argc, char **argv);
int chroot_main(int argc, char **argv)
{
if (argc < 2) {
#include "busybox.h"
+int cksum_main(int argc, char **argv);
int cksum_main(int argc, char **argv)
{
#define CMP_OPT_s (1<<0)
#define CMP_OPT_l (1<<1)
+int cmp_main(int argc, char **argv);
int cmp_main(int argc, char **argv)
{
FILE *fp1, *fp2, *outfile = stdout;
fclose(streams[1]);
}
+int comm_main(int argc, char **argv);
int comm_main(int argc, char **argv)
{
unsigned long flags;
#include "busybox.h"
#include "libcoreutils/coreutils.h"
+int cp_main(int argc, char **argv);
int cp_main(int argc, char **argv)
{
struct stat source_stat;
static const char _op_on_field[] = " only when operating on fields";
+int cut_main(int argc, char **argv);
int cut_main(int argc, char **argv)
{
char *sopt, *ltok;
xputenv((char*)"TZ=UTC0");
}
+int date_main(int argc, char **argv);
int date_main(int argc, char **argv)
{
time_t tm;
#define XATOU_SFX xatoul_sfx
#endif
+int dd_main(int argc, char **argv);
int dd_main(int argc, char **argv)
{
enum {
}
#endif
+int df_main(int argc, char **argv);
int df_main(int argc, char **argv)
{
long blocks_used;
#endif
+int diff_main(int argc, char **argv);
int diff_main(int argc, char **argv)
{
bool gotstdin = 0;
#include <stdlib.h>
#include "busybox.h"
+int dirname_main(int argc, char **argv);
int dirname_main(int argc, char **argv)
{
if (argc != 2) {
return 0;
}
+int dos2unix_main(int argc, char *argv[]);
int dos2unix_main(int argc, char *argv[])
{
int o;
return sum;
}
+int du_main(int argc, char **argv);
int du_main(int argc, char **argv)
{
long total;
return 0;
}
+int echo_main(int argc, char** argv);
int echo_main(int argc, char** argv)
{
(void)bb_echo(argv);
};
#endif
+int env_main(int argc, char** argv);
int env_main(int argc, char** argv)
{
static char *cleanenv[1] = { NULL };
static void freev(VALUE * v);
static void tostring(VALUE * v);
+int expr_main(int argc, char **argv);
int expr_main(int argc, char **argv)
{
VALUE *v;
#include <stdlib.h>
#include "busybox.h"
+int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv);
int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv)
{
return EXIT_FAILURE;
return column;
}
+int fold_main(int argc, char **argv);
int fold_main(int argc, char **argv)
{
char *w_opt;
static const char header_fmt_str[] = "\n==> %s <==\n";
+int head_main(int argc, char **argv);
int head_main(int argc, char **argv)
{
unsigned long count = 10;
#include <unistd.h>
#include "busybox.h"
+int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv);
int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv)
{
if (argc > 1) {
return status;
}
+int id_main(int argc, char **argv);
int id_main(int argc, char **argv)
{
struct passwd *p;
};
#endif
+int install_main(int argc, char **argv);
int install_main(int argc, char **argv)
{
struct stat statbuf;
#include <stdio.h>
#include "busybox.h"
+int length_main(int argc, char **argv);
int length_main(int argc, char **argv)
{
if ((argc != 2) || (**(++argv) == '-')) {
#define LN_BACKUP 8
#define LN_SUFFIX 16
+int ln_main(int argc, char **argv);
int ln_main(int argc, char **argv)
{
int status = EXIT_SUCCESS;
#include <unistd.h>
#include "busybox.h"
+int logname_main(int argc, char ATTRIBUTE_UNUSED **argv);
int logname_main(int argc, char ATTRIBUTE_UNUSED **argv)
{
const char *p;
};
+int ls_main(int argc, char **argv);
int ls_main(int argc, char **argv)
{
struct dnode **dnd;
return hash_value;
}
+int md5_sha1_sum_main(int argc, char **argv);
int md5_sha1_sum_main(int argc, char **argv)
{
int return_value = EXIT_SUCCESS;
};
#endif
+int mkdir_main(int argc, char **argv);
int mkdir_main(int argc, char **argv)
{
mode_t mode = (mode_t)(-1);
#include "busybox.h"
#include "libcoreutils/coreutils.h"
+int mkfifo_main(int argc, char **argv);
int mkfifo_main(int argc, char **argv)
{
mode_t mode;
static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 };
static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK };
+int mknod_main(int argc, char **argv);
int mknod_main(int argc, char **argv)
{
mode_t mode;
static const char fmt[] = "cannot overwrite %sdirectory with %sdirectory";
+int mv_main(int argc, char **argv);
int mv_main(int argc, char **argv)
{
struct stat dest_stat;
#include <sys/resource.h>
#include "busybox.h"
+int nice_main(int argc, char **argv);
int nice_main(int argc, char **argv)
{
int old_priority, adjustment;
#include "busybox.h"
+int nohup_main(int argc, char **argv);
int nohup_main(int argc, char **argv)
{
int nullfd;
0xb, 1, 8, 9,
};
+int od_main(int argc, char **argv);
int od_main(int argc, char **argv)
{
int ch;
check_and_close();
}
-int
-od_main(int argc, char **argv)
+int od_main(int argc, char **argv);
+int od_main(int argc, char **argv)
{
static const struct suffix_mult bkm[] = {
{ "b", 512 },
#include <stdlib.h>
#include "busybox.h"
+int printenv_main(int argc, char **argv);
int printenv_main(int argc, char **argv)
{
extern char **environ;
}
}
+int printf_main(int argc, char **argv);
int printf_main(int argc, char **argv)
{
char *format;
#include <stdlib.h>
#include "busybox.h"
+int pwd_main(int argc, char **argv);
int pwd_main(int argc, char **argv)
{
char *buf;
#include "busybox.h"
+int realpath_main(int argc, char **argv);
int realpath_main(int argc, char **argv)
{
int retval = EXIT_SUCCESS;
#include <unistd.h>
#include "busybox.h"
+int rm_main(int argc, char **argv);
int rm_main(int argc, char **argv)
{
int status = 0;
#include <libgen.h>
#include "busybox.h"
+int rmdir_main(int argc, char **argv);
int rmdir_main(int argc, char **argv)
{
int status = EXIT_SUCCESS;
#include <stdlib.h>
#include "busybox.h"
+int seq_main(int argc, char **argv);
int seq_main(int argc, char **argv)
{
double last, first, increment, i;
};
#endif
+int sleep_main(int argc, char **argv);
int sleep_main(int argc, char **argv)
{
unsigned int duration;
}
#endif
+int sort_main(int argc, char **argv);
int sort_main(int argc, char **argv)
{
FILE *fp, *outfile = stdout;
return 1;
}
+int stat_main(int argc, char **argv);
int stat_main(int argc, char **argv)
{
int i;
#define STTY_verbose_output (1<<2)
#define STTY_recoverable_output (1<<3)
#define STTY_noargs (1<<4)
+int stty_main(int argc, char **argv);
int stty_main(int argc, char **argv)
{
struct termios mode;
#undef buf
}
+int sum_main(int argc, char **argv);
int sum_main(int argc, char **argv)
{
unsigned n;
#include <unistd.h>
#include "busybox.h"
+int sync_main(int argc, char **argv);
int sync_main(int argc, char **argv)
{
bb_warn_ignoring_args(argc - 1);
return xatou_sfx(p, tail_suffixes);
}
+int tail_main(int argc, char **argv);
int tail_main(int argc, char **argv)
{
unsigned count = 10;
#include "busybox.h"
#include <signal.h>
+int tee_main(int argc, char **argv);
int tee_main(int argc, char **argv)
{
const char *mode = "w\0a";
/* applet entry point */
+int test_main(int argc, char **argv);
int test_main(int argc, char **argv)
{
return bb_test(argc, argv);
#include <stdlib.h>
#include "busybox.h"
+int touch_main(int argc, char **argv);
int touch_main(int argc, char **argv)
{
int fd;
return ix;
}
+int tr_main(int argc, char **argv);
int tr_main(int argc, char **argv)
{
unsigned char *ptr;
#include <stdlib.h>
#include "busybox.h"
+int true_main(int argc, char **argv);
int true_main(int argc, char **argv)
{
return EXIT_SUCCESS;
#include <unistd.h>
#include "busybox.h"
+int tty_main(int argc, char **argv);
int tty_main(int argc, char **argv)
{
const char *s;
offsetof(uname_info_t,processor)
};
+int uname_main(int argc, char **argv);
int uname_main(int argc, char **argv)
{
uname_info_t uname_info;
return (read0write2) ? stdout : stdin;
}
+int uniq_main(int argc, char **argv);
int uniq_main(int argc, char **argv)
{
FILE *in, *out;
#include <unistd.h>
#include "busybox.h"
+int usleep_main(int argc, char **argv);
int usleep_main(int argc, char **argv)
{
if (argc != 2) {
}
}
+int uudecode_main(int argc, char **argv);
int uudecode_main(int argc, char **argv)
{
FILE *src_stream;
#define SRC_BUF_SIZE 45 // This *MUST* be a multiple of 3
#define DST_BUF_SIZE 4 * ((SRC_BUF_SIZE + 2) / 3)
+int uuencode_main(int argc, char **argv);
int uuencode_main(int argc, char **argv)
{
const size_t src_buf_size = SRC_BUF_SIZE;
//
// (procps 3.x and procps 2.x are forks, not newer/older versions of the same)
+int watch_main(int argc, char **argv);
int watch_main(int argc, char **argv)
{
unsigned opt;
WC_LENGTH = 3
};
+int wc_main(int argc, char **argv);
int wc_main(int argc, char **argv)
{
FILE *fp;
return "old";
}
+int who_main(int argc, char **argv);
int who_main(int argc, char **argv)
{
struct utmp *ut;
#include <unistd.h>
#include "busybox.h"
+int whoami_main(int argc, char **argv);
int whoami_main(int argc, char **argv)
{
if (argc > 1)
#include "busybox.h"
+int yes_main(int argc, char **argv);
int yes_main(int argc, char **argv)
{
static const char fmt_str[] = " %s";
#include <unistd.h>
#include <stdlib.h>
+int mktemp_main(int argc, char **argv);
int mktemp_main(int argc, char **argv)
{
unsigned long flags = getopt32(argc, argv, "dqt");
/* Read a block of data from stdin, write it to stdout.
* Activity is indicated by a '.' to stderr
*/
+int pipe_progress_main(int argc, char **argv);
int pipe_progress_main(int argc, char **argv)
{
RESERVE_CONFIG_BUFFER(buf, PIPE_PROGRESS_SIZE);
#include <stdlib.h>
#include <getopt.h>
+int readlink_main(int argc, char **argv);
int readlink_main(int argc, char **argv)
{
char *buf;
/* run_parts_main */
/* Process options */
+int run_parts_main(int argc, char **argv);
int run_parts_main(int argc, char **argv)
{
char **args = xmalloc(2 * sizeof(char *));
OPT_NICELEVEL = 0x80 * ENABLE_FEATURE_START_STOP_DAEMON_FANCY,
};
+int start_stop_daemon_main(int argc, char **argv);
int start_stop_daemon_main(int argc, char **argv)
{
unsigned opt;
#include "busybox.h"
+int which_main(int argc, char **argv);
int which_main(int argc, char **argv)
{
int status = EXIT_SUCCESS;
#include "busybox.h"
#include <other.h>
+int mu_main(int argc, char **argv);
int mu_main(int argc, char **argv)
{
int fd;
iterate_on_dir(name, chattr_dir_proc, NULL);
}
+int chattr_main(int argc, char **argv);
int chattr_main(int argc, char **argv)
{
char *arg;
cancel_requested = 1;
}
+int fsck_main(int argc, char *argv[]);
int fsck_main(int argc, char *argv[])
{
int i, status = 0;
}
}
+int lsattr_main(int argc, char **argv);
int lsattr_main(int argc, char **argv)
{
getopt32(argc, argv, "Radlv");
return 0;
}
+int chattr_main(int argc, char **argv);
int chattr_main(int argc, char **argv)
{
int i;
static const char my_ver_string[] = E2FSPROGS_VERSION;
static const char my_ver_date[] = E2FSPROGS_DATE;
+int e2fsck_main (int argc, char *argv[]);
int e2fsck_main (int argc, char *argv[])
{
errcode_t retval;
max_running = atoi(tmp);
}
+int fsck_main(int argc, char *argv[]);
int fsck_main(int argc, char *argv[])
{
int i, status = 0;
return 0;
}
+int lsattr_main(int argc, char **argv);
int lsattr_main(int argc, char **argv)
{
int i;
if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device);
}
+int mke2fs_main (int argc, char *argv[]);
int mke2fs_main (int argc, char *argv[])
{
errcode_t retval;
if (ENABLE_FEATURE_CLEAN_UP && journal_device) free(journal_device);
}
+int tune2fs_main(int argc, char **argv);
int tune2fs_main(int argc, char **argv)
{
errcode_t retval;
return &rsm;
}
+int awk_main(int argc, char **argv);
int awk_main(int argc, char **argv)
{
unsigned opt;
static int findString(const LINE *lp, const char * str, int len, int offset);
+int ed_main(int argc, char **argv);
int ed_main(int argc, char **argv)
{
if (!initEdit())
return stat(filename, &statbuf);
}
+int patch_main(int argc, char **argv);
int patch_main(int argc, char **argv)
{
int patch_level = -1;
free(opt_f);
}
+int sed_main(int argc, char **argv);
int sed_main(int argc, char **argv)
{
enum {
fputs(out, stdout);
}
+int vi_main(int argc, char **argv);
int vi_main(int argc, char **argv)
{
int c;
}
+int find_main(int argc, char **argv);
int find_main(int argc, char **argv)
{
int dereference = FALSE;
}
+int grep_main(int argc, char **argv);
int grep_main(int argc, char **argv)
{
FILE *file;
USE_FEATURE_XARGS_SUPPORT_TERMOPT( "x") \
USE_FEATURE_XARGS_SUPPORT_ZERO_TERM( "0")
+int xargs_main(int argc, char **argv);
int xargs_main(int argc, char **argv)
{
char **args;
/* applets which are useful from another applets */
-extern int bb_cat(char** argv);
-extern int bb_echo(char** argv);
-extern int bb_test(int argc, char** argv);
+int bb_cat(char** argv);
+int bb_echo(char** argv);
+int bb_test(int argc, char** argv);
#if ENABLE_ROUTE
-extern void bb_displayroutes(int noresolve, int netstatfmt);
+void bb_displayroutes(int noresolve, int netstatfmt);
+#endif
+#if ENABLE_GUNZIP
+int gunzip_main(int argc, char **argv);
#endif
#include "busybox.h"
#include <sys/reboot.h>
+int halt_main(int argc, char *argv[]);
int halt_main(int argc, char *argv[])
{
static const int magic[] = {
}
#endif /* FEATURE_USE_INITTAB */
+int init_main(int argc, char **argv);
int init_main(int argc, char **argv)
{
struct init_action *a;
#define S_IWGRP_OR_S_IWOTH (S_IWGRP | S_IWOTH)
#endif
+int mesg_main(int argc, char *argv[]);
int mesg_main(int argc, char *argv[])
{
struct stat sb;
char arg;
fd4name = open_a_console(choise_console_names[fd]);
- chk_std:
- choise_fd = fd4name >= 0 ? fd4name : fd;
+ chk_std:
+ choise_fd = (fd4name >= 0 ? fd4name : fd);
arg = 0;
if (ioctl(choise_fd, KDGKBTYPE, &arg) == 0)
*
* can be customized via command-line parameters.
* ________________________________________________________________________ */
+int addgroup_main(int argc, char **argv);
int addgroup_main(int argc, char **argv)
{
char *group;
*
* can be customized via command-line parameters.
*/
+int adduser_main(int argc, char **argv);
int adduser_main(int argc, char **argv)
{
struct passwd pw;
}
}
+int deluser_main(int argc, char **argv);
int deluser_main(int argc, char **argv)
{
if (argc != 2)
#endif /* SYSV_STYLE */
+int getty_main(int argc, char **argv);
int getty_main(int argc, char **argv)
{
int nullfd;
exit(EXIT_SUCCESS);
}
+int login_main(int argc, char **argv);
int login_main(int argc, char **argv)
{
enum {
}
+int passwd_main(int argc, char **argv);
int passwd_main(int argc, char **argv)
{
enum {
#define SU_OPT_mp (3)
#define SU_OPT_l (4)
+int su_main(int argc, char **argv);
int su_main(int argc, char **argv)
{
unsigned flags;
}
+int sulogin_main(int argc, char **argv);
int sulogin_main(int argc, char **argv)
{
char *cp;
tcsetattr(STDIN_FILENO, TCSANOW, &oterm);
}
+int vlock_main(int argc, char **argv);
int vlock_main(int argc, char **argv)
{
sigset_t sig;
"leap second has occurred",
"clock not synchronized" };
+int adjtimex_main(int argc, char **argv);
int adjtimex_main(int argc, char **argv)
{
enum {
#include "busybox.h"
#include "bbconfigopts.h"
+int bbconfig_main(int argc, char **argv);
int bbconfig_main(int argc, char **argv)
{
printf(bbconfig_config);
}
}
+int crond_main(int ac, char **av);
int crond_main(int ac, char **av)
{
unsigned opt;
static int GetReplaceStream(const char *user, const char *file);
static int ChangeUser(const char *user, short dochdir);
+int crontab_main(int ac, char **av);
int crontab_main(int ac, char **av)
{
enum { NONE, EDIT, LIST, REPLACE, DELETE } option = NONE;
return i;
}
+int dc_main(int argc, char **argv);
int dc_main(int argc, char **argv)
{
/* take stuff from stdin if no args are given */
/* Public functions follow */
+int devfsd_main (int argc, char **argv);
int devfsd_main (int argc, char **argv)
{
int print_version = FALSE;
#define FLAG_CLOSE 1
#define FLAG_SMART 2
+int eject_main(int argc, char **argv);
int eject_main(int argc, char **argv)
{
unsigned long flags;
/*-------------------------------------*/
/* our main() routine: */
+int hdparm_main(int argc, char **argv) ATTRIBUTE_NORETURN;;
int hdparm_main(int argc, char **argv) ATTRIBUTE_NORETURN;
+int hdparm_main(int argc, char **argv);
int hdparm_main(int argc, char **argv)
{
int c;
#error struct utmp member char[] size(s) have changed!
#endif
+int last_main(int argc, char **argv);
int last_main(int argc, char **argv)
{
struct utmp ut;
exit(1);
}
+int less_main(int argc, char **argv);
int less_main(int argc, char **argv)
{
int keypress;
#include "busybox.h"
#ifdef CONFIG_FEATURE_MAKEDEVS_LEAF
+int makedevs_main(int argc, char **argv);
int makedevs_main(int argc, char **argv)
{
mode_t mode;
/* Licensed under the GPL v2 or later, see the file LICENSE in this tarball. */
+int makedevs_main(int argc, char **argv);
int makedevs_main(int argc, char **argv)
{
FILE *table = stdin;
#include "busybox.h"
+int mountpoint_main(int argc, char **argv);
int mountpoint_main(int argc, char **argv)
{
struct stat st;
{0, 0}
};
+int mt_main(int argc, char **argv);
int mt_main(int argc, char **argv)
{
const char *file = "/dev/tape";
init_cr,
};
+int nmeter_main(int argc, char* argv[]);
int nmeter_main(int argc, char* argv[])
{
char buf[32];
#include <linux/major.h>
#include <linux/raid/md_u.h>
+int raidautorun_main(int argc, char **argv);
int raidautorun_main(int argc, char **argv)
{
if (argc != 2)
#include "busybox.h"
+int readahead_main(int argc, char **argv);
int readahead_main(int argc, char **argv)
{
FILE *f;
#include <time.h>
#include <stdlib.h>
+int runlevel_main(int argc, char *argv[]);
int runlevel_main(int argc, char *argv[])
{
struct utmp *ut;
{
}
+int rx_main(int argc, char **argv);
int rx_main(int argc, char **argv)
{
char *fn;
#include "busybox.h"
+int setsid_main(int argc, char *argv[]);
int setsid_main(int argc, char *argv[])
{
if (argc < 2)
#define PRINT_OFFSET 4
#define SIZE 8
+int strings_main(int argc, char **argv);
int strings_main(int argc, char **argv)
{
int n, c, i = 0, status = EXIT_SUCCESS;
#define OPT_p 1
+int taskset_main(int argc, char** argv);
int taskset_main(int argc, char** argv)
{
cpu_set_t mask, new_mask;
signal(SIGQUIT, quit_signal);
}
+int time_main(int argc, char **argv);
int time_main(int argc, char **argv)
{
resource_t res;
exit(0);
}
+int watchdog_main(int argc, char **argv);
int watchdog_main(int argc, char **argv)
{
unsigned opts;
void print_load_map(struct obj_file *f);
#endif
+int insmod_main( int argc, char **argv);
int insmod_main( int argc, char **argv)
{
char *opt_o, *arg1;
}
}
+int insmod_ng_main(int argc, char **argv);
int insmod_ng_main(int argc, char **argv)
{
long ret;
NEW_MOD_INITIALIZING = 64
};
+int lsmod_main(int argc, char **argv);
int lsmod_main(int argc, char **argv)
{
struct module_info info;
#else /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */
+int lsmod_main(int argc, char **argv);
int lsmod_main(int argc, char **argv)
{
FILE *file = xfopen("/proc/modules", "r");
return rc;
}
+int modprobe_main(int argc, char** argv);
int modprobe_main(int argc, char** argv)
{
int rc = EXIT_SUCCESS;
int query_module(const char *name, int which, void *buf,
size_t bufsize, size_t *ret);
+int rmmod_main(int argc, char **argv);
int rmmod_main(int argc, char **argv)
{
int n, ret = EXIT_SUCCESS;
return 0;
}
+int arp_main(int argc, char **argv);
int arp_main(int argc, char **argv)
{
char *hw_type;
return 1;
}
+int arping_main(int argc, char **argv);
int arping_main(int argc, char **argv)
{
const char *device = "eth0";
exit(2);
}
+int dnsd_main(int argc, char **argv);
int dnsd_main(int argc, char **argv)
{
char *listen_interface = NULL;
static inline int get_fill(unsigned char *pkt, struct ether_addr *eaddr, int broadcast);
static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd);
+int ether_wake_main(int argc, char *argv[]);
int ether_wake_main(int argc, char *argv[])
{
const char *ifname = "eth0";
};
#endif
+int ftpgetput_main(int argc, char **argv);
int ftpgetput_main(int argc, char **argv)
{
/* content-length of the file */
}
}
+int hostname_main(int argc, char **argv);
int hostname_main(int argc, char **argv)
{
enum {
"p:if";
+int httpd_main(int argc, char *argv[]);
int httpd_main(int argc, char *argv[])
{
unsigned opt;
* Our main function.
*/
+int ifconfig_main(int argc, char **argv);
int ifconfig_main(int argc, char **argv)
{
struct ifreq ifr;
return NULL;
}
+int ifupdown_main(int argc, char **argv);
int ifupdown_main(int argc, char **argv)
{
int (*cmds)(struct interface_defn_t *) = NULL;
#endif
-int
-inetd_main(int argc, char *argv[])
+int inetd_main(int argc, char *argv[]);
+int inetd_main(int argc, char *argv[])
{
servtab_t *sep;
struct passwd *pwd;
#include "libiproute/utils.h"
#include "libiproute/ip_common.h"
+int ip_main(int argc, char **argv);
int ip_main(int argc, char **argv)
{
int ret = EXIT_FAILURE;
#include "busybox.h"
+int ipaddr_main(int argc, char **argv);
int ipaddr_main(int argc, char **argv)
{
ip_parse_common_args(&argc, &argv);
};
#endif
+int ipcalc_main(int argc, char **argv);
int ipcalc_main(int argc, char **argv)
{
unsigned opt;
#include "busybox.h"
+int iplink_main(int argc, char **argv);
int iplink_main(int argc, char **argv)
{
ip_parse_common_args(&argc, &argv);
#include "busybox.h"
+int iproute_main(int argc, char **argv);
int iproute_main(int argc, char **argv)
{
ip_parse_common_args(&argc, &argv);
#include "busybox.h"
+int iprule_main(int argc, char **argv);
int iprule_main(int argc, char **argv)
{
ip_parse_common_args(&argc, &argv);
#include "busybox.h"
+int iptunnel_main(int argc, char **argv);
int iptunnel_main(int argc, char **argv)
{
ip_parse_common_args(&argc, &argv);
while (do_rd(0, (void*)&buf) == 0);
}
+int fakeidentd_main(int argc, char **argv);
int fakeidentd_main(int argc, char **argv)
{
enum {
return mac;
}
+int nameif_main(int argc, char **argv);
int nameif_main(int argc, char **argv)
{
mactable_t *clist = NULL;
bb_error_msg_and_die("timed out");
}
+int nc_main(int argc, char **argv);
int nc_main(int argc, char **argv)
{
/* sfd sits _here_ only because of "repeat" option (-l -l). */
* Our main function.
*/
+int netstat_main(int argc, char **argv);
int netstat_main(int argc, char **argv)
{
enum {
}
}
+int nslookup_main(int argc, char **argv);
int nslookup_main(int argc, char **argv)
{
/* We allow 1 or 2 arguments.
}
#endif
+int ping_main(int argc, char **argv);
int ping_main(int argc, char **argv)
{
len_and_sockaddr *lsa;
return 1; /* error */
}
+int ping_main(int argc, char **argv);
int ping_main(int argc, char **argv)
{
len_and_sockaddr *lsa;
#if ENABLE_PING6
+int ping6_main(int argc, char **argv);
int ping6_main(int argc, char **argv)
{
argv[0] = (char*)"-6";
"\010\002delete" /* Since last, we can save a byte. */
;
+int route_main(int argc, char **argv);
int route_main(int argc, char **argv)
{
unsigned opt;
if (G.do_termios) tcsetattr(0, TCSADRAIN, &G.termios_def);
}
+int telnet_main(int argc, char** argv);
int telnet_main(int argc, char** argv)
{
char *host;
#endif
-int
-telnetd_main(int argc, char **argv)
+int telnetd_main(int argc, char **argv);
+int telnetd_main(int argc, char **argv)
{
fd_set rdfdset, wrfdset;
unsigned opt;
return finished ? EXIT_SUCCESS : EXIT_FAILURE;
}
+int tftp_main(int argc, char **argv);
int tftp_main(int argc, char **argv)
{
len_and_sockaddr *peer_lsa;
#endif
-int
-traceroute_main(int argc, char *argv[])
+int traceroute_main(int argc, char *argv[]);
+int traceroute_main(int argc, char *argv[])
{
int code, n;
unsigned char *outp;
}
+int udhcpc_main(int argc, char *argv[]);
int udhcpc_main(int argc, char *argv[])
{
uint8_t *temp, *message;
struct server_config_t server_config;
+int udhcpd_main(int argc, char *argv[]);
int udhcpd_main(int argc, char *argv[])
{
fd_set rfds;
}
}
+int dhcprelay_main(int argc, char **argv);
int dhcprelay_main(int argc, char **argv)
{
int i, num_sockets, max_socket, fds[MAX_INTERFACES];
#define REMAINING 0
#define ABSOLUTE 1
+int dumpleases_main(int argc, char *argv[]);
int dumpleases_main(int argc, char *argv[])
{
int fp;
static const char conf_file_name[] = "/proc/net/vlan/config";
+int vconfig_main(int argc, char **argv);
int vconfig_main(int argc, char **argv)
{
struct vlan_ioctl_args ifr;
}
#endif
+int wget_main(int argc, char **argv);
int wget_main(int argc, char **argv)
{
char buf[512];
static int verbose; // = 0;
static int state = PROBE;
+int zcip_main(int argc, char *argv[]);
int zcip_main(int argc, char *argv[])
{
struct ether_addr eth_addr;
#include "busybox.h"
+int free_main(int argc, char **argv);
int free_main(int argc, char **argv)
{
struct sysinfo info;
return success;
}
+int fuser_main(int argc, char **argv);
int fuser_main(int argc, char **argv)
{
int port, i, optn;
#include "busybox.h"
+int kill_main(int argc, char **argv);
int kill_main(int argc, char **argv)
{
char *arg;
OPT_OMIT = USE_FEATURE_PIDOF_OMIT( (1<<OPTBIT_OMIT )) + 0,
};
+int pidof_main(int argc, char **argv);
int pidof_main(int argc, char **argv)
{
unsigned first = 1;
/* Cannot be const: parse_o() will choke */
static char default_o[] = "pid,user" /* TODO: ,vsz,stat */ ",args";
+int ps_main(int argc, char **argv);
int ps_main(int argc, char **argv)
{
procps_status_t *p;
#else /* !ENABLE_DESKTOP */
+int ps_main(int argc, char **argv);
int ps_main(int argc, char **argv)
{
procps_status_t *p = NULL;
void BUG_bad_PRIO_PGRP(void);
void BUG_bad_PRIO_USER(void);
+int renice_main(int argc, char **argv);
int renice_main(int argc, char **argv)
{
static const char Xetpriority_msg[] = "%cetpriority";
/*
* sysctl_main()...
*/
+int sysctl_main(int argc, char **argv);
int sysctl_main(int argc, char **argv)
{
int retval = 0;
#endif /* FEATURE_USE_TERMIOS */
+int top_main(int argc, char **argv);
int top_main(int argc, char **argv)
{
int count, lines, col;
#define LOAD_FRAC(x) LOAD_INT(((x) & (FIXED_1-1)) * 100)
+int uptime_main(int argc, char **argv);
int uptime_main(int argc, char **argv)
{
int updays, uphours, upminutes;
static void envdir(int, char **);
static void softlimit(int, char **);
+int chpst_main(int argc, char **argv);
int chpst_main(int argc, char **argv)
{
if (applet_name[3] == 'd') envdir(argc, argv);
return 1;
}
+int runsv_main(int argc, char **argv);
int runsv_main(int argc, char **argv)
{
struct stat s;
return 1;
}
+int runsvdir_main(int argc, char **argv);
int runsvdir_main(int argc, char **argv)
{
struct stat s;
return 1;
}
+int sv_main(int argc, char **argv);
int sv_main(int argc, char **argv)
{
unsigned opt;
}
}
+int svlogd_main(int argc, char **argv);
int svlogd_main(int argc, char **argv)
{
sigset_t ss;
* is used to figure out how far we had gotten.
*/
-int
-ash_main(int argc, char **argv)
+int ash_main(int argc, char **argv);
+int ash_main(int argc, char **argv)
{
char *shinit;
volatile int state;
}
}
+int bbsh_main(int argc, char *argv[]);
int bbsh_main(int argc, char *argv[])
{
char *command=NULL;
tcsetpgrp(shell_terminal, shell_pgrp);
}
+int hush_main(int argc, char **argv);
int hush_main(int argc, char **argv)
{
int opt;
}
#endif
+int lash_main(int argc_l, char **argv_l);
int lash_main(int argc_l, char **argv_l)
{
unsigned opt;
* shell
*/
+int msh_main(int argc, char **argv);
int msh_main(int argc, char **argv)
{
int f;
#define KLOGD_LOGBUF_SIZE 4096
+int klogd_main(int argc, char **argv);
int klogd_main(int argc, char **argv)
{
RESERVE_CONFIG_BUFFER(log_buffer, KLOGD_LOGBUF_SIZE);
}
+int logger_main(int argc, char **argv);
int logger_main(int argc, char **argv)
{
char *str_p, *str_t;
exit(0);
}
+int logread_main(int argc, char **argv);
int logread_main(int argc, char **argv)
{
int cur;
} /* for */
}
+int syslogd_main(int argc, char **argv);
int syslogd_main(int argc, char **argv)
{
char OPTION_DECL;
#include <unistd.h>
#include <sys/klog.h>
+int dmesg_main(int argc, char *argv[]);
int dmesg_main(int argc, char *argv[])
{
char *size, *level;
#ifdef STANDALONE
int main(int argc, char **argv)
#else
+int fbset_main(int argc, char **argv);
int fbset_main(int argc, char **argv)
#endif
{
}
}
+int fdformat_main(int argc,char **argv);
int fdformat_main(int argc,char **argv)
{
int fd, n, cyl, read_bytes, verify;
}
#endif
+int fdisk_main(int argc, char **argv);
int fdisk_main(int argc, char **argv)
{
char *str_b, *str_C, *str_H, *str_S;
/* From <linux/fd.h> */
#define FDFLUSH _IO(2,0x4b)
+int freeramdisk_main(int argc, char **argv);
int freeramdisk_main(int argc, char **argv)
{
int result;
void check2(void);
#endif
+int fsck_minix_main(int argc, char **argv);
int fsck_minix_main(int argc, char **argv)
{
struct termios tmp;
static const char shortopts[]="+ao:l:n:qQs:Tu";
+int getopt_main(int argc, char *argv[]);
int getopt_main(int argc, char *argv[])
{
const char *optstr = NULL;
{NULL, 0 }
};
+int hexdump_main(int argc, char **argv);
int hexdump_main(int argc, char **argv)
{
const char *p;
#define HWCLOCK_OPT_HCTOSYS 0x08
#define HWCLOCK_OPT_SYSTOHC 0x10
+int hwclock_main(int argc, char **argv );
int hwclock_main(int argc, char **argv )
{
unsigned opt;
#endif /* #ifndef CONFIG_IPCRM_DROP_LEGACY */
+int ipcrm_main(int argc, char **argv);
int ipcrm_main(int argc, char **argv)
{
int c;
puts("");
}
+int ipcs_main(int argc, char **argv);
int ipcs_main(int argc, char **argv)
{
int id = 0;
#include "busybox.h"
+int losetup_main(int argc, char **argv);
int losetup_main(int argc, char **argv)
{
unsigned opt;
closedir(dir);
}
+int mdev_main(int argc, char *argv[]);
int mdev_main(int argc, char *argv[])
{
char *action;
printf("%d bad block(s)\n", badblocks);
}
+int mkfs_minix_main(int argc, char **argv);
int mkfs_minix_main(int argc, char **argv)
{
struct mntent *mp;
#include "busybox.h"
+int mkswap_main(int argc, char *argv[]);
int mkswap_main(int argc, char *argv[])
{
int fd, pagesize;
#endif /* FEATURE_USE_TERMIOS */
+int more_main(int argc, char **argv);
int more_main(int argc, char **argv)
{
int c, lines, input = 0;
const char must_be_root[] = "you must be root";
+int mount_main(int argc, char **argv);
int mount_main(int argc, char **argv)
{
enum { OPT_ALL = 0x10 };
extern int pivot_root(const char * new_root,const char * put_old);
+int pivot_root_main(int argc, char **argv);
int pivot_root_main(int argc, char **argv)
{
if (argc != 3)
return ntohl(nett) - RFC_868_BIAS;
}
+int rdate_main(int argc, char **argv);
int rdate_main(int argc, char **argv)
{
time_t remote_time;
static const char defaultmap[] = "/boot/System.map";
static const char defaultpro[] = "/proc/profile";
+int readprofile_main(int argc, char **argv);
int readprofile_main(int argc, char **argv)
{
FILE *map;
#include "busybox.h"
+int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv);
int setarch_main(int ATTRIBUTE_UNUSED argc, char **argv)
{
int pers = -1;
#define DO_ALL 0x01
+int swap_on_off_main(int argc, char **argv);
int swap_on_off_main(int argc, char **argv)
{
int ret;
} else unlink(directory);
}
+int switch_root_main(int argc, char *argv[]);
int switch_root_main(int argc, char *argv[])
{
char *newroot, *console=NULL;
#define OPT_REMOUNT 16
#define OPT_ALL (ENABLE_FEATURE_UMOUNT_ALL ? 32 : 0)
+int umount_main(int argc, char **argv);
int umount_main(int argc, char **argv)
{
int doForce;