diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 15:35:52 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-02-13 15:35:52 +0000 |
| commit | 9d96af2e83a9519ac89ff0f8dae7f8478d33f581 (patch) | |
| tree | 8c871ac1119b13a2c86ef1ebd544c1a0423aea3b /include | |
| parent | 3b92eaac53e1557ea923d6a395f753224a73d676 (diff) | |
| download | busybox-w32-9d96af2e83a9519ac89ff0f8dae7f8478d33f581.tar.gz busybox-w32-9d96af2e83a9519ac89ff0f8dae7f8478d33f581.tar.bz2 busybox-w32-9d96af2e83a9519ac89ff0f8dae7f8478d33f581.zip | |
mkswap: fix help text to not lie about supported options.
mkswap: use uint32, not int, to match kernel.
mkswap: optimization: use pre-zeroed buffer
Diffstat (limited to 'include')
| -rw-r--r-- | include/usage.h | 61 |
1 files changed, 33 insertions, 28 deletions
diff --git a/include/usage.h b/include/usage.h index 37cefeab1..df15dbb46 100644 --- a/include/usage.h +++ b/include/usage.h | |||
| @@ -2335,14 +2335,17 @@ USE_FEATURE_BRCTL_FANCY("\n" \ | |||
| 2335 | "$ mknod -m 644 /tmp/pipe p\n" | 2335 | "$ mknod -m 644 /tmp/pipe p\n" |
| 2336 | 2336 | ||
| 2337 | #define mkswap_trivial_usage \ | 2337 | #define mkswap_trivial_usage \ |
| 2338 | "[-c] [-v0|-v1] device [block-count]" | 2338 | "DEVICE" |
| 2339 | #define mkswap_full_usage \ | 2339 | #define mkswap_full_usage \ |
| 2340 | "Prepare a disk partition to be used as swap partition" \ | 2340 | "Prepare block device to be used as swap partition" |
| 2341 | "\n\nOptions:\n" \ | 2341 | #if 0 |
| 2342 | " -c Check for read-ability\n" \ | 2342 | "[-c] [-v0|-v1] DEVICE [BLOCKS]" |
| 2343 | " -v0 Make version 0 swap [max 128 Megs]\n" \ | 2343 | "\n\nOptions:" |
| 2344 | " -v1 Make version 1 swap [big!] (default for kernels > 2.1.117)\n" \ | 2344 | "\n -c Check for readability" |
| 2345 | " block-count Number of block to use (default is entire partition)" | 2345 | "\n -v0 Make swap version 0 (max 128M)" |
| 2346 | "\n -v1 Make swap version 1 (default for kernels > 2.1.117)" | ||
| 2347 | "\n BLOCKS Number of blocks to use (default is entire partition)" | ||
| 2348 | #endif | ||
| 2346 | 2349 | ||
| 2347 | #define mktemp_trivial_usage \ | 2350 | #define mktemp_trivial_usage \ |
| 2348 | "[-dt] [-p DIR] TEMPLATE" | 2351 | "[-dt] [-p DIR] TEMPLATE" |
| @@ -3312,34 +3315,36 @@ USE_FEATURE_RUN_PARTS_FANCY("\n -l Prints names of all matching files even when | |||
| 3312 | 3315 | ||
| 3313 | #define sort_trivial_usage \ | 3316 | #define sort_trivial_usage \ |
| 3314 | "[-nru" \ | 3317 | "[-nru" \ |
| 3315 | USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o outfile] [-k start[.offset][opts][,end[.offset][opts]] [-t char") \ | 3318 | USE_FEATURE_SORT_BIG("gMcszbdfimSTokt] [-o FILE] [-k start[.offset][opts][,end[.offset][opts]] [-t CHAR") \ |
| 3316 | "] [FILE]..." | 3319 | "] [FILE]..." |
| 3317 | #define sort_full_usage \ | 3320 | #define sort_full_usage \ |
| 3318 | "Sort lines of text in the specified files" \ | 3321 | "Sort lines of text in the specified files" \ |
| 3319 | "\n\nOptions:\n" \ | 3322 | "\n\nOptions:" \ |
| 3320 | USE_FEATURE_SORT_BIG( \ | ||
| 3321 | " -b Ignore leading blanks\n" \ | ||
| 3322 | " -c Check whether input is sorted\n" \ | ||
| 3323 | " -d Dictionary order (blank or alphanumeric only)\n" \ | ||
| 3324 | " -f Ignore case\n" \ | ||
| 3325 | " -g General numerical sort\n" \ | ||
| 3326 | " -i Ignore unprintable characters\n" \ | ||
| 3327 | " -k Sort key\n" \ | ||
| 3328 | " -M Sort month\n") \ | ||
| 3329 | " -n Sort numbers\n" \ | ||
| 3330 | USE_FEATURE_SORT_BIG( \ | 3323 | USE_FEATURE_SORT_BIG( \ |
| 3331 | " -o Output to file\n" \ | 3324 | "\n -b Ignore leading blanks" \ |
| 3332 | " -k Sort by key\n" \ | 3325 | "\n -c Check whether input is sorted" \ |
| 3333 | " -t Use key separator other than whitespace\n") \ | 3326 | "\n -d Dictionary order (blank or alphanumeric only)" \ |
| 3334 | " -r Reverse sort order\n" \ | 3327 | "\n -f Ignore case" \ |
| 3328 | "\n -g General numerical sort" \ | ||
| 3329 | "\n -i Ignore unprintable characters" \ | ||
| 3330 | "\n -k Sort key" \ | ||
| 3331 | "\n -M Sort month" \ | ||
| 3332 | ) \ | ||
| 3333 | "\n -n Sort numbers" \ | ||
| 3335 | USE_FEATURE_SORT_BIG( \ | 3334 | USE_FEATURE_SORT_BIG( \ |
| 3336 | " -s Stable (don't sort ties alphabetically)\n") \ | 3335 | "\n -o Output to file" \ |
| 3337 | " -u Suppress duplicate lines" \ | 3336 | "\n -k Sort by key" \ |
| 3337 | "\n -t CHAR Key separator" \ | ||
| 3338 | ) \ | ||
| 3339 | "\n -r Reverse sort order" \ | ||
| 3338 | USE_FEATURE_SORT_BIG( \ | 3340 | USE_FEATURE_SORT_BIG( \ |
| 3339 | "\n -z Input terminated by nulls, not newlines\n") \ | 3341 | "\n -s Stable (don't sort ties alphabetically)" \ |
| 3342 | ) \ | ||
| 3343 | "\n -u Suppress duplicate lines" \ | ||
| 3340 | USE_FEATURE_SORT_BIG( \ | 3344 | USE_FEATURE_SORT_BIG( \ |
| 3341 | " -mST Ignored for GNU compatibility") \ | 3345 | "\n -z Lines are terminated by NUL, not newline" \ |
| 3342 | "" | 3346 | "\n -mST Ignored for GNU compatibility") \ |
| 3347 | |||
| 3343 | #define sort_example_usage \ | 3348 | #define sort_example_usage \ |
| 3344 | "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ | 3349 | "$ echo -e \"e\\nf\\nb\\nd\\nc\\na\" | sort\n" \ |
| 3345 | "a\n" \ | 3350 | "a\n" \ |
