aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-04 02:21:13 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-09-04 02:21:13 +0200
commited1667e8ee91243b77b02cc4f160fe4b80a30385 (patch)
tree54520fc2069e9f8f21a8fad0cfc1de163b5d4017 /include
parentcfc216345e18081cba9ac3ed0464abf5d7f40cea (diff)
downloadbusybox-ed1667e8ee91243b77b02cc4f160fe4b80a30385.tar.gz
telnetd: add -w ("inetd wait") option. Can be configured off.
gcc fils to fully optimize it out when it's off: function old new delta telnetd_main 1527 1548 +21 packed_usage 26596 26587 -9 but nevertheless it's a useful (and so far single) example how to write "inetd wait" tcp service. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/usage.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/include/usage.h b/include/usage.h
index ba77490cb..9fa1b9ef8 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1468,11 +1468,11 @@
"\n -m Get baud rate from modem's CONNECT status message" \
"\n -w Wait for a CR or LF before sending /etc/issue" \
"\n -n Do not prompt the user for a login name" \
- "\n -f issue_file Display issue_file instead of /etc/issue" \
- "\n -l login_app Invoke login_app instead of /bin/login" \
- "\n -t timeout Terminate after timeout if no username is read" \
- "\n -I initstring Init string to send before anything else" \
- "\n -H login_host Log login_host into the utmp file as the hostname" \
+ "\n -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue" \
+ "\n -l LOGIN Invoke LOGIN instead of /bin/login" \
+ "\n -t SEC Terminate after SEC if no username is read" \
+ "\n -I INITSTR Send INITSTR before anything else" \
+ "\n -H HOST Log HOST into the utmp file as the hostname" \
#define grep_trivial_usage \
"[-HhrilLnqvso" \
@@ -4415,14 +4415,18 @@
IF_NOT_FEATURE_TELNETD_STANDALONE(" via inetd") "\n" \
"\nOptions:" \
"\n -l LOGIN Exec LOGIN on connect" \
- "\n -f issue_file Display issue_file instead of /etc/issue" \
+ "\n -f ISSUE_FILE Display ISSUE_FILE instead of /etc/issue" \
"\n -K Close connection as soon as login exits" \
"\n (normally wait until all programs close slave pty)" \
IF_FEATURE_TELNETD_STANDALONE( \
"\n -p PORT Port to listen on" \
- "\n -b ADDR Address to bind to" \
+ "\n -b ADDR[:PORT] Address to bind to" \
"\n -F Run in foreground" \
- "\n -i Run as inetd subservice" \
+ "\n -i Run as inetd service" \
+ IF_FEATURE_TELNETD_INETD_WAIT( \
+ "\n -w SEC Run as inetd service in wait mode, linger time SEC" \
+ "\n -S Log to syslog (implied by -i or without -F and -w)" \
+ ) \
)
/* "test --help" does not print help (POSIX compat), only "[ --help" does.