[dev] [quark] [PATCH] correct information in README

2014-04-10 Thread Jakob Kramer
There is wrong information about the installation directory and about how to run quark in the README. >From d8a3795aef804715fee2e367cba4f843bcd4b2da Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Thu, 10 Apr 2014 20:43:49 +0200 Subject: [PATCH] correct information in README --- README

[dev] [sbase] sort: add -k support

2014-04-17 Thread Jakob Kramer
; is given. A correct implementation of -u should rather check if the sort function thinks they were the same. The -k flag is not complete in that it does not support modifiers specific to a single key definition. Regards, Jakob Kramer >From 1ac4b7f4339c78b08cdb942b310a4c653ce8d1b1 Mon Sep 17

Re: [dev] [sbase] sort: add -k support

2014-04-17 Thread Jakob Kramer
On 04/17/2014 02:56 PM, Jakob Kramer wrote: > Here is my patch to add -k support to sort and remove the -u flag from > it Here is my patch to add -k support and *fix* the -u flag instead. Please forget about the other patch. >From 43b297c3791ef0b5a5c551c1b6050e222e559610 Mon Sep 17 00:0

[dev] [ubase] [PATCH 1/2] su: zero out cryptpass

2014-04-29 Thread Jakob Kramer
>From 734e8e4471c808eee52021d10497429ea3fc5269 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 30 Apr 2014 00:10:40 +0200 Subject: [PATCH 1/2] su: zero out cryptpass --- su.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/su.c b/su.c index 9beb7d0..16ce6c2 100644 --- a/su.c ++

[dev] [ubase] [PATCH 2/2] su: use "constant time" memcmp to compare password

2014-04-29 Thread Jakob Kramer
>From a9e593c8ee498443a2a260382945c49e14c424cc Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 30 Apr 2014 00:20:31 +0200 Subject: [PATCH 2/2] su: use "constant time" memcmp to compare password --- su.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-)

Re: [dev] [ubase] [PATCH 2/2] su: use "constant time" memcmp to compare password

2014-04-30 Thread Jakob Kramer
The patch that I sent before does not check if both passwords are of the same length, which is bad. >From a4001bf30fb44245fc7da12b61fcf7df5f762058 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 30 Apr 2014 00:20:31 +0200 Subject: [PATCH 2/2] su: use "constant time" memc

[dev] [ubase] [PATCH] su: zero out encrypted passwords

2014-04-30 Thread Jakob Kramer
Zero out the spwd structure and the calculated password. This time using explicit_bzero. >From 94c271d60120f398b0d50e3258c50b237c9d6b7b Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 30 Apr 2014 14:15:26 +0200 Subject: [PATCH] su: zero out encrypted passwords --- su.c | 2 ++ 1 f

[dev] [sbase] [PATCH] add -b option and simplify code

2014-05-03 Thread Jakob Kramer
8 patches attached >From 51f945a3920fd334429855a10bf8467bc9cef4e5 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 3 May 2014 18:28:20 +0200 Subject: [PATCH 1/8] sort: linebuf is no global --- sort.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sort.c b/sor

[dev] [sbase] [PATCH 1/3] sort: work with signed integers as well

2014-05-06 Thread Jakob Kramer
next step is to parse input as decimals, but this is still needed so you get an error if you try to specify negative numbers as fields. >From e6eda6282fda98257925ffbaf71bac9b87c0d522 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 13:35:06 +0200 Subject: [PATCH 1/3] sort: w

[dev] [sbase] [PATCH 2/3] sort: ignore trailing newline while sorting

2014-05-06 Thread Jakob Kramer
without this it would sort a blank line *after* lines that have leading white space. >From 8dcf7e1a8070661280436c3cf8b5caa53a75dce6 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 13:37:05 +0200 Subject: [PATCH 2/3] sort: ignore trailing newline while sorting --- sort.c

[dev] [sbase] [PATCH 3/3] sort: add support for "per-keydef" flags

