oweals/busybox.git
17 years ago- small size tweaks
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:29:50 +0000 (21:29 -0000)]
- small size tweaks

17 years ago- make read_stduu() and read_base64() void, small size tweaks
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:29:32 +0000 (21:29 -0000)]
- make read_stduu() and read_base64() void, small size tweaks

17 years ago- small size tweak
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:28:36 +0000 (21:28 -0000)]
- small size tweak

17 years ago- add C99 bool type for setups that support it.
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 21:27:18 +0000 (21:27 -0000)]
- add C99 bool type for setups that support it.

17 years agoAnnounce 1.3.2 and 1.4.0 on busybox.net
Denis Vlasenko [Sat, 20 Jan 2007 20:38:57 +0000 (20:38 -0000)]
Announce 1.3.2 and 1.4.0 on busybox.net

17 years agohead is 1.5.0.svn now
Denis Vlasenko [Sat, 20 Jan 2007 20:02:29 +0000 (20:02 -0000)]
head is 1.5.0.svn now

17 years agoreleasing busybox 1.4.0 1_4_0
Denis Vlasenko [Sat, 20 Jan 2007 19:57:57 +0000 (19:57 -0000)]
releasing busybox 1.4.0

17 years agofixing bugs revealed by randomconfig runs
Denis Vlasenko [Sat, 20 Jan 2007 16:54:19 +0000 (16:54 -0000)]
fixing bugs revealed by randomconfig runs

17 years agofixes for amd64 compilation
Denis Vlasenko [Sat, 20 Jan 2007 01:47:44 +0000 (01:47 -0000)]
fixes for amd64 compilation

17 years agols: stop doing time() for each file in "ls -l"
Denis Vlasenko [Fri, 19 Jan 2007 22:03:06 +0000 (22:03 -0000)]
ls: stop doing time() for each file in "ls -l"
ls: use fully-buffered stdout (can it be problematic
on VERY slow/hanging NFS mounts?)

17 years agostrdup -> xstrdup
Denis Vlasenko [Fri, 19 Jan 2007 21:33:19 +0000 (21:33 -0000)]
strdup -> xstrdup
sed: de-obfuscate piece of code

17 years agols: use get_cached_username/groupname
Denis Vlasenko [Fri, 19 Jan 2007 21:24:17 +0000 (21:24 -0000)]
ls: use get_cached_username/groupname

