My os has no fork/exec - can I use busybox?

Mike Frysinger vapier at gentoo.org
Thu Nov 5 22:44:30 UTC 2009


On Thursday 05 November 2009 17:19:10 busby1 at llnl.gov wrote:
> I'm writing user-level code on a high performance computer (IBM Blue
> Gene).  The OS is missing some system calls, including fork/exec.  I was
> hoping to use busybox to fill in some functionality, maybe like this:
> 
>   ret = bb_system("ls -l foo*");
> 
> E.g., I would need to build all the commands into the shell, and then
> call the shell itself using a library function, instead of the usual
> fork/exec (or system(3)) call.
> 
> I've been studying the busybox config system, mailing list archives,
> and code architecture.  It seems like most of the parts are there, but
> I don't see any way to put together a busybox system that can be called
> from user code without fork/exec.  Am I missing something?

look into the PREFER_APPLETS option, and you probably want to re-use the NOMMU 
config option.  it should "work" for some applets, but probably not all.  
might be useful to have another config option that is like "only use applets".
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20091105/6377d9dc/attachment.pgp>


More information about the busybox mailing list