[Toybox] [PATCH] Don't use xfdopen

2013-08-04 Thread idunham
grep in hg tip won't build without this patch. xfdopen is not needed (we already have the file open, and we wouldn't want to die early if by some peculiar chance that were irrelevant). diff -r b570b2bfbf7d toys/pending/grep.c --- a/toys/pending/grep.c Sun Aug 04 01:22:49 2013 -0500 +++ b/to

Re: [Toybox] Toybox post from lamiawo...@skymesh.com.au requires approval

2013-06-27 Thread idunham
On Wed, Jun 26, 2013 at 10:35:08PM -0500, Rob Landley wrote: > This got caught in the spam filter due to the poster not being > subscribed to the list... > ==quoted message from lamiaworks , > subject "[PATCH] Re: modinfo..."== > >Looking from puppy linux, the -d is in module-init-tools ve

Re: [Toybox] [PATCH] modinfo -b, -k with tests

2013-06-27 Thread idunham
Attached is a patch that adds -b and -k to modinfo, with tests. Output of -b differs from module-init-tools by one slash (apparently, they add a / after basedir, then append /lib/modules/...) I don't know a better way to test that -k works. -b might be better tested using a symlink to /. I'm a

[Toybox] modinfo test

2013-06-13 Thread idunham
Here's a test for modinfo; it expects ne2k-pci and 8390 to be modules. I chose those as lower-churn modules that are likely for VMs... If /proc/modules is absent, the test is skipped. (In the process of writing the tests, I discovered that busybox has some incompatabilities, like the 1-module limi

Re: [Toybox] Entering the home stretch on ifconfig...

2013-06-09 Thread idunham
On Sat, Jun 08, 2013 at 02:40:04PM -0500, Rob Landley wrote: > On 06/07/2013 01:11:50 AM, Bastian Bittorf wrote: > >* Rob Landley [07.06.2013 07:57]: > >> It looks like show_iface() enumerates /proc/net/dev and then calls > >> readconf() to do ioctl() based enumeration. The /proc one gives > >us R

Re: [Toybox] cleanup.html

2013-06-06 Thread idunham
On Thu, Jun 06, 2013 at 08:05:11PM -0500, Rob Landley wrote: > Indexing the ongoing cleanup work: > > http://landley.net/toybox/cleanup.html > > I'll try to update that page as I add more stuff. (I'm aware how > painfully obvious it is that I'm not a webpage designer.) > > I _thought_ I'd desc

Re: [Toybox] Looking at nl

2013-05-25 Thread idunham
On Sat, May 25, 2013 at 10:08:51PM -0600, Terrel Shumway wrote: > On Sat, May 25, 2013 at 5:36 PM, wrote: > > I thought I'd look at what nl takes, since it's not much more than > > looping over some lines, incrementing, and formatting the output. > > The POSIX reference page is: > > http://pubs.o

[Toybox] Looking at nl

2013-05-25 Thread idunham
I thought I'd look at what nl takes, since it's not much more than looping over some lines, incrementing, and formatting the output. The POSIX reference page is: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nl.html There are a few little "fun" details, though. -Fixed length strings.

Re: [Toybox] Hello, I would like to carve out a project

2013-05-25 Thread idunham
On Fri, May 24, 2013 at 03:51:46PM -0600, Terrel Shumway wrote: > On Fri, May 24, 2013 at 11:44 AM, Rob Landley wrote: > > I've been using git reasonably heavily for several years, and I _still_ find > > its user interface obnoxious and confusing and waste ten minutes looking up > > how to do some

Re: [Toybox] Hello, I would like to carve out a project

2013-05-23 Thread idunham
On Thu, May 23, 2013 at 04:13:37PM -0600, Terrel Shumway wrote: > I listened to Rob's "Why Toybox" talk and I understand the urgency. > > My recent coding experience has been in Python, but I did some C a long > time ago. I would like to help. > > Is there a important command that a semi-newbie c

[Toybox] Commit 897: size reduction, and new warning

2013-05-11 Thread idunham
I'm impressed: -rwxr-xr-x 1 143640 May 11 23:16 toybox -rwxr-xr-x 1 252748 May 10 21:32 toybox-895 -rwxr-xr-x 1 166499 May 11 23:16 toybox_unstripped (Coincidentally, this is the output of ls -lgo with coreutils; toybox appears to have no way to do a full ls with neither group nor owner...but I'd e

Re: [Toybox] Differences between modinfo in toybox and standard version

2013-04-25 Thread idunham
On Wed, Apr 24, 2013 at 03:04:53AM -0500, Rob Landley wrote: > On 04/23/2013 12:25:47 AM, idun...@lavabit.com wrote: > >On Mon, Apr 22, 2013 at 07:36:18PM -0500, Rob Landley wrote: > >> On 04/22/2013 05:40:28 PM, Isaac Dunham wrote: > >> >The kernel maps all occurences of '-' in module names to '_'

[Toybox] missing header in nbd_client

2013-04-24 Thread idunham
nbd_client needs for IPPROTO_TCP on musl; netdb.h includes it already on glibc, but POSIX only specifies it for netinet/in.h. (It just got annoying to see make allyesconfig; make CC=musl-gcc fail on something this trivial.) Isaac Dunham diff -r 37e668afd008 toys/pending/nbd_client.c --- a/toys/p

Re: [Toybox] Differences between modinfo in toybox and standard version

2013-04-22 Thread idunham
On Mon, Apr 22, 2013 at 07:36:18PM -0500, Rob Landley wrote: > On 04/22/2013 05:40:28 PM, Isaac Dunham wrote: > >Hello, > >The kernel maps all occurences of '-' in module names to '_', so > >that if you load a module such as snd-pcm-oss.ko or phc-k8.ko, it > >is presented by lsmod and /proc/modules