17 years agoopenvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup code
Denis Vlasenko [Fri, 19 Jan 2007 21:19:35 +0000 (21:19 -0000)]
openvt,getty,vfork_daemon_rexec,mount: tighten up fd cleanup code
(will close all fd's > 2 on daemonization now)
getty: fix "getty -" support, and also do not try to chown/chmod "-"
telnetd: fix "lost ctty" bug
Yet another attempt on saner function names:
bb_sanitize_server_stdio(0/1) -> bb_sanitize_stdio() + bb_daemonize();

17 years agofsck: dead code removal; also disable progress indicator code
Denis Vlasenko [Fri, 19 Jan 2007 02:04:09 +0000 (02:04 -0000)]
fsck: dead code removal; also disable progress indicator code
(doesn't look good to me)

17 years agofsck: stop using strtok
Denis Vlasenko [Fri, 19 Jan 2007 02:03:14 +0000 (02:03 -0000)]
fsck: stop using strtok

17 years agofsck: move functions around so that related ones are nearby
Denis Vlasenko [Fri, 19 Jan 2007 02:02:33 +0000 (02:02 -0000)]
fsck: move functions around so that related ones are nearby
no actual code changes

17 years agofsck: small optimization
Denis Vlasenko [Fri, 19 Jan 2007 02:01:19 +0000 (02:01 -0000)]
fsck: small optimization

17 years agofix potentially misaligned 32-bit accesses
Denis Vlasenko [Thu, 18 Jan 2007 15:42:00 +0000 (15:42 -0000)]
fix potentially misaligned 32-bit accesses

17 years ago- move the smallint that is platform dependant to it's proper place
Bernhard Reutner-Fischer [Thu, 18 Jan 2007 10:32:09 +0000 (10:32 -0000)]
- move the smallint that is platform dependant to it's proper place

17 years agoUse char for smallint on CRIS as well.
Peter Kjellerstedt [Thu, 18 Jan 2007 10:26:07 +0000 (10:26 -0000)]
Use char for smallint on CRIS as well.

17 years ago- reinstate paranoia check in wrapf().
Bernhard Reutner-Fischer [Thu, 18 Jan 2007 08:41:22 +0000 (08:41 -0000)]
- reinstate paranoia check in wrapf().

17 years agofix subtle bug inherited from dash
Denis Vlasenko [Thu, 18 Jan 2007 01:12:57 +0000 (01:12 -0000)]
fix subtle bug inherited from dash

17 years agostop using global variable needlessly
Denis Vlasenko [Thu, 18 Jan 2007 00:53:35 +0000 (00:53 -0000)]
stop using global variable needlessly

17 years agosmallint can be a char for amd64 too
Denis Vlasenko [Thu, 18 Jan 2007 00:16:06 +0000 (00:16 -0000)]
smallint can be a char for amd64 too

17 years agosed,get_line_from_file: improve comments
Denis Vlasenko [Wed, 17 Jan 2007 23:16:16 +0000 (23:16 -0000)]
sed,get_line_from_file: improve comments

17 years ago- stty's visible() function and catv's guts are identical. Merge them into
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:51:00 +0000 (19:51 -0000)]
- stty's visible() function and catv's guts are identical. Merge them into
  an appropriate libbb function.

17 years ago- remove superfluous define that expanded to "!strcmp"
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:46 +0000 (19:46 -0000)]
- remove superfluous define that expanded to "!strcmp"
- remove some dead code

17 years ago- reuse return code of vsnprintf to avoid pulling in strlen
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:33 +0000 (19:46 -0000)]
- reuse return code of vsnprintf to avoid pulling in strlen

17 years ago- merge display_changed() and display_all()
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:46:12 +0000 (19:46 -0000)]
- merge display_changed() and display_all()
  This one is a bit risky but did work for me in cursory testing..

17 years ago- peruse get_terminal_width_height and remove legacy code for ancient
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:45:36 +0000 (19:45 -0000)]
- peruse get_terminal_width_height and remove legacy code for ancient
  slowaris versions.

17 years ago- rewrite find_param to use index_in_str_array
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:45:14 +0000 (19:45 -0000)]
- rewrite find_param to use index_in_str_array

17 years ago- manually inline tty_value_to_baud and remove string_to_baud_or_die
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:44:59 +0000 (19:44 -0000)]
- manually inline tty_value_to_baud and remove string_to_baud_or_die
  (cleanup)

17 years ago- constify some read-only members and remove superfluous casts
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:44:24 +0000 (19:44 -0000)]
- constify some read-only members and remove superfluous casts
  (cleanup)

17 years ago- reuse option_mask32 for state-handling in main
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:42:30 +0000 (19:42 -0000)]
- reuse option_mask32 for state-handling in main
- improve check for errors from fcntl

17 years ago- replace some occurances of "kernel" with busybox
Bernhard Reutner-Fischer [Wed, 17 Jan 2007 19:36:01 +0000 (19:36 -0000)]
- replace some occurances of "kernel" with busybox

17 years agohttpd: use fd#1 in inetd mode
Denis Vlasenko [Sun, 14 Jan 2007 17:06:11 +0000 (17:06 -0000)]
httpd: use fd#1 in inetd mode
inetd: micro style fix

17 years agoinetd: preparatory patch, no code changes
Denis Vlasenko [Sun, 14 Jan 2007 14:46:18 +0000 (14:46 -0000)]
inetd: preparatory patch, no code changes

