[dev] [sbase] [PATCH] ls: add -r flag to reverse sort order.

2013-10-05 Thread Markus Teich
--- Heyho, i updated my patch to add -r flag to ls as suggested by Alex S. --Markus ls.1 | 3 +++ ls.c | 12 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ls.1 b/ls.1 index 00ae32b..f10c929 100644 --- a/ls.1 +++ b/ls.1 @@ -21,6 +21,9 @@ lists directories themsel

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Strake
On 05/10/2013, Thorsten Glaser wrote: >>Yes, sorry, I missed that it bound to IPv4 alone by default. Should >>work now. Thanks. > > Nope – maybe it’s firewalled (looks like pf block drop)? > > tg@blau:~ $ nc -v6 starchlinux.org 80 > nc: connect to starchlinux.org port 80 (tcp) failed: Operation ti

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Thorsten Glaser
Strake dixit: >> “HTTP/1.1 200 Schön”?! > >What, is this improper usage? No, just funny. >Yes, sorry, I missed that it bound to IPv4 alone by default. Should >work now. Thanks. Nope – maybe it’s firewalled (looks like pf block drop)? tg@blau:~ $ nc -v6 starchlinux.org 80 nc: connect to starchl

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Strake
On 05/10/2013, Thorsten Glaser wrote: > Strake dixit: > >>http://starchlinux.org/ > > “HTTP/1.1 200 Schön”?! What, is this improper usage? > One rather important thing: starchlinux.org has got an RR > but the httpd does not listen on IP, only on Legacy IP. Please > fix that, because otherwi

Re: [dev] [announce] Starch Linux is bootable and self-hosting

2013-10-05 Thread Thorsten Glaser
Strake dixit: >http://starchlinux.org/ “HTTP/1.1 200 Schön”?! One rather important thing: starchlinux.org has got an RR but the httpd does not listen on IP, only on Legacy IP. Please fix that, because otherwise, a good part of the ’net can’t ac‐ cess your site. bye, //mirabilos -- [ Natur

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-05 Thread Alexander S.
2013/10/5 Rob : > On Fri, Oct 04, 2013 at 05:45:56PM +0400, Alexander S. wrote: >> 2013/10/4 Raphaël Proust : >> If we want to retain this patch, I'd suggest reversing array after >> sorting, not multiplying by `sortorder' in comparison functions. This >> avoids code duplication. > > I disagree - r

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-05 Thread Markus Teich
Rob wrote: > I disagree - rather than adding a sort call and changing the program's > runtime complexity, can't we just reduce the amount of lines _and_ > duplication like this: > > @@ -89,9 +93,9 @@ entcmp(const void *va, const void *vb) > const Entry *a = va, *b = vb; > > - if(tfl

[dev] Re: [st] [PATCH] Avoid buffer overflows in the case of key-mapped strings.

2013-10-05 Thread Mark Edgar
Oops, I realized after a pull that I tried to break style (by declaring a local not at the top of a function). I've corrected that and also rebased these three on the current head. -Mark 0001-Simplify-Mod1-logic-in-kpress-eliminating-locals-and.patch Description: Binary data 0003-New-ttys

Re: [dev] [sbase] [PATCH] ls: add option to reverse the sort order

2013-10-05 Thread Rob
On Fri, Oct 04, 2013 at 05:45:56PM +0400, Alexander S. wrote: > 2013/10/4 Raphaël Proust : > If we want to retain this patch, I'd suggest reversing array after > sorting, not multiplying by `sortorder' in comparison functions. This > avoids code duplication. I disagree - rather than adding a sort

[dev] Re: [st] [PATCH] Avoid buffer overflows in the case of key-mapped strings.

2013-10-05 Thread Mark Edgar
OK, I've split this change into three patches. The cumulative affect of these is: kpress() is now much more straightforward and has no memcpy() calls. selnotify() now supports MODE_ECHO. I couldn't remove the cast there however. A new ttysend() function replaces all ttywrite();techo() sequences.