2014-05-06 Thread Jakob Kramer
-k 2n is possible! >From fea5f42e048fb11c17413b455cfcc55c73fde701 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 16:07:05 +0200 Subject: [PATCH 3/3] sort: add support for "per-keydef" flags --- sort.1 | 27 +++---

[dev] [sbase] [PATCH] renice(1): renice is not PASTE

2014-05-06 Thread Jakob Kramer
renice(1): renice is not PASTE >From d19240961385f720e3422b619b47151232462418 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 6 May 2014 16:13:22 +0200 Subject: [PATCH] renice(1): renice is not PASTE --- renice.1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ren

[dev] [sbase] [PATCH] sort: simplify linecmp, rename curr => tail

2014-05-06 Thread Jakob Kramer
--- sort.c | 17 +++-- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/sort.c b/sort.c index 203490b..a00e902 100644 --- a/sort.c +++ b/sort.c @@ -29,7 +29,7 @@ struct kdlist { }; static struct kdlist *head = NULL; -static struct kdlist *curr = NULL; +static struct k

[dev] [sbase] [PATCH] add -t flag to sort

2014-06-02 Thread Jakob Kramer
add -t flag to sort >From 7722341e211f8072ea816087dd5994723a354e1c Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Thu, 15 May 2014 20:08:17 +0200 Subject: [PATCH] add -t flag to sort --- sort.1 | 28 +-- sort.c |

[dev] [sbase] [PATCH] remove unnecessary calls to realloc from tee

2014-06-02 Thread Jakob Kramer
[PATCH] remove unnecessary calls to realloc from tee >From 0ec20b994eab3fdd7949fbd8c6503990eb1ff94f Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Tue, 3 Jun 2014 00:15:52 +0200 Subject: [PATCH] remove unnecessary calls to realloc from tee --- tee.c | 19 +-- 1 f

[dev] [sbase] [PATCH] cols: simplify filling with spaces

