aboutsummaryrefslogtreecommitdiff
path: root/util-linux (unfollow)
Commit message (Collapse)AuthorFilesLines
2 daysash: don't skip exec() if std streams are invalidRon Yorston1-1/+3
This didn't produce the expected output when run from ash: ash -c "echo abc | sed s/a/x/" <&- In general, if the last command in the pipe read from stdin the command didn't work; if it read from file descriptor 0 (e.g. cat) it did. Closing a file descriptor caused the corresponding stream to become invalid. For performance reasons the shell in busybox-w32 runs applets without an exec(), but that results in their seeing the invalid stream from their parent. Avoid the problem by calling exec() in such cases. This causes the child process to get a new stdin stream initialised from the file descriptor. The test also applies to stdout and stderr. There's no discernable affect on performance when running the test suite. Adds 64-96 bytes. (GitHub issue #558)
3 dayslibbb: code shrinkRon Yorston2-16/+30
Fix some compiler warnings and move the CNG algorithm caches into get_alg_handle(). Saves 32 bytes in the x86_64 build with CNG enabled.
3 dayslibbb: update CNG API config messagerfl8901-2/+3
4 dayslibbb: refactor CNG hashing implementationrfl8904-47/+110
The existing CNG implementation relied on multiple features only implemented in "newer" Windows versions. This new implementation does not use the aforementioned features and is therefore compatible with systems running Windows Vista or higher. function old new delta .rdata 87112 87288 +176 hmac_peek_hash 80 208 +128 get_alg_handle - 96 +96 algorithm_provider_hmac_cache - 48 +48 algorithm_provider_cache - 48 +48 alg_id_mappings - 48 +48 sha512_begin 16 48 +32 sha384_begin 16 48 +32 sha256_begin 16 48 +32 sha1_begin 16 48 +32 md5_begin 16 32 +16 hmac_hash_v 48 64 +16 hmac_end 48 64 +16 hmac_blocks.constprop.0 96 112 +16 __imp_BCryptOpenAlgorithmProvider - 8 +8 __imp_BCryptDuplicateHash - 8 +8 BCryptOpenAlgorithmProvider - 8 +8 BCryptDuplicateHash - 8 +8 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 10/0 up/down: 768/0) Total: 768 bytes
5 daysmake: bring into alignment with pdpmakeRon Yorston1-2/+3
The make applet is based on code from pdpmake. Make a few minor adjustments to bring the two into line. The only one of any significance is setting 'target' to NULL in docmds(). Adds 16 bytes.
8 daysjoin: add some more testsRon Yorston2-1/+31
One more from the POSIX documentation and some examples from coreutils.
9 daysUpdate default configurationsmergeRon Yorston5-6/+11
11 daysash: don't display ^C twiceRon Yorston1-1/+1
Since commit f7bcc977c (ash: make ctrl-c trap handling closer to upstream) when ctrl-c was entered at an interactive prompt without a 'trap INT' in force, '^C' was echoed to the console twice. Detect this condition and avoid the duplication. Adds 16 bytes.
11 daysvmstat: fix I/O, int and ctxt rates: need to be divided by secondsbusyboxDenys Vlasenko1-5/+8
function old new delta vmstat_main 657 708 +51 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
11 daysvmstat: fixes for >4TB memory and long sampling intervalsDenys Vlasenko1-39/+75
function old new delta load_row 661 1061 +400 vmstat_main 561 657 +96 .rodata 106716 106746 +30 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 526/0) Total: 526 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 dayswin32: mkdtemp is available in mingw-w64 14.0.0Ron Yorston1-0/+2
mingw-w64 has introduced an implementation of mkdtemp() for its 14.0.0 release. Use this in preference to the internal code, where available. (GitHub issue #555)
12 daysvmstat: fix "vmstat N 0" to act compatibly (do not print infinitely)Denys Vlasenko1-5/+12
function old new delta vmstat_main 559 561 +2 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
12 daysvmstat: smarter handling of header re-printingDenys Vlasenko1-23/+30
function old new delta vmstat_main 230 559 +329 print_row 340 - -340 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/0 up/down: 329/-340) Total: -11 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 daysvmstat: show shorter, human-readable accumulating counts if they grow largeDenys Vlasenko1-13/+29
function old new delta print_row 247 340 +93 .rodata 106717 106716 -1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/1 up/down: 93/-1) Total: 92 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 daysvmstat: reduce the chances of misaligned columnsDenys Vlasenko1-8/+26
function old new delta print_row 215 247 +32 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
13 daysvmstat: code shrinkDenys Vlasenko1-28/+39
function old new delta load_row 667 661 -6 next_col 105 59 -46 coldescs 239 146 -93 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-145) Total: -145 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>