17 years agoRename bb_sanitize_stdio -> bb_sanitize_server_stdio
Denis Vlasenko [Sun, 14 Jan 2007 13:12:06 +0000 (13:12 -0000)]
Rename bb_sanitize_stdio -> bb_sanitize_server_stdio
(name is still bad - it doesn't hint that function
may do daemonization trick for you if asked to).
Small fixes to fakeidentd.

17 years agosmall size optimization
Denis Vlasenko [Sun, 14 Jan 2007 12:47:27 +0000 (12:47 -0000)]
small size optimization

17 years agoisrv.h: add copyright info
Denis Vlasenko [Sun, 14 Jan 2007 12:34:48 +0000 (12:34 -0000)]
isrv.h: add copyright info

17 years agoI forgot "svn add" AGAIN! :(
Denis Vlasenko [Sun, 14 Jan 2007 12:32:30 +0000 (12:32 -0000)]
I forgot "svn add" AGAIN! :(

17 years agofakeidentd: avoid extra fcntl calls
Denis Vlasenko [Sun, 14 Jan 2007 12:31:26 +0000 (12:31 -0000)]
fakeidentd: avoid extra fcntl calls

17 years agofakeidentd: fix daemon mode (was thinking that it is in
Denis Vlasenko [Sun, 14 Jan 2007 12:07:25 +0000 (12:07 -0000)]
fakeidentd: fix daemon mode (was thinking that it is in
inetd-wait mode and dying after timeout). Minor fixes,
comments are improved in places.

17 years agoinetd: open log after daemonization
Denis Vlasenko [Sun, 14 Jan 2007 02:03:28 +0000 (02:03 -0000)]
inetd: open log after daemonization

17 years agoBy popular request reinstate fakeidentd's standalone mode.
Denis Vlasenko [Sun, 14 Jan 2007 01:29:06 +0000 (01:29 -0000)]
By popular request reinstate fakeidentd's standalone mode.
Since this is also needed for other applets like telnetd,
introduce generic driver for such things.
It even supports inetd-wait ('linger') mode, when inetd
hands out listen socket to child and waits to it to die,
instead of handing out accepted socket and continuing
listening itself (nowait mode).
Code growth ~200 bytes.
NB: our inetd doesn't support wait mode yet (or mabe it is buggy).

17 years agowhitespace fixes (leading spaces to tab)
Denis Vlasenko [Sat, 13 Jan 2007 21:06:21 +0000 (21:06 -0000)]
whitespace fixes (leading spaces to tab)

17 years agosmall fixes to ipv6 infrastructure
Denis Vlasenko [Sat, 13 Jan 2007 21:05:38 +0000 (21:05 -0000)]
small fixes to ipv6 infrastructure

17 years agorandom small size optimizations
Denis Vlasenko [Fri, 12 Jan 2007 22:10:34 +0000 (22:10 -0000)]
random small size optimizations

17 years agostty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -
Denis Vlasenko [Fri, 12 Jan 2007 21:03:07 +0000 (21:03 -0000)]
stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> -
stty -echo didn't work. Introduced by me :(

17 years agostty: rearrange functions, avoiding the need in forward declarations.
Denis Vlasenko [Fri, 12 Jan 2007 21:02:04 +0000 (21:02 -0000)]
stty: rearrange functions, avoiding the need in forward declarations.
No other code chages.

17 years agoundo RESERVE_CONFIG_BUFFER change. aldot, small on-stack char[N] objects
Denis Vlasenko [Fri, 12 Jan 2007 21:01:05 +0000 (21:01 -0000)]
undo RESERVE_CONFIG_BUFFER change. aldot, small on-stack char[N] objects
are perfectly okay, don't convert them to RESERVE_CONFIG_BUFFERs.

17 years agonext part of ipv6-ization. mostly netcat.
Denis Vlasenko [Fri, 12 Jan 2007 20:59:31 +0000 (20:59 -0000)]
next part of ipv6-ization. mostly netcat.

17 years agonext part of ipv6-ization. dnsd code is "interesting"...
Denis Vlasenko [Fri, 12 Jan 2007 14:57:37 +0000 (14:57 -0000)]
next part of ipv6-ization. dnsd code is "interesting"...

17 years agonext part of ipv6-ization is here: wget & httpd
Denis Vlasenko [Fri, 12 Jan 2007 10:35:23 +0000 (10:35 -0000)]
next part of ipv6-ization is here: wget & httpd

17 years agofakeinetd: attempted ipv6-ization (and it's done)
Denis Vlasenko [Thu, 11 Jan 2007 23:26:13 +0000 (23:26 -0000)]
fakeinetd: attempted ipv6-ization (and it's done)
but entire applet can be orders of magnitude smaller
if written as an inetd service.
So did that (#ifdef'ed out entire old version).
inetd version is less than 10% of old one!
function                                             old     new   delta
packed_usage                                       22083   22105     +22
nobodystr                                              4       -      -4
bind_ip_address                                        4       -      -4
ident_substr                                          20       -     -20
chmatch                                               22       -     -22
movefd                                                25       -     -25
skipchars                                             49       -     -49
handlexitsigs                                         51       -     -51
replyError                                            70       -     -70
.rodata                                           158120  158024     -96
deleteConn                                           102       -    -102
G                                                    524     388    -136
conns                                                560       -    -560
fakeidentd_main                                     1457     143   -1314
------------------------------------------------------------------------------
(add/remove: 0/10 grow/shrink: 1/3 up/down: 22/-2453)       Total: -2431 bytes

17 years agofix my own breakage
Denis Vlasenko [Thu, 11 Jan 2007 22:39:25 +0000 (22:39 -0000)]
fix my own breakage

17 years agoTrailing whitespace removal over entire tree
Denis Vlasenko [Thu, 11 Jan 2007 17:20:00 +0000 (17:20 -0000)]
Trailing whitespace removal over entire tree

17 years agofix verbose output; remove commented-out includes.
Denis Vlasenko [Thu, 11 Jan 2007 16:51:21 +0000 (16:51 -0000)]
fix verbose output; remove commented-out includes.

17 years agoipv6-ization efforts continue. Few bugs are found,
Denis Vlasenko [Thu, 11 Jan 2007 16:50:23 +0000 (16:50 -0000)]
ipv6-ization efforts continue. Few bugs are found,
unknown number likely introduced...

17 years agocode shrinkage by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Wed, 10 Jan 2007 22:35:54 +0000 (22:35 -0000)]
code shrinkage by Bernhard Fischer <rep.nop@aon.at>

17 years agomissed a few #undefs (no real impact I think)
Denis Vlasenko [Wed, 10 Jan 2007 20:57:03 +0000 (20:57 -0000)]
missed a few #undefs (no real impact I think)

17 years agofix bug 1146 (gunzip breakage introduced by me --vda)
Denis Vlasenko [Wed, 10 Jan 2007 20:50:04 +0000 (20:50 -0000)]
fix bug 1146 (gunzip breakage introduced by me --vda)

17 years agoa bit more IPv6-ization work
Denis Vlasenko [Wed, 10 Jan 2007 20:19:56 +0000 (20:19 -0000)]
a bit more IPv6-ization work
syslogd: converted to use it (in -R host:port)

17 years agoImprove generic ipv4+ipv6 support in libbb.
Denis Vlasenko [Wed, 10 Jan 2007 09:28:01 +0000 (09:28 -0000)]
Improve generic ipv4+ipv6 support in libbb.
Convert telnet to it. Now this works:
telnetd -b [::1]:1234 - bind to IPv6 non-standard port
telnet [::1]:1234 - connect to IPv6 non-standard port
telnet ::1 1234 - same
This does not require ANY ipv6-specific code in applets
(no struct sockaddr_in6. In fact, no sockaddr_in, too).

17 years agoexecute "safe applets" exev if not standalone shell
Denis Vlasenko [Wed, 10 Jan 2007 00:24:50 +0000 (00:24 -0000)]
execute "safe applets" exev if not standalone shell
(patch by "Eric Spakman" <E.Spakman@inter.nl.net>)

17 years agoFix typo in usage text by shortening it
Denis Vlasenko [Tue, 9 Jan 2007 23:48:46 +0000 (23:48 -0000)]
Fix typo in usage text by shortening it

17 years agoYet another small size reduction by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Tue, 9 Jan 2007 23:44:57 +0000 (23:44 -0000)]
Yet another small size reduction by Bernhard Fischer <rep.nop@aon.at>

17 years agosmall size reduction by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Tue, 9 Jan 2007 23:43:28 +0000 (23:43 -0000)]
small size reduction by Bernhard Fischer <rep.nop@aon.at>

17 years agosmall size reduction by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Tue, 9 Jan 2007 23:42:43 +0000 (23:42 -0000)]
small size reduction by Bernhard Fischer <rep.nop@aon.at>

17 years agocompilation fix by Bernhard Fischer <rep.nop@aon.at>
Denis Vlasenko [Tue, 9 Jan 2007 23:39:48 +0000 (23:39 -0000)]
compilation fix by Bernhard Fischer <rep.nop@aon.at>

17 years ago- missing hunk to go with r17206
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 17:41:54 +0000 (17:41 -0000)]
- missing hunk to go with r17206

17 years ago- shrink by 26 bytes or so
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 17:37:32 +0000 (17:37 -0000)]
- shrink by 26 bytes or so