2014-06-04 Thread Jakob Kramer
Use printf("%*s", n, "") instead of allocating a string filled with spaces. >From 3cf11b384e2cf0a61c3bbf6a887d301897fecb08 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 4 Jun 2014 17:46:22 +0200 Subject: [PATCH] cols: simplify filling with spaces Use printf(&

Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-21 Thread Jakob Kramer
Am 21.06.2014 16:05, schrieb Eric Pruitt: On Sat, Jun 21, 2014 at 09:58:16AM +0200, Roberto E. Vargas Caballero wrote: I do not understand why CEIL should return an integer value. From my point of view it should return a value of any type that is the ceil of the parameter. Can you explain a bit

Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-24 Thread Jakob Kramer
I don't really get why using would make the program more complex, add to SLOC, make it slower... I don't think it is a big loss to use -lm, as it is mostly a problem with the libc you might be using if you have to link with an extra library for math functions. Also, specifying something as a

Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-24 Thread Jakob Kramer
whole number On 2014-06-24 Jakob Kramer wrote: > Finally, I don't think that reimplementing a function that already is > in the standard library for "more efficiency" makes any sense. > Correctness is most important, and I rather trust my C library > implementation on that.

Re: [dev] suckless assembly at 31C3

2014-11-15 Thread Jakob Kramer
Hey there, On 11/15/2014 10:17 PM, younix wrote: > If you are want to come to the 31C3 and also be a part of the suckless > community there, please reply on this mail. very good idea! You can add me to the list. I will also attend the 31C3, probably from beginning to end, and I would definitely

[dev] [sbase] [PATCH] sort: support sorting decimal numbers correctly

2015-01-31 Thread Jakob Kramer
>From ffc6ad35ebb3bcfe598e89d86ae64170699d63a8 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 31 Jan 2015 19:12:18 +0100 Subject: [PATCH] sort: support sorting decimal numbers correctly sorry not to have used strtold from the beginning --- sort.c | 12 1 file changed

[dev] [sbase] [PATCH] Use size_t for number of lines in linebuf

2015-01-31 Thread Jakob Kramer
.nlines and .capacity are used as array indices and should therefore be of type size_t. >From 29c93cf7ac5530f7144f869c6e7a964a971db062 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 31 Jan 2015 20:57:29 +0100 Subject: [PATCH] Use size_t for number of lines in linebuf .nlines

[dev] [sbase] [PATCH] sort manpage: fix key definition

2015-02-01 Thread Jakob Kramer
>From b1004cffcaca6008896f03cf351a8231bd505c3c Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 1 Feb 2015 17:45:51 +0100 Subject: [PATCH] sort manpage: fix key definition --- sort.1 | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/sort.1 b/sor

[dev] [sbase] [PATCH] sort: minor manual page adjustments

2015-02-01 Thread Jakob Kramer
>From 52c38b07eaa58ef9fb09bdc775f425ea7908b142 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 1 Feb 2015 21:45:35 +0100 Subject: [PATCH] sort: minor manual page adjustments --- sort.1 | 16 ++-- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/sort.1 b/sor

[dev] [sbase][PATCH] getlines: last line of file should always have a newline

2015-02-10 Thread Jakob Kramer
This is a useful behavior if you want to reorder the lines, because otherwise you might end up with originally two lines on one, e.g. $ echo -ne "foo\nbar" | sort barfoo >From 6a2b31c06be91a64fe6ea7acea65c00db3a336e0 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date

[dev] [sbase][PATCH 1/3] add en*alloc functions

2015-02-10 Thread Jakob Kramer
>From 59ab03dc28a6d20283ac1cf47665b690deff3954 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 11 Feb 2015 01:40:52 +0100 Subject: [PATCH 1/3] add en*alloc functions --- libutil/ealloc.c | 38 +++--- util.h | 6 +- 2 files changed,

[dev] [sbase][PATCH 2/3] add estrndup

2015-02-10 Thread Jakob Kramer
>From 3aeae0148a75a02e57c4d19b00b68dbb1773d848 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 11 Feb 2015 01:59:04 +0100 Subject: [PATCH 2/3] add estrndup --- libutil/ealloc.c | 17 + util.h | 2 ++ 2 files changed, 19 insertions(+) diff --git a/libu

[dev] [sbase][PATCH 3/3] make use of en*alloc functions

2015-02-10 Thread Jakob Kramer
>From e161205d2af1e163fb55f9e5683deaec76433a90 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Wed, 11 Feb 2015 02:08:17 +0100 Subject: [PATCH 3/3] make use of en*alloc functions --- expr.c | 8 ++-- grep.c | 16 sort.c | 9 ++--- 3 files changed, 8 inserti

[dev] [sbase] [PATCH] sort: use size_t for pointer offsets

2015-02-14 Thread Jakob Kramer
00:00:00 2001 From: Jakob Kramer Date: Sun, 8 Feb 2015 20:22:05 +0100 Subject: [PATCH] sort: use size_t for pointer offsets The estrtoll function is meant to simplify the parse_keydef function. --- sort.c | 44 +++- 1 file changed, 27 insertions(+),

[dev] [sbase] [PATCH] sort: fix syntax error

2015-03-23 Thread Jakob Kramer
>From eed5857550f2d16ff7c454e6dd9342905bc7a8e0 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Mon, 23 Mar 2015 18:53:38 +0100 Subject: [PATCH] sort: fix syntax error --- sort.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sort.c b/sort.c index cea25aa..47434dc 100644 --- a/sor

[dev] [sbase] [PATCH 1/3] sort: add support for delimiter strings

2015-04-05 Thread Jakob Kramer
s(-) >From fbf77d0517644f1642f2067d3e0bede828e563f7 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 1 Feb 2015 21:00:37 +0100 Subject: [PATCH 1/3] sort: add support for delimiter strings Instead of just single characters. This also fixes some bugs in columns(). Example bug: $ printf "a b\nc b x\n&quo

[dev] [sbase] [PATCH 2/3] sort: apply -b only to "custom" keys

2015-04-05 Thread Jakob Kramer
--- sort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) >From 67834255a7da065ef7cd2fcc5275e5b072161f00 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 5 Apr 2015 20:31:28 +0200 Subject: [PATCH 2/3] sort: apply -b only to "custom" keys --- sort.c | 3 ++- 1 fi

