Random idea...

Mike Frysinger vapier at gentoo.org
Tue Feb 21 15:13:38 UTC 2006


On Tuesday 21 February 2006 02:34, David Seikel wrote:
> On Tue, 21 Feb 2006 00:55:54 -0500 Rob Landley <rob at landley.net> wrote:
> > On Monday 20 February 2006 11:38 pm, Denis Dowling wrote:
> > > If you are going to go to the hassle of putting the globals in a
> > > struct why not just allocate this off the stack with something like
> > > alloca(). That way you don't have to do any of the union and
> > > anti-aliasing stuff and it has some hope of working if one applet
> > > calls another.
> >
> > By the way, the only time one applet calls another (not counting the
> > busybox multiplexor applet) is via the standalone shell, which is
> > currently not reentrant anyway (it has to exec /proc/self/exe).  With
> > a union we have the option to use memset to zero out the union in
> > run_applet_by_name().
>
> Bugger.
>
> I've been wanting to suggest going the other way for some time now.
> Letting applets access the functionality of other applets through a
> direct function call to that other applet instead of having to
> marshal up your command and arguments into a string and going via the
> shell.

doesnt mean it cant happen :)
-mike



More information about the busybox mailing list