2 * applets.h - a listing of all busybox applets.
4 * If you write a new applet, you need to add an entry to this list to make
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.
13 const struct BB_applet applets[] = {
16 {"[", test_main, _BB_DIR_USR_BIN, test_usage},
19 {"ar", ar_main, _BB_DIR_USR_BIN, ar_usage},
22 {"basename", basename_main, _BB_DIR_USR_BIN, basename_usage},
24 {"busybox", busybox_main, _BB_DIR_BIN, NULL},
26 {"cat", cat_main, _BB_DIR_BIN, cat_usage},
28 #ifdef BB_CHMOD_CHOWN_CHGRP
29 {"chgrp", chmod_chown_chgrp_main, _BB_DIR_BIN, chgrp_usage},
31 #ifdef BB_CHMOD_CHOWN_CHGRP
32 {"chmod", chmod_chown_chgrp_main, _BB_DIR_BIN, chmod_usage},
34 #ifdef BB_CHMOD_CHOWN_CHGRP
35 {"chown", chmod_chown_chgrp_main, _BB_DIR_BIN, chown_usage},
38 {"chroot", chroot_main, _BB_DIR_USR_SBIN, chroot_usage},
41 {"chvt", chvt_main, _BB_DIR_USR_BIN, chvt_usage},
44 {"clear", clear_main, _BB_DIR_USR_BIN, clear_usage},
47 {"cmp", cmp_main, _BB_DIR_USR_BIN, cmp_usage},
50 {"cp", cp_mv_main, _BB_DIR_BIN, cp_usage},
53 {"cut", cut_main, _BB_DIR_USR_BIN, cut_usage},
56 {"date", date_main, _BB_DIR_BIN, date_usage},
59 {"dc", dc_main, _BB_DIR_USR_BIN, dc_usage},
62 {"dd", dd_main, _BB_DIR_BIN, dd_usage},
65 {"deallocvt", deallocvt_main, _BB_DIR_USR_BIN, deallocvt_usage},
68 {"df", df_main, _BB_DIR_BIN, df_usage},
71 {"dirname", dirname_main, _BB_DIR_USR_BIN, dirname_usage},
74 {"dmesg", dmesg_main, _BB_DIR_BIN, dmesg_usage},
77 {"dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage},
80 {"du", du_main, _BB_DIR_USR_BIN, du_usage},
83 {"dumpkmap", dumpkmap_main, _BB_DIR_BIN, dumpkmap_usage},
86 {"dutmp", dutmp_main, _BB_DIR_USR_SBIN, dutmp_usage},
89 {"echo", echo_main, _BB_DIR_BIN, echo_usage},
92 {"expr", expr_main, _BB_DIR_USR_BIN, expr_usage},
95 {"false", false_main, _BB_DIR_BIN, false_usage},
98 {"fbset", fbset_main, _BB_DIR_USR_SBIN, NULL},
101 {"fdflush", fdflush_main, _BB_DIR_BIN, fdflush_usage},
104 {"find", find_main, _BB_DIR_USR_BIN, find_usage},
107 {"free", free_main, _BB_DIR_USR_BIN, free_usage},
109 #ifdef BB_FREERAMDISK
110 {"freeramdisk", freeramdisk_main, _BB_DIR_SBIN, freeramdisk_usage},
113 {"fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix_usage},
116 {"getopt", getopt_main, _BB_DIR_BIN, getopt_usage},
119 {"grep", grep_main, _BB_DIR_BIN, grep_usage},
122 {"gunzip", gunzip_main, _BB_DIR_BIN, gunzip_usage},
125 {"gzip", gzip_main, _BB_DIR_BIN, gzip_usage},
128 {"halt", halt_main, _BB_DIR_SBIN, halt_usage},
131 {"head", head_main, _BB_DIR_USR_BIN, head_usage},
134 {"hostid", hostid_main, _BB_DIR_USR_BIN, hostid_usage},
137 {"hostname", hostname_main, _BB_DIR_BIN, hostname_usage},
140 {"id", id_main, _BB_DIR_USR_BIN, id_usage},
143 {"init", init_main, _BB_DIR_SBIN, NULL},
146 {"insmod", insmod_main, _BB_DIR_SBIN, insmod_usage},
149 {"kill", kill_main, _BB_DIR_BIN, kill_usage},
152 {"killall", kill_main, _BB_DIR_USR_BIN, kill_usage},
155 {"length", length_main, _BB_DIR_USR_BIN, length_usage},
158 {"linuxrc", init_main, _BB_DIR_ROOT, NULL},
161 {"ln", ln_main, _BB_DIR_BIN, ln_usage},
164 {"loadacm", loadacm_main, _BB_DIR_USR_BIN, loadacm_usage},
167 {"loadfont", loadfont_main, _BB_DIR_USR_BIN, loadfont_usage},
170 {"loadkmap", loadkmap_main, _BB_DIR_SBIN, loadkmap_usage},
173 {"logger", logger_main, _BB_DIR_USR_BIN, logger_usage},
176 {"logname", logname_main, _BB_DIR_USR_BIN, logname_usage},
179 {"ls", ls_main, _BB_DIR_BIN, ls_usage},
182 {"lsmod", lsmod_main, _BB_DIR_SBIN, lsmod_usage},
185 {"makedevs", makedevs_main, _BB_DIR_SBIN, makedevs_usage},
188 {"md5sum", md5sum_main, _BB_DIR_USR_BIN, md5sum_usage},
191 {"mkdir", mkdir_main, _BB_DIR_BIN, mkdir_usage},
194 {"mkfifo", mkfifo_main, _BB_DIR_USR_BIN, mkfifo_usage},
197 {"mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix_usage},
200 {"mknod", mknod_main, _BB_DIR_BIN, mknod_usage},
203 {"mkswap", mkswap_main, _BB_DIR_SBIN, mkswap_usage},
206 {"mktemp", mktemp_main, _BB_DIR_BIN, mktemp_usage},
209 {"more", more_main, _BB_DIR_BIN, more_usage},
212 {"mount", mount_main, _BB_DIR_BIN, mount_usage},
215 {"mt", mt_main, _BB_DIR_BIN, mt_usage},
218 {"mv", cp_mv_main, _BB_DIR_BIN, mv_usage},
221 {"nc", nc_main, _BB_DIR_USR_BIN, nc_usage},
224 {"nslookup", nslookup_main, _BB_DIR_USR_BIN, nslookup_usage},
227 {"ping", ping_main, _BB_DIR_BIN, ping_usage},
230 {"poweroff", poweroff_main, _BB_DIR_SBIN, poweroff_usage},
233 {"printf", printf_main, _BB_DIR_USR_BIN, printf_usage},
236 {"ps", ps_main, _BB_DIR_BIN, ps_usage},
239 {"pwd", pwd_main, _BB_DIR_BIN, pwd_usage},
242 {"rdate", rdate_main, _BB_DIR_USR_BIN, rdate_usage},
245 {"readlink", readlink_main, _BB_DIR_USR_BIN, readlink_usage},
248 {"reboot", reboot_main, _BB_DIR_SBIN, reboot_usage},
251 {"renice", renice_main, _BB_DIR_USR_BIN, renice_usage},
254 {"reset", reset_main, _BB_DIR_USR_BIN, reset_usage},
257 {"rm", rm_main, _BB_DIR_BIN, rm_usage},
260 {"rmdir", rmdir_main, _BB_DIR_BIN, rmdir_usage},
263 {"rmmod", rmmod_main, _BB_DIR_SBIN, rmmod_usage},
266 {"sed", sed_main, _BB_DIR_BIN, sed_usage},
268 #ifdef BB_SETKEYCODES
269 {"setkeycodes", setkeycodes_main, _BB_DIR_USR_BIN, setkeycodes_usage},
272 {"sh", shell_main, _BB_DIR_BIN, shell_usage},
275 {"sleep", sleep_main, _BB_DIR_BIN, sleep_usage},
278 {"sort", sort_main, _BB_DIR_USR_BIN, sort_usage},
281 {"swapoff", swap_on_off_main, _BB_DIR_SBIN, swapoff_usage},
284 {"swapon", swap_on_off_main, _BB_DIR_SBIN, swapon_usage},
287 {"sync", sync_main, _BB_DIR_BIN, sync_usage},
290 {"syslogd", syslogd_main, _BB_DIR_SBIN, syslogd_usage},
293 {"tail", tail_main, _BB_DIR_USR_BIN, tail_usage},
296 {"tar", tar_main, _BB_DIR_BIN, tar_usage},
299 {"tee", tee_main, _BB_DIR_USR_BIN, tee_usage},
302 {"telnet", telnet_main, _BB_DIR_USR_BIN, telnet_usage},
305 {"test", test_main, _BB_DIR_USR_BIN, test_usage},
308 {"touch", touch_main, _BB_DIR_BIN, touch_usage},
311 {"tr", tr_main, _BB_DIR_USR_BIN, tr_usage},
314 {"true", true_main, _BB_DIR_BIN, true_usage},
317 {"tty", tty_main, _BB_DIR_USR_BIN, tty_usage},
320 {"umount", umount_main, _BB_DIR_BIN, umount_usage},
323 {"uname", uname_main, _BB_DIR_BIN, uname_usage},
326 {"uniq", uniq_main, _BB_DIR_USR_BIN, uniq_usage},
329 {"unix2dos", unix2dos_main, _BB_DIR_USR_BIN, unix2dos_usage},
332 {"unrpm", unrpm_main, _BB_DIR_USR_BIN, unrpm_usage},
335 {"update", update_main, _BB_DIR_SBIN, update_usage},
338 {"uptime", uptime_main, _BB_DIR_USR_BIN, uptime_usage},
341 {"usleep", usleep_main, _BB_DIR_BIN, usleep_usage},
344 {"uudecode", uudecode_main, _BB_DIR_USR_BIN, uudecode_usage},
347 {"uuencode", uuencode_main, _BB_DIR_USR_BIN, uuencode_usage},
350 {"wc", wc_main, _BB_DIR_USR_BIN, wc_usage},
353 {"wget", wget_main, _BB_DIR_USR_BIN, wget_usage},
356 {"which", which_main, _BB_DIR_USR_BIN, which_usage},
359 {"whoami", whoami_main, _BB_DIR_USR_BIN, whoami_usage},
362 {"xargs", xargs_main, _BB_DIR_USR_BIN, xargs_usage},
365 {"yes", yes_main, _BB_DIR_USR_BIN, yes_usage},
368 {"zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage},
373 /* The -1 arises because of the {0,NULL,0,NULL} entry above. */
374 size_t NUM_APPLETS = (sizeof (applets) / sizeof (struct BB_applet) - 1);