<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/coreutils, branch symlink</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=symlink</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=symlink'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2021-02-17T13:55:12+00:00</updated>
<entry>
<title>nproc: port to WIN32 and enable by default</title>
<updated>2021-02-17T13:55:12+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-17T13:55:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=2d20b9d88c4fc91637babaafa4a60dd7943e03a7'/>
<id>urn:sha1:2d20b9d88c4fc91637babaafa4a60dd7943e03a7</id>
<content type='text'>
Use the WIN32 API GetProcessAffinityMask() to obtain the number
of processors configured and the number available to the current
process.  This only works for up to 64 processors.
</content>
</entry>
<entry>
<title>win32: make readlink(2) implementation unconditional</title>
<updated>2021-02-12T14:02:28+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-12T14:02:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=e86a3ddd8b60eb0720874f5b9679446d12a1ac41'/>
<id>urn:sha1:e86a3ddd8b60eb0720874f5b9679446d12a1ac41</id>
<content type='text'>
There doesn't seem to be much advantage in having readlink(2) as a
configuration option.  Making it unconditional reduces divergence from
upstream and allows the removal of a check for ENOSYS that's been in
busybox-w32 since the start.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-02-05T11:24:06+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-05T11:24:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=32e19e7ae8b0d76d69871ba234e8f0af31baff4e'/>
<id>urn:sha1:32e19e7ae8b0d76d69871ba234e8f0af31baff4e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: introduce and use fputs_stdout</title>
<updated>2021-02-03T19:52:40+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-03T19:47:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=cad3fc743aa7c7744e4fcf044371f0fda50fa51f'/>
<id>urn:sha1:cad3fc743aa7c7744e4fcf044371f0fda50fa51f</id>
<content type='text'>
function                                             old     new   delta
fputs_stdout                                           -      12     +12
zxc_vm_process                                      7237    7230      -7
yes_main                                              85      78      -7
write_block                                          380     373      -7
wrapf                                                305     298      -7
strings_main                                         437     430      -7
show_bridge                                          353     346      -7
rev_main                                             384     377      -7
put_prompt_custom                                     58      51      -7
put_cur_glyph_and_inc_cursor                         168     161      -7
print_numbered_lines                                 152     145      -7
print_named_ascii                                    130     123      -7
print_name                                           135     128      -7
print_login_issue                                    386     379      -7
print_ascii                                          208     201      -7
powertop_main                                       1249    1242      -7
od_main                                             1789    1782      -7
logread_main                                         518     511      -7
head_main                                            804     797      -7
display_process_list                                1319    1312      -7
cut_main                                            1002     995      -7
bb_dump_dump                                        1550    1543      -7
bb_ask_noecho                                        393     386      -7
baseNUM_main                                         702     695      -7
expand_main                                          755     745     -10
dumpleases_main                                      497     487     -10
write1                                                12       -     -12
putcsi                                                37      23     -14
print_login_prompt                                    55      41     -14
paste_main                                           525     511     -14
cat_main                                             440     426     -14
print_it                                             245     230     -15
print_addrinfo                                      1188    1171     -17
print_rule                                           770     750     -20
print_linkinfo                                       842     822     -20
httpd_main                                           791     771     -20
------------------------------------------------------------------------------
(add/remove: 1/1 grow/shrink: 0/34 up/down: 12/-341)         Total: -329 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>printf: better support for escape sequences</title>
<updated>2021-02-03T14:14:37+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-02-03T14:14:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b032d8024e45eb84d21b8798cca8655b6366f01e'/>
<id>urn:sha1:b032d8024e45eb84d21b8798cca8655b6366f01e</id>
<content type='text'>
Upstream printf outputs one character at a time which doesn't
play well with emulation of ANSI escape sequences.  Previous
workarounds for this only applied in limited circumstances.

Try a different approach:  replace putchar() and printf() calls
in the printf applet with custom routines which store the output
in memory.  It's only really output at the end of the program or
when a newline is detected and a non-trivial amount has been
collected.
</content>
</entry>
<entry>
<title>nl: ensure '-b n' option displays file content</title>
<updated>2021-02-02T16:37:41+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-21T08:40:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=c849e72c0b216578f96b763529c5e58056d0662c'/>
<id>urn:sha1:c849e72c0b216578f96b763529c5e58056d0662c</id>
<content type='text'>
The command 'nl -b n' should output no line numbers, just some
spaces as a placeholder followed by the actual file content.

Add tests for line numbering by cat and nl.  The correct results
were obtained from coreutils.

function                                             old     new   delta
print_numbered_lines                                 152     157      +5
.rodata                                           182456  182453      -3
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/1 up/down: 5/-3)                Total: 2 bytes

Signed-off-by: Ron Yorston &lt;rmy@pobox.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>printf: code shrink</title>
<updated>2021-01-27T12:46:44+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-27T12:46:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=be23fca994e1dd8b81ea49cb735834e4008839fb'/>
<id>urn:sha1:be23fca994e1dd8b81ea49cb735834e4008839fb</id>
<content type='text'>
Instead of constructing null-terminated strings to print, output
the characters between the 's' and 't' pointers using fwrite().

This avoids having to output two separate strings when an escaped
literal NUL character is encountered in the format string.

Saves 32 bytes.
</content>
</entry>
<entry>
<title>stat: improve conditional compilation</title>
<updated>2021-01-26T14:50:34+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-26T14:12:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7e1c2cb3b2c917f799d406e186fa84dcac19e992'/>
<id>urn:sha1:7e1c2cb3b2c917f799d406e186fa84dcac19e992</id>
<content type='text'>
If FEATURE_READLINK2 isn't enabled:

- in print_stat() combine the code for 'n' and 'N' format;

- in do_stat() let the compiler figure out that it doesn't need to
  emit code to print the symbolic link.
</content>
</entry>
<entry>
<title>tls: avoid unnecessary changes to POSIX build, part 2</title>
<updated>2021-01-25T14:15:02+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-25T13:57:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=eb0c2bbbaf0722103124a589e3dfe952c2664cbb'/>
<id>urn:sha1:eb0c2bbbaf0722103124a589e3dfe952c2664cbb</id>
<content type='text'>
On reflection, the previous commit may have been ill-advised.  There
are many calls to open_read_close() and most shouldn't be able to
access special devices.  (Though in practice only a few are enabled
in busybox-w32.)

Nonetheless, I've implemented a new mechanism which uses the macro
MINGW_SPECIAL() to mark calls to functions that are allowed to
access special devices.

An unrelated change is to avoid compiling fputs_stdout() in
coreutils/printf.c for the POSIX build.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-01-14T13:28:49+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-14T13:28:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=89963b524d211e1aec12b72b3725be05ee95c8cf'/>
<id>urn:sha1:89963b524d211e1aec12b72b3725be05ee95c8cf</id>
<content type='text'>
</content>
</entry>
</feed>
