diff options
| author | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 04:40:37 +0000 |
|---|---|---|
| committer | Glenn L McGrath <bug1@ihug.co.nz> | 2001-10-05 04:40:37 +0000 |
| commit | ad117d8a213979fae1bf6ec9162c2e998800b096 (patch) | |
| tree | bfc74a10998be45c79515b34f2288702cfeed726 /include | |
| parent | 24e2833cdfcba3505bbde9b56906bbcbb67aa2be (diff) | |
| download | busybox-w32-ad117d8a213979fae1bf6ec9162c2e998800b096.tar.gz busybox-w32-ad117d8a213979fae1bf6ec9162c2e998800b096.tar.bz2 busybox-w32-ad117d8a213979fae1bf6ec9162c2e998800b096.zip | |
Apply Magnus Damm's patch, adds tftp blocksize support, and some cleanups.
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/usage.h b/include/usage.h index 0b095a4da..9dc7fae56 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -1615,13 +1615,19 @@ | |||
| 1615 | #else | 1615 | #else |
| 1616 | #define USAGE_TFTP_PUT(a) | 1616 | #define USAGE_TFTP_PUT(a) |
| 1617 | #endif | 1617 | #endif |
| 1618 | #ifdef BB_FEATURE_TFTP_BLOCKSIZE | ||
| 1619 | #define USAGE_TFTP_BS(a) a | ||
| 1620 | #else | ||
| 1621 | #define USAGE_TFTP_BS(a) | ||
| 1622 | #endif | ||
| 1618 | 1623 | ||
| 1619 | #define tftp_trivial_usage \ | 1624 | #define tftp_trivial_usage \ |
| 1620 | "[OPTION]... HOST [PORT]" | 1625 | "[OPTION]... HOST [PORT]" |
| 1621 | #define tftp_full_usage \ | 1626 | #define tftp_full_usage \ |
| 1622 | "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ | 1627 | "Transfers a file from/to a tftp server using \"octet\" mode.\n\n" \ |
| 1623 | "Options:\n" \ | 1628 | "Options:\n" \ |
| 1624 | "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ | 1629 | "\t-l FILE\tLocal FILE.\n" \ |
| 1630 | "\t-r FILE\tRemote FILE.\n" \ | ||
| 1625 | USAGE_TFTP_GET( \ | 1631 | USAGE_TFTP_GET( \ |
| 1626 | "\t-g\tGet file.\n" \ | 1632 | "\t-g\tGet file.\n" \ |
| 1627 | ) \ | 1633 | ) \ |
| @@ -1629,7 +1635,9 @@ | |||
| 1629 | USAGE_TFTP_PUT( \ | 1635 | USAGE_TFTP_PUT( \ |
| 1630 | "\t-p\tPut file.\n" \ | 1636 | "\t-p\tPut file.\n" \ |
| 1631 | ) \ | 1637 | ) \ |
| 1632 | "\t-r FILE\tTransfer remote FILE.\n" | 1638 | USAGE_TFTP_BS( \ |
| 1639 | "\t-b SIZE\tTransfer blocks of SIZE octets.\n" \ | ||
| 1640 | ) | ||
| 1633 | 1641 | ||
| 1634 | #define touch_trivial_usage \ | 1642 | #define touch_trivial_usage \ |
| 1635 | "[-c] FILE [FILE ...]" | 1643 | "[-c] FILE [FILE ...]" |
