summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Vlasenko2007-04-01 09:39:03 +0000
committerDenis Vlasenko2007-04-01 09:39:03 +0000
commitba2fb719b92034e745b59d2c3b5b05209ce45352 (patch)
tree811452c3e50482b9f4063de1121dd630c44dbf0e /include
parent2856dab4770e521a87c18b04ae8ebc209a9b95f9 (diff)
downloadbusybox-ba2fb719b92034e745b59d2c3b5b05209ce45352.zip
busybox-ba2fb719b92034e745b59d2c3b5b05209ce45352.tar.gz
Copyright, help text, whitespace cleanups
Diffstat (limited to 'include')
-rw-r--r--include/usage.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h
index 09b6908..e1fbf75 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -3326,9 +3326,27 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when
"1\n"
#define tcpsvd_trivial_usage \
- "TODO"
+ "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] ip port prog..."
+/* with not-implemented options: */
+/* "[-hpEvv] [-c n] [-C n:msg] [-b n] [-u user] [-l name] [-i dir|-x cdb] [ -t sec] ip port prog..." */
#define tcpsvd_full_usage \
- "TODO"
+ "tcpsvd creates TCP/IP socket, binds it to host:port\n" \
+ "and listens on in for incoming connections. For each connection\n" \
+ "it runs prog" \
+ "\n" \
+ "\nip IP to listen on. '0' = 'all'" \
+ "\nport Port to listen on" \
+ "\nprog [arg] Program to run for each connection" \
+ "\n-l name Local hostname (else looks up local hostname in DNS)" \
+ "\n-u user[:group] Change to user/group after bind" \
+ "\n-c n Handle up to n connections simultaneously" \
+ "\n-C n[:msg] Allow only up to n connections from the same IP" \
+ "\n New connections from this IP address are closed" \
+ "\n immediately. 'msg' is written to the peer before close" \
+ "\n-h Look up peer's hostname in DNS" \
+ "\n-b n Allow a backlog of approximately n TCP SYNs" \
+ "\n-E Do not set up TCP-related environment variables" \
+ "\n-v Verbose"
#define tftp_trivial_usage \
"[OPTION]... HOST [PORT]"