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