aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-11 23:26:13 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-11 23:26:13 +0000
commit48e33653bb3bcc8f127075976d1655710766e4ac (patch)
treead67c96ccbbce0620186dd2926451f69c0831f0f /include
parenta0139dbfb3f880e4e142366fbb74b27ff9c67f1f (diff)
downloadbusybox-w32-48e33653bb3bcc8f127075976d1655710766e4ac.tar.gz
busybox-w32-48e33653bb3bcc8f127075976d1655710766e4ac.tar.bz2
busybox-w32-48e33653bb3bcc8f127075976d1655710766e4ac.zip
fakeinetd: attempted ipv6-ization (and it's done)
but entire applet can be orders of magnitude smaller if written as an inetd service. So did that (#ifdef'ed out entire old version). inetd version is less than 10% of old one! function old new delta packed_usage 22083 22105 +22 nobodystr 4 - -4 bind_ip_address 4 - -4 ident_substr 20 - -20 chmatch 22 - -22 movefd 25 - -25 skipchars 49 - -49 handlexitsigs 51 - -51 replyError 70 - -70 .rodata 158120 158024 -96 deleteConn 102 - -102 G 524 388 -136 conns 560 - -560 fakeidentd_main 1457 143 -1314 ------------------------------------------------------------------------------ (add/remove: 0/10 grow/shrink: 1/3 up/down: 22/-2453) Total: -2431 bytes git-svn-id: svn://busybox.net/trunk/busybox@17256 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'include')
-rw-r--r--include/usage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usage.h b/include/usage.h
index 14650e5de..4e5206558 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -826,6 +826,7 @@
826 "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \ 826 "\\( and \\) or null; if \\( and \\) are not used, they return the number\n" \
827 "of characters matched or 0." 827 "of characters matched or 0."
828 828
829#if 0 /* bloaty */
829#define fakeidentd_trivial_usage \ 830#define fakeidentd_trivial_usage \
830 "[-b ip] [STRING]" 831 "[-b ip] [STRING]"
831#define fakeidentd_full_usage \ 832#define fakeidentd_full_usage \
@@ -833,6 +834,14 @@
833 "\n\nOptions:\n" \ 834 "\n\nOptions:\n" \
834 " -b Bind to ip address\n" \ 835 " -b Bind to ip address\n" \
835 " STRING The ident answer string (default is nobody)" 836 " STRING The ident answer string (default is nobody)"
837#else /* inetd-only */
838#define fakeidentd_trivial_usage \
839 "[username]"
840#define fakeidentd_full_usage \
841 "Return a (faked) ident response.\n" \
842 "This applet is meant to run from inetd.\n" \
843 "Optional argument is the username to return (default is 'nobody')."
844#endif
836 845
837#define false_trivial_usage \ 846#define false_trivial_usage \
838 "" 847 ""