Small comm implementatin from Rob Sullivan. Needed to build perl.
[oweals/busybox.git] / include / 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,d) extern int b(int argc, char **argv);
20 # define APPLET_NOUSAGE(a,b,c,d) extern int b(int argc, char **argv);
21 # define APPLET_ODDNAME(a,b,c,d,e) extern int b(int argc, char **argv);
22   extern const char usage_messages[];
23 #elif defined(MAKE_USAGE)
24 # ifdef CONFIG_FEATURE_VERBOSE_USAGE
25 #  define APPLET(a,b,c,d) a##_trivial_usage "\n\n" a##_full_usage "\0"
26 #  define APPLET_NOUSAGE(a,b,c,d) "\b\0"
27 #  define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\n\n" e##_full_usage "\0"
28 # else
29 #  define APPLET(a,b,c,d) a##_trivial_usage "\0"
30 #  define APPLET_NOUSAGE(a,b,c,d) "\b\0"
31 #  define APPLET_ODDNAME(a,b,c,d,e) e##_trivial_usage "\0"
32 # endif
33 #elif defined(MAKE_LINKS)
34 # define APPLET(a,b,c,d) LINK c a
35 # define APPLET_NOUSAGE(a,b,c,d) LINK c a
36 # define APPLET_ODDNAME(a,b,c,d,e) LINK c a
37 #else
38   const struct BB_applet applets[] = {
39 # define APPLET(a,b,c,d) {#a,b,c,d},
40 # define APPLET_NOUSAGE(a,b,c,d) {a,b,c,d},
41 # define APPLET_ODDNAME(a,b,c,d,e) {a,b,c,d},
42 #endif
43
44 #ifdef CONFIG_INSTALL_NO_USR
45 # define _BB_DIR_USR_BIN _BB_DIR_BIN
46 # define _BB_DIR_USR_SBIN _BB_DIR_SBIN
47 #endif
48
49
50
51 #ifdef CONFIG_TEST
52         APPLET_NOUSAGE("[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
53         APPLET_NOUSAGE("[[", test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
54 #endif
55 #ifdef CONFIG_ADDGROUP
56         APPLET(addgroup, addgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
57 #endif
58 #ifdef CONFIG_ADDUSER
59         APPLET(adduser, adduser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
60 #endif
61 #ifdef CONFIG_ADJTIMEX
62         APPLET(adjtimex, adjtimex_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
63 #endif
64 #ifdef CONFIG_AR
65         APPLET(ar, ar_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
66 #endif
67 #ifdef CONFIG_ARPING
68         APPLET(arping, arping_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
69 #endif
70 #ifdef CONFIG_ASH
71         APPLET_NOUSAGE("ash", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
72 #endif
73 #ifdef CONFIG_AWK
74         APPLET(awk, awk_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
75 #endif
76 #ifdef CONFIG_BASENAME
77         APPLET(basename, basename_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
78 #endif
79 #ifdef CONFIG_BUNZIP2
80         APPLET(bunzip2, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
81 #endif
82         APPLET_NOUSAGE("busybox", busybox_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
83 #ifdef CONFIG_BUNZIP2
84         APPLET(bzcat, bunzip2_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
85 #endif
86 #ifdef CONFIG_CAL
87         APPLET(cal, cal_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
88 #endif
89 #ifdef CONFIG_CAT
90         APPLET(cat, cat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
91 #endif
92 #ifdef CONFIG_CHATTR
93         APPLET(chattr, chattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
94 #endif
95 #ifdef CONFIG_CHGRP
96         APPLET(chgrp, chgrp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
97 #endif
98 #ifdef CONFIG_CHMOD
99         APPLET(chmod, chmod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
100 #endif
101 #ifdef CONFIG_CHOWN
102         APPLET(chown, chown_main, _BB_DIR_BIN, _BB_SUID_NEVER)
103 #endif
104 #ifdef CONFIG_CHROOT
105         APPLET(chroot, chroot_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
106 #endif
107 #ifdef CONFIG_CHVT
108         APPLET(chvt, chvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
109 #endif
110 #ifdef CONFIG_CLEAR
111         APPLET(clear, clear_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
112 #endif
113 #ifdef CONFIG_CMP
114         APPLET(cmp, cmp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
115 #endif
116 #ifdef CONFIG_COMM
117         APPLET(comm, comm_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
118 #endif
119 #ifdef CONFIG_CP
120         APPLET(cp, cp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
121 #endif
122 #ifdef CONFIG_CPIO
123         APPLET(cpio, cpio_main, _BB_DIR_BIN, _BB_SUID_NEVER)
124 #endif
125 #ifdef CONFIG_CROND
126         APPLET(crond, crond_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
127 #endif
128 #ifdef CONFIG_CRONTAB
129         APPLET(crontab, crontab_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
130 #endif
131 #ifdef CONFIG_CUT
132         APPLET(cut, cut_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
133 #endif
134 #ifdef CONFIG_DATE
135         APPLET(date, date_main, _BB_DIR_BIN, _BB_SUID_NEVER)
136 #endif
137 #ifdef CONFIG_DC
138         APPLET(dc, dc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
139 #endif
140 #ifdef CONFIG_DD
141         APPLET(dd, dd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
142 #endif
143 #ifdef CONFIG_DEALLOCVT
144         APPLET(deallocvt, deallocvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
145 #endif
146 #ifdef CONFIG_DELGROUP
147         APPLET(delgroup, delgroup_main, _BB_DIR_BIN, _BB_SUID_NEVER)
148 #endif
149 #ifdef CONFIG_DELUSER
150         APPLET(deluser, deluser_main, _BB_DIR_BIN, _BB_SUID_NEVER)
151 #endif
152 #ifdef CONFIG_DEVFSD
153         APPLET(devfsd, devfsd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
154 #endif
155 #ifdef CONFIG_DF
156         APPLET(df, df_main, _BB_DIR_BIN, _BB_SUID_NEVER)
157 #endif
158 #ifdef CONFIG_DIRNAME
159         APPLET(dirname, dirname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
160 #endif
161 #ifdef CONFIG_DMESG
162         APPLET(dmesg, dmesg_main, _BB_DIR_BIN, _BB_SUID_NEVER)
163 #endif
164 #ifdef CONFIG_DOS2UNIX
165         APPLET(dos2unix, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
166 #endif
167 #ifdef CONFIG_DPKG
168         APPLET(dpkg, dpkg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
169 #endif
170 #ifdef CONFIG_DPKG_DEB
171         APPLET_ODDNAME("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, dpkg_deb)
172 #endif
173 #ifdef CONFIG_DU
174         APPLET(du, du_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
175 #endif
176 #ifdef CONFIG_DUMPKMAP
177         APPLET(dumpkmap, dumpkmap_main, _BB_DIR_BIN, _BB_SUID_NEVER)
178 #endif
179 #ifdef CONFIG_DUMPLEASES
180         APPLET(dumpleases, dumpleases_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
181 #endif
182 #ifdef CONFIG_ECHO
183         APPLET(echo, echo_main, _BB_DIR_BIN, _BB_SUID_NEVER)
184 #endif
185 #if defined(CONFIG_FEATURE_GREP_EGREP_ALIAS)
186         APPLET_NOUSAGE("egrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
187 #endif
188 #ifdef CONFIG_EJECT
189         APPLET(eject, eject_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
190 #endif
191 #ifdef CONFIG_ENV
192         APPLET(env, env_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
193 #endif
194 #ifdef CONFIG_ETHER_WAKE
195         APPLET_ODDNAME("ether-wake", etherwake_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER, ether_wake)
196 #endif
197 #ifdef CONFIG_EXPR
198         APPLET(expr, expr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
199 #endif
200 #ifdef CONFIG_FAKEIDENTD
201         APPLET(fakeidentd, fakeidentd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
202 #endif
203 #ifdef CONFIG_FALSE
204         APPLET(false, false_main, _BB_DIR_BIN, _BB_SUID_NEVER)
205 #endif
206 #ifdef CONFIG_FBSET
207         APPLET(fbset, fbset_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
208 #endif
209 #ifdef CONFIG_FDFLUSH
210         APPLET(fdflush, fdflush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
211 #endif
212 #ifdef CONFIG_FDFORMAT
213         APPLET(fdformat, fdformat_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
214 #endif
215 #ifdef CONFIG_FDISK
216         APPLET(fdisk, fdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
217 #endif
218 #if defined(CONFIG_FEATURE_GREP_FGREP_ALIAS)
219         APPLET_NOUSAGE("fgrep", grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
220 #endif
221 #ifdef CONFIG_FIND
222         APPLET(find, find_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
223 #endif
224 #ifdef CONFIG_FOLD
225         APPLET(fold, fold_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
226 #endif
227 #ifdef CONFIG_FREE
228         APPLET(free, free_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
229 #endif
230 #ifdef CONFIG_FREERAMDISK
231         APPLET(freeramdisk, freeramdisk_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
232 #endif
233 #ifdef CONFIG_FSCK_MINIX
234         APPLET_ODDNAME("fsck.minix", fsck_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, fsck_minix)
235 #endif
236 #ifdef CONFIG_FTPGET
237         APPLET(ftpget, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
238 #endif
239 #ifdef CONFIG_FTPPUT
240         APPLET(ftpput, ftpgetput_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
241 #endif
242 #ifdef CONFIG_GETOPT
243         APPLET(getopt, getopt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
244 #endif
245 #ifdef CONFIG_GETTY
246         APPLET(getty, getty_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
247 #endif
248 #ifdef CONFIG_GREP
249         APPLET(grep, grep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
250 #endif
251 #ifdef CONFIG_GUNZIP
252         APPLET(gunzip, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
253 #endif
254 #ifdef CONFIG_GZIP
255         APPLET(gzip, gzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
256 #endif
257 #ifdef CONFIG_HALT
258         APPLET(halt, halt_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
259 #endif
260 #ifdef CONFIG_HDPARM
261         APPLET(hdparm, hdparm_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
262 #endif
263 #ifdef CONFIG_HEAD
264         APPLET(head, head_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
265 #endif
266 #ifdef CONFIG_HEXDUMP
267         APPLET(hexdump, hexdump_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
268 #endif
269 #ifdef CONFIG_HOSTID
270         APPLET(hostid, hostid_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
271 #endif
272 #ifdef CONFIG_HOSTNAME
273         APPLET(hostname, hostname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
274 #endif
275 #ifdef CONFIG_HTTPD
276         APPLET(httpd, httpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
277 #endif
278 #ifdef CONFIG_HUSH
279         APPLET_NOUSAGE("hush", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
280 #endif
281 #ifdef CONFIG_HWCLOCK
282         APPLET(hwclock, hwclock_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
283 #endif
284 #ifdef CONFIG_ID
285         APPLET(id, id_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
286 #endif
287 #ifdef CONFIG_IFCONFIG
288         APPLET(ifconfig, ifconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
289 #endif
290 #ifdef CONFIG_IFUPDOWN
291         APPLET(ifdown, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
292 #endif
293 #ifdef CONFIG_IFUPDOWN
294         APPLET(ifup, ifupdown_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
295 #endif
296 #ifdef CONFIG_INETD
297         APPLET(inetd, inetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
298 #endif
299 #ifdef CONFIG_INIT
300         APPLET(init, init_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
301 #endif
302 #ifdef CONFIG_INSMOD
303         APPLET(insmod, insmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
304 #endif
305 #ifdef CONFIG_INSTALL
306         APPLET(install, install_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
307 #endif
308 #ifdef CONFIG_IP
309         APPLET(ip, ip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
310 #endif
311 #ifdef CONFIG_IPADDR
312         APPLET(ipaddr, ipaddr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
313 #endif
314 #ifdef CONFIG_IPCALC
315         APPLET(ipcalc, ipcalc_main, _BB_DIR_BIN, _BB_SUID_NEVER)
316 #endif
317 #ifdef CONFIG_IPLINK
318         APPLET(iplink, iplink_main, _BB_DIR_BIN, _BB_SUID_NEVER)
319 #endif
320 #ifdef CONFIG_IPROUTE
321         APPLET(iproute, iproute_main, _BB_DIR_BIN, _BB_SUID_NEVER)
322 #endif
323 #ifdef CONFIG_IPTUNNEL
324         APPLET(iptunnel, iptunnel_main, _BB_DIR_BIN, _BB_SUID_NEVER)
325 #endif
326 #ifdef CONFIG_KILL
327         APPLET(kill, kill_main, _BB_DIR_BIN, _BB_SUID_NEVER)
328 #endif
329 #ifdef CONFIG_KILLALL
330         APPLET(killall, kill_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
331 #endif
332 #ifdef CONFIG_KLOGD
333         APPLET(klogd, klogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
334 #endif
335 #ifdef CONFIG_LASH
336         APPLET(lash, lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
337 #endif
338 #ifdef CONFIG_LAST
339         APPLET(last, last_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
340 #endif
341 #ifdef CONFIG_LENGTH
342         APPLET(length, length_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
343 #endif
344 #ifdef CONFIG_FEATURE_INITRD
345         APPLET_NOUSAGE("linuxrc", init_main, _BB_DIR_ROOT, _BB_SUID_NEVER)
346 #endif
347 #ifdef CONFIG_LN
348         APPLET(ln, ln_main, _BB_DIR_BIN, _BB_SUID_NEVER)
349 #endif
350 #ifdef CONFIG_LOADFONT
351         APPLET(loadfont, loadfont_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
352 #endif
353 #ifdef CONFIG_LOADKMAP
354         APPLET(loadkmap, loadkmap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
355 #endif
356 #ifdef CONFIG_LOGGER
357         APPLET(logger, logger_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
358 #endif
359 #ifdef CONFIG_LOGIN
360         APPLET(login, login_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
361 #endif
362 #ifdef CONFIG_LOGNAME
363         APPLET(logname, logname_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
364 #endif
365 #ifdef CONFIG_LOGREAD
366         APPLET(logread, logread_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
367 #endif
368 #ifdef CONFIG_LOSETUP
369         APPLET(losetup, losetup_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
370 #endif
371 #ifdef CONFIG_LS
372         APPLET(ls, ls_main, _BB_DIR_BIN, _BB_SUID_NEVER)
373 #endif
374 #ifdef CONFIG_LSATTR
375         APPLET(lsattr, lsattr_main, _BB_DIR_BIN, _BB_SUID_NEVER)
376 #endif
377 #ifdef CONFIG_LSMOD
378         APPLET(lsmod, lsmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
379 #endif
380 #ifdef CONFIG_MAKEDEVS
381         APPLET(makedevs, makedevs_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
382 #endif
383 #ifdef CONFIG_MD5SUM
384         APPLET(md5sum, md5sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
385 #endif
386 #ifdef CONFIG_MESG
387         APPLET(mesg, mesg_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
388 #endif
389 #ifdef CONFIG_MKDIR
390         APPLET(mkdir, mkdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
391 #endif
392 #ifdef CONFIG_MKFIFO
393         APPLET(mkfifo, mkfifo_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
394 #endif
395 #ifdef CONFIG_MKFS_MINIX
396         APPLET_ODDNAME("mkfs.minix", mkfs_minix_main, _BB_DIR_SBIN, _BB_SUID_NEVER, mkfs_minix)
397 #endif
398 #ifdef CONFIG_MKNOD
399         APPLET(mknod, mknod_main, _BB_DIR_BIN, _BB_SUID_NEVER)
400 #endif
401 #ifdef CONFIG_MKSWAP
402         APPLET(mkswap, mkswap_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
403 #endif
404 #ifdef CONFIG_MKTEMP
405         APPLET(mktemp, mktemp_main, _BB_DIR_BIN, _BB_SUID_NEVER)
406 #endif
407 #ifdef CONFIG_MODPROBE
408         APPLET(modprobe, modprobe_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
409 #endif
410 #ifdef CONFIG_MORE
411         APPLET(more, more_main, _BB_DIR_BIN, _BB_SUID_NEVER)
412 #endif
413 #ifdef CONFIG_MOUNT
414         APPLET(mount, mount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
415 #endif
416 #ifdef CONFIG_MSH
417         APPLET_NOUSAGE("msh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
418 #endif
419 #ifdef CONFIG_MT
420         APPLET(mt, mt_main, _BB_DIR_BIN, _BB_SUID_NEVER)
421 #endif
422 #ifdef CONFIG_MV
423         APPLET(mv, mv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
424 #endif
425 #ifdef CONFIG_NAMEIF
426         APPLET(nameif, nameif_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
427 #endif
428 #ifdef CONFIG_NC
429         APPLET(nc, nc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
430 #endif
431 #ifdef CONFIG_NETSTAT
432         APPLET(netstat, netstat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
433 #endif
434 #ifdef CONFIG_NICE
435         APPLET(nice, nice_main, _BB_DIR_BIN, _BB_SUID_NEVER)
436 #endif
437 #ifdef CONFIG_NSLOOKUP
438         APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
439 #endif
440 #ifdef CONFIG_OD
441         APPLET(od, od_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
442 #endif
443 #ifdef CONFIG_OPENVT
444         APPLET(openvt, openvt_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
445 #endif
446 #ifdef CONFIG_PASSWD
447         APPLET(passwd, passwd_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
448 #endif
449 #ifdef CONFIG_PATCH
450         APPLET(patch, patch_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
451 #endif
452 #ifdef CONFIG_PIDOF
453         APPLET(pidof, pidof_main, _BB_DIR_BIN, _BB_SUID_NEVER)
454 #endif
455 #ifdef CONFIG_PING
456         APPLET(ping, ping_main, _BB_DIR_BIN, _BB_SUID_MAYBE)
457 #endif
458 #ifdef CONFIG_PING6
459         APPLET(ping6, ping6_main, _BB_DIR_BIN, _BB_SUID_NEVER)
460 #endif
461 #ifdef CONFIG_PIPE_PROGRESS
462         APPLET_NOUSAGE("pipe_progress", pipe_progress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
463 #endif
464 #ifdef CONFIG_PIVOT_ROOT
465         APPLET(pivot_root, pivot_root_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
466 #endif
467 #ifdef CONFIG_POWEROFF
468         APPLET(poweroff, poweroff_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
469 #endif
470 #ifdef CONFIG_PRINTENV
471         APPLET(printenv, printenv_main, _BB_DIR_BIN, _BB_SUID_NEVER)
472 #endif
473 #ifdef CONFIG_PRINTF
474         APPLET(printf, printf_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
475 #endif
476 #ifdef CONFIG_PS
477         APPLET(ps, ps_main, _BB_DIR_BIN, _BB_SUID_NEVER)
478 #endif
479 #ifdef CONFIG_PWD
480         APPLET(pwd, pwd_main, _BB_DIR_BIN, _BB_SUID_NEVER)
481 #endif
482 #ifdef CONFIG_RDATE
483         APPLET(rdate, rdate_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
484 #endif
485 #ifdef CONFIG_READLINK
486         APPLET(readlink, readlink_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
487 #endif
488 #ifdef CONFIG_REALPATH
489         APPLET(realpath, realpath_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
490 #endif
491 #ifdef CONFIG_REBOOT
492         APPLET(reboot, reboot_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
493 #endif
494 #ifdef CONFIG_RENICE
495         APPLET(renice, renice_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
496 #endif
497 #ifdef CONFIG_RESET
498         APPLET(reset, reset_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
499 #endif
500 #ifdef CONFIG_RM
501         APPLET(rm, rm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
502 #endif
503 #ifdef CONFIG_RMDIR
504         APPLET(rmdir, rmdir_main, _BB_DIR_BIN, _BB_SUID_NEVER)
505 #endif
506 #ifdef CONFIG_RMMOD
507         APPLET(rmmod, rmmod_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
508 #endif
509 #ifdef CONFIG_ROUTE
510         APPLET(route, route_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
511 #endif
512 #ifdef CONFIG_RPM
513         APPLET(rpm, rpm_main, _BB_DIR_BIN, _BB_SUID_NEVER)
514 #endif
515 #ifdef CONFIG_RPM2CPIO
516         APPLET(rpm2cpio, rpm2cpio_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
517 #endif
518 #ifdef CONFIG_RUN_PARTS
519         APPLET_ODDNAME("run-parts", run_parts_main, _BB_DIR_BIN, _BB_SUID_NEVER, run_parts)
520 #endif
521 #ifdef CONFIG_RX
522         APPLET(rx, rx_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
523 #endif
524 #ifdef CONFIG_SED
525         APPLET(sed, sed_main, _BB_DIR_BIN, _BB_SUID_NEVER)
526 #endif
527 #ifdef CONFIG_SEQ
528         APPLET(seq, seq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
529 #endif
530 #ifdef CONFIG_SETKEYCODES
531         APPLET(setkeycodes, setkeycodes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
532 #endif
533 #if defined(CONFIG_FEATURE_SH_IS_ASH) && defined(CONFIG_ASH)
534         APPLET_NOUSAGE("sh", ash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
535 #elif defined(CONFIG_FEATURE_SH_IS_HUSH) && defined(CONFIG_HUSH)
536         APPLET_NOUSAGE("sh", hush_main, _BB_DIR_BIN, _BB_SUID_NEVER)
537 #elif defined(CONFIG_FEATURE_SH_IS_LASH) && defined(CONFIG_LASH)
538         APPLET_NOUSAGE("sh", lash_main, _BB_DIR_BIN, _BB_SUID_NEVER)
539 #elif defined(CONFIG_FEATURE_SH_IS_MSH) && defined(CONFIG_MSH)
540         APPLET_NOUSAGE("sh", msh_main, _BB_DIR_BIN, _BB_SUID_NEVER)
541 #endif
542 #ifdef CONFIG_SHA1SUM
543         APPLET(sha1sum, sha1sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
544 #endif
545 #ifdef CONFIG_SLEEP
546         APPLET(sleep, sleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
547 #endif
548 #ifdef CONFIG_SORT
549         APPLET(sort, sort_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
550 #endif
551 #ifdef CONFIG_START_STOP_DAEMON
552         APPLET_ODDNAME("start-stop-daemon", start_stop_daemon_main, _BB_DIR_SBIN, _BB_SUID_NEVER, start_stop_daemon)
553 #endif
554 #ifdef CONFIG_STAT
555         APPLET(stat, stat_main, _BB_DIR_BIN, _BB_SUID_NEVER)
556 #endif
557 #ifdef CONFIG_STRINGS
558         APPLET(strings, strings_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
559 #endif
560 #ifdef CONFIG_STTY
561         APPLET(stty, stty_main, _BB_DIR_BIN, _BB_SUID_NEVER)
562 #endif
563 #ifdef CONFIG_SU
564         APPLET(su, su_main, _BB_DIR_BIN, _BB_SUID_ALWAYS)
565 #endif
566 #ifdef CONFIG_SULOGIN
567         APPLET(sulogin, sulogin_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
568 #endif
569 #ifdef CONFIG_SUM
570         APPLET(sum, sum_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
571 #endif
572 #ifdef CONFIG_SWAPONOFF
573         APPLET(swapoff, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
574 #endif
575 #ifdef CONFIG_SWAPONOFF
576         APPLET(swapon, swap_on_off_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
577 #endif
578 #ifdef CONFIG_SYNC
579         APPLET(sync, sync_main, _BB_DIR_BIN, _BB_SUID_NEVER)
580 #endif
581 #ifdef CONFIG_SYSCTL
582         APPLET(sysctl, sysctl_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
583 #endif
584 #ifdef CONFIG_SYSLOGD
585         APPLET(syslogd, syslogd_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
586 #endif
587 #ifdef CONFIG_TAIL
588         APPLET(tail, tail_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
589 #endif
590 #ifdef CONFIG_TAR
591         APPLET(tar, tar_main, _BB_DIR_BIN, _BB_SUID_NEVER)
592 #endif
593 #ifdef CONFIG_TEE
594         APPLET(tee, tee_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
595 #endif
596 #ifdef CONFIG_TELNET
597         APPLET(telnet, telnet_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
598 #endif
599 #ifdef CONFIG_TELNETD
600         APPLET(telnetd, telnetd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
601 #endif
602 #ifdef CONFIG_TEST
603         APPLET(test, test_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
604 #endif
605 #ifdef CONFIG_TFTP
606         APPLET(tftp, tftp_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
607 #endif
608 #ifdef CONFIG_TIME
609         APPLET(time, time_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
610 #endif
611 #ifdef CONFIG_TOP
612         APPLET(top, top_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
613 #endif
614 #ifdef CONFIG_TOUCH
615         APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
616 #endif
617 #ifdef CONFIG_TR
618         APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
619 #endif
620 #ifdef CONFIG_TRACEROUTE
621         APPLET(traceroute, traceroute_main, _BB_DIR_USR_BIN, _BB_SUID_MAYBE)
622 #endif
623 #ifdef CONFIG_TRUE
624         APPLET(true, true_main, _BB_DIR_BIN, _BB_SUID_NEVER)
625 #endif
626 #ifdef CONFIG_TTY
627         APPLET(tty, tty_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
628 #endif
629 #ifdef CONFIG_UDHCPC
630         APPLET(udhcpc, udhcpc_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
631 #endif
632 #ifdef CONFIG_UDHCPD
633         APPLET(udhcpd, udhcpd_main, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)
634 #endif
635 #ifdef CONFIG_UMOUNT
636         APPLET(umount, umount_main, _BB_DIR_BIN, _BB_SUID_NEVER)
637 #endif
638 #ifdef CONFIG_UNAME
639         APPLET(uname, uname_main, _BB_DIR_BIN, _BB_SUID_NEVER)
640 #endif
641 #ifdef CONFIG_UNCOMPRESS
642         APPLET(uncompress, uncompress_main, _BB_DIR_BIN, _BB_SUID_NEVER)
643 #endif
644 #ifdef CONFIG_UNIQ
645         APPLET(uniq, uniq_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
646 #endif
647 #ifdef CONFIG_UNIX2DOS
648         APPLET(unix2dos, dos2unix_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
649 #endif
650 #ifdef CONFIG_UNZIP
651         APPLET(unzip, unzip_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
652 #endif
653 #ifdef CONFIG_UPTIME
654         APPLET(uptime, uptime_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
655 #endif
656 #ifdef CONFIG_USLEEP
657         APPLET(usleep, usleep_main, _BB_DIR_BIN, _BB_SUID_NEVER)
658 #endif
659 #ifdef CONFIG_UUDECODE
660         APPLET(uudecode, uudecode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
661 #endif
662 #ifdef CONFIG_UUENCODE
663         APPLET(uuencode, uuencode_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
664 #endif
665 #ifdef CONFIG_VCONFIG
666         APPLET(vconfig, vconfig_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
667 #endif
668 #ifdef CONFIG_VI
669         APPLET(vi, vi_main, _BB_DIR_BIN, _BB_SUID_NEVER)
670 #endif
671 #ifdef CONFIG_VLOCK
672         APPLET(vlock, vlock_main, _BB_DIR_USR_BIN, _BB_SUID_ALWAYS)
673 #endif
674 #ifdef CONFIG_WATCH
675         APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
676 #endif
677 #ifdef CONFIG_WATCHDOG
678         APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
679 #endif
680 #ifdef CONFIG_WC
681         APPLET(wc, wc_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
682 #endif
683 #ifdef CONFIG_WGET
684         APPLET(wget, wget_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
685 #endif
686 #ifdef CONFIG_WHICH
687         APPLET(which, which_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
688 #endif
689 #ifdef CONFIG_WHO
690         APPLET(who, who_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
691 #endif
692 #ifdef CONFIG_WHOAMI
693         APPLET(whoami, whoami_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
694 #endif
695 #ifdef CONFIG_XARGS
696         APPLET(xargs, xargs_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
697 #endif
698 #ifdef CONFIG_YES
699         APPLET(yes, yes_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
700 #endif
701 #ifdef CONFIG_GUNZIP
702         APPLET(zcat, gunzip_main, _BB_DIR_BIN, _BB_SUID_NEVER)
703 #endif
704 #ifdef CONFIG_ZCIP
705         APPLET(zcip, zcip_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
706 #endif
707
708 #if !defined(PROTOTYPES) && !defined(MAKE_USAGE)
709         { 0,NULL,0 }
710 };
711
712 #endif