Remove traces of rpmunpack (patch by Laurence Anderson).
[oweals/busybox.git] / applets.h
1 /*
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
13 #undef APPLET
14 #undef APPLET_ODDNAME
15 #undef APPLET_NOUSAGE
16
17
18 #if defined(PROTOTYPES)
19   #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_VERBOSE_USAGE
25     #define APPLET(a,b,c) a##_trivial_usage "\n\n" a##_full_usage "\0"
26     #define APPLET_NOUSAGE(a,b,c) "\0"
27     #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\n\n" d##_full_usage "\0"
28   #else
29     #define APPLET(a,b,c) a##_trivial_usage "\0"
30     #define APPLET_NOUSAGE(a,b,c) "\0"
31     #define APPLET_ODDNAME(a,b,c,d) d##_trivial_usage "\0"
32   #endif
33 #elif defined(MAKE_LINKS)
34 #  define APPLET(a,b,c) LINK c a
35 #  define APPLET_NOUSAGE(a,b,c) LINK c a
36 #  define APPLET_ODDNAME(a,b,c,d) LINK c a
37 #else
38   const struct BB_applet applets[] = {
39   #define APPLET(a,b,c) {#a,b,c},
40   #define APPLET_NOUSAGE(a,b,c) {a,b,c},
41   #define APPLET_ODDNAME(a,b,c,d) {a,b,c},
42 #endif
43
44
45
46 #ifdef BB_TEST
47         APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN)
48 #endif
49 #ifdef BB_ADDGROUP
50         APPLET(addgroup, addgroup_main, _BB_DIR_BIN)
51 #endif
52 #ifdef BB_ADDUSER
53         APPLET(adduser, adduser_main, _BB_DIR_BIN)
54 #endif
55 #ifdef BB_ADJTIMEX
56         APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN)
57 #endif
58 #ifdef BB_AR
59         APPLET(ar, ar_main, _BB_DIR_USR_BIN)
60 #endif
61 #ifdef BB_ASH
62         APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN)
63 #endif
64 #ifdef BB_BASENAME
65         APPLET(basename, basename_main, _BB_DIR_USR_BIN)
66 #endif
67         APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN)
68 #ifdef BB_CAT
69         APPLET(cat, cat_main, _BB_DIR_BIN)
70 #endif
71 #ifdef BB_CHGRP
72         APPLET(chgrp, chgrp_main, _BB_DIR_BIN)
73 #endif
74 #ifdef BB_CHMOD
75         APPLET(chmod, chmod_main, _BB_DIR_BIN)
76 #endif
77 #ifdef BB_CHOWN
78         APPLET(chown, chown_main, _BB_DIR_BIN)
79 #endif
80 #ifdef BB_CHROOT
81         APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN)
82 #endif
83 #ifdef BB_CHVT
84         APPLET(chvt, chvt_main, _BB_DIR_USR_BIN)
85 #endif
86 #ifdef BB_CLEAR
87         APPLET(clear, clear_main, _BB_DIR_USR_BIN)
88 #endif
89 #ifdef BB_CMP
90         APPLET(cmp, cmp_main, _BB_DIR_USR_BIN)
91 #endif
92 #ifdef BB_CP
93         APPLET(cp, cp_main, _BB_DIR_BIN)
94 #endif
95 #ifdef BB_CPIO
96         APPLET(cpio, cpio_main, _BB_DIR_BIN)
97 #endif
98 #ifdef BB_CUT
99         APPLET(cut, cut_main, _BB_DIR_USR_BIN)
100 #endif
101 #ifdef BB_DATE
102         APPLET(date, date_main, _BB_DIR_BIN)
103 #endif
104 #ifdef BB_DC
105         APPLET(dc, dc_main, _BB_DIR_USR_BIN)
106 #endif
107 #ifdef BB_DD
108         APPLET(dd, dd_main, _BB_DIR_BIN)
109 #endif
110 #ifdef BB_DEALLOCVT
111         APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN)
112 #endif
113 #ifdef BB_DELGROUP
114         APPLET(delgroup, delgroup_main, _BB_DIR_BIN)
115 #endif
116 #ifdef BB_DELUSER
117         APPLET(deluser, deluser_main, _BB_DIR_BIN)
118 #endif
119 #ifdef BB_DF
120         APPLET(df, df_main, _BB_DIR_BIN)
121 #endif
122 #ifdef BB_DIRNAME
123         APPLET(dirname, dirname_main, _BB_DIR_USR_BIN)
124 #endif
125 #ifdef BB_DMESG
126         APPLET(dmesg, dmesg_main, _BB_DIR_BIN)
127 #endif
128 #ifdef BB_DOS2UNIX
129         APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN)
130 #endif
131 #ifdef BB_DPKG
132         APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN)
133 #endif
134 #ifdef BB_DPKG_DEB
135         APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb)
136 #endif
137 #ifdef BB_DU
138         APPLET(du, du_main, _BB_DIR_USR_BIN)
139 #endif
140 #ifdef BB_DUMPKMAP
141         APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN)
142 #endif
143 #ifdef BB_DUTMP
144         APPLET(dutmp, dutmp_main, _BB_DIR_USR_SBIN)
145 #endif
146 #ifdef BB_ECHO
147         APPLET(echo, echo_main, _BB_DIR_BIN)
148 #endif
149 #if defined(BB_FEATURE_GREP_EGREP_ALIAS) && defined(BB_GREP)
150         APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN)
151 #endif
152 #ifdef BB_ENV
153         APPLET(env, env_main, _BB_DIR_USR_BIN)
154 #endif
155 #ifdef BB_EXPR
156         APPLET(expr, expr_main, _BB_DIR_USR_BIN)
157 #endif
158 #ifdef BB_TRUE_FALSE
159         APPLET(false, false_main, _BB_DIR_BIN)
160 #endif
161 #ifdef BB_FBSET
162         APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN)
163 #endif
164 #ifdef BB_FDFLUSH
165         APPLET(fdflush, fdflush_main, _BB_DIR_BIN)
166 #endif
167 #ifdef BB_FIND
168         APPLET(find, find_main, _BB_DIR_USR_BIN)
169 #endif
170 #ifdef BB_FREE
171         APPLET(free, free_main, _BB_DIR_USR_BIN)
172 #endif
173 #ifdef BB_FREERAMDISK
174         APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN)
175 #endif
176 #ifdef BB_FSCK_MINIX
177         APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, fsck_minix)
178 #endif
179 #ifdef BB_GETOPT
180         APPLET(getopt, getopt_main, _BB_DIR_BIN)
181 #endif
182 #ifdef BB_GETTY
183         APPLET(getty, getty_main, _BB_DIR_SBIN)
184 #endif
185 #ifdef BB_GREP
186         APPLET(grep, grep_main, _BB_DIR_BIN)
187 #endif
188 #ifdef BB_GUNZIP
189         APPLET(gunzip, gunzip_main, _BB_DIR_BIN)
190 #endif
191 #ifdef BB_GZIP
192         APPLET(gzip, gzip_main, _BB_DIR_BIN)
193 #endif
194 #ifdef BB_HALT
195         APPLET(halt, halt_main, _BB_DIR_SBIN)
196 #endif
197 #ifdef BB_HEAD
198         APPLET(head, head_main, _BB_DIR_USR_BIN)
199 #endif
200 #ifdef BB_HOSTID
201         APPLET(hostid, hostid_main, _BB_DIR_USR_BIN)
202 #endif
203 #ifdef BB_HOSTNAME
204         APPLET(hostname, hostname_main, _BB_DIR_BIN)
205 #endif
206 #ifdef BB_HUSH
207         APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN)
208 #endif
209 #ifdef BB_ID
210         APPLET(id, id_main, _BB_DIR_USR_BIN)
211 #endif
212 #ifdef BB_IFCONFIG
213         APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN)
214 #endif
215 #ifdef BB_INIT
216         APPLET(init, init_main, _BB_DIR_SBIN)
217 #endif
218 #ifdef BB_INSMOD
219         APPLET(insmod, insmod_main, _BB_DIR_SBIN)
220 #endif
221 #ifdef BB_KILL
222         APPLET(kill, kill_main, _BB_DIR_BIN)
223 #endif
224 #ifdef BB_KILLALL
225         APPLET(killall, kill_main, _BB_DIR_USR_BIN)
226 #endif
227 #ifdef BB_KLOGD
228         APPLET(klogd, klogd_main, _BB_DIR_SBIN)
229 #endif
230 #ifdef BB_LASH
231         APPLET(lash, lash_main, _BB_DIR_BIN)
232 #endif
233 #ifdef BB_LENGTH
234         APPLET(length, length_main, _BB_DIR_USR_BIN)
235 #endif
236 #ifdef BB_FEATURE_LINUXRC
237         APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT)
238 #endif
239 #ifdef BB_LN
240         APPLET(ln, ln_main, _BB_DIR_BIN)
241 #endif
242 #ifdef BB_LOADACM
243         APPLET(loadacm, loadacm_main, _BB_DIR_USR_BIN)
244 #endif
245 #ifdef BB_LOADFONT
246         APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN)
247 #endif
248 #ifdef BB_LOADKMAP
249         APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN)
250 #endif
251 #ifdef BB_LOGGER
252         APPLET(logger, logger_main, _BB_DIR_USR_BIN)
253 #endif
254 #ifdef BB_LOGNAME
255         APPLET(logname, logname_main, _BB_DIR_USR_BIN)
256 #endif
257 #ifdef BB_LOGREAD
258         APPLET(logread, logread_main, _BB_DIR_SBIN)
259 #endif
260 #ifdef BB_LS
261         APPLET(ls, ls_main, _BB_DIR_BIN)
262 #endif
263 #ifdef BB_LSMOD
264         APPLET(lsmod, lsmod_main, _BB_DIR_SBIN)
265 #endif
266 #ifdef BB_MAKEDEVS
267         APPLET(makedevs, makedevs_main, _BB_DIR_SBIN)
268 #endif
269 #ifdef BB_MD5SUM
270         APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN)
271 #endif
272 #ifdef BB_MKDIR
273         APPLET(mkdir, mkdir_main, _BB_DIR_BIN)
274 #endif
275 #ifdef BB_MKFIFO
276         APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN)
277 #endif
278 #ifdef BB_MKFS_MINIX
279         APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, mkfs_minix)
280 #endif
281 #ifdef BB_MKNOD
282         APPLET(mknod, mknod_main, _BB_DIR_BIN)
283 #endif
284 #ifdef BB_MKSWAP
285         APPLET(mkswap, mkswap_main, _BB_DIR_SBIN)
286 #endif
287 #ifdef BB_MKTEMP
288         APPLET(mktemp, mktemp_main, _BB_DIR_BIN)
289 #endif
290 #ifdef BB_MODPROBE
291         APPLET(modprobe, modprobe_main, _BB_DIR_SBIN)
292 #endif
293 #ifdef BB_MORE
294         APPLET(more, more_main, _BB_DIR_BIN)
295 #endif
296 #ifdef BB_MOUNT
297         APPLET(mount, mount_main, _BB_DIR_BIN)
298 #endif
299 #ifdef BB_MSH
300         APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN)
301 #endif
302 #ifdef BB_MT
303         APPLET(mt, mt_main, _BB_DIR_BIN)
304 #endif
305 #ifdef BB_MV
306         APPLET(mv, mv_main, _BB_DIR_BIN)
307 #endif
308 #ifdef BB_NC
309         APPLET(nc, nc_main, _BB_DIR_USR_BIN)
310 #endif
311 #ifdef BB_NSLOOKUP
312         APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
313 #endif
314 #ifdef BB_PIDOF
315         APPLET(pidof, pidof_main, _BB_DIR_BIN)
316 #endif
317 #ifdef BB_PING
318         APPLET(ping, ping_main, _BB_DIR_BIN)
319 #endif
320 #ifdef BB_PIVOT_ROOT
321         APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN)
322 #endif
323 #ifdef BB_POWEROFF
324         APPLET(poweroff, poweroff_main, _BB_DIR_SBIN)
325 #endif
326 #ifdef BB_PRINTF
327         APPLET(printf, printf_main, _BB_DIR_USR_BIN)
328 #endif
329 #ifdef BB_PS
330         APPLET(ps, ps_main, _BB_DIR_BIN)
331 #endif
332 #ifdef BB_PWD
333         APPLET(pwd, pwd_main, _BB_DIR_BIN)
334 #endif
335 #ifdef BB_RDATE
336         APPLET(rdate, rdate_main, _BB_DIR_USR_BIN)
337 #endif
338 #ifdef BB_READLINK
339         APPLET(readlink, readlink_main, _BB_DIR_USR_BIN)
340 #endif
341 #ifdef BB_REBOOT
342         APPLET(reboot, reboot_main, _BB_DIR_SBIN)
343 #endif
344 #ifdef BB_RENICE
345         APPLET(renice, renice_main, _BB_DIR_USR_BIN)
346 #endif
347 #ifdef BB_RESET
348         APPLET(reset, reset_main, _BB_DIR_USR_BIN)
349 #endif
350 #ifdef BB_RM
351         APPLET(rm, rm_main, _BB_DIR_BIN)
352 #endif
353 #ifdef BB_RMDIR
354         APPLET(rmdir, rmdir_main, _BB_DIR_BIN)
355 #endif
356 #ifdef BB_RMMOD
357         APPLET(rmmod, rmmod_main, _BB_DIR_SBIN)
358 #endif
359 #ifdef BB_ROUTE
360         APPLET(route, route_main, _BB_DIR_USR_BIN)
361 #endif
362 #ifdef BB_RPM2CPIO
363         APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN)
364 #endif
365 #ifdef BB_SED
366         APPLET(sed, sed_main, _BB_DIR_BIN)
367 #endif
368 #ifdef BB_SETKEYCODES
369         APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN)
370 #endif
371 #if defined(BB_FEATURE_SH_IS_ASH) && defined(BB_ASH)
372         APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN)
373 #elif defined(BB_FEATURE_SH_IS_HUSH) && defined(BB_HUSH)
374         APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN)
375 #elif defined(BB_FEATURE_SH_IS_LASH) && defined(BB_LASH)
376         APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN)
377 #elif defined(BB_FEATURE_SH_IS_MSH) && defined(BB_MSH)
378         APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN)
379 #endif
380 #ifdef BB_SLEEP
381         APPLET(sleep, sleep_main, _BB_DIR_BIN)
382 #endif
383 #ifdef BB_SORT
384         APPLET(sort, sort_main, _BB_DIR_USR_BIN)
385 #endif
386 #ifdef BB_STTY
387         APPLET(stty, stty_main, _BB_DIR_BIN)
388 #endif
389 #ifdef BB_SWAPONOFF
390         APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN)
391 #endif
392 #ifdef BB_SWAPONOFF
393         APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN)
394 #endif
395 #ifdef BB_SYNC
396         APPLET(sync, sync_main, _BB_DIR_BIN)
397 #endif
398 #ifdef BB_SYSLOGD
399         APPLET(syslogd, syslogd_main, _BB_DIR_SBIN)
400 #endif
401 #ifdef BB_TAIL
402         APPLET(tail, tail_main, _BB_DIR_USR_BIN)
403 #endif
404 #ifdef BB_TAR
405         APPLET(tar, tar_main, _BB_DIR_BIN)
406 #endif
407 #ifdef BB_TEE
408         APPLET(tee, tee_main, _BB_DIR_USR_BIN)
409 #endif
410 #ifdef BB_TELNET
411         APPLET(telnet, telnet_main, _BB_DIR_USR_BIN)
412 #endif
413 #ifdef BB_TEST
414         APPLET(test, test_main, _BB_DIR_USR_BIN)
415 #endif
416 #ifdef BB_TFTP
417         APPLET(tftp, tftp_main, _BB_DIR_USR_BIN)
418 #endif
419 #ifdef BB_TOUCH
420         APPLET(touch, touch_main, _BB_DIR_BIN)
421 #endif
422 #ifdef BB_TR
423         APPLET(tr, tr_main, _BB_DIR_USR_BIN)
424 #endif
425 #ifdef BB_TRACEROUTE
426         APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN)
427 #endif
428 #ifdef BB_TRUE_FALSE
429         APPLET(true, true_main, _BB_DIR_BIN)
430 #endif
431 #ifdef BB_TTY
432         APPLET(tty, tty_main, _BB_DIR_USR_BIN)
433 #endif
434 #ifdef BB_UMOUNT
435         APPLET(umount, umount_main, _BB_DIR_BIN)
436 #endif
437 #ifdef BB_UNAME
438         APPLET(uname, uname_main, _BB_DIR_BIN)
439 #endif
440 #ifdef BB_UNIQ
441         APPLET(uniq, uniq_main, _BB_DIR_USR_BIN)
442 #endif
443 #ifdef BB_UNIX2DOS
444         APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN)
445 #endif
446 #ifdef BB_UPDATE
447         APPLET(update, update_main, _BB_DIR_SBIN)
448 #endif
449 #ifdef BB_UPTIME
450         APPLET(uptime, uptime_main, _BB_DIR_USR_BIN)
451 #endif
452 #ifdef BB_USLEEP
453         APPLET(usleep, usleep_main, _BB_DIR_BIN)
454 #endif
455 #ifdef BB_UUDECODE
456         APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN)
457 #endif
458 #ifdef BB_UUENCODE
459         APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN)
460 #endif
461 #ifdef BB_VI
462         APPLET(vi, vi_main, _BB_DIR_BIN)
463 #endif
464 #ifdef BB_WATCHDOG
465         APPLET(watchdog, watchdog_main, _BB_DIR_SBIN)
466 #endif
467 #ifdef BB_WC
468         APPLET(wc, wc_main, _BB_DIR_USR_BIN)
469 #endif
470 #ifdef BB_WGET
471         APPLET(wget, wget_main, _BB_DIR_USR_BIN)
472 #endif
473 #ifdef BB_WHICH
474         APPLET(which, which_main, _BB_DIR_USR_BIN)
475 #endif
476 #ifdef BB_WHOAMI
477         APPLET(whoami, whoami_main, _BB_DIR_USR_BIN)
478 #endif
479 #ifdef BB_XARGS
480         APPLET(xargs, xargs_main, _BB_DIR_USR_BIN)
481 #endif
482 #ifdef BB_YES
483         APPLET(yes, yes_main, _BB_DIR_USR_BIN)
484 #endif
485 #ifdef BB_GUNZIP
486         APPLET(zcat, gunzip_main, _BB_DIR_BIN)
487 #endif
488
489 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
490         { 0,NULL,0 }
491 };
492
493 #endif
494