any real rationale for "for_all_interfaces()"??
Rob Landley
rob at landley.net
Tue Jun 20 08:56:58 PDT 2006
On Monday 19 June 2006 7:45 am, Robert P. J. Day wrote:
> On Mon, 19 Jun 2006, walter harms wrote:
> > how many functions will iterate over all interfaces ? NTL: glibc has
> > a series of if_* functions. perhaps this is something you need ?
>
> perhaps. it just seemed to me that, while it's clearly useful to have
> some kind of mechanism to iterate over [insert generic kind of object
> here], the way it's done in interface.c to iterate over the system's
> interfaces seems of limited usefulness as it's not really extensible.
> and it seems overly complicated as well.
>
> i'm still looking at it to see if i can simplify it somewhat.
I'm not even _looking_ at that until I've simplified the shared archiver
infrastructure. But if you submit a patch, I'll look at that. :)
Everybody understands a for loop when they see it. This is a good thing.
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list