Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.

This commit is contained in:
Glenn L McGrath 2001-10-05 04:40:37 +00:00
parent 24e2833cdf
commit ad117d8a21
6 changed files with 515 additions and 108 deletions

View file

@ -1615,13 +1615,19 @@
#else
#define USAGE_TFTP_PUT(a)
#endif
#ifdef BB_FEATURE_TFTP_BLOCKSIZE
#define USAGE_TFTP_BS(a) a
#else
#define USAGE_TFTP_BS(a)
#endif
#define tftp_trivial_usage \
"[OPTION]... HOST [PORT]"
#define tftp_full_usage \
"Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \
"Options:\n" \
"\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
"\t-l FILE\tLocal FILE.\n" \
"\t-r FILE\tRemote FILE.\n" \
USAGE_TFTP_GET( \
"\t-g\tGet file.\n" \
) \
@ -1629,7 +1635,9 @@
USAGE_TFTP_PUT( \
"\t-p\tPut file.\n" \
) \
"\t-r FILE\tTransfer remote FILE.\n"
USAGE_TFTP_BS( \
"\t-b SIZE\tTransfer blocks of SIZE octets.\n" \
)
#define touch_trivial_usage \
"[-c] FILE [FILE ...]"