Age | Commit message (Collapse) | Author |
|
what to exec. Add -f mode and a brief explanation of how to use it to replace
minicom. Add -l -l mode so you can turn any command into a server. And group
all of netcat's command line options under two CONFIG entries, so if you
disable both it doesn't use getopt at all.
|
|
|
|
older uClibc didn't include sys/socket.h from netinet/in.h, so add an
explicit #include for that too...
|
|
(decompress_unlzma.c). Also a slight #include cleanup, and I've been meaning
to put #include <unistd.h> into libbb.h since it's so darn common...
|
|
|
|
that and callers wind up typecasting it back.
|
|
the start of the path. (This should be under the same config option as
the standalone shell, but right now that's buried in the shell menu.)
Also add the ability to specify CONFIG_BUSYBOX_EXEC_PATH with /proc/self/exe
as an overrideable default.
|
|
moved the contents of libbb/bb_echo.c back into coreutils/echo.c,
which is a more reasonable place for them than libbb. this
forces anyone who wants echo and test to be builtin to ash to
also have them available as applets. their cost is very small,
and the number of people who wouldn't want them as applets is
also very small.
added warning about shell builtins vs. CONFIG_FEATURE_SH_STANDALONE_SHELL,
which conflicts with their use.
thanks to nathanael copa for debugging help.
some string size optimization in test.c may have been lost with
this commit, but this is a good new baseline.
|
|
|
|
|
|
remove #includes that libbb.h already does), plus a minor cleanup of
libbb.h to move #includes towards the top of the file where we can see 'em.
|
|
can figure out what header files to include, and override stuff that comes
later. But applets shouldn't include platform.h directly, they should include
busybox.h or libbb.h. Since busybox.h already includes libbb.h, move libbb.h
to the top of busybox.h and platform.h near the top of libbb.h (right after
bbconfig.h, which is something platform.h also needs access to).
While we're at it, move some stuff from busybox.h to libbb.h so we have one
big file to audit/clean up/try to make sense of instead of many.
|
|
This needs a second pass to:
+ add bb_daemon(unsigned char no_chdir, unsigned char no_close, const char*flag)
+ eventually globally export argc and argv, so we don't need to pass it to
bb_daemon().
|
|
on 64 bit platforms), and move #include <inttypes.h> to libbb.h.
|
|
|
|
head, and change all the callers.
|
|
almost everywhere, so be consistent.
|
|
- fix last.c to also look at the double-underscore UT_ defines.
|
|
easily
|
|
another... This adds bb_xspawn() support, which does vfork/exec. (I don't
know why using a static instead of a local adds ~40 bytes, but using
the local doesn't work...)
|
|
and bb_calloc() calls to bb_xzalloc() which allocates prezeroed memory but
only takes one argument (the size).
|
|
- rename get_kernel_revision() to get_linux_version_code
from Robert P. J. Day
|
|
handle packets out of sequence if some data goes through the buffer and
some doesn't, B) it works on systems that can't handle aligned access,
C) we just have one code path to worry about.
While we're at it, sizeof() and RESERVE_CONFIG_BUFFER() really don't combine
well, which is why md5sum has been reading and processing data 4 bytes at a
time. I suspect that the existence of CONFIG_MD5_SIZE_VS_SPEED to do loop
unrolling and such in the algorithm was an attempt to work around that bug.
|
|
option to delete the contents of the list when we delete the list is a
good thing.
|
|
anyway. This is at least less ugly than what was there before, and fixes
building all sources at once.
|
|
|
|
|
|
|
|
|
|
bb_xopen some more while at it.
Also use shorter boilerplate while at it.
|
|
text data bss dec hex filename
889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig
889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2
889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig
888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
|
|
Closes bug #735
|
|
routine depends on __uClinux__
|
|
|
|
- include the correct headers: applets need busybox.h while lib* need libbb.h
|
|
|
|
|
|
arpa/inet.h rather than netinet/in.h, otherwise we get warnings.
|
|
follow up in platform.h to set the #ifdef, but the workaround works for
everybody, so...
|
|
|
|
md5_sha1_sum.c to convert some #ifdef CONFIG to if(ENABLE).)
|
|
xfunc/BB_STRLEN_IMPLEMENTATION
|
|
- use shorter boilerplate while at it.
|
|
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
|
|
Somehow while applying the bb_do_delay patch a change slipped
in libbb.h that broke compilation.
libbb.h Line 355
extern char bb_path_mtab_file[];
This conflicts with mtab_file.c
#if defined(CONFIG_FEATURE_MTAB_SUPPORT)
const char bb_path_mtab_file[] = "/etc/mtab";
#else
const char bb_path_mtab_file[] = "/proc/mounts";
#endif
|
|
|
|
|
|
messages, C) can show the current association (if any) when called
with only one argument. Update the documentation a lot too.
Remind me to add a test suite for this thing. I think I've figured out
how to handle root-only testsuites...
|
|
usaging for e2fsprogs/fsck
|
|
for e2fsprogs/fsck
|