<feed xmlns='http://www.w3.org/2005/Atom'>
<title>busybox-w32/networking/nc.c, branch mount_point</title>
<subtitle>A mirror of https://github.com/rmyorston/busybox-w32.git
</subtitle>
<id>https://git.lua4.win/busybox-w32/atom?h=mount_point</id>
<link rel='self' href='https://git.lua4.win/busybox-w32/atom?h=mount_point'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/'/>
<updated>2023-03-03T12:21:51+00:00</updated>
<entry>
<title>nc: switch to using poll(2)</title>
<updated>2023-03-03T12:21:51+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2023-03-03T11:32:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=1036069556897964766dfdf22cda1dd11d891cdf'/>
<id>urn:sha1:1036069556897964766dfdf22cda1dd11d891cdf</id>
<content type='text'>
Upstream started using poll(2) rather than select(2) in `nc` some
time ago, in commit 5b3b468ec (nc: use poll() instead of select()).

Now that poll(2) in busybox-w32 has been updated to work with `nc`
switch to using the same code as upstream.

As a result of this change nothing in busybox-w32 now uses the
select(2) implementation.  This reduces the size of the binaries
by about 3.4KB.
</content>
</entry>
<entry>
<title>Merge busybox into merge</title>
<updated>2022-01-06T07:46:38+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2022-01-06T07:46:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=b8751bbc9ac24e71fbe1e79c69074b4c87a134d8'/>
<id>urn:sha1:b8751bbc9ac24e71fbe1e79c69074b4c87a134d8</id>
<content type='text'>
Fix merge conflict in miscutils/less.c.

Use exit_SUCCESS() where possible.
</content>
</entry>
<entry>
<title>libbb: code shrink: introduce and use [_]exit_SUCCESS()</title>
<updated>2022-01-05T21:16:06+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2022-01-05T21:16:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=db5546ca101846f18294a43b39883bc4ff53613a'/>
<id>urn:sha1:db5546ca101846f18294a43b39883bc4ff53613a</id>
<content type='text'>
function                                             old     new   delta
exit_SUCCESS                                           -       7      +7
_exit_SUCCESS                                          -       7      +7
run_pipe                                            1562    1567      +5
pseudo_exec_argv                                     399     400      +1
finish                                                86      87      +1
start_stop_daemon_main                              1109    1107      -2
shutdown_on_signal                                    38      36      -2
runsv_main                                          1662    1660      -2
redirect                                            1070    1068      -2
read_line                                             79      77      -2
pause_and_low_level_reboot                            54      52      -2
list_i2c_busses_and_exit                             483     481      -2
less_exit                                             12      10      -2
identify                                            4123    4121      -2
grep_file                                           1161    1159      -2
getty_main                                          1519    1517      -2
fsck_minix_main                                     2681    2679      -2
free_session                                         132     130      -2
fdisk_main                                          4739    4737      -2
clean_up_and_exit                                     53      51      -2
bsd_select                                          1566    1564      -2
bb_daemonize_or_rexec                                198     196      -2
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 3/17 up/down: 21/-34)           Total: -13 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2021-09-10T13:47:27+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-09-10T13:47:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3eb1d088e09db204f456ad7b76eced21e429f001'/>
<id>urn:sha1:3eb1d088e09db204f456ad7b76eced21e429f001</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: make bb_lookup_port() abort on bad port names</title>
<updated>2021-09-09T20:00:44+00:00</updated>
<author>
<name>Denys Vlasenko</name>
<email>vda.linux@googlemail.com</email>
</author>
<published>2021-09-09T20:00:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=7ab9cd23988b48956fcfe171d5828d61285baf40'/>
<id>urn:sha1:7ab9cd23988b48956fcfe171d5828d61285baf40</id>
<content type='text'>
Also, no need to preserve errno

function                                             old     new   delta
.rodata                                           104247  104241      -6
bb_lookup_port                                        97      83     -14
nc_main                                             1039    1018     -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-41)             Total: -41 bytes

Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>nc: alter conditional compilation</title>
<updated>2021-01-24T12:24:58+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2021-01-24T12:24:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=3c85cc0c4821f7131d90f5010b2930bdb0eae4d4'/>
<id>urn:sha1:3c85cc0c4821f7131d90f5010b2930bdb0eae4d4</id>
<content type='text'>
Change conditional compilation to use PLATFORM_MINGW32 instead
of NC_EXTRA.  Enabling NC_EXTRA won't work for busybox-w32, but
then it didn't before.

