Re: [dev] [sbase] [patch v3] Add df(1)

2013-07-23 Thread Steve Dee
On Tue, Jul 23, 2013 at 10:29 AM, sin wrote: > On Tue, Jul 23, 2013 at 10:18:01AM -0400, Steve Dee wrote: >> I don't have time to do this for the next few days. Actually, I had a bit of time before running off into the woods. Here's something that compiles on both OpenBSD and Linux. The conditiona

Re: [dev] [sbase] [patch v3] Add df(1)

2013-07-23 Thread sin
On Tue, Jul 23, 2013 at 10:18:01AM -0400, Steve Dee wrote: > Nice. > > BSD doesn't have mntent or /proc, but does have getmntinfo. I think we > can create a common interface that requires a minimal amount of > conditional compilation (though obviously no conditional compilation > is better than an

Re: [dev] [sbase] [patch v3] Add df(1)

2013-07-23 Thread Bjartur Thorlacius
On 07/23/2013 02:18 PM, Steve Dee wrote: BSD doesn't have mntent or /proc, but does have getmntinfo. I think we Well, FreeBSD has some sort of a /proc, even if intentionally incompatible with Linux.

Re: [dev] [sbase] [patch v3] Add df(1)

2013-07-23 Thread Steve Dee
Nice. BSD doesn't have mntent or /proc, but does have getmntinfo. I think we can create a common interface that requires a minimal amount of conditional compilation (though obviously no conditional compilation is better than any conditional compilation), but I don't have time to do this for the ne

RE: [dev] slock: anti OOM killer - proper priv dropping - etc.

2013-07-23 Thread Robert Schneider
> In dontkillme(), wouldn't it be desirable to close the file descriptor? Shit, good catch. [1_dontkillme_v2.patch] -- ziggomatic 1_dontkillme_v2.patch Description: Binary data

[dev] [sbase] [patch v3] Add df(1)

2013-07-23 Thread sin
Clean up the code a bit. Behave like -a by default. >From 01cbe6a93df9d71e0fe184405895763d4498ac7f Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 22 Jul 2013 13:17:32 +0100 Subject: [PATCH] Add df(1) --- Makefile | 1 + df.c | 53 + 2 file

[dev] [PATCH][sbase] add man page for test

2013-07-23 Thread Christian Hesse
Hello everybody, this adds a man page for test in sbase (and fixes make install). Please apply. Thanks! -- main(a){char*c=/*Schoene Gruesse */"B?IJj;MEH" "CX:;",b;for(a/*Chris get my mail address:*/=0;b=c[a++];) putchar(b-1/(/* gcc -o si

[dev] [sbase] [patch v2] Add df(1)

2013-07-23 Thread sin
Cut it down to half the number of lines. Defaults to 512 byte blocks. >From 422efb6c391acc9daeb3500cbc5cb1811999a154 Mon Sep 17 00:00:00 2001 From: sin Date: Mon, 22 Jul 2013 13:17:32 +0100 Subject: [PATCH] Add df(1) --- Makefile | 1 + df.c | 65

Re: [dev] slock: anti OOM killer - proper priv dropping - etc.

2013-07-23 Thread koneu
In dontkillme(), wouldn't it be desirable to close the file descriptor? ~koneu On 22.07.2013, at 19:37, Robert Schneider wrote: > 0_smallstuff.patch: Fix missing newlines and so on. > > 1_dontkillme.patch: Disable Linux's out-of-memory killer for slock if > the system has the configuration kno