Re: [Toybox] [PATCH] count.c: Human readable -h option and MAYFORK

2023-10-26 Thread enh via Toybox
On Tue, Oct 24, 2023 at 12:31 AM Rob Landley wrote: > > On 10/20/23 01:05, Rob Landley wrote: > >> (though i will accept the argument that "that's a toybox xargs test > >> bug", but (a) we'll still need to fix that test > > > > Any idea off the top of your head which of the 31 tests it was? (I

Re: [Toybox] [PATCH] count.c: Human readable -h option and MAYFORK

2023-10-26 Thread enh via Toybox
On Thu, Oct 19, 2023 at 11:01 PM Rob Landley wrote: > > On 10/19/23 13:20, enh wrote: > >> > if you had > >> > ``` > >> > if (which->flags & TOYFLAG_LINEBUF) setvbuf(stdout, 0, _IOLBF, 0); > >> > ``` > >> > we'd argue a lot less about buffering :-) > >> > >> The existing LINEBUF users are ascii,

Re: [Toybox] Weird stdout buffering effects

2023-10-26 Thread enh via Toybox
On Tue, Oct 24, 2023 at 1:55 AM Rob Landley wrote: > > On 10/23/23 18:13, Ray Gardner wrote: > > Rob, thanks for the info, I learned some stuff about pipes from it. > > > > I also looked up setvbuf(), and the standard says it may not be used after > > a previous successful call to setvbuf(). That

Re: [Toybox] [PATCH] getconf: add cache size sysconf() queries.

2023-10-26 Thread enh via Toybox
On Thu, Oct 26, 2023 at 4:05 AM Rob Landley wrote: > > On 10/25/23 18:08, enh via Toybox wrote: > > It can otherwise be quite awkward to get at this --- riscv64 puts it all > > neatly in the ELF auxv, x86-64 has it all in /proc, arm64 only exposes > > L1 instruction/data line sizes. > > > >

[Toybox] [PATCH] getconf: fix sense of #if conditional.

2023-10-26 Thread enh via Toybox
Luckily this was obvious because it broke the macOS build. --- toys/posix/getconf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 0001-getconf-fix-sense-of-if-conditional.patch Description: Binary data ___ Toybox mailing list

Re: [Toybox] [PATCH] getconf: add cache size sysconf() queries.

2023-10-26 Thread Rob Landley
On 10/25/23 18:08, enh via Toybox wrote: > It can otherwise be quite awkward to get at this --- riscv64 puts it all > neatly in the ELF auxv, x86-64 has it all in /proc, arm64 only exposes > L1 instruction/data line sizes. > > Annoyingly, none of musl, the BSDs, or Apple implement these sysconf()