All-integer version (but it does use an unsigned long long) which fixesthe problems of the previous version (used floating point, overflowed, didn't
round properly). The comments at the top of the file are worth reading;
especially note 2 concerning "ls -sh".
Add some missing includes to kill warnings when building with the defaultConfig.h and using gcc's -fno-builtin. There are probably other files
with the similar problems.
Also, if building against uClibc, don't include asm/unistd.h in syscalls.c
and module_syscalls.c.
This is a busybox port of the Minix shell. It is reasonably capable,handles all the basic stuff (for, case/esac, while, if/then/else), and
is very small (adds just 38k on x86). It is not as rigorously correct
about Bourne semantics as bash, but for most things it is quite
workable. There is still some work to be done to further shrink it (it
has its own globbing functions instead of using the libc ones, for
example), but it is quite usable as is.
-Erik
Fix a nasty hard to spot bug found by Ralph Siemsen <ralphs@netwinder.org>.This would cause it to obliterates the end of the strtab section, so
symbol lookups would fail and then it would crash. Ugh. This should
fix things for people having trouble with insmod.
This a an ash applet I put together. It is similar to the one puttogether by vodz, but uses newer sources, has the removed features
commented out instead of simply deleted (so they could be re-enabled)
and the builtins all work. This adds 72k.
-Erik
Some more cleanups. Of special importance, never free a pipethat still has running jobs. Instead, we ignore it and expect
it to be cleaned by the background job stuff.
-Erik
Fix the build process so it does not do the evil #ifdef BB_FOO stuff.Build exactly one .o file per function, and let the linker throw away
the junk it doesn't want.
-Erik