Rob Landley [Fri, 8 Sep 2006 17:22:05 +0000 (17:22 -0000)]
Shrinkage/cleanup from Tito.
Rob Landley [Fri, 8 Sep 2006 17:21:19 +0000 (17:21 -0000)]
Fix warnings.
Rob Landley [Fri, 8 Sep 2006 16:59:08 +0000 (16:59 -0000)]
Second drop. More infrastructure in place, especially for parsing pipelines.
The minimal version got a couple hundred bytes bigger, partly because it's
broken into more functions but mostly because it now dynamically reallocates
and frees everything with no hard-coded limits. (I thought about making
that optional, but there's a limit to what I can debug and maintain. It
should still be reasonably NOMMU friendly, the allocations are small and
short lived, and shouldn't contribute noticeably to long-term memory
fragmentation.)
Rob Landley [Fri, 8 Sep 2006 00:41:48 +0000 (00:41 -0000)]
A quick cleanup pass of some low-hanging mess.
Rob Landley [Fri, 8 Sep 2006 00:01:02 +0000 (00:01 -0000)]
Bugfix for: echo '
123456789' | sed 's/./|&/5'
Denis Vlasenko [Thu, 7 Sep 2006 17:05:44 +0000 (17:05 -0000)]
Fix (hopefully) bug 976. Need more thorough audit.
Restore erroneously removed FEATURE_UDHCP_SYSLOG.
Denis Vlasenko [Thu, 7 Sep 2006 16:20:03 +0000 (16:20 -0000)]
getty, sulogin: convert to using bb_msg for syslog output
Denis Vlasenko [Thu, 7 Sep 2006 16:03:45 +0000 (16:03 -0000)]
fix if (ENABLE_FEATURE_SYSLOG & (...)) - should be &&
Denis Vlasenko [Thu, 7 Sep 2006 06:02:39 +0000 (06:02 -0000)]
Add CONFIG_FEATURE_SYSLOG which controls whether
bb_xx_msg will ever try to send output to syslog.
Add "select CONFIG_FEATURE_SYSLOG" to relevant applets.
This allows to omit syslog code if we do not have
any syslog-capable applets in the build.
Denis Vlasenko [Thu, 7 Sep 2006 05:43:38 +0000 (05:43 -0000)]
CONFIG_FEATURE_COMPRESS_USAGE was impossible to turn on
if !CONFIG_NITPICK
Denis Vlasenko [Thu, 7 Sep 2006 05:09:22 +0000 (05:09 -0000)]
adding files missed in prev updates (forgot about svn add)
Rob Landley [Wed, 6 Sep 2006 22:56:38 +0000 (22:56 -0000)]
Denis Vlasenko has started to put stuff on his BusyBox home page, so index it.
Denis Vlasenko [Wed, 6 Sep 2006 19:02:46 +0000 (19:02 -0000)]
removed a lot of trailing \n in bb_msg() calls. It is added
automatically by function itself.
Denis Vlasenko [Wed, 6 Sep 2006 18:36:50 +0000 (18:36 -0000)]
Implement optional syslog logging using ordinary
bb_xx_msg calls, and convert networking/* to it.
The rest of bbox will be converted gradually.
Bernhard Reutner-Fischer [Wed, 6 Sep 2006 15:28:32 +0000 (15:28 -0000)]
- strip 399424 off the bss by making decompress_uncompress buffers config buffers.
Compile tested (too lazy to look for a small .Z on the net).
$ size busybox.old busybox
text data bss dec hex filename
859555 10232 645732 1515519 171fff busybox.old
859683 10232 246308 1116223 11083f busybox
$ make bloatcheck
function old new delta
uncompress 1036 1160 +124
inbuf 2116 4 -2112
outbuf 4100 4 -4096
htab 131072 - -131072
codetab 262144 - -262144
------------------------------------------------------------------------------
(add/remove: 0/2 grow/shrink: 1/2 up/down: 124/-399424) Total: -399300 bytes
Bernhard Reutner-Fischer [Wed, 6 Sep 2006 13:24:39 +0000 (13:24 -0000)]
- mdev and grep use xregcomp. Closes bug #1021
Rob Landley [Tue, 5 Sep 2006 14:00:21 +0000 (14:00 -0000)]
Vladimir Dronnikov (ybrnj80 at yandex dot ru) pointed out that my cleanup of
his code introduced a bug (an extra backslash in the CIFS mount string).
Rob Landley [Tue, 5 Sep 2006 13:48:21 +0000 (13:48 -0000)]
The bb_ prefixes were removed from xasprintf() and xopen() a month ago (in
svn 15767).
Denis Vlasenko [Tue, 5 Sep 2006 09:45:30 +0000 (09:45 -0000)]
run_shell.c: style fix
Denis Vlasenko [Tue, 5 Sep 2006 09:36:19 +0000 (09:36 -0000)]
xfunc: fix: && -> &. Also nuked two double semicolons...
Rob Landley [Tue, 5 Sep 2006 03:22:19 +0000 (03:22 -0000)]
Might as well commit this to have the history. It's not linked in to the
applet list yet (and won't be until it can replace lash, I'm not having five
shells in menuconfig at once), but you can build it with scripts/individual
and mostly this is checked in so I can bloatcheck future versions against it
easily....
This is about as small as a shell can get and still be a shell.
Rob Landley [Mon, 4 Sep 2006 19:43:26 +0000 (19:43 -0000)]
Thinko.
Rob Landley [Mon, 4 Sep 2006 18:59:39 +0000 (18:59 -0000)]
Patch from Natanael Copa to make start-stop-daemon just use readlink and
strcmp to check if a program is already running.
Denis Vlasenko [Sun, 3 Sep 2006 17:11:34 +0000 (17:11 -0000)]
sulogin: fix bug: -tNNN didn't work
Denis Vlasenko [Sun, 3 Sep 2006 16:33:58 +0000 (16:33 -0000)]
dpkg: fix buffer overflow (bug 983)
Denis Vlasenko [Sun, 3 Sep 2006 15:49:40 +0000 (15:49 -0000)]
uuencode: common implementation for wget and uuencode (closing bug 694)
Denis Vlasenko [Sun, 3 Sep 2006 14:23:29 +0000 (14:23 -0000)]
archival: added O_TRUNC so that when we overwrite files on unpack,
we truncate them. Also spotted & fixed hard to trigger bug
with extension handling.
Denis Vlasenko [Sun, 3 Sep 2006 14:04:33 +0000 (14:04 -0000)]
tar: revert older fix (non-portable), added new one.
testsuite tar-extracts-all-subdirs now passes.
Denis Vlasenko [Sun, 3 Sep 2006 12:31:59 +0000 (12:31 -0000)]
zcip: bb_error_msg had stray newlines; small optimization in opt parsing
Denis Vlasenko [Sun, 3 Sep 2006 12:29:53 +0000 (12:29 -0000)]
zcip: minor fixes
Denis Vlasenko [Sun, 3 Sep 2006 12:28:32 +0000 (12:28 -0000)]
zcip: fix stdout/err versus syslog output.
Incomplete: xfunc() would not respect this. TODO.
Denis Vlasenko [Sun, 3 Sep 2006 12:27:25 +0000 (12:27 -0000)]
zcip: getopt -> bb_getopt_ulflags
Denis Vlasenko [Sun, 3 Sep 2006 12:26:06 +0000 (12:26 -0000)]
zcip: convert lots of zero-initialized locals
in zcip_main() to statics in bss.
Denis Vlasenko [Sun, 3 Sep 2006 12:23:56 +0000 (12:23 -0000)]
zcip: use xfunc() where appropriate
Denis Vlasenko [Sun, 3 Sep 2006 12:21:59 +0000 (12:21 -0000)]
replacing func() with xfunc() where appropriate
Denis Vlasenko [Sun, 3 Sep 2006 12:20:36 +0000 (12:20 -0000)]
zcip: apply patch from
http://bugs.busybox.net/view.php?id=1005
zcip does not claim another IP after defending
Denis Vlasenko [Sat, 2 Sep 2006 18:40:10 +0000 (18:40 -0000)]
tar: tar xf foo.tar dir/dir did not extract all subdirs.
Added testsuite entry for this
Denis Vlasenko [Sat, 2 Sep 2006 17:53:16 +0000 (17:53 -0000)]
ping: bind -> xbind
Denis Vlasenko [Sat, 2 Sep 2006 16:57:59 +0000 (16:57 -0000)]
ping(6): use htons instead of SWAP_BE.
Denis Vlasenko [Sat, 2 Sep 2006 16:17:30 +0000 (16:17 -0000)]
ping: implement -I option
Denis Vlasenko [Sat, 2 Sep 2006 16:16:23 +0000 (16:16 -0000)]
ping6: resolve interface name to number early.
gcc is more efficient at truncating int to int16
via cast, use that instead of &.
Denis Vlasenko [Sat, 2 Sep 2006 16:13:36 +0000 (16:13 -0000)]
Sync ping and ping6 a bit, fix style and indentation.
Denis Vlasenko [Sat, 2 Sep 2006 16:11:44 +0000 (16:11 -0000)]
Fix endianness issue in ping6
Bernhard Reutner-Fischer [Sat, 2 Sep 2006 15:30:26 +0000 (15:30 -0000)]
- patch from Csaba Henk to make the "User-Agent" header field configurable.
Rob Landley [Fri, 1 Sep 2006 17:38:23 +0000 (17:38 -0000)]
Walter Harms contributed a section on scripting languages. (I trimmed it
a bit.)
Rob Landley [Fri, 1 Sep 2006 08:10:44 +0000 (08:10 -0000)]
Vladimir Dronnikov also submitted a CIFS support patch to mount, which I
heavily reworked here and probably broke. Tomorrow I need to set up a
copy of samba to test against. (This compiles, I make no promises beyond that.)
Rob Landley [Wed, 30 Aug 2006 16:50:00 +0000 (16:50 -0000)]
Bernhard Fischer complained about moving --sort-common.
Rob Landley [Tue, 29 Aug 2006 21:46:10 +0000 (21:46 -0000)]
There's some strange bug in glibc that triggers if you combine the
--gc-sections linker flag with static linking. If this happens, then
the "stdout" variable (used by printf() and such) will only work if stdout
is _not_ redirected. I.E "./busybox" prints stuff, but "./busybox | cat"
does not produce any output. (But even when redirected, "write(1,"blah",4);"
continues to work just fine.)
This is clearly a glibc bug, but to avoid triggering it I've moved the
--gc-sections flag so it only gets added when we're not statically linking.
If somebody would like to go poke Ulrich Drepper, you can trivially reproduce
this with a "hello world" program, ala:
gcc -static -Wl,--gc-sections hello.c && (./a.out | cat)
Bernhard Reutner-Fischer [Tue, 29 Aug 2006 20:21:33 +0000 (20:21 -0000)]
- set version back to 1.2.0 like it was before. Add at least -svn to the Extraversion to be able to distinguish it from the now old 1.2.0 release
Rob Landley [Tue, 29 Aug 2006 19:41:06 +0000 (19:41 -0000)]
Svn 16007 broke the build under gcc 4.0.3. This fixes up some of the damage
(the e2fsprogs directory is too twisty and evil to easily fix, but I plan
to rewrite it anyway so I'll just bump that up in priority a bit).
Bernhard Reutner-Fischer [Mon, 28 Aug 2006 23:39:36 +0000 (23:39 -0000)]
- it's a mistake to remove lib-specific prefixes from libraries; still the removal should be complete.
Bernhard Reutner-Fischer [Mon, 28 Aug 2006 23:31:54 +0000 (23:31 -0000)]
- pull from busybox_scratch: r15829:15850
Various fixes, cleanups and shrinkage:
saves 952 Bytes:
text data bss dec hex filename
1087742 15853 790632 1894227 1ce753 ../busybox/busybox.old
1086790 15853 790632 1893275 1ce39b busybox
via:
# scripts/bloat-o-meter ../busybox/busybox_unstripped.old busybox_unstripped
function old new delta
ipcrm_main 756 822 +66
getval - 61 +61
maybe_set_utc - 40 +40
udhcpc_main 2896 2912 +16
md5_hash_block 428 437 +9
opt 8 16 +8
qgravechar 106 110 +4
make_bitmap 292 295 +3
inflate_unzip 2056 2059 +3
add_partition 1412 1414 +2
__parsespent 156 158 +2
qrealloc 41 42 +1
format - 1 +1
catv_main 313 314 +1
watch_main 293 292 -1
varunset 81 80 -1
part 1 - -1
check_if_skip 837 836 -1
start_stop_daemon_main 840 837 -3
create_lost_and_found 175 172 -3
supress_non_delimited_lines 4 - -4
static.l 4 - -4
static.c 5 1 -4
bsd_sum_file 237 233 -4
eval2 338 332 -6
arithmetic_common 166 158 -8
cmpfunc 22 5 -17
cksum_main 294 275 -19
cmp_main 465 439 -26
dd_main 1535 1508 -27
rmmod_main 376 333 -43
cut_file 727 644 -83
ipcs_main 3809 3721 -88
cut_main 722 614 -108
date_main 1443 1263 -180
remove_ids 222 - -222
------------------------------------------------------------------------------
(add/remove: 3/4 grow/shrink: 11/18 up/down: 217/-853) Total: -636 bytes
Mike Frysinger [Mon, 28 Aug 2006 23:24:38 +0000 (23:24 -0000)]
need libsepol in addtion to libselinux
Bernhard Reutner-Fischer [Mon, 28 Aug 2006 21:21:25 +0000 (21:21 -0000)]
- do maintainers duty by bumping version to 1.3.0-pre0;
pullup r15828 from busybox_scratch
Rob Landley [Mon, 28 Aug 2006 20:30:27 +0000 (20:30 -0000)]
Bugfix from Jason Schoon: send the right signal with -s.
Rob Landley [Mon, 28 Aug 2006 20:16:42 +0000 (20:16 -0000)]
More allbareconfig fixes.
Rob Landley [Mon, 28 Aug 2006 20:04:46 +0000 (20:04 -0000)]
Jordan Crouse submitted a patch to only include xregcomp.c when we actually
use it, thus fixing building against uClibc with regex support disabled.
Rob Landley [Mon, 28 Aug 2006 19:40:08 +0000 (19:40 -0000)]
No real need for my_query_module() and this eliminates some type-punned
pointer warning on certain gcc versions (and saves 38 bytes).
Bernhard Reutner-Fischer [Mon, 28 Aug 2006 13:29:41 +0000 (13:29 -0000)]
- pgf(?) found and fixed that missing dependency (usage: .config, IIRC), so remove the now unneeded NOTPARALLEL clause
Rob Landley [Mon, 28 Aug 2006 09:41:49 +0000 (09:41 -0000)]
Unbreak allbareconfig a bit. (The telnetd.c fix is a perfect example of why
applets which are a forest of #ifdefs are unmaintainable.)
Rob Landley [Thu, 24 Aug 2006 20:00:44 +0000 (20:00 -0000)]
Antti Seppala (with dots over the last two a's) wants our getty to initialize
the terminal the way mingetty does instead of the way agetty does. It's
a bit ugly for somebody else to be writing to a console sitting at a
login: prompt, but it's uglier when newline doesn't work as expected if
they do.
Rob Landley [Tue, 22 Aug 2006 23:50:11 +0000 (23:50 -0000)]
Patch from Yann Morin so modprobe won't return failure if the module gets
loaded while it's running (ala multi-device hotplug).
Rob Landley [Tue, 22 Aug 2006 23:40:28 +0000 (23:40 -0000)]
"Jordan Crouse" <jordan.crouse@amd.com> says:
The following patch makes coreutils/test.c act fail gracefully if getgroups()
returns a -1. Â This fixes a problem on the One Laptop Per Child ROM image
whereby we were getting odd Memory exhausted messages for '[' and 'test'.
Found by Mitch Bradley <wmb@firmworks.com>
(Tweaked by Rob: no need to initialize a static to NULL, or realloc something
that's only allocated when it's NULL.)
Rob Landley [Mon, 21 Aug 2006 17:42:03 +0000 (17:42 -0000)]
Michael Opdenacker spotted that makefile should use () instead of {}.
Rob Landley [Mon, 21 Aug 2006 16:03:38 +0000 (16:03 -0000)]
Oops, Michael pointed out that my cleanup left some dead code in there.
Rob Landley [Sun, 20 Aug 2006 23:13:33 +0000 (23:13 -0000)]
Yann E. Morin spotted a broken check_ld macro.
Rob Landley [Sun, 20 Aug 2006 22:12:18 +0000 (22:12 -0000)]
Michael Opdenacker contributed a readahead applet.
Bernhard Reutner-Fischer [Sun, 20 Aug 2006 20:01:24 +0000 (20:01 -0000)]
- typo s/ENABLE_WGET_LONG_OPTIONS/ENABLE_FEATURE_WGET_LONG_OPTIONS/g
Bernhard Reutner-Fischer [Sun, 20 Aug 2006 17:35:13 +0000 (17:35 -0000)]
- merge -r15463:15564 from busybox_scratch branch through these changesets:
------------------------------------------------------------------------
r15465 | aldot | 2006-06-21 20:48:06 +0200 (Wed, 21 Jun 2006) | 3 lines
- use CONFIG_BUSYBOX_EXEC_PATH as before it one was broken by a recent revert.
- use xchdir() since all is invain if it fails there anyways, supposedly
------------------------------------------------------------------------
r15466 | aldot | 2006-06-21 20:55:16 +0200 (Wed, 21 Jun 2006) | 2 lines
- adjust docs to take CONFIG_BUSYBOX_EXEC_PATH into account.
------------------------------------------------------------------------
r15467 | aldot | 2006-06-21 21:31:24 +0200 (Wed, 21 Jun 2006) | 18 lines
- partial fallout of my TREE_USED touchup against gcc-4.2: rip unused vars, save
s 144 bytes
text data bss dec hex filename
862434 10156 645924 1518514 172bb2 busybox.old
862322 10156 645892 1518370 172b22 busybox
function old new delta
z_len 4 - -4
textend 4 - -4
part_nb 4 - -4
insize 4 - -4
ifile_size 4 - -4
do_link 4 - -4
new_text 70 60 -10
ipaddr_list_link 33 23 -10
gzip_main 898 822 -76
------------------------------------------------------------------------------
(add/remove: 0/6 grow/shrink: 0/3 up/down: 0/-120) Total: -120 bytes
------------------------------------------------------------------------
r15468 | aldot | 2006-06-21 21:43:05 +0200 (Wed, 21 Jun 2006) | 19 lines
- remove useless global exports
function old new delta
rpm_main 940 1601 +661
rpm_getstring 107 112 +5
rpm_getint 148 153 +5
loop_through_files 103 106 +3
fileaction_dobackup 115 113 -2
fileaction_list 5 - -5
rpm_getcount 42 - -42
extract_cpio_gz 161 - -161
rpm_gettags 504 - -504
------------------------------------------------------------------------------
(add/remove: 0/4 grow/shrink: 4/1 up/down: 674/-714) Total: -40 bytes
text data bss dec hex filename
862322 10156 645892 1518370 172b22 busybox.old
862290 10156 645892 1518338 172b02 busybox
------------------------------------------------------------------------
r15555 | aldot | 2006-06-30 14:10:11 +0200 (Fri, 30 Jun 2006) | 22 lines
- shrink syslog a little bit, move a big buffer (for 'line') off the bss, fold s
emaphore stuff into single caller manually.
stats:
function old new delta
logMessage 395 427 +32
message 1245 1257 +12
opts - 4 +4
small 1 - -1
local_logging 4 - -4
doRemoteLog 4 - -4
circular_logging 4 - -4
syslogd_main 1299 1285 -14
static.res 36 16 -20
.rodata 186650 186586 -64
static.line 1025 - -1025
------------------------------------------------------------------------------
(add/remove: 1/5 grow/shrink: 2/3 up/down: 48/-1136) Total: -1088 bytes
cow@s37:~/src/busybox_scratch$ size sysklogd/syslogd.o{.orig,}
text data bss dec hex filename
3723 348 5242 9313 2461 sysklogd/syslogd.o.orig
3697 348 4188 8233 2029 sysklogd/syslogd.o
==============================================================================
Overall bloatcheck for the changeset mentioned above:
function old new delta
rpm_main 953 1608 +655
logMessage 395 427 +32
message 1245 1257 +12
opts - 4 +4
rpm_getstring 107 110 +3
rpm_getint 148 151 +3
loop_through_files 103 104 +1
small 1 - -1
fileaction_dobackup 115 113 -2
z_len 4 - -4
textend 4 - -4
part_nb 4 - -4
local_logging 4 - -4
insize 4 - -4
ifile_size 4 - -4
do_link 4 - -4
doRemoteLog 4 - -4
circular_logging 4 - -4
fileaction_list 5 - -5
new_text 70 60 -10
ipaddr_list_link 33 23 -10
clear_bufs 31 21 -10
syslogd_main 1287 1273 -14
builtin_help 190 176 -14
static.res 36 16 -20
builtin_source 229 199 -30
rpm_getcount 42 - -42
gzip_main 842 786 -56
.rodata 227176 227112 -64
lash_main 609 527 -82
busy_loop 3883 3739 -144
extract_cpio_gz 155 - -155
rpm_gettags 501 - -501
static.line 1025 - -1025
------------------------------------------------------------------------------
(add/remove: 1/15 grow/shrink: 6/12 up/down: 710/-2221) Total: -1511 bytes
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 18:29:40 +0000 (18:29 -0000)]
- typo: s/optarg/nprobes_str; fixes segfault as reported by Raphael HUCK
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 17:44:52 +0000 (17:44 -0000)]
- remove CRIS specific CFLAG from generic flags-checking.
Bernhard Reutner-Fischer [Fri, 18 Aug 2006 17:22:23 +0000 (17:22 -0000)]
- remove last reminiscents of IN_BUSYBOX
Rob Landley [Thu, 17 Aug 2006 19:07:20 +0000 (19:07 -0000)]
The kernel can't handle umount /dev/hdc, we have to do it through mtab,
except that we still have to work when there is no mtab.
Oh, and while we're at it, take advantage of the fact that modern processors
avoid branches via conditional assignment where possible. ("x = a ? b : c;"
turns into "x = c; if (a) x = b;" because that way there's no branch to
potentially mispredict and thus never a bubble in the pipeline. The if(a)
turns into an assembly test followed by a conditional assignment (rather
than a conditional jump).) So since the compiler is going to do that _anyway_,
we might as well take advantage of it to produce a slightly smaller binary.
So there.
Rob Landley [Thu, 17 Aug 2006 04:45:24 +0000 (04:45 -0000)]
Timo Scheffler pointed out that OpenWRT isn't listed.
Rob Landley [Wed, 16 Aug 2006 22:25:43 +0000 (22:25 -0000)]
Add link to BusyBox Weekly News. (Yeah, another timesink.)
Rob Landley [Wed, 16 Aug 2006 22:13:56 +0000 (22:13 -0000)]
New entry about backporting fixes.
Rob Landley [Wed, 16 Aug 2006 21:10:27 +0000 (21:10 -0000)]
Update the tinyutils page to mention microperl, LUA, buildroot,
gentoo embedded...
Rob Landley [Tue, 15 Aug 2006 21:37:55 +0000 (21:37 -0000)]
Bernhard Fischer pointed out some leftover debris needing cleanup.
Rob Landley [Thu, 10 Aug 2006 21:46:43 +0000 (21:46 -0000)]
Make a warning go away when standalone shell is disabled.
Rob Landley [Thu, 10 Aug 2006 01:09:37 +0000 (01:09 -0000)]
Patch from Chris Steel to fix mdev deleting device nodes.
Rob Landley [Thu, 10 Aug 2006 01:08:41 +0000 (01:08 -0000)]
Ok, features.h already defines _OPEN_SOURCE (and complains if it's already
defined), yet it's not doing it for scripts/individual for some reason.
(I hate fighting with header files.)
Rob Landley [Wed, 9 Aug 2006 20:56:23 +0000 (20:56 -0000)]
Another whack at scripts/individual. Now builds 212 applets.
Rob Landley [Wed, 9 Aug 2006 20:55:35 +0000 (20:55 -0000)]
Update usage to talk about the new shared subtree stuff in mount.
Rob Landley [Wed, 9 Aug 2006 19:51:13 +0000 (19:51 -0000)]
Vladimir Dronnikov convinced me to twiddle the semantics of the new shared
subtree stuff to look more like http://lwn.net/Articles/159077/ thinks
they should.
Rob Landley [Tue, 8 Aug 2006 12:54:02 +0000 (12:54 -0000)]
Fix a typo (|| instead of |) and remove two comments about a problem fixed
in the previous patch.
Rob Landley [Tue, 8 Aug 2006 01:39:49 +0000 (01:39 -0000)]
Add shared subtree support, suggested by Vladimir Dronnikov. Also break out a
few new (unfinished) config options, which I intend to make hidden (but
enabled) when CONFIG_NITPICK is disabled. Getting the .config infrastructure
to do that is non-obvious, it seems...
Rob Landley [Tue, 8 Aug 2006 00:47:17 +0000 (00:47 -0000)]
Using lstat() instead of stat() means that attempting to loopback mount
a symlink doesn't work.
Rob Landley [Sun, 6 Aug 2006 20:41:11 +0000 (20:41 -0000)]
Make a warning go away on 64-bit systems.
Rob Landley [Sun, 6 Aug 2006 02:13:36 +0000 (02:13 -0000)]
Teach md5sum and sha1sum to work the way other applets do so I don't have to
teach scripts/individual new tricks. And while I'm at it, teach
scripts/individual other new tricks. Now builds 198 applets, some of which
I should teach it to hardlink together because they're really the same app...
Rob Landley [Sat, 5 Aug 2006 00:41:39 +0000 (00:41 -0000)]
scripts/individual now builds 171 applets. Some of them may even work. :)
Rob Landley [Fri, 4 Aug 2006 22:02:55 +0000 (22:02 -0000)]
There are a number of reasons for reinventing printf(). Writing status to
stdout is not one of them.
Rob Landley [Fri, 4 Aug 2006 21:12:14 +0000 (21:12 -0000)]
We haven't got a CONFIG_APT_GET.
Rob Landley [Fri, 4 Aug 2006 21:05:33 +0000 (21:05 -0000)]
Digging up my old "make standalone" stuff from a year ago:
http://busybox.net/lists/busybox/2005-September/015766.html
I renamed it "individual" to not confuse it with the standalone shell. (Which
it isn't compatible with for obvious reasons.) Configure busybox (I did
make defconfig), then run scripts/individual and it'll build an individual
version of each applet in the "build" subdirectory.
Currently it builds 146 and fails to build 104 applets out of "make defconfig".
I haven't taught it about multi-file applets yet (like tar), or the ones where
two applets get built from the same source (for example, zcat is a trivial
variant of gunzip so there is no zcat.c). But here's a start.
Rob Landley [Fri, 4 Aug 2006 20:39:56 +0000 (20:39 -0000)]
Add busybox_old to distclean.
Rob Landley [Fri, 4 Aug 2006 20:20:03 +0000 (20:20 -0000)]
Add comments to all the functions in this file documenting what they're for.
Rob Landley [Fri, 4 Aug 2006 20:19:01 +0000 (20:19 -0000)]
Ok, that's not a typo, that's just me not thinking.
Rob Landley [Fri, 4 Aug 2006 20:15:18 +0000 (20:15 -0000)]
Typo.
Rob Landley [Fri, 4 Aug 2006 19:16:31 +0000 (19:16 -0000)]
Now that we have xopen3(), it's just plain unclean to have xopen() with
O_CREAT. Two users are still doing it (and thus getting permissions 777),
I'm not sure what permissions they should be using but here they are
changed to xopen3(). This costs us a dozen or so bytes, but removing the
777 from xopen() should get some of that back.
Rob Landley [Fri, 4 Aug 2006 17:26:58 +0000 (17:26 -0000)]
Use xopen3() instead of an after-the-fact chown.
Rob Landley [Fri, 4 Aug 2006 05:24:58 +0000 (05:24 -0000)]
Thinko spotted by Vladimir Dronnikov.