17 years ago- vapier wants LD to point to CC, revert my previous change
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 17:36:26 +0000 (17:36 -0000)]
- vapier wants LD to point to CC, revert my previous change

17 years ago- shrink klogd a tiny bit.
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 15:46:36 +0000 (15:46 -0000)]
- shrink klogd a tiny bit.
  Compile tested only, would have sent it to the list for review but they don't show up in the ML archives :-/
   text    data     bss     dec     hex filename
    533       0       0     533     215 sysklogd/klogd.o.orig
    530       0       0     530     212 sysklogd/klogd.o

17 years agovda, we once had a get_chomped_line_from_file or the like. Where is that nowadays...
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 10:06:19 +0000 (10:06 -0000)]
vda, we once had a get_chomped_line_from_file or the like. Where is that nowadays? FIXME: use it here instead of the fgets()
- shrink by ~9%: use common_buf, reuse are_you_root, adopt to global option_mask32

17 years agoping6: fix sequence numbers (missed ntoh) and ttl display.
Denis Vlasenko [Mon, 8 Jan 2007 23:55:33 +0000 (23:55 -0000)]
ping6: fix sequence numbers (missed ntoh) and ttl display.
(apparently some, eh, clever libc guy decided that
*CHANGING* IPV6_HOPLIMIT value in libc header is a nifty idea...)

