summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2009-10-26 23:29:03 +0100
committerDenys Vlasenko2009-10-27 17:34:36 +0100
commite039e689e3c4baefb4b62703429aaf86eef1bd99 (patch)
tree41d75770e7e1bb36a2662fa9c273ab4c806dc3c3 /include
parenta48308701a4d89d7cc0d0557cfabaec94a0bb3b0 (diff)
downloadbusybox-e039e689e3c4baefb4b62703429aaf86eef1bd99.zip
busybox-e039e689e3c4baefb4b62703429aaf86eef1bd99.tar.gz
wall: new applet
text data bss dec hex filename 81 0 0 81 51 miscutils/wall.o Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/applets.h1
-rw-r--r--include/usage.h8
2 files changed, 9 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 134f21e..9683f1e 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -417,6 +417,7 @@ IF_VCONFIG(APPLET(vconfig, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_VI(APPLET(vi, _BB_DIR_BIN, _BB_SUID_DROP))
IF_VLOCK(APPLET(vlock, _BB_DIR_USR_BIN, _BB_SUID_REQUIRE))
IF_VOLNAME(APPLET(volname, _BB_DIR_USR_BIN, _BB_SUID_DROP))
+IF_WALL(APPLET(wall, _BB_DIR_USR_BIN, _BB_SUID_REQUIRE))
IF_WATCH(APPLET(watch, _BB_DIR_BIN, _BB_SUID_DROP))
IF_WATCHDOG(APPLET(watchdog, _BB_DIR_SBIN, _BB_SUID_DROP))
IF_WC(APPLET(wc, _BB_DIR_USR_BIN, _BB_SUID_DROP))
diff --git a/include/usage.h b/include/usage.h
index 93eb2f6..72b6acc 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -4950,6 +4950,14 @@
#define volname_full_usage "\n\n" \
"Show CD volume name of the DEVICE (default /dev/cdrom)"
+#define wall_trivial_usage \
+ "[file]"
+#define wall_full_usage "\n\n" \
+ "Write content of file or standard-input to all logged-in users"
+#define wall_sample_usage \
+ "echo foo | wall\n" \
+ "wall ./mymessage"
+
#define watch_trivial_usage \
"[-n seconds] [-t] PROG [ARGS]"
#define watch_full_usage "\n\n" \