blob: 446906cad3719fb19d5211efc4f7bb4529564548 [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 Andersen67991cf2001-02-14 21:23:06 +000013#undef APPLET
14#undef APPLET_ODDNAME
15#undef APPLET_NOUSAGE
16
Eric Andersen7e9276b2001-02-22 01:15:47 +000017
Eric Andersen868c0572000-12-02 00:44:48 +000018#if defined(PROTOTYPES)
Eric Andersen7e9276b2001-02-22 01:15:47 +000019 #define APPLET(a,b,c) extern int b(int argc, char **argv);
20 #define APPLET_NOUSAGE(a,b,c) extern int b(int argc, char **argv);
21 #define APPLET_ODDNAME(a,b,c,d) extern int b(int argc, char **argv);
22 extern const char usage_messages[];
23#elif defined(MAKE_USAGE)
24 #ifdef BB_FEATURE_TRIVIAL_HELP
25 #define APPLET(a,b,c) a##_trivial_usage "\0"
26 #define APPLET_NOUSAGE(a,b,c) "\0"
27 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\0"
28 #else
29 #define APPLET(a,b,c) a##_trivial_usage "\n\n" a##_full_usage "\0"
30 #define APPLET_NOUSAGE(a,b,c) "\0"
31 #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\n\n" d##_full_usage "\0"
32 #endif
Eric Andersen868c0572000-12-02 00:44:48 +000033#else
Eric Andersen7e9276b2001-02-22 01:15:47 +000034 const struct BB_applet applets[] = {
35 #define APPLET(a,b,c) {#a,b,c},
36 #define APPLET_NOUSAGE(a,b,c) {a,b,c},
37 #define APPLET_ODDNAME(a,b,c,d) {a,b,c},
Eric Andersen8c725e62000-11-30 00:27:06 +000038#endif
Mark Whitley130005c2000-10-25 00:28:27 +000039
Eric Andersen7e9276b2001-02-22 01:15:47 +000040
41
Mark Whitley130005c2000-10-25 00:28:27 +000042#ifdef BB_TEST
Eric Andersen7e9276b2001-02-22 01:15:47 +000043 APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000044#endif
45#ifdef BB_AR
Eric Andersen67991cf2001-02-14 21:23:06 +000046 APPLET(ar, ar_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000047#endif
48#ifdef BB_BASENAME
Eric Andersen67991cf2001-02-14 21:23:06 +000049 APPLET(basename, basename_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000050#endif
Eric Andersen7e9276b2001-02-22 01:15:47 +000051 APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000052#ifdef BB_CAT
Eric Andersen67991cf2001-02-14 21:23:06 +000053 APPLET(cat, cat_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000054#endif
55#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen67991cf2001-02-14 21:23:06 +000056 APPLET(chgrp, chmod_chown_chgrp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000057#endif
58#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen67991cf2001-02-14 21:23:06 +000059 APPLET(chmod, chmod_chown_chgrp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000060#endif
61#ifdef BB_CHMOD_CHOWN_CHGRP
Eric Andersen67991cf2001-02-14 21:23:06 +000062 APPLET(chown, chmod_chown_chgrp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000063#endif
64#ifdef BB_CHROOT
Eric Andersen67991cf2001-02-14 21:23:06 +000065 APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +000066#endif
67#ifdef BB_CHVT
Eric Andersen67991cf2001-02-14 21:23:06 +000068 APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000069#endif
70#ifdef BB_CLEAR
Eric Andersen67991cf2001-02-14 21:23:06 +000071 APPLET(clear, clear_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000072#endif
73#ifdef BB_CMP
Eric Andersen67991cf2001-02-14 21:23:06 +000074 APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000075#endif
76#ifdef BB_CP_MV
Eric Andersen67991cf2001-02-14 21:23:06 +000077 APPLET(cp, cp_mv_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000078#endif
79#ifdef BB_CUT
Eric Andersen67991cf2001-02-14 21:23:06 +000080 APPLET(cut, cut_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000081#endif
82#ifdef BB_DATE
Eric Andersen67991cf2001-02-14 21:23:06 +000083 APPLET(date, date_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000084#endif
85#ifdef BB_DC
Eric Andersen67991cf2001-02-14 21:23:06 +000086 APPLET(dc, dc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000087#endif
88#ifdef BB_DD
Eric Andersen67991cf2001-02-14 21:23:06 +000089 APPLET(dd, dd_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000090#endif
91#ifdef BB_DEALLOCVT
Eric Andersen67991cf2001-02-14 21:23:06 +000092 APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000093#endif
94#ifdef BB_DF
Eric Andersen67991cf2001-02-14 21:23:06 +000095 APPLET(df, df_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000096#endif
97#ifdef BB_DIRNAME
Eric Andersen67991cf2001-02-14 21:23:06 +000098 APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +000099#endif
100#ifdef BB_DMESG
Eric Andersen67991cf2001-02-14 21:23:06 +0000101 APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000102#endif
103#ifdef BB_DOS2UNIX
Eric Andersen67991cf2001-02-14 21:23:06 +0000104 APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000105#endif
Glenn L McGrathc30ab0f2001-02-10 02:04:40 +0000106#ifdef BB_DPKG
Eric Andersen67991cf2001-02-14 21:23:06 +0000107 APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
Glenn L McGrathc30ab0f2001-02-10 02:04:40 +0000108#endif
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000109#ifdef BB_DPKG_DEB
Eric Andersen7e9276b2001-02-22 01:15:47 +0000110 APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
Glenn L McGrath7541e3a2001-01-02 23:41:50 +0000111#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000112#ifdef BB_DU
Eric Andersen67991cf2001-02-14 21:23:06 +0000113 APPLET(du, du_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000114#endif
115#ifdef BB_DUMPKMAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000116 APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000117#endif
118#ifdef BB_DUTMP
Eric Andersen67991cf2001-02-14 21:23:06 +0000119 APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000120#endif
121#ifdef BB_ECHO
Eric Andersen67991cf2001-02-14 21:23:06 +0000122 APPLET(echo, echo_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000123#endif
124#ifdef BB_EXPR
Eric Andersen67991cf2001-02-14 21:23:06 +0000125 APPLET(expr, expr_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000126#endif
127#ifdef BB_TRUE_FALSE
Eric Andersen67991cf2001-02-14 21:23:06 +0000128 APPLET(false, false_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000129#endif
130#ifdef BB_FBSET
Eric Andersen7e9276b2001-02-22 01:15:47 +0000131 APPLET_NOUSAGE("fbset", fbset_main, _BB_DIR_USR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000132#endif
133#ifdef BB_FDFLUSH
Eric Andersen67991cf2001-02-14 21:23:06 +0000134 APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000135#endif
136#ifdef BB_FIND
Eric Andersen67991cf2001-02-14 21:23:06 +0000137 APPLET(find, find_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000138#endif
139#ifdef BB_FREE
Eric Andersen67991cf2001-02-14 21:23:06 +0000140 APPLET(free, free_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000141#endif
142#ifdef BB_FREERAMDISK
Eric Andersen67991cf2001-02-14 21:23:06 +0000143 APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000144#endif
145#ifdef BB_FSCK_MINIX
Eric Andersen7e9276b2001-02-22 01:15:47 +0000146 APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
Mark Whitley130005c2000-10-25 00:28:27 +0000147#endif
148#ifdef BB_GETOPT
Eric Andersen67991cf2001-02-14 21:23:06 +0000149 APPLET(getopt, getopt_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000150#endif
151#ifdef BB_GREP
Eric Andersen67991cf2001-02-14 21:23:06 +0000152 APPLET(grep, grep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000153#endif
154#ifdef BB_GUNZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000155 APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000156#endif
157#ifdef BB_GZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000158 APPLET(gzip, gzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000159#endif
160#ifdef BB_HALT
Eric Andersen67991cf2001-02-14 21:23:06 +0000161 APPLET(halt, halt_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000162#endif
163#ifdef BB_HEAD
Eric Andersen67991cf2001-02-14 21:23:06 +0000164 APPLET(head, head_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000165#endif
166#ifdef BB_HOSTID
Eric Andersen67991cf2001-02-14 21:23:06 +0000167 APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000168#endif
169#ifdef BB_HOSTNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000170 APPLET(hostname, hostname_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000171#endif
172#ifdef BB_ID
Eric Andersen67991cf2001-02-14 21:23:06 +0000173 APPLET(id, id_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000174#endif
Eric Andersenec455952001-02-14 08:11:27 +0000175#ifdef BB_IFCONFIG
Eric Andersen67991cf2001-02-14 21:23:06 +0000176 APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
Eric Andersenec455952001-02-14 08:11:27 +0000177#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000178#ifdef BB_INIT
Eric Andersen67991cf2001-02-14 21:23:06 +0000179 APPLET(init, init_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000180#endif
181#ifdef BB_INSMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000182 APPLET(insmod, insmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000183#endif
184#ifdef BB_KILL
Eric Andersen67991cf2001-02-14 21:23:06 +0000185 APPLET(kill, kill_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000186#endif
187#ifdef BB_KILLALL
Eric Andersen67991cf2001-02-14 21:23:06 +0000188 APPLET(killall, kill_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000189#endif
190#ifdef BB_LENGTH
Eric Andersen67991cf2001-02-14 21:23:06 +0000191 APPLET(length, length_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000192#endif
193#ifdef BB_LINUXRC
Eric Andersen7e9276b2001-02-22 01:15:47 +0000194 APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
Mark Whitley130005c2000-10-25 00:28:27 +0000195#endif
196#ifdef BB_LN
Eric Andersen67991cf2001-02-14 21:23:06 +0000197 APPLET(ln, ln_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000198#endif
199#ifdef BB_LOADACM
Eric Andersen67991cf2001-02-14 21:23:06 +0000200 APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000201#endif
202#ifdef BB_LOADFONT
Eric Andersen67991cf2001-02-14 21:23:06 +0000203 APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000204#endif
205#ifdef BB_LOADKMAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000206 APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000207#endif
208#ifdef BB_LOGGER
Eric Andersen67991cf2001-02-14 21:23:06 +0000209 APPLET(logger, logger_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000210#endif
211#ifdef BB_LOGNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000212 APPLET(logname, logname_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000213#endif
214#ifdef BB_LS
Eric Andersen67991cf2001-02-14 21:23:06 +0000215 APPLET(ls, ls_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000216#endif
217#ifdef BB_LSMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000218 APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000219#endif
220#ifdef BB_MAKEDEVS
Eric Andersen67991cf2001-02-14 21:23:06 +0000221 APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000222#endif
223#ifdef BB_MD5SUM
Eric Andersen67991cf2001-02-14 21:23:06 +0000224 APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000225#endif
226#ifdef BB_MKDIR
Eric Andersen67991cf2001-02-14 21:23:06 +0000227 APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000228#endif
229#ifdef BB_MKFIFO
Eric Andersen67991cf2001-02-14 21:23:06 +0000230 APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000231#endif
232#ifdef BB_MKFS_MINIX
Eric Andersen7e9276b2001-02-22 01:15:47 +0000233 APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
Mark Whitley130005c2000-10-25 00:28:27 +0000234#endif
235#ifdef BB_MKNOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000236 APPLET(mknod, mknod_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000237#endif
238#ifdef BB_MKSWAP
Eric Andersen67991cf2001-02-14 21:23:06 +0000239 APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000240#endif
241#ifdef BB_MKTEMP
Eric Andersen67991cf2001-02-14 21:23:06 +0000242 APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000243#endif
244#ifdef BB_MORE
Eric Andersen67991cf2001-02-14 21:23:06 +0000245 APPLET(more, more_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000246#endif
247#ifdef BB_MOUNT
Eric Andersen67991cf2001-02-14 21:23:06 +0000248 APPLET(mount, mount_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000249#endif
250#ifdef BB_MT
Eric Andersen67991cf2001-02-14 21:23:06 +0000251 APPLET(mt, mt_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000252#endif
253#ifdef BB_CP_MV
Eric Andersen67991cf2001-02-14 21:23:06 +0000254 APPLET(mv, cp_mv_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000255#endif
256#ifdef BB_NC
Eric Andersen67991cf2001-02-14 21:23:06 +0000257 APPLET(nc, nc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000258#endif
259#ifdef BB_NSLOOKUP
Eric Andersen67991cf2001-02-14 21:23:06 +0000260 APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000261#endif
262#ifdef BB_PING
Eric Andersen67991cf2001-02-14 21:23:06 +0000263 APPLET(ping, ping_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000264#endif
Eric Andersen6fd8c662001-02-13 20:04:30 +0000265#ifdef BB_PIVOT_ROOT
Eric Andersen67991cf2001-02-14 21:23:06 +0000266 APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
Eric Andersen6fd8c662001-02-13 20:04:30 +0000267#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000268#ifdef BB_POWEROFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000269 APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000270#endif
271#ifdef BB_PRINTF
Eric Andersen67991cf2001-02-14 21:23:06 +0000272 APPLET(printf, printf_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000273#endif
274#ifdef BB_PS
Eric Andersen67991cf2001-02-14 21:23:06 +0000275 APPLET(ps, ps_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000276#endif
277#ifdef BB_PWD
Eric Andersen67991cf2001-02-14 21:23:06 +0000278 APPLET(pwd, pwd_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000279#endif
280#ifdef BB_RDATE
Eric Andersen67991cf2001-02-14 21:23:06 +0000281 APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000282#endif
283#ifdef BB_READLINK
Eric Andersen67991cf2001-02-14 21:23:06 +0000284 APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000285#endif
286#ifdef BB_REBOOT
Eric Andersen67991cf2001-02-14 21:23:06 +0000287 APPLET(reboot, reboot_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000288#endif
289#ifdef BB_RENICE
Eric Andersen67991cf2001-02-14 21:23:06 +0000290 APPLET(renice, renice_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000291#endif
292#ifdef BB_RESET
Eric Andersen67991cf2001-02-14 21:23:06 +0000293 APPLET(reset, reset_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000294#endif
295#ifdef BB_RM
Eric Andersen67991cf2001-02-14 21:23:06 +0000296 APPLET(rm, rm_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000297#endif
298#ifdef BB_RMDIR
Eric Andersen67991cf2001-02-14 21:23:06 +0000299 APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000300#endif
301#ifdef BB_RMMOD
Eric Andersen67991cf2001-02-14 21:23:06 +0000302 APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000303#endif
Eric Andersenec455952001-02-14 08:11:27 +0000304#ifdef BB_ROUTE
Eric Andersen67991cf2001-02-14 21:23:06 +0000305 APPLET(route, route_main, _BB_DIR_USR_BIN)
Eric Andersenec455952001-02-14 08:11:27 +0000306#endif
Eric Andersene500d202000-11-29 21:38:11 +0000307#ifdef BB_RPMUNPACK
Eric Andersen67991cf2001-02-14 21:23:06 +0000308 APPLET(rpmunpack, rpmunpack_main, _BB_DIR_USR_BIN)
Eric Andersene500d202000-11-29 21:38:11 +0000309#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000310#ifdef BB_SED
Eric Andersen67991cf2001-02-14 21:23:06 +0000311 APPLET(sed, sed_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000312#endif
313#ifdef BB_SETKEYCODES
Eric Andersen67991cf2001-02-14 21:23:06 +0000314 APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000315#endif
316#ifdef BB_SH
Eric Andersen67991cf2001-02-14 21:23:06 +0000317 APPLET(sh, shell_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000318#endif
319#ifdef BB_SLEEP
Eric Andersen67991cf2001-02-14 21:23:06 +0000320 APPLET(sleep, sleep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000321#endif
322#ifdef BB_SORT
Eric Andersen67991cf2001-02-14 21:23:06 +0000323 APPLET(sort, sort_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000324#endif
Eric Andersen98e599c2001-02-14 18:47:33 +0000325#ifdef BB_STTY
Eric Andersen67991cf2001-02-14 21:23:06 +0000326 APPLET(stty, stty_main, _BB_DIR_BIN)
Eric Andersen98e599c2001-02-14 18:47:33 +0000327#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000328#ifdef BB_SWAPONOFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000329 APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000330#endif
331#ifdef BB_SWAPONOFF
Eric Andersen67991cf2001-02-14 21:23:06 +0000332 APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000333#endif
334#ifdef BB_SYNC
Eric Andersen67991cf2001-02-14 21:23:06 +0000335 APPLET(sync, sync_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000336#endif
337#ifdef BB_SYSLOGD
Eric Andersen67991cf2001-02-14 21:23:06 +0000338 APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000339#endif
340#ifdef BB_TAIL
Eric Andersen67991cf2001-02-14 21:23:06 +0000341 APPLET(tail, tail_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000342#endif
343#ifdef BB_TAR
Eric Andersen67991cf2001-02-14 21:23:06 +0000344 APPLET(tar, tar_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000345#endif
346#ifdef BB_TEE
Eric Andersen67991cf2001-02-14 21:23:06 +0000347 APPLET(tee, tee_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000348#endif
349#ifdef BB_TELNET
Eric Andersen67991cf2001-02-14 21:23:06 +0000350 APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000351#endif
352#ifdef BB_TEST
Eric Andersen67991cf2001-02-14 21:23:06 +0000353 APPLET(test, test_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000354#endif
355#ifdef BB_TOUCH
Eric Andersen67991cf2001-02-14 21:23:06 +0000356 APPLET(touch, touch_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000357#endif
358#ifdef BB_TR
Eric Andersen67991cf2001-02-14 21:23:06 +0000359 APPLET(tr, tr_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000360#endif
361#ifdef BB_TRUE_FALSE
Eric Andersen67991cf2001-02-14 21:23:06 +0000362 APPLET(true, true_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000363#endif
364#ifdef BB_TTY
Eric Andersen67991cf2001-02-14 21:23:06 +0000365 APPLET(tty, tty_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000366#endif
367#ifdef BB_UMOUNT
Eric Andersen67991cf2001-02-14 21:23:06 +0000368 APPLET(umount, umount_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000369#endif
370#ifdef BB_UNAME
Eric Andersen67991cf2001-02-14 21:23:06 +0000371 APPLET(uname, uname_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000372#endif
373#ifdef BB_UNIQ
Eric Andersen67991cf2001-02-14 21:23:06 +0000374 APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000375#endif
376#ifdef BB_UNIX2DOS
Eric Andersen67991cf2001-02-14 21:23:06 +0000377 APPLET(unix2dos, unix2dos_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000378#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000379#ifdef BB_UPDATE
Eric Andersen67991cf2001-02-14 21:23:06 +0000380 APPLET(update, update_main, _BB_DIR_SBIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000381#endif
382#ifdef BB_UPTIME
Eric Andersen67991cf2001-02-14 21:23:06 +0000383 APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000384#endif
385#ifdef BB_USLEEP
Eric Andersen67991cf2001-02-14 21:23:06 +0000386 APPLET(usleep, usleep_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000387#endif
388#ifdef BB_UUDECODE
Eric Andersen67991cf2001-02-14 21:23:06 +0000389 APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000390#endif
391#ifdef BB_UUENCODE
Eric Andersen67991cf2001-02-14 21:23:06 +0000392 APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000393#endif
Eric Andersenffde8672001-01-25 23:40:32 +0000394#ifdef BB_WATCHDOG
Eric Andersen67991cf2001-02-14 21:23:06 +0000395 APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
Eric Andersenffde8672001-01-25 23:40:32 +0000396#endif
Mark Whitley130005c2000-10-25 00:28:27 +0000397#ifdef BB_WC
Eric Andersen67991cf2001-02-14 21:23:06 +0000398 APPLET(wc, wc_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000399#endif
400#ifdef BB_WGET
Eric Andersen67991cf2001-02-14 21:23:06 +0000401 APPLET(wget, wget_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000402#endif
403#ifdef BB_WHICH
Eric Andersen67991cf2001-02-14 21:23:06 +0000404 APPLET(which, which_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000405#endif
406#ifdef BB_WHOAMI
Eric Andersen67991cf2001-02-14 21:23:06 +0000407 APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000408#endif
409#ifdef BB_XARGS
Eric Andersen67991cf2001-02-14 21:23:06 +0000410 APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000411#endif
412#ifdef BB_YES
Eric Andersen67991cf2001-02-14 21:23:06 +0000413 APPLET(yes, yes_main, _BB_DIR_USR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000414#endif
415#ifdef BB_GUNZIP
Eric Andersen67991cf2001-02-14 21:23:06 +0000416 APPLET(zcat, gunzip_main, _BB_DIR_BIN)
Mark Whitley130005c2000-10-25 00:28:27 +0000417#endif
Eric Andersen8c725e62000-11-30 00:27:06 +0000418
Eric Andersen7e9276b2001-02-22 01:15:47 +0000419#if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
420 { 0,NULL,0 }
Mark Whitley130005c2000-10-25 00:28:27 +0000421};
422
Eric Andersen67991cf2001-02-14 21:23:06 +0000423/* The -1 arises because of the {0,NULL,0,-1} entry above. */
Eric Andersena683ee82000-11-17 18:51:45 +0000424size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);
Mark Whitley130005c2000-10-25 00:28:27 +0000425
Eric Andersen8c725e62000-11-30 00:27:06 +0000426#endif