Go to file
Eric Andersen 852ff13fc4 Update to ar.c from Glenn McGrath. His comments follow:
------------------------------

the attached diff applies to the ar.c i originally submitted

Changes

Preserve dates now works.
Extracted files are set to the uid, gid and mode specified in the
archive.
Checks for valid end of header marker.
Correctly unpacks newer debian files. (has a '\n' character between
entries)
Added more comments.
Cleaned up code.
Added a last modified date to help keep track of versions.


TODO

Common functionality in ar.c are in tar.c should be merged, in
particular getOctal and extractSubFile.

Should all functions that are used by multiple file go in utilities.c ?
2000-06-16 04:56:40 +00:00
applets Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
archival Update to ar.c from Glenn McGrath. His comments follow: 2000-06-16 04:56:40 +00:00
console-tools Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
coreutils ln: fixed command line parser. Added support for "--" 2000-06-15 18:04:40 +00:00
docs + minor typo fix 2000-06-14 09:11:05 +00:00
editors Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
examples Some more updates and such... 2000-04-21 21:53:58 +00:00
findutils + removed some cruft left over from when lines could be too long. 2000-06-14 00:19:14 +00:00
init Minor doc fix. Added several bugs to the todo list. Fixed the way init 2000-05-31 20:04:38 +00:00
miscutils Some updates for better portability. 2000-05-16 20:07:38 +00:00
modutils Added a slightly modified version of Ron Alder's insmod patch. 2000-06-12 23:11:16 +00:00
networking Integrate Tomi Ollila's telnet. Costs 3k. :) 2000-06-14 20:42:57 +00:00
procps Fixed exit status for killall 2000-06-06 18:10:17 +00:00
scripts Update the sample inittab to add the "ctrlaltdel" action. 2000-02-09 04:40:25 +00:00
shell First pass at fixing tar segfault, and more portability updates. 2000-05-20 00:40:08 +00:00
sysklogd Syslogd will not go to background if "-n" is given. Better help 2000-06-07 21:08:25 +00:00
tests Remove trailing space char. 2000-06-14 22:16:59 +00:00
util-linux Added some comments and changed a variable name to be more meaningful. No 2000-06-16 00:26:51 +00:00
.cvsignore Stuf 1999-10-23 07:09:58 +00:00
ar.c Update to ar.c from Glenn McGrath. His comments follow: 2000-06-16 04:56:40 +00:00
AUTHORS A number of additional fixed from Pavel Roskin, note some more bugs in the 2000-06-02 03:21:42 +00:00
basename.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
busybox.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
busybox.def.h Integrate Tomi Ollila's telnet. Costs 3k. :) 2000-06-14 20:42:57 +00:00
busybox.mkll Fix sed regexp replacement, which I had hosed (thanks to 2000-04-06 07:37:35 +00:00
busybox.sh Use gcc -E instead of cpp to enhance portability for brain 2000-04-06 00:10:39 +00:00
busybox.spec Some more updates and such... 2000-04-21 21:53:58 +00:00
cat.c More Doc updates. cmdedit and more termio fixes. 2000-04-21 01:26:49 +00:00
Changelog ln: fixed command line parser. Added support for "--" 2000-06-15 18:04:40 +00:00
chmod_chown_chgrp.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
chroot.c This is a fix for chroot 2000-06-02 17:56:45 +00:00
chvt.c Latest and greatest. Some effort at libc5 (aiming towards newlib) 2000-04-28 00:18:56 +00:00
clear.c Upates to include copyright 2000 to everything 2000-04-13 01:18:56 +00:00
cmdedit.c First pass at fixing tar segfault, and more portability updates. 2000-05-20 00:40:08 +00:00
cmdedit.h More Doc updates. cmdedit and more termio fixes. 2000-04-21 01:26:49 +00:00
cp_mv.c Fixed parsing of arguments for cp 2000-06-08 18:06:37 +00:00
cut.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
date.c Fix 'date -u' 2000-06-06 22:17:43 +00:00
dd.c * cp -fa now works as expected for symlinks (it didn't before) 2000-05-10 05:05:45 +00:00
deallocvt.c * cp -fa now works as expected for symlinks (it didn't before) 2000-05-10 05:05:45 +00:00
define.sh + this is a small script for helping TargetWizard auto-generate 2000-02-23 18:17:35 +00:00
df.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
dirname.c * cp -fa now works as expected for symlinks (it didn't before) 2000-05-10 05:05:45 +00:00
dmesg.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
du.c * cp -fa now works as expected for symlinks (it didn't before) 2000-05-10 05:05:45 +00:00
dutmp.c Some updates for better portability. 2000-05-16 20:07:38 +00:00
echo.c * cp -fa now works as expected for symlinks (it didn't before) 2000-05-10 05:05:45 +00:00
fbset.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
fdflush.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
find.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
free.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
freeramdisk.c This patch 2000-06-04 05:08:29 +00:00
fsck_minix.c First pass at fixing tar segfault, and more portability updates. 2000-05-20 00:40:08 +00:00
grep.c + removed some cruft left over from when lines could be too long. 2000-06-14 00:19:14 +00:00
gunzip.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
gzip.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
halt.c Patch to make killall actually kill all PIDs with the specified name, 2000-04-07 06:00:07 +00:00
head.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
hostid.c Some formatting updates (ran the code through indent) 2000-02-08 19:58:47 +00:00
hostname.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
id.c Some more portability updates 2000-05-17 05:24:24 +00:00
init.c Minor doc fix. Added several bugs to the todo list. Fixed the way init 2000-05-31 20:04:38 +00:00
insmod.c Added a slightly modified version of Ron Alder's insmod patch. 2000-06-12 23:11:16 +00:00
install.sh Fix creation of /linuxrc 2000-04-18 23:32:10 +00:00
internal.h Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
kill.c Fixed exit status for killall 2000-06-06 18:10:17 +00:00
lash.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
length.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
LICENSE Fixed spelling of my name. Geez. 1999-12-11 23:25:59 +00:00
ln.c ln: fixed command line parser. Added support for "--" 2000-06-15 18:04:40 +00:00
loadacm.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
loadfont.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
loadkmap.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
logger.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
logname.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
ls.c * Fixed 'swapon -a' and 'swapoff -a', which were broken. 2000-06-07 17:28:53 +00:00
lsmod.c Upates to include copyright 2000 to everything 2000-04-13 01:18:56 +00:00
makedevs.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
Makefile Urgh. revert Makefile. again. Forgot to do the 'cvs update -d now' trick 2000-06-13 06:57:56 +00:00
math.c + works as a filter, now! 2000-06-12 22:59:12 +00:00
md5sum.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
messages.c Fixed segfaults for "chown -R" and "chgrp -R". Also added a message for "too 2000-06-06 18:11:46 +00:00
mkdir.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
mkfifo.c Don't allow mkfifo to create files such as "--help" 2000-06-04 05:17:35 +00:00
mkfs_minix.c Oops. Remove the debugging noise. 2000-06-06 22:13:39 +00:00
mknod.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
mkswap.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
mktemp.c Several more updates 2000-04-25 23:24:55 +00:00
more.c Added some comments and changed a variable name to be more meaningful. No 2000-06-16 00:26:51 +00:00
mount.c * Fixed 'swapon -a' and 'swapoff -a', which were broken. 2000-06-07 17:28:53 +00:00
mt.c Some updates for better portability. 2000-05-16 20:07:38 +00:00
mtab.c Some formatting updates (ran the code through indent) 2000-02-08 19:58:47 +00:00
nc.c "nc" exits silently on errors. This patch makes it print something before 2000-06-04 05:21:49 +00:00
nfsmount.c Some formatting updates (ran the code through indent) 2000-02-08 19:58:47 +00:00
nfsmount.h Some formatting updates (ran the code through indent) 2000-02-08 19:58:47 +00:00
nslookup.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
ping.c Implemented "ping -s", fixed error messages and argument parsing 2000-06-07 20:38:15 +00:00
poweroff.c Patch to make killall actually kill all PIDs with the specified name, 2000-04-07 06:00:07 +00:00
printf.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
ps.c A number of additional fixed from Pavel Roskin, note some more bugs in the 2000-06-02 03:21:42 +00:00
pwd.c A number of additional fixed from Pavel Roskin, note some more bugs in the 2000-06-02 03:21:42 +00:00
README More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
reboot.c Patch to make killall actually kill all PIDs with the specified name, 2000-04-07 06:00:07 +00:00
regexp.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
regexp.h Some formatting updates (ran the code through indent) 2000-02-08 19:58:47 +00:00
rm.c Fixed "rm foo" that had been broken while implementing "rm -- foo" 2000-06-14 17:39:41 +00:00
rmdir.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
rmmod.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
sed.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
setkeycodes.c Forgot this file... 2000-04-28 01:26:31 +00:00
sfdisk.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
sh.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
sleep.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
sort.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
swaponoff.c * Fixed 'swapon -a' and 'swapoff -a', which were broken. 2000-06-07 17:28:53 +00:00
sync.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
syslogd.c Syslogd will not go to background if "-n" is given. Better help 2000-06-07 21:08:25 +00:00
tail.c A number of additional fixed from Pavel Roskin, note some more bugs in the 2000-06-02 03:21:42 +00:00
tar.c * Fixed a small bug that could cause tar to emit warning messages 2000-06-09 20:51:50 +00:00
tee.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
telnet.c Integrate Tomi Ollila's telnet. Costs 3k. :) 2000-06-14 20:42:57 +00:00
test.c A number of additional fixed from Pavel Roskin, note some more bugs in the 2000-06-02 03:21:42 +00:00
TODO Integrate Tomi Ollila's telnet. Costs 3k. :) 2000-06-14 20:42:57 +00:00
touch.c Fix touch so it behaves itself (it could segfault in some cases). 2000-06-02 23:26:44 +00:00
tr.c More libc portability updates, add in the website (which has not been 2000-05-19 05:35:19 +00:00
true_false.c Upates to include copyright 2000 to everything 2000-04-13 01:18:56 +00:00
tty.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
umount.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
uname.c Fix touch so it behaves itself (it could segfault in some cases). 2000-06-02 23:26:44 +00:00
uniq.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
update.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
uptime.c Upates to include copyright 2000 to everything 2000-04-13 01:18:56 +00:00
usleep.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
utility.c + utility.c 2000-06-12 23:39:04 +00:00
uudecode.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
uuencode.c Add new apps md5sum uudecode uuencode, fix some minor formatting things. 2000-06-13 06:54:53 +00:00
wc.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
which.c "which" rewritten to use stat(). Fixes to improve its compatability 2000-06-05 23:41:27 +00:00
whoami.c Lots of updates. Finished implementing BB_FEATURE_TRIVIAL_HELP 2000-05-12 19:41:47 +00:00
yes.c Pavel fixed a segfault in yes. 2000-06-02 17:51:39 +00:00

Please see the LICENSE file for copyright information.
    
BusyBox combines tiny versions of many common UNIX utilities into a single
small executable. It provides minimalist replacements for most of the utilities
you usually find in fileutils, shellutils, findutils, textutils, grep, gzip,
tar, etc. BusyBox provides a fairly complete POSIX environment for any small or
emdedded system. The utilities in BusyBox generally have fewer options then
their full featured GNU cousins; however, the options that are included provide
the expected functionality and behave very much like their GNU counterparts.

BusyBox has been written with size-optimization and limited resources in mind.
It is also extremely modular so you can easily include or exclude commands (or
features) at compile time. This makes it easy to customize your embedded
systems. To create a working system, just add a kernel, a shell (such as ash),
and an editor (such as elvis-tiny or ae).

Busybox was originally written to support the Debian Rescue/Install disks, but
it also makes an excellent environment for any small or embedded system.

As of version 0.20 there is a version number. : ) Also as of version 0.20,
BusyBox is now modularized to easily allow you to build only the components you
need, thereby reducing binary size. To turn off unwanted Busybox components,
simply edit the file busybox.def.h and comment out the components you do not
need using C++ style (//) comments.

After the build is complete a busybox.links file is generated which is then
used by 'make install' to create symlinks to the busybox binary for all
compiled in functions.  By default, 'make install' will place the symlink
forest into `pwd`/_install unless you have defined the PREFIX environment
variable (i.e. make PREFIX="/tmp/foo" install)

Please feed suggestions, bug reports, insults, and bribes back to:
	Erik Andersen 
	<andersen@lineo.com>
	<andersee@debian.org>

<blatent plug>
Many thanks to go to Lineo for paying me to work on busybox. 
</blatent plug>