[Toybox] [PATCH] bind/connect cleanup.

enh enh at google.com
Mon Jul 8 16:05:45 PDT 2019


Rename the existing xbind/xconnect to xbindany/xconnectany, to make room
for new xbind/xconnect that are more like 'x' versions of the regular
bind and connect. Move explicit bind/connect callers over to
xbind/xconnect.

Of the affected commands, only netcat is actually used by Android. It
was the most recent patch to netcat that made the lack of a more
traditional xbind/xconnect apparent.
---
 lib/lib.h                 |  6 ++++--
 lib/net.c                 | 14 ++++++++++++--
 toys/net/ftpget.c         |  4 ++--
 toys/net/netcat.c         | 19 +++++--------------
 toys/net/ping.c           |  2 +-
 toys/net/sntp.c           |  2 +-
 toys/other/nbd_client.c   |  2 +-
 toys/pending/arping.c     |  9 +++------
 toys/pending/dhcp6.c      | 10 ++--------
 toys/pending/host.c       |  5 ++---
 toys/pending/tcpsvd.c     |  5 ++---
 toys/pending/telnet.c     |  2 +-
 toys/pending/telnetd.c    |  7 ++-----
 toys/pending/tftpd.c      |  5 ++---
 toys/pending/traceroute.c | 16 +++++-----------
 15 files changed, 45 insertions(+), 63 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-bind-connect-cleanup.patch
Type: text/x-patch
Size: 14797 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20190708/a96b2537/attachment-0002.bin>


More information about the Toybox mailing list