blob: fe8c597827fcead05fd54200e05bb1179f9f1bbb [file] [log] [blame]
Mark Whitley130005c2000-10-25 00:28:27 +00001/*
2 * applets.h - a listing of all busybox applets.
3 *
4 * If you write a new applet, you need to add an entry to this list to make
5 * busybox aware of it.
6 *
7 * It is CRUCIAL that this listing be kept in ascii order, otherwise the binary
8 * search lookup contributed by Gaute B Strokkenes stops working. If you value
9 * your kneecaps, you'll be sure to *make sure* that any changes made to this
10 * file result in the listing remaining in ascii order. You have been warned.
11 */
12
Eric Andersen868c0572000-12-02 00:44:48 +000013#if defined(PROTOTYPES)
Eric Andersen8c725e62000-11-30 00:27:06 +000014#define APPLET(a,b,c,d) \
15 extern int b(int argc, char **argv); \
16 extern const char d[];
17#define APPLET_NOUSAGE(a,b,c) \
18 extern int b(int argc, char **argv);
Eric Andersen868c0572000-12-02 00:44:48 +000019#elif defined(MAKE_LINKS)
20#define APPLET(a,b,c,d) LINK c a
21#define APPLET_NOUSAGE(a,b,c) LINK c a
22#else
23const struct BB_applet applets[] = {
24#define APPLET(a,b,c,d) {a,b,c,d},
25#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
Eric Andersen8c725e62000-11-30 00:27:06 +000026#endif
Mark Whitley130005c2000-10-25 00:28:27 +000027
28#ifdef BB_TEST
Eric Andersen8c725e62000-11-30 00:27:06 +000029 APPLET("[", test_main, _BB_DIR_USR_BIN, test_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000030#endif
31#ifdef BB_AR
Eric Andersen8c725e62000-11-30 00:27:06 +000032 APPLET("ar", ar_main, _BB_DIR_USR_BIN, ar_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000033#endif
34#ifdef BB_BASENAME
Eric Andersen8c725e62000-11-30 00:27:06 +000035 APPLET("basename", basename_main, _BB_DIR_USR_BIN, basename_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000036#endif
Eric Andersen8c725e62000-11-30 00:27:06 +000037 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000038#ifdef BB_CAT
Eric Andersen8c725e62000-11-30 00:27:06 +000039 APPLET("cat", cat_main, _BB_DIR_BIN, cat_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000040#endif
41#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen8c725e62000-11-30 00:27:06 +000042 APPLET("chgrp", chmod_chown_chgrp_main, _BB_DIR_BIN, chgrp_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000043#endif
44#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen8c725e62000-11-30 00:27:06 +000045 APPLET("chmod", chmod_chown_chgrp_main, _BB_DIR_BIN, chmod_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000046#endif
47#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen8c725e62000-11-30 00:27:06 +000048 APPLET("chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000049#endif
50#ifdef BB_CHROOT
Eric Andersen8c725e62000-11-30 00:27:06 +000051 APPLET("chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000052#endif
53#ifdef BB_CHVT
Eric Andersen8c725e62000-11-30 00:27:06 +000054 APPLET("chvt", chvt_main, _BB_DIR_USR_BIN, chvt_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000055#endif
56#ifdef BB_CLEAR
Eric Andersen8c725e62000-11-30 00:27:06 +000057 APPLET("clear", clear_main, _BB_DIR_USR_BIN, clear_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000058#endif
59#ifdef BB_CMP
Eric Andersen8c725e62000-11-30 00:27:06 +000060 APPLET("cmp", cmp_main, _BB_DIR_USR_BIN, cmp_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000061#endif
62#ifdef BB_CP_MV
Eric Andersen8c725e62000-11-30 00:27:06 +000063 APPLET("cp", cp_mv_main, _BB_DIR_BIN, cp_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000064#endif
65#ifdef BB_CUT
Eric Andersen8c725e62000-11-30 00:27:06 +000066 APPLET("cut", cut_main, _BB_DIR_USR_BIN, cut_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000067#endif
68#ifdef BB_DATE
Eric Andersen8c725e62000-11-30 00:27:06 +000069 APPLET("date", date_main, _BB_DIR_BIN, date_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000070#endif
71#ifdef BB_DC
Eric Andersen8c725e62000-11-30 00:27:06 +000072 APPLET("dc", dc_main, _BB_DIR_USR_BIN, dc_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000073#endif
74#ifdef BB_DD
Eric Andersen8c725e62000-11-30 00:27:06 +000075 APPLET("dd", dd_main, _BB_DIR_BIN, dd_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000076#endif
77#ifdef BB_DEALLOCVT
Eric Andersen8c725e62000-11-30 00:27:06 +000078 APPLET("deallocvt", deallocvt_main, _BB_DIR_USR_BIN, deallocvt_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000079#endif
80#ifdef BB_DF
Eric Andersen8c725e62000-11-30 00:27:06 +000081 APPLET("df", df_main, _BB_DIR_BIN, df_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000082#endif
83#ifdef BB_DIRNAME
Eric Andersen8c725e62000-11-30 00:27:06 +000084 APPLET("dirname", dirname_main, _BB_DIR_USR_BIN, dirname_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000085#endif
86#ifdef BB_DMESG
Eric Andersen8c725e62000-11-30 00:27:06 +000087 APPLET("dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000088#endif
89#ifdef BB_DOS2UNIX
Eric Andersen8c725e62000-11-30 00:27:06 +000090 APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000091#endif
92#ifdef BB_DU
Eric Andersen8c725e62000-11-30 00:27:06 +000093 APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000094#endif
95#ifdef BB_DUMPKMAP
Eric Andersen8c725e62000-11-30 00:27:06 +000096 APPLET("dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage)
Mark Whitley130005c2000-10-25 00:28:27 +000097#endif
98#ifdef BB_DUTMP
Eric Andersen8c725e62000-11-30 00:27:06 +000099 APPLET("dutmp", dutmp_main, _BB_DIR_USR_SBIN, dutmp_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000100#endif
101#ifdef BB_ECHO
Eric Andersen8c725e62000-11-30 00:27:06 +0000102 APPLET("echo", echo_main, _BB_DIR_BIN, echo_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000103#endif
104#ifdef BB_EXPR
Eric Andersen8c725e62000-11-30 00:27:06 +0000105 APPLET("expr", expr_main, _BB_DIR_USR_BIN, expr_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000106#endif
107#ifdef BB_TRUE_FALSE
Eric Andersen8c725e62000-11-30 00:27:06 +0000108 APPLET("false", false_main, _BB_DIR_BIN, false_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000109#endif
110#ifdef BB_FBSET
Eric Andersen8c725e62000-11-30 00:27:06 +0000111 APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000112#endif
113#ifdef BB_FDFLUSH
Eric Andersen8c725e62000-11-30 00:27:06 +0000114 APPLET("fdflush", fdflush_main, _BB_DIR_BIN, fdflush_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000115#endif
116#ifdef BB_FIND
Eric Andersen8c725e62000-11-30 00:27:06 +0000117 APPLET("find", find_main, _BB_DIR_USR_BIN, find_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000118#endif
119#ifdef BB_FREE
Eric Andersen8c725e62000-11-30 00:27:06 +0000120 APPLET("free", free_main, _BB_DIR_USR_BIN, free_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000121#endif
122#ifdef BB_FREERAMDISK
Eric Andersen8c725e62000-11-30 00:27:06 +0000123 APPLET("freeramdisk", freeramdisk_main, _BB_DIR_SBIN, freeramdisk_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000124#endif
125#ifdef BB_FSCK_MINIX
Eric Andersen8c725e62000-11-30 00:27:06 +0000126 APPLET("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000127#endif
128#ifdef BB_GETOPT
Eric Andersen8c725e62000-11-30 00:27:06 +0000129 APPLET("getopt", getopt_main, _BB_DIR_BIN, getopt_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000130#endif
131#ifdef BB_GREP
Eric Andersen8c725e62000-11-30 00:27:06 +0000132 APPLET("grep", grep_main, _BB_DIR_BIN, grep_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000133#endif
134#ifdef BB_GUNZIP
Eric Andersen8c725e62000-11-30 00:27:06 +0000135 APPLET("gunzip", gunzip_main, _BB_DIR_BIN, gunzip_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000136#endif
137#ifdef BB_GZIP
Eric Andersen8c725e62000-11-30 00:27:06 +0000138 APPLET("gzip", gzip_main, _BB_DIR_BIN, gzip_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000139#endif
140#ifdef BB_HALT
Eric Andersen8c725e62000-11-30 00:27:06 +0000141 APPLET("halt", halt_main, _BB_DIR_SBIN, halt_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000142#endif
143#ifdef BB_HEAD
Eric Andersen8c725e62000-11-30 00:27:06 +0000144 APPLET("head", head_main, _BB_DIR_USR_BIN, head_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000145#endif
146#ifdef BB_HOSTID
Eric Andersen8c725e62000-11-30 00:27:06 +0000147 APPLET("hostid", hostid_main, _BB_DIR_USR_BIN, hostid_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000148#endif
149#ifdef BB_HOSTNAME
Eric Andersen8c725e62000-11-30 00:27:06 +0000150 APPLET("hostname", hostname_main, _BB_DIR_BIN, hostname_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000151#endif
152#ifdef BB_ID
Eric Andersen8c725e62000-11-30 00:27:06 +0000153 APPLET("id", id_main, _BB_DIR_USR_BIN, id_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000154#endif
155#ifdef BB_INIT
Eric Andersen8c725e62000-11-30 00:27:06 +0000156 APPLET_NOUSAGE("init", init_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000157#endif
158#ifdef BB_INSMOD
Eric Andersen8c725e62000-11-30 00:27:06 +0000159 APPLET("insmod", insmod_main, _BB_DIR_SBIN, insmod_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000160#endif
161#ifdef BB_KILL
Eric Andersen8c725e62000-11-30 00:27:06 +0000162 APPLET("kill", kill_main, _BB_DIR_BIN, kill_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000163#endif
164#ifdef BB_KILLALL
Eric Andersen8c725e62000-11-30 00:27:06 +0000165 APPLET("killall", kill_main, _BB_DIR_USR_BIN, killall_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000166#endif
167#ifdef BB_LENGTH
Eric Andersen8c725e62000-11-30 00:27:06 +0000168 APPLET("length", length_main, _BB_DIR_USR_BIN, length_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000169#endif
170#ifdef BB_LINUXRC
Eric Andersen8c725e62000-11-30 00:27:06 +0000171 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
Mark Whitley130005c2000-10-25 00:28:27 +0000172#endif
173#ifdef BB_LN
Eric Andersen8c725e62000-11-30 00:27:06 +0000174 APPLET("ln", ln_main, _BB_DIR_BIN, ln_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000175#endif
176#ifdef BB_LOADACM
Eric Andersen8c725e62000-11-30 00:27:06 +0000177 APPLET("loadacm", loadacm_main, _BB_DIR_USR_BIN, loadacm_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000178#endif
179#ifdef BB_LOADFONT
Eric Andersen8c725e62000-11-30 00:27:06 +0000180 APPLET("loadfont", loadfont_main, _BB_DIR_USR_BIN, loadfont_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000181#endif
182#ifdef BB_LOADKMAP
Eric Andersen8c725e62000-11-30 00:27:06 +0000183 APPLET("loadkmap", loadkmap_main, _BB_DIR_SBIN, loadkmap_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000184#endif
185#ifdef BB_LOGGER
Eric Andersen8c725e62000-11-30 00:27:06 +0000186 APPLET("logger", logger_main, _BB_DIR_USR_BIN, logger_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000187#endif
188#ifdef BB_LOGNAME
Eric Andersen8c725e62000-11-30 00:27:06 +0000189 APPLET("logname", logname_main, _BB_DIR_USR_BIN, logname_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000190#endif
191#ifdef BB_LS
Eric Andersen8c725e62000-11-30 00:27:06 +0000192 APPLET("ls", ls_main, _BB_DIR_BIN, ls_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000193#endif
194#ifdef BB_LSMOD
Eric Andersen8c725e62000-11-30 00:27:06 +0000195 APPLET("lsmod", lsmod_main, _BB_DIR_SBIN, lsmod_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000196#endif
197#ifdef BB_MAKEDEVS
Eric Andersen8c725e62000-11-30 00:27:06 +0000198 APPLET("makedevs", makedevs_main, _BB_DIR_SBIN, makedevs_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000199#endif
200#ifdef BB_MD5SUM
Eric Andersen8c725e62000-11-30 00:27:06 +0000201 APPLET("md5sum", md5sum_main, _BB_DIR_USR_BIN, md5sum_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000202#endif
203#ifdef BB_MKDIR
Eric Andersen8c725e62000-11-30 00:27:06 +0000204 APPLET("mkdir", mkdir_main, _BB_DIR_BIN, mkdir_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000205#endif
206#ifdef BB_MKFIFO
Eric Andersen8c725e62000-11-30 00:27:06 +0000207 APPLET("mkfifo", mkfifo_main, _BB_DIR_USR_BIN, mkfifo_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000208#endif
209#ifdef BB_MKFS_MINIX
Eric Andersen8c725e62000-11-30 00:27:06 +0000210 APPLET("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000211#endif
212#ifdef BB_MKNOD
Eric Andersen8c725e62000-11-30 00:27:06 +0000213 APPLET("mknod", mknod_main, _BB_DIR_BIN, mknod_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000214#endif
215#ifdef BB_MKSWAP
Eric Andersen8c725e62000-11-30 00:27:06 +0000216 APPLET("mkswap", mkswap_main, _BB_DIR_SBIN, mkswap_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000217#endif
218#ifdef BB_MKTEMP
Eric Andersen8c725e62000-11-30 00:27:06 +0000219 APPLET("mktemp", mktemp_main, _BB_DIR_BIN, mktemp_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000220#endif
221#ifdef BB_MORE
Eric Andersen8c725e62000-11-30 00:27:06 +0000222 APPLET("more", more_main, _BB_DIR_BIN, more_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000223#endif
224#ifdef BB_MOUNT
Eric Andersen8c725e62000-11-30 00:27:06 +0000225 APPLET("mount", mount_main, _BB_DIR_BIN, mount_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000226#endif
227#ifdef BB_MT
Eric Andersen8c725e62000-11-30 00:27:06 +0000228 APPLET("mt", mt_main, _BB_DIR_BIN, mt_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000229#endif
230#ifdef BB_CP_MV
Eric Andersen8c725e62000-11-30 00:27:06 +0000231 APPLET("mv", cp_mv_main, _BB_DIR_BIN, mv_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000232#endif
233#ifdef BB_NC
Eric Andersen8c725e62000-11-30 00:27:06 +0000234 APPLET("nc", nc_main, _BB_DIR_USR_BIN, nc_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000235#endif
236#ifdef BB_NSLOOKUP
Eric Andersen8c725e62000-11-30 00:27:06 +0000237 APPLET("nslookup", nslookup_main, _BB_DIR_USR_BIN, nslookup_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000238#endif
239#ifdef BB_PING
Eric Andersen8c725e62000-11-30 00:27:06 +0000240 APPLET("ping", ping_main, _BB_DIR_BIN, ping_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000241#endif
242#ifdef BB_POWEROFF
Eric Andersen8c725e62000-11-30 00:27:06 +0000243 APPLET("poweroff", poweroff_main, _BB_DIR_SBIN, poweroff_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000244#endif
245#ifdef BB_PRINTF
Eric Andersen8c725e62000-11-30 00:27:06 +0000246 APPLET("printf", printf_main, _BB_DIR_USR_BIN, printf_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000247#endif
248#ifdef BB_PS
Eric Andersen8c725e62000-11-30 00:27:06 +0000249 APPLET("ps", ps_main, _BB_DIR_BIN, ps_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000250#endif
251#ifdef BB_PWD
Eric Andersen8c725e62000-11-30 00:27:06 +0000252 APPLET("pwd", pwd_main, _BB_DIR_BIN, pwd_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000253#endif
254#ifdef BB_RDATE
Eric Andersen8c725e62000-11-30 00:27:06 +0000255 APPLET("rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000256#endif
257#ifdef BB_READLINK
Eric Andersen8c725e62000-11-30 00:27:06 +0000258 APPLET("readlink", readlink_main, _BB_DIR_USR_BIN, readlink_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000259#endif
260#ifdef BB_REBOOT
Eric Andersen8c725e62000-11-30 00:27:06 +0000261 APPLET("reboot", reboot_main, _BB_DIR_SBIN, reboot_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000262#endif
263#ifdef BB_RENICE
Eric Andersen8c725e62000-11-30 00:27:06 +0000264 APPLET("renice", renice_main, _BB_DIR_USR_BIN, renice_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000265#endif
266#ifdef BB_RESET
Eric Andersen8c725e62000-11-30 00:27:06 +0000267 APPLET("reset", reset_main, _BB_DIR_USR_BIN, reset_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000268#endif
269#ifdef BB_RM
Eric Andersen8c725e62000-11-30 00:27:06 +0000270 APPLET("rm", rm_main, _BB_DIR_BIN, rm_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000271#endif
272#ifdef BB_RMDIR
Eric Andersen8c725e62000-11-30 00:27:06 +0000273 APPLET("rmdir", rmdir_main, _BB_DIR_BIN, rmdir_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000274#endif
275#ifdef BB_RMMOD
Eric Andersen8c725e62000-11-30 00:27:06 +0000276 APPLET("rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000277#endif
Eric Andersene500d202000-11-29 21:38:11 +0000278#ifdef BB_RPMUNPACK
Eric Andersen8c725e62000-11-30 00:27:06 +0000279 APPLET("rpmunpack", rpmunpack_main, _BB_DIR_USR_BIN, rpmunpack_usage)
Eric Andersene500d202000-11-29 21:38:11 +0000280#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000281#ifdef BB_SED
Eric Andersen8c725e62000-11-30 00:27:06 +0000282 APPLET("sed", sed_main, _BB_DIR_BIN, sed_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000283#endif
284#ifdef BB_SETKEYCODES
Eric Andersen8c725e62000-11-30 00:27:06 +0000285 APPLET("setkeycodes", setkeycodes_main, _BB_DIR_USR_BIN, setkeycodes_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000286#endif
287#ifdef BB_SH
Eric Andersen8c725e62000-11-30 00:27:06 +0000288 APPLET("sh", shell_main, _BB_DIR_BIN, shell_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000289#endif
290#ifdef BB_SLEEP
Eric Andersen8c725e62000-11-30 00:27:06 +0000291 APPLET("sleep", sleep_main, _BB_DIR_BIN, sleep_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000292#endif
293#ifdef BB_SORT
Eric Andersen8c725e62000-11-30 00:27:06 +0000294 APPLET("sort", sort_main, _BB_DIR_USR_BIN, sort_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000295#endif
296#ifdef BB_SWAPONOFF
Eric Andersen8c725e62000-11-30 00:27:06 +0000297 APPLET("swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000298#endif
299#ifdef BB_SWAPONOFF
Eric Andersen8c725e62000-11-30 00:27:06 +0000300 APPLET("swapon", swap_on_off_main, _BB_DIR_SBIN, swapon_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000301#endif
302#ifdef BB_SYNC
Eric Andersen8c725e62000-11-30 00:27:06 +0000303 APPLET("sync", sync_main, _BB_DIR_BIN, sync_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000304#endif
305#ifdef BB_SYSLOGD
Eric Andersen8c725e62000-11-30 00:27:06 +0000306 APPLET("syslogd", syslogd_main, _BB_DIR_SBIN, syslogd_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000307#endif
308#ifdef BB_TAIL
Eric Andersen8c725e62000-11-30 00:27:06 +0000309 APPLET("tail", tail_main, _BB_DIR_USR_BIN, tail_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000310#endif
311#ifdef BB_TAR
Eric Andersen8c725e62000-11-30 00:27:06 +0000312 APPLET("tar", tar_main, _BB_DIR_BIN, tar_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000313#endif
314#ifdef BB_TEE
Eric Andersen8c725e62000-11-30 00:27:06 +0000315 APPLET("tee", tee_main, _BB_DIR_USR_BIN, tee_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000316#endif
317#ifdef BB_TELNET
Eric Andersen8c725e62000-11-30 00:27:06 +0000318 APPLET("telnet", telnet_main, _BB_DIR_USR_BIN, telnet_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000319#endif
320#ifdef BB_TEST
Eric Andersen8c725e62000-11-30 00:27:06 +0000321 APPLET("test", test_main, _BB_DIR_USR_BIN, test_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000322#endif
323#ifdef BB_TOUCH
Eric Andersen8c725e62000-11-30 00:27:06 +0000324 APPLET("touch", touch_main, _BB_DIR_BIN, touch_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000325#endif
326#ifdef BB_TR
Eric Andersen8c725e62000-11-30 00:27:06 +0000327 APPLET("tr", tr_main, _BB_DIR_USR_BIN, tr_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000328#endif
329#ifdef BB_TRUE_FALSE
Eric Andersen8c725e62000-11-30 00:27:06 +0000330 APPLET("true", true_main, _BB_DIR_BIN, true_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000331#endif
332#ifdef BB_TTY
Eric Andersen8c725e62000-11-30 00:27:06 +0000333 APPLET("tty", tty_main, _BB_DIR_USR_BIN, tty_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000334#endif
335#ifdef BB_UMOUNT
Eric Andersen8c725e62000-11-30 00:27:06 +0000336 APPLET("umount", umount_main, _BB_DIR_BIN, umount_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000337#endif
338#ifdef BB_UNAME
Eric Andersen8c725e62000-11-30 00:27:06 +0000339 APPLET("uname", uname_main, _BB_DIR_BIN, uname_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000340#endif
341#ifdef BB_UNIQ
Eric Andersen8c725e62000-11-30 00:27:06 +0000342 APPLET("uniq", uniq_main, _BB_DIR_USR_BIN, uniq_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000343#endif
344#ifdef BB_UNIX2DOS
Eric Andersen8c725e62000-11-30 00:27:06 +0000345 APPLET("unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000346#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000347#ifdef BB_UPDATE
Eric Andersen8c725e62000-11-30 00:27:06 +0000348 APPLET("update", update_main, _BB_DIR_SBIN, update_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000349#endif
350#ifdef BB_UPTIME
Eric Andersen8c725e62000-11-30 00:27:06 +0000351 APPLET("uptime", uptime_main, _BB_DIR_USR_BIN, uptime_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000352#endif
353#ifdef BB_USLEEP
Eric Andersen8c725e62000-11-30 00:27:06 +0000354 APPLET("usleep", usleep_main, _BB_DIR_BIN, usleep_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000355#endif
356#ifdef BB_UUDECODE
Eric Andersen8c725e62000-11-30 00:27:06 +0000357 APPLET("uudecode", uudecode_main, _BB_DIR_USR_BIN, uudecode_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000358#endif
359#ifdef BB_UUENCODE
Eric Andersen8c725e62000-11-30 00:27:06 +0000360 APPLET("uuencode", uuencode_main, _BB_DIR_USR_BIN, uuencode_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000361#endif
362#ifdef BB_WC
Eric Andersen8c725e62000-11-30 00:27:06 +0000363 APPLET("wc", wc_main, _BB_DIR_USR_BIN, wc_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000364#endif
365#ifdef BB_WGET
Eric Andersen8c725e62000-11-30 00:27:06 +0000366 APPLET("wget", wget_main, _BB_DIR_USR_BIN, wget_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000367#endif
368#ifdef BB_WHICH
Eric Andersen8c725e62000-11-30 00:27:06 +0000369 APPLET("which", which_main, _BB_DIR_USR_BIN, which_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000370#endif
371#ifdef BB_WHOAMI
Eric Andersen8c725e62000-11-30 00:27:06 +0000372 APPLET("whoami", whoami_main, _BB_DIR_USR_BIN, whoami_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000373#endif
374#ifdef BB_XARGS
Eric Andersen8c725e62000-11-30 00:27:06 +0000375 APPLET("xargs", xargs_main, _BB_DIR_USR_BIN, xargs_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000376#endif
377#ifdef BB_YES
Eric Andersen8c725e62000-11-30 00:27:06 +0000378 APPLET("yes", yes_main, _BB_DIR_USR_BIN, yes_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000379#endif
380#ifdef BB_GUNZIP
Eric Andersen8c725e62000-11-30 00:27:06 +0000381 APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage)
Mark Whitley130005c2000-10-25 00:28:27 +0000382#endif
Eric Andersen8c725e62000-11-30 00:27:06 +0000383
Eric Andersen868c0572000-12-02 00:44:48 +0000384#if !defined(PROTOTYPES) && !defined(MAKE_LINKS)
Eric Andersen8c725e62000-11-30 00:27:06 +0000385 { 0,NULL,0,NULL}
Mark Whitley130005c2000-10-25 00:28:27 +0000386};
387
388/* The -1 arises because of the {0,NULL,0,NULL} entry above. */
Eric Andersena683ee82000-11-17 18:51:45 +0000389size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);
Mark Whitley130005c2000-10-25 00:28:27 +0000390
Eric Andersen8c725e62000-11-30 00:27:06 +0000391#endif