17 years ago- guess we need dl too
Bernhard Reutner-Fischer [Mon, 8 Jan 2007 16:38:33 +0000 (16:38 -0000)]
- guess we need dl too

17 years ago- set LD to ld
Bernhard Reutner-Fischer [Mon, 8 Jan 2007 16:29:15 +0000 (16:29 -0000)]
- set LD to ld
- simplify the cmd_busybox__ a bit and pass the LDFLAGS via -Wl down to CC

17 years agoPrevious "fix" wasn't good enough.
Denis Vlasenko [Sun, 7 Jan 2007 22:23:38 +0000 (22:23 -0000)]
Previous "fix" wasn't good enough.
Now *this* is the correct fix (I think).

17 years agoarp: small fixes for user-supplied device name case
Denis Vlasenko [Sun, 7 Jan 2007 22:20:33 +0000 (22:20 -0000)]
arp: small fixes for user-supplied device name case

17 years ago- style fixes and shrink by another 4 bytes while at it.
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 22:12:35 +0000 (22:12 -0000)]
- style fixes and shrink by another 4 bytes while at it.

17 years agohttpd: stop adding our own "Content-type:" to CGI output
Denis Vlasenko [Sun, 7 Jan 2007 21:25:12 +0000 (21:25 -0000)]
httpd: stop adding our own "Content-type:" to CGI output

