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] Entering the home stretch on ifconfig...

2013-06-06 Thread Bastian Bittorf
* 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 RX > bytes and such, the ioctl gives us a "virtual interface" (ala lo:0 I dont use the deprecated one, but /sys/class/net/ or

[Toybox] cleanup.html

2013-06-06 Thread Rob Landley
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 described all the ifconfig and uuencode/uudecode commits, but I'm not findi

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

2013-06-06 Thread Rob Landley
So what are the big remaining todo items in ifconfig? 1) Leftover custom option parsing in main() There are still three if/else chunks in main (lines 633 to 679) that aren't in the table (and also aren't indented right). The isdigit/default one is sort of halfway between "up" and "netmask",

Re: [Toybox] [CLEANUP] More thoughts on stat.c cleanup.

2013-06-06 Thread Rob Landley
Catching up on email... On 05/31/2013 04:37:16 PM, Felix Janda wrote: > What I really want is some variant of vprintf() that can start reading > values from a pointer location instead of a va_list. Unfortunately, > libc hasn't got one. Nor has it got "I passed you a pointer, > dereference it"