[Toybox] [PATCH] Fix `netcat -l -p 12345`.

2019-01-02 Thread Josh Gao via Toybox
Previously, when trying to listen on a socket without using one of -4, -6, or -s, we tried to create an AF_UNSPEC socket, which fails. --- toys/net/netcat.c | 4 1 file changed, 4 insertions(+) diff --git a/toys/net/netcat.c b/toys/net/netcat.c index 761d1f2a..57304f44 100644 ---

[Toybox] [PATCH] nc: IPv6, -4/-6, UDP

2018-12-10 Thread Josh Gao via Toybox
I sent some patches to add these a year ago, and the people requesting the functionality probably just hit the same point in their development cycle where they're wanting this again :-) From 0f431a44804920a693e8832dbc784b70f227318a Mon Sep 17 00:00:00 2001 From: Josh Gao Date: Mon, 10 Dec 2018

[Toybox] [PATCH] nc: allow immediate reuse of ports

2019-01-24 Thread Josh Gao via Toybox
Set SO_REUSEADDR when listening so that we can immediately reuse ports that are no longer being listened upon, instead of having to wait 60 seconds for the socket to be shutdown after being closed (even on localhost!). From 05be3873b985d8d6f401c6e96f2b99927c41e126 Mon Sep 17 00:00:00 2001 From:

Re: [Toybox] NDK versions?

2019-03-08 Thread Josh Gao via Toybox
On Fri, Mar 8, 2019 at 12:34 PM Rob Landley wrote: > > What would be really really nice is if you had -cc and -c++ symlinks to the > latest -clang and -clang++ versions in the zip file. Then I wouldn't have to > create them, so I wouldn't have to work out which version is latest. (You > could >

Re: [Toybox] [PATCH] nc: allow immediate reuse of ports

2019-01-25 Thread Josh Gao via Toybox
Whoops, missed that. Another patch attached. On Fri, Jan 25, 2019 at 6:49 AM Rob Landley wrote: > On 1/24/19 7:38 PM, Josh Gao via Toybox wrote: > > Set SO_REUSEADDR when listening so that we can immediately reuse ports > > that are no longer being listened upon, instead of ha

Re: [Toybox] setenv memory leak.

2019-04-08 Thread Josh Gao via Toybox
On Mon, Apr 8, 2019 at 1:12 PM Rob Landley wrote: > Yes, they have to do it themselves because libc is doing it unusably wrong for > anything that persists and changes environment variables repeatedly. > > *shrug* Reinventing this wheel isn't hard, I'd just hoped I wouldn't have to. > But I

Re: [Toybox] [PATCH] losetup: fix the race.

2019-08-08 Thread Josh Gao via Toybox
On Wed, Aug 7, 2019 at 8:59 AM enh via Toybox wrote: > iirc, the adb maintainer has similar problems where when you first > connect an Android device to a Linux host, it shows up but with the > wrong permissions which then fix themselves if you wait+retry. which > for my money is even worse. (but

Re: [Toybox] llvm regression test.

2020-05-04 Thread Josh Gao via Toybox
On Mon, May 4, 2020 at 2:57 PM Rob Landley wrote: > What portion of this script does what when? Right, assuming all the bisect > stuff > is ignorable and the command line editing isn't relevant, where's the real > binary it passes through to? > > $ find clang-r377782d -name clang | xargs file >

Re: [Toybox] [PATCH] tr: fix pathological flushing.

2020-12-05 Thread Josh Gao via Toybox
On Sat, Dec 5, 2020, 3:38 AM Rob Landley wrote: > (Also, line buffering sucks because it'll flush at the buffer size anyway > so > you're not guaranteed to get a full line of contiguous output. What it > REALLY > wants is nagle's algorithm for stdout but no libc ever bothered to > IMPLEMENT it,