diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:10:39 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-03-17 09:10:39 +0000 |
commit | aa9b1828b91bc4b60f1164b7929a6a0ac091419e (patch) | |
tree | 31a2278e3998160a7c40ac5882736a2f48768a2d /include | |
parent | 1d42665b6b0571b9fa5d3b10fbf2dd03382f0ba2 (diff) | |
download | busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.tar.gz busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.tar.bz2 busybox-w32-aa9b1828b91bc4b60f1164b7929a6a0ac091419e.zip |
tftpd: new applet (mostly using existing code for tftp)
function old new delta
tftp_protocol - 1173 +1173
tftpd_main - 500 +500
tftp_option_get - 102 +102
packed_usage 23650 23662 +12
applet_names 1809 1815 +6
applet_main 1100 1104 +4
applet_nameofs 550 552 +2
tftp_main 302 301 -1
get_nport 32 - -32
tftp 1172 - -1172
------------------------------------------------------------------------------
(add/remove: 3/2 grow/shrink: 4/1 up/down: 1799/-1205) Total: 594 bytes
text data bss dec hex filename
796479 662 7420 804561 c46d1 busybox_old
797153 662 7420 805235 c4973 busybox_unstripped
Diffstat (limited to 'include')
-rw-r--r-- | include/applets.h | 1 | ||||
-rw-r--r-- | include/usage.h | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/include/applets.h b/include/applets.h index d4b6dbeaa..c2a089c69 100644 --- a/include/applets.h +++ b/include/applets.h | |||
@@ -355,6 +355,7 @@ USE_TELNETD(APPLET(telnetd, _BB_DIR_USR_SBIN, _BB_SUID_NEVER)) | |||
355 | USE_TEST(APPLET_NOEXEC(test, test, _BB_DIR_USR_BIN, _BB_SUID_NEVER, test)) | 355 | USE_TEST(APPLET_NOEXEC(test, test, _BB_DIR_USR_BIN, _BB_SUID_NEVER, test)) |
356 | #if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT | 356 | #if ENABLE_FEATURE_TFTP_GET || ENABLE_FEATURE_TFTP_PUT |
357 | USE_TFTP(APPLET(tftp, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 357 | USE_TFTP(APPLET(tftp, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
358 | USE_TFTPD(APPLET(tftpd, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | ||
358 | #endif | 359 | #endif |
359 | USE_TIME(APPLET(time, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 360 | USE_TIME(APPLET(time, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
360 | USE_TOP(APPLET(top, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) | 361 | USE_TOP(APPLET(top, _BB_DIR_USR_BIN, _BB_SUID_NEVER)) |
diff --git a/include/usage.h b/include/usage.h index 507a52dab..8f563f55e 100644 --- a/include/usage.h +++ b/include/usage.h | |||
@@ -3961,7 +3961,7 @@ | |||
3961 | #define tftp_trivial_usage \ | 3961 | #define tftp_trivial_usage \ |
3962 | "[OPTION]... HOST [PORT]" | 3962 | "[OPTION]... HOST [PORT]" |
3963 | #define tftp_full_usage \ | 3963 | #define tftp_full_usage \ |
3964 | "Transfer a file from/to tftp server using \"octet\" mode\n" \ | 3964 | "Transfer a file from/to tftp server\n" \ |
3965 | "\nOptions:" \ | 3965 | "\nOptions:" \ |
3966 | "\n -l FILE Local FILE" \ | 3966 | "\n -l FILE Local FILE" \ |
3967 | "\n -r FILE Remote FILE" \ | 3967 | "\n -r FILE Remote FILE" \ |
@@ -3974,6 +3974,12 @@ | |||
3974 | USE_FEATURE_TFTP_BLOCKSIZE( \ | 3974 | USE_FEATURE_TFTP_BLOCKSIZE( \ |
3975 | "\n -b SIZE Transfer blocks of SIZE octets" \ | 3975 | "\n -b SIZE Transfer blocks of SIZE octets" \ |
3976 | ) | 3976 | ) |
3977 | |||
3978 | #define tftpd_trivial_usage \ | ||
3979 | "[DIR]" | ||
3980 | #define tftpd_full_usage \ | ||
3981 | "Transfer a file on request from a tftp client" \ | ||
3982 | |||
3977 | #define time_trivial_usage \ | 3983 | #define time_trivial_usage \ |
3978 | "[OPTION]... COMMAND [ARGS...]" | 3984 | "[OPTION]... COMMAND [ARGS...]" |
3979 | #define time_full_usage \ | 3985 | #define time_full_usage \ |