diff options
author | Ron Yorston <rmy@pobox.com> | 2023-01-05 08:56:27 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-01-05 08:56:27 +0000 |
commit | e5e4a2fec5435192d1672e6db2f335cb5e89f877 (patch) | |
tree | 08cb827a40817ea4824bc9336d57eda669c4d4b2 /util-linux | |
parent | 4343f3926355f55fc023203c992527fc34bf609e (diff) | |
parent | b1884deb514c35289d37e7bfbf23f770b0bd09b3 (diff) | |
download | busybox-w32-e5e4a2fec5435192d1672e6db2f335cb5e89f877.tar.gz busybox-w32-e5e4a2fec5435192d1672e6db2f335cb5e89f877.tar.bz2 busybox-w32-e5e4a2fec5435192d1672e6db2f335cb5e89f877.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'util-linux')
-rw-r--r-- | util-linux/fbset.c | 6 | ||||
-rw-r--r-- | util-linux/hexdump_xxd.c | 13 | ||||
-rw-r--r-- | util-linux/more.c | 3 |
3 files changed, 13 insertions, 9 deletions
diff --git a/util-linux/fbset.c b/util-linux/fbset.c index 41cc29f37..768ab80eb 100644 --- a/util-linux/fbset.c +++ b/util-linux/fbset.c | |||
@@ -518,7 +518,13 @@ int fbset_main(int argc, char **argv) | |||
518 | case CMD_DEPTH: | 518 | case CMD_DEPTH: |
519 | var_set.bits_per_pixel = xatou32(argv[1]); | 519 | var_set.bits_per_pixel = xatou32(argv[1]); |
520 | break; | 520 | break; |
521 | case CMD_PIXCLOCK: | ||
522 | var_set.pixclock = xatou32(argv[1]); | ||
523 | break; | ||
521 | #endif | 524 | #endif |
525 | default: | ||
526 | bb_perror_msg_and_die("option '%s' not handled", | ||
527 | g_cmdoptions[i].name); | ||
522 | } | 528 | } |
523 | switch (g_cmdoptions[i].code) { | 529 | switch (g_cmdoptions[i].code) { |
524 | case CMD_FB: | 530 | case CMD_FB: |
diff --git a/util-linux/hexdump_xxd.c b/util-linux/hexdump_xxd.c index 9173f5d43..9738a76ad 100644 --- a/util-linux/hexdump_xxd.c +++ b/util-linux/hexdump_xxd.c | |||
@@ -41,7 +41,7 @@ | |||
41 | // -u use upper case hex letters. | 41 | // -u use upper case hex letters. |
42 | 42 | ||
43 | //usage:#define xxd_trivial_usage | 43 | //usage:#define xxd_trivial_usage |
44 | //usage: "[-pri] [-g N] [-c N] [-n LEN] [-s OFS] [-o OFS] [FILE]" | 44 | //usage: "[-pri] [-g N] [-c N] [-l LEN] [-s OFS] [-o OFS] [FILE]" |
45 | //usage:#define xxd_full_usage "\n\n" | 45 | //usage:#define xxd_full_usage "\n\n" |
46 | //usage: "Hex dump FILE (or stdin)\n" | 46 | //usage: "Hex dump FILE (or stdin)\n" |
47 | //usage: "\n -g N Bytes per group" | 47 | //usage: "\n -g N Bytes per group" |
@@ -78,7 +78,7 @@ static void write_zeros(off_t count) | |||
78 | do { | 78 | do { |
79 | unsigned sz = count < COMMON_BUFSIZE ? (unsigned)count : COMMON_BUFSIZE; | 79 | unsigned sz = count < COMMON_BUFSIZE ? (unsigned)count : COMMON_BUFSIZE; |
80 | if (fwrite(fillbuf, 1, sz, stdout) != sz) | 80 | if (fwrite(fillbuf, 1, sz, stdout) != sz) |
81 | bb_perror_msg_and_die("write error"); | 81 | bb_simple_perror_msg_and_die("write error"); |
82 | count -= sz; | 82 | count -= sz; |
83 | } while (count != 0); | 83 | } while (count != 0); |
84 | } | 84 | } |
@@ -120,7 +120,7 @@ static void reverse(unsigned opt, const char *filename, char *opt_s) | |||
120 | if (ofs != cur) { | 120 | if (ofs != cur) { |
121 | if (fseeko(stdout, ofs, SEEK_SET) != 0) { | 121 | if (fseeko(stdout, ofs, SEEK_SET) != 0) { |
122 | if (ofs < cur) | 122 | if (ofs < cur) |
123 | bb_perror_msg_and_die("cannot seek"); | 123 | bb_simple_perror_msg_and_die("cannot seek"); |
124 | write_zeros(ofs - cur); | 124 | write_zeros(ofs - cur); |
125 | } | 125 | } |
126 | cur = ofs; | 126 | cur = ofs; |
@@ -229,11 +229,8 @@ int xxd_main(int argc UNUSED_PARAM, char **argv) | |||
229 | { | 229 | { |
230 | char buf[80]; | 230 | char buf[80]; |
231 | dumper_t *dumper; | 231 | dumper_t *dumper; |
232 | #if !ENABLE_PLATFORM_MINGW32 | 232 | char *opt_l, *opt_o; |
233 | char *opt_l, *opt_s, *opt_o; | 233 | char *opt_s = NULL; |
234 | #else | ||
235 | char *opt_l, *opt_s = NULL, *opt_o; | ||
236 | #endif | ||
237 | unsigned bytes = 2; | 234 | unsigned bytes = 2; |
238 | unsigned cols = 0; | 235 | unsigned cols = 0; |
239 | unsigned opt; | 236 | unsigned opt; |
diff --git a/util-linux/more.c b/util-linux/more.c index a9ea76ab4..07275131e 100644 --- a/util-linux/more.c +++ b/util-linux/more.c | |||
@@ -87,11 +87,12 @@ int more_main(int argc UNUSED_PARAM, char **argv) | |||
87 | /* Parse options */ | 87 | /* Parse options */ |
88 | /* Accepted but ignored: */ | 88 | /* Accepted but ignored: */ |
89 | /* -d Display help instead of ringing bell */ | 89 | /* -d Display help instead of ringing bell */ |
90 | /* -e Exit immediately after writing the last line */ | ||
90 | /* -f Count logical lines (IOW: long lines are not folded) */ | 91 | /* -f Count logical lines (IOW: long lines are not folded) */ |
91 | /* -l Do not pause after any line containing a ^L (form feed) */ | 92 | /* -l Do not pause after any line containing a ^L (form feed) */ |
92 | /* -s Squeeze blank lines into one */ | 93 | /* -s Squeeze blank lines into one */ |
93 | /* -u Suppress underlining */ | 94 | /* -u Suppress underlining */ |
94 | getopt32(argv, "dflsu"); | 95 | getopt32(argv, "deflsu"); |
95 | argv += optind; | 96 | argv += optind; |
96 | 97 | ||
97 | /* Another popular pager, most, detects when stdout | 98 | /* Another popular pager, most, detects when stdout |