Also, instead of just reverting upstream commit 5b3b468ec
(nc: use poll() instead of select()) include both old and new
code, keyed on PLATFORM_MINGW32.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2019-08-16T08:45:21+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2019-08-16T08:42:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=517cf74f6265ec4308b790b637b3f9778cbdc6e0'/>
<id>urn:sha1:517cf74f6265ec4308b790b637b3f9778cbdc6e0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>libbb: reduce the overhead of single parameter bb_error_msg() calls</title>
<updated>2019-07-02T09:35:03+00:00</updated>
<author>
<name>James Byrne</name>
<email>james.byrne@origamienergy.com</email>
</author>
<published>2019-07-02T09:35:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=6937487be73cd4563b876413277a295a5fe2f32c'/>
<id>urn:sha1:6937487be73cd4563b876413277a295a5fe2f32c</id>
<content type='text'>
Back in 2007, commit 0c97c9d43707 ("'simple' error message functions by
Loic Grenie") introduced bb_simple_perror_msg() to allow for a lower
overhead call to bb_perror_msg() when only a string was being printed
with no parameters. This saves space for some CPU architectures because
it avoids the overhead of a call to a variadic function. However there
has never been a simple version of bb_error_msg(), and since 2007 many
new calls to bb_perror_msg() have been added that only take a single
parameter and so could have been using bb_simple_perror_message().

This changeset introduces 'simple' versions of bb_info_msg(),
bb_error_msg(), bb_error_msg_and_die(), bb_herror_msg() and
bb_herror_msg_and_die(), and replaces all calls that only take a
single parameter, or use something like ("%s", arg), with calls to the
corresponding 'simple' version.

Since it is likely that single parameter calls to the variadic functions
may be accidentally reintroduced in the future a new debugging config
option WARN_SIMPLE_MSG has been introduced. This uses some macro magic
which will cause any such calls to generate a warning, but this is
turned off by default to avoid use of the unpleasant macros in normal
circumstances.

This is a large changeset due to the number of calls that have been
replaced. The only files that contain changes other than simple
substitution of function calls are libbb.h, libbb/herror_msg.c,
libbb/verror_msg.c and libbb/xfuncs_printf.c. In miscutils/devfsd.c,
networking/udhcp/common.h and util-linux/mdev.c additonal macros have
been added for logging so that single parameter and multiple parameter
logging variants exist.

The amount of space saved varies considerably by architecture, and was
found to be as follows (for 'defconfig' using GCC 7.4):

Arm:     -92 bytes
MIPS:    -52 bytes
PPC:   -1836 bytes
x86_64: -938 bytes

Note that for the MIPS architecture only an exception had to be made
disabling the 'simple' calls for 'udhcp' (in networking/udhcp/common.h)
because it made these files larger on MIPS.

Signed-off-by: James Byrne &lt;james.byrne@origamienergy.com&gt;
Signed-off-by: Denys Vlasenko &lt;vda.linux@googlemail.com&gt;
</content>
</entry>
<entry>
<title>Remove fake signal-handling code</title>
<updated>2018-03-01T11:18:33+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2018-03-01T11:18:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=5f8dac68690e92f0be220f8f8d9f797a2aedc806'/>
<id>urn:sha1:5f8dac68690e92f0be220f8f8d9f797a2aedc806</id>
<content type='text'>
Microsoft Windows has only limited support for signals.  busybox-w32
initially papered over this fact by adding definitions for unsupported
signals and signal-handling functions.

Remove this fake code and deal with the consequences by excluding
anything that fails to compile as a result.
</content>
</entry>
<entry>
<title>Merge branch 'busybox' into merge</title>
<updated>2017-11-03T14:16:08+00:00</updated>
<author>
<name>Ron Yorston</name>
<email>rmy@pobox.com</email>
</author>
<published>2017-11-03T14:16:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/busybox-w32/commit/?id=d6ce08aeb85b3698ddaa281016b70e16aeb9fb35'/>
<id>urn:sha1:d6ce08aeb85b3698ddaa281016b70e16aeb9fb35</id>
<content type='text'>
</content>
</entry>
</feed>
