2000-10-25 00:28:27 +00:00
|
|
|
/*
|
|
|
|
* applets.h - a listing of all busybox applets.
|
|
|
|
*
|
|
|
|
* If you write a new applet, you need to add an entry to this list to make
|
|
|
|
* busybox aware of it.
|
|
|
|
*
|
|
|
|
* It is CRUCIAL that this listing be kept in ascii order, otherwise the binary
|
|
|
|
* search lookup contributed by Gaute B Strokkenes stops working. If you value
|
|
|
|
* your kneecaps, you'll be sure to *make sure* that any changes made to this
|
|
|
|
* file result in the listing remaining in ascii order. You have been warned.
|
|
|
|
*/
|
|
|
|
|
2001-02-14 21:23:06 +00:00
|
|
|
#undef APPLET
|
|
|
|
#undef APPLET_ODDNAME
|
|
|
|
#undef APPLET_NOUSAGE
|
|
|
|
|
2001-02-22 01:15:47 +00:00
|
|
|
|
2000-12-02 00:44:48 +00:00
|
|
|
#if defined(PROTOTYPES)
|
2001-02-22 01:15:47 +00:00
|
|
|
#define APPLET(a,b,c) extern int b(int argc, char **argv);
|
|
|
|
#define APPLET_NOUSAGE(a,b,c) extern int b(int argc, char **argv);
|
|
|
|
#define APPLET_ODDNAME(a,b,c,d) extern int b(int argc, char **argv);
|
|
|
|
extern const char usage_messages[];
|
|
|
|
#elif defined(MAKE_USAGE)
|
|
|
|
#ifdef BB_FEATURE_TRIVIAL_HELP
|
|
|
|
#define APPLET(a,b,c) a##_trivial_usage "\0"
|
|
|
|
#define APPLET_NOUSAGE(a,b,c) "\0"
|
|
|
|
#define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\0"
|
|
|
|
#else
|
|
|
|
#define APPLET(a,b,c) a##_trivial_usage "\n\n" a##_full_usage "\0"
|
|
|
|
#define APPLET_NOUSAGE(a,b,c) "\0"
|
|
|
|
#define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\n\n" d##_full_usage "\0"
|
|
|
|
#endif
|
2000-12-02 00:44:48 +00:00
|
|
|
#else
|
2001-02-22 01:15:47 +00:00
|
|
|
const struct BB_applet applets[] = {
|
|
|
|
#define APPLET(a,b,c) {#a,b,c},
|
|
|
|
#define APPLET_NOUSAGE(a,b,c) {a,b,c},
|
|
|
|
#define APPLET_ODDNAME(a,b,c,d) {a,b,c},
|
2000-11-30 00:27:06 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
|
2001-02-22 01:15:47 +00:00
|
|
|
|
|
|
|
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_TEST
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_AR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ar, ar_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_BASENAME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(basename, basename_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_CAT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(cat, cat_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CHMOD_CHOWN_CHGRP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(chgrp, chmod_chown_chgrp_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CHMOD_CHOWN_CHGRP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(chmod, chmod_chown_chgrp_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CHMOD_CHOWN_CHGRP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(chown, chmod_chown_chgrp_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CHROOT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CHVT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CLEAR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(clear, clear_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CMP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CP_MV
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(cp, cp_mv_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CUT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(cut, cut_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DATE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(date, date_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DC
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dc, dc_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dd, dd_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DEALLOCVT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DF
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(df, df_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DIRNAME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DMESG
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DOS2UNIX
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-10 02:04:40 +00:00
|
|
|
#ifdef BB_DPKG
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
|
2001-02-10 02:04:40 +00:00
|
|
|
#endif
|
2001-01-02 23:41:50 +00:00
|
|
|
#ifdef BB_DPKG_DEB
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
|
2001-01-02 23:41:50 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_DU
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(du, du_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DUMPKMAP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_DUTMP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_ECHO
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(echo, echo_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_EXPR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(expr, expr_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TRUE_FALSE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(false, false_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FBSET
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FDFLUSH
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FIND
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(find, find_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FREE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(free, free_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FREERAMDISK
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_FSCK_MINIX
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_GETOPT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(getopt, getopt_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_GREP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(grep, grep_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_GUNZIP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_GZIP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(gzip, gzip_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_HALT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(halt, halt_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_HEAD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(head, head_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_HOSTID
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_HOSTNAME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(hostname, hostname_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_ID
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(id, id_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-14 08:11:27 +00:00
|
|
|
#ifdef BB_IFCONFIG
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
|
2001-02-14 08:11:27 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_INIT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(init, init_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_INSMOD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(insmod, insmod_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_KILL
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(kill, kill_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_KILLALL
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(killall, kill_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LENGTH
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(length, length_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LINUXRC
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LN
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ln, ln_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LOADACM
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LOADFONT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LOADKMAP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LOGGER
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(logger, logger_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LOGNAME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(logname, logname_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LS
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ls, ls_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_LSMOD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MAKEDEVS
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MD5SUM
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKDIR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKFIFO
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKFS_MINIX
|
2001-02-22 01:15:47 +00:00
|
|
|
APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKNOD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mknod, mknod_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKSWAP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MKTEMP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MORE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(more, more_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MOUNT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mount, mount_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_MT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mt, mt_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_CP_MV
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(mv, cp_mv_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_NC
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(nc, nc_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_NSLOOKUP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_PING
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ping, ping_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-13 20:04:30 +00:00
|
|
|
#ifdef BB_PIVOT_ROOT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
|
2001-02-13 20:04:30 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_POWEROFF
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_PRINTF
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(printf, printf_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_PS
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(ps, ps_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_PWD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(pwd, pwd_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RDATE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_READLINK
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_REBOOT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(reboot, reboot_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RENICE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(renice, renice_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RESET
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(reset, reset_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RM
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(rm, rm_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RMDIR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_RMMOD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-14 08:11:27 +00:00
|
|
|
#ifdef BB_ROUTE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(route, route_main, _BB_DIR_USR_BIN)
|
2001-02-14 08:11:27 +00:00
|
|
|
#endif
|
2000-11-29 21:38:11 +00:00
|
|
|
#ifdef BB_RPMUNPACK
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(rpmunpack, rpmunpack_main, _BB_DIR_USR_BIN)
|
2000-11-29 21:38:11 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_SED
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(sed, sed_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SETKEYCODES
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SH
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(sh, shell_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SLEEP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(sleep, sleep_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SORT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(sort, sort_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-02-14 18:47:33 +00:00
|
|
|
#ifdef BB_STTY
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(stty, stty_main, _BB_DIR_BIN)
|
2001-02-14 18:47:33 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_SWAPONOFF
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SWAPONOFF
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SYNC
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(sync, sync_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_SYSLOGD
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TAIL
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(tail, tail_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TAR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(tar, tar_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TEE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(tee, tee_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TELNET
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TEST
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(test, test_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TOUCH
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(touch, touch_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TR
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(tr, tr_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TRUE_FALSE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(true, true_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_TTY
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(tty, tty_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UMOUNT
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(umount, umount_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UNAME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(uname, uname_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UNIQ
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UNIX2DOS
|
2001-02-22 23:37:30 +00:00
|
|
|
APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UPDATE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(update, update_main, _BB_DIR_SBIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UPTIME
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_USLEEP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(usleep, usleep_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UUDECODE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_UUENCODE
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2001-01-25 23:40:32 +00:00
|
|
|
#ifdef BB_WATCHDOG
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
|
2001-01-25 23:40:32 +00:00
|
|
|
#endif
|
2000-10-25 00:28:27 +00:00
|
|
|
#ifdef BB_WC
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(wc, wc_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_WGET
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(wget, wget_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_WHICH
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(which, which_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_WHOAMI
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_XARGS
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_YES
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(yes, yes_main, _BB_DIR_USR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
|
|
|
#ifdef BB_GUNZIP
|
2001-02-14 21:23:06 +00:00
|
|
|
APPLET(zcat, gunzip_main, _BB_DIR_BIN)
|
2000-10-25 00:28:27 +00:00
|
|
|
#endif
|
2000-11-30 00:27:06 +00:00
|
|
|
|
2001-02-22 01:15:47 +00:00
|
|
|
#if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
|
|
|
|
{ 0,NULL,0 }
|
2000-10-25 00:28:27 +00:00
|
|
|
};
|
|
|
|
|
2001-02-14 21:23:06 +00:00
|
|
|
/* The -1 arises because of the {0,NULL,0,-1} entry above. */
|
2000-11-17 18:51:45 +00:00
|
|
|
size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);
|
2000-10-25 00:28:27 +00:00
|
|
|
|
2000-11-30 00:27:06 +00:00
|
|
|
#endif
|