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

[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