[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Updates to ash and busybox



Erik Andersen <andersen@xmission.com> writes:

> On Tue Oct 19, 1999 at 02:05:49AM -0400, Adam Di Carlo wrote:
> > Erik Andersen <andersen@xmission.com> writes:
> > 
> > > On Sat Sep 25, 1999 at 01:18:34AM -0400, Adam Di Carlo wrote:
> > > > Well, I dunno.  I'll look thru the boot-floppies bug reports and see
> > > > what is to be seen.
> > 
> > Argh... sorry I didn't do this.
> 
> Ok, if you get a chance I'd like to know of anything you come across.
> 
> > > So, any more busybox feature requests?
> > 
> > /bin/true and /bin/false can be smaller, and be shell scripts....
> 
> Hmm.  Smaller than:
> 
>     extern int
>     true_main(int argc, char** argv)
>     {
> 	return( TRUE);
>     }
> 
>     extern int
>     false_main(int argc, char** argv)
>     {
> 	return( FALSE);
>     }
> 
> ??? (I already trashed the useless uage info). :-) I'm not sure how to
> make them smaller w/o writing them in asm and losing portability...

Kick argc and argv, might be a few instructions less.

May the Source be with you.
			Goswin


Reply to: