aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/applets.h3
-rw-r--r--include/usage.h8
2 files changed, 11 insertions, 0 deletions
diff --git a/include/applets.h b/include/applets.h
index 9fc59cda5..0786c39eb 100644
--- a/include/applets.h
+++ b/include/applets.h
@@ -284,6 +284,9 @@
#ifdef BB_NSLOOKUP
APPLET(nslookup, nslookup_main, _BB_DIR_USR_BIN)
#endif
+#ifdef BB_PIDOF
+ APPLET(pidof, pidof_main, _BB_DIR_BIN)
+#endif
#ifdef BB_PING
APPLET(ping, ping_main, _BB_DIR_BIN)
#endif
diff --git a/include/usage.h b/include/usage.h
index 2a2042292..08da42b27 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1190,6 +1190,14 @@
"Name: debian\n" \
"Address: 127.0.0.1\n"
+#define pidof_trivial_usage \
+ "process-name [process-name ...]"
+#define pidof_full_usage \
+ "Lists the PIDs of all processes with names that match the names on the command line"
+#define pidof_example_usage \
+ "$ pidof init\n" \
+ "1\n"
+
#ifndef BB_FEATURE_FANCY_PING
#define ping_trivial_usage "host"
#define ping_full_usage "Send ICMP ECHO_REQUEST packets to network hosts"