17 years agogzip cleanup part #13 - the last for today I think
Denis Vlasenko [Sun, 7 Jan 2007 19:45:51 +0000 (19:45 -0000)]
gzip cleanup part #13 - the last for today I think

17 years agogzip cleanup part #12
Denis Vlasenko [Sun, 7 Jan 2007 19:44:57 +0000 (19:44 -0000)]
gzip cleanup part #12

17 years agogzip cleanup part #11
Denis Vlasenko [Sun, 7 Jan 2007 19:44:35 +0000 (19:44 -0000)]
gzip cleanup part #11

17 years agogzip cleanup part #10
Denis Vlasenko [Sun, 7 Jan 2007 19:40:50 +0000 (19:40 -0000)]
gzip cleanup part #10

17 years agogzip cleanup part #9
Denis Vlasenko [Sun, 7 Jan 2007 19:40:34 +0000 (19:40 -0000)]
gzip cleanup part #9

17 years agogzip cleanup part #8
Denis Vlasenko [Sun, 7 Jan 2007 19:40:13 +0000 (19:40 -0000)]
gzip cleanup part #8

17 years agogzip cleanup part #7
Denis Vlasenko [Sun, 7 Jan 2007 19:39:54 +0000 (19:39 -0000)]
gzip cleanup part #7

17 years agogzip cleanup part #6
Denis Vlasenko [Sun, 7 Jan 2007 19:39:34 +0000 (19:39 -0000)]
gzip cleanup part #6

17 years agogzip cleanup part #5
Denis Vlasenko [Sun, 7 Jan 2007 19:39:02 +0000 (19:39 -0000)]
gzip cleanup part #5

17 years agogzip cleanup part #4
Denis Vlasenko [Sun, 7 Jan 2007 19:38:42 +0000 (19:38 -0000)]
gzip cleanup part #4

17 years agogzip cleanup part #3
Denis Vlasenko [Sun, 7 Jan 2007 19:38:26 +0000 (19:38 -0000)]
gzip cleanup part #3

17 years agogzip cleanup part #2
Denis Vlasenko [Sun, 7 Jan 2007 19:38:06 +0000 (19:38 -0000)]
gzip cleanup part #2

17 years agoa ton of gzip changes, split up in compiled and
Denis Vlasenko [Sun, 7 Jan 2007 19:37:42 +0000 (19:37 -0000)]
a ton of gzip changes, split up in compiled and
run-tested pieces. Code was rather messy.
It's not a bug fix, more like code cleanup.

This is the first part.

17 years agoI *always* forgotting svn add
Denis Vlasenko [Sun, 7 Jan 2007 19:35:11 +0000 (19:35 -0000)]
I *always* forgotting svn add

17 years ago- FIXME: someone broke diff -r
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 15:56:09 +0000 (15:56 -0000)]
- FIXME: someone broke diff -r
- minor shrinkage i had lying around
   text    data     bss     dec     hex filename
   7002       8      88    7098    1bba diff.o.orig
   6936       8      81    7025    1b71 diff.o

17 years ago- a few minor tweaks
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 15:53:18 +0000 (15:53 -0000)]
- a few minor tweaks

17 years ago- pull taskset.tests from the busybox_scratch branch
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 15:19:34 +0000 (15:19 -0000)]
- pull taskset.tests from the busybox_scratch branch

17 years ago- add arp to defconfig
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 12:18:59 +0000 (12:18 -0000)]
- add arp to defconfig