[dev] [sbase] [PATCH 3/3] sort: allow 0 as key's end_char

2015-04-05 Thread Jakob Kramer
--- sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) >From 0bdff11745f4491a70566ab25b5996c78655a562 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sun, 5 Apr 2015 20:33:07 +0200 Subject: [PATCH 3/3] sort: allow 0 as key's end_char --- sort.c | 2 +- 1 file changed, 1 i

[dev] [sbase] [PATCH 4/4] sort: allow keys where start_col > end_col

2015-04-05 Thread Jakob Kramer
Useful in (rare) cases like: $ printf ' c\nx a\n0 b\n' | sort -k 2,1.3 And this is how POSIX wants it. --- sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) >From 8c82c0f3772a1e657e39ebcb716023d94abd53d3 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Su

Re: [dev] [PATCH] Added dvtm and abduco to rocks.md on website

2015-04-06 Thread Jakob Kramer
On 04/06/2015 04:43 PM, Greg Reagle wrote: I am including the patch as an attachment so webmail doesn't mess up the formatting. You can push your edits directly to the repo. Also see the http://suckless.org/other_projects page, where dvtm is already listed. /rocks and /other_projects overlap

[dev] [sbase] sponge

2013-06-25 Thread Jakob Kramer
Hi! I wrote a sponge program, but I am not fully convinced of it yet. What do you think? Regards, Jakob Kramer commit 3565860b40ea4a8220d5029e3d74b437a9205cda Author: Jakob Kramer Date: Tue Jun 25 19:55:37 2013 +0200 added sponge diff --git a/Makefile b/Makefile index 9aeb5c4..7f91bac

[dev] [sbase] chvt.c does not need to be executable

2013-06-25 Thread Jakob Kramer
so why keep it executable... commit 8512381861878f2123a50a162a0d1ea550157da5 Author: Jakob Kramer Date: Tue Jun 25 20:10:39 2013 +0200 removed executable bits from chvt.c diff --git a/chvt.c b/chvt.c old mode 100755 new mode 100644

Re: [dev] [sbase] chvt.c does not need to be executable

2013-06-25 Thread Jakob Kramer
u...@netbeisser.de wrote: On Tue, Jun 25, 2013 at 08:24:08PM +0200, Jakob Kramer wrote: so why keep it executable... commit 8512381861878f2123a50a162a0d1ea550157da5 Author: Jakob Kramer Date: Tue Jun 25 20:10:39 2013 +0200 removed executable bits from chvt.c diff --git a/chvt.c b

[dev] [sbase] sponge v2

2013-06-26 Thread Jakob Kramer
alled without arguments to write to stdout. This version uses util/concat.c to copy stdin to a temporary file and writing it back to the output file afterwards. Now the temporary file creation is also done safer than before. Regards, Jakob Kramer diff --git a/LICENSE b/LICENSE index d959501..8f1caaf 1

Re: [dev] [sbase] sponge v2

2013-07-05 Thread Jakob Kramer
On 07/05/2013 04:48 PM, Roberto E. Vargas Caballero wrote: >> Sponge's "killer feature" is that it doesn't open the output file until >> after the input is finished. Using it in a pipeline removes this, >> because it's something else instead of sponge writing to the file. > > > There is something

[dev] [PATCH] fix SHELL being set to the usr's home directory

2013-10-18 Thread Jakob Kramer
Nice long file name for a patch... >From 81aaa0b985d80a097cba316a583eac5336ed3028 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Fri, 18 Oct 2013 21:57:24 +0200 Subject: [PATCH] fix SHELL being set to the usr's home directory --- su.c | 2 +- 1 file changed, 1 insertion(+), 1