Denis Vlasenko
ef87d46b8c
gzip cleanup part #7
2007-01-07 19:39:54 +00:00
Denis Vlasenko
1a03c21adf
gzip cleanup part #6
2007-01-07 19:39:34 +00:00
Denis Vlasenko
da31fbc1b1
gzip cleanup part #5
2007-01-07 19:39:02 +00:00
Denis Vlasenko
f824136f6b
gzip cleanup part #4
2007-01-07 19:38:42 +00:00
Denis Vlasenko
ed0f6db35e
gzip cleanup part #3
2007-01-07 19:38:26 +00:00
Denis Vlasenko
30551fd6da
gzip cleanup part #2
2007-01-07 19:38:06 +00:00
Denis Vlasenko
ad403413c7
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.
2007-01-07 19:37:42 +00:00
Denis Vlasenko
88e2b1cb62
I *always* forgotting svn add
2007-01-07 19:35:11 +00:00
Bernhard Reutner-Fischer
7ae93f0fe7
- 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
2007-01-07 15:56:09 +00:00
Bernhard Reutner-Fischer
5568b722d4
- a few minor tweaks
2007-01-07 15:53:18 +00:00
Bernhard Reutner-Fischer
70722ec4ce
- pull taskset.tests from the busybox_scratch branch
2007-01-07 15:19:34 +00:00
Bernhard Reutner-Fischer
f0b71c19ae
- add arp to defconfig
2007-01-07 12:18:59 +00:00
Denis Vlasenko
fa85b86f38
add arp applet - thanks to
...
"Eric Spakman" <E.Spakman@inter.nl.net>
2007-01-07 01:24:12 +00:00
Denis Vlasenko
b05955e0a5
work around gcc's false warning
2007-01-07 00:24:49 +00:00
Denis Vlasenko
8336f080cb
diff: small optimizations; do not try to diff non-seekable stream
...
(currently we don't support that)
sort: fixes. testsuites fixed:
sort with non-default leading delim 1
sort with non-default leading delim 2
sort key doesn't strip leading blanks, disables fallback global sort
2007-01-07 00:21:41 +00:00
Denis Vlasenko
8a820b2732
syslogs: a bit better wording in explanation how buffering
...
is allocated
2007-01-06 22:08:53 +00:00
Bernhard Reutner-Fischer
ea9e35f5dd
- minor shrinkage: -25 bytes or so.
2007-01-06 21:47:09 +00:00
Denis Vlasenko
3697a829de
"kernel" => "busybox"
2007-01-06 10:31:45 +00:00
Denis Vlasenko
da98165ad6
kill unused variable
2007-01-06 01:27:24 +00:00
Denis Vlasenko
c7a4aa5c99
move [g]zip decompressor state into malloc'ed buffer. size:
...
text data bss dec hex
5256 0 108 5364 14f4 - old
4915 0 0 4915 1333 - new
2007-01-06 00:03:11 +00:00
Denis Vlasenko
d1a19affeb
split inflate_xx_setup() subroutines from inflate_xx()
2007-01-05 23:58:45 +00:00
Denis Vlasenko
cd42cb8df0
do not expose internal state of [g]zip unpacker.
...
fix memory leak in inflate_gunzip.
2007-01-05 23:56:53 +00:00
Denis Vlasenko
447b543eaf
Stopped doing assignments inside expressions.
...
Who wrote this gem, I wonder?
n -= (e = (e = gunzip_wsize - ((d &= gunzip_wsize - 1) > w ? d : w)) > n ? n : e);
2007-01-05 19:49:02 +00:00
Denis Vlasenko
cc33ef12d2
decompress_unzip: preparatory patch
2007-01-05 19:46:04 +00:00
Denis Vlasenko
3376298b59
Stop tracking buffer size - it is a constant.
...
Stop ignoring write errors.
Fix bugs in this line:
rc->buffer_size = read(rc->fd, RC_BUFFER, rc->buffer_size);
(a) should use safe_read()
(b) just ONE short read (e.g. 4 bytes) will make ALL future reads short!
2007-01-05 14:04:47 +00:00
Denis Vlasenko
98b8e9487d
simplify access to buffer, making code a bit smaller
2007-01-05 13:59:05 +00:00
Bernhard Reutner-Fischer
89d49a4236
- remove duplicate includes
2007-01-04 22:13:25 +00:00
Denis Vlasenko
a0e2a0a192
syslogd: start using bb_common_bufsiz1 instead of stack/malloc
...
logger: optimize, also use bb_common_bufsiz1 (~40 bytes)
tested to eat arbitrarily-sized input at high speed - ok
2007-01-04 21:22:11 +00:00
Denis Vlasenko
b893497151
syslogd: stop doing open/fstat/lseek/close on _every_ write
...
(still doing it if more than a second passed in between).
Costs ~40 bytes.
2007-01-04 18:02:32 +00:00
Denis Vlasenko
a9b60e93ee
new libbb func: xmalloc_realpath (+ use it where makes sense)
...
syslogd, logread: add debugging code (disabled)
syslogs: drastically smaller bss; fix "-C n" behaviour
2007-01-04 17:59:59 +00:00
Denis Vlasenko
ceab8700df
syslogd: almost rewritten. Had several obvious bugs...
2007-01-04 17:57:54 +00:00
Bernhard Reutner-Fischer
bfe1950c63
- spelling fix
2007-01-04 15:44:49 +00:00
Denis Vlasenko
e428e9d43b
klogd: small optimizations
...
(btw, I looked into syslogd... that's frightening!)
2007-01-04 03:07:57 +00:00
Denis Vlasenko
b8429fb1f4
fix allnoconfig build. the most useful fix of the month. ;)
...
[spotted by Bernhard Fischer <rep.nop@aon.at>]
2007-01-03 23:23:58 +00:00
Denis Vlasenko
a773af3b1d
httpd: read cgi output with full_read, not safe_read
...
(avoids mangling of HTTP headers)
2007-01-03 23:02:18 +00:00
Denis Vlasenko
a8951cbc34
wget: always print port# in 'Host' header (smaller code)
2007-01-03 22:29:01 +00:00
Denis Vlasenko
919c10dd88
ping[6]: don't do htons(a++), it can be a macro
2007-01-03 22:14:18 +00:00
Denis Vlasenko
b36b370fbe
wget: print port# in 'Host' header, if different from 80
2007-01-03 22:09:26 +00:00
Denis Vlasenko
562dc249e0
ftpgetput: fix PASV mode, fix xatou0induced breakage,
...
improve error message, guard against garbage from remote server
being printed. ~20 bytes code growth
2007-01-03 21:55:50 +00:00
Denis Vlasenko
6eebed561a
chown: fix handling of "user.group" notation
2007-01-03 20:07:06 +00:00
Denis Vlasenko
c9d34da375
find: fix misplaced #else (fix by Harald Kuthe <trhoudini@hotmail.com>)
2007-01-03 03:15:58 +00:00
Denis Vlasenko
d54708399d
fdisk: remove 8k buffer from bss - OSF labels
...
are not THAT common anyway
2007-01-03 02:58:54 +00:00
Denis Vlasenko
9b1381fd2f
convert calloc to xzalloc
...
fix sleep-on-die option
2007-01-03 02:56:00 +00:00
Denis Vlasenko
bb3d0fab3b
extern variable declaration in a .c file is heresy - fixing it
2007-01-03 01:57:25 +00:00
Denis Vlasenko
75fa4eb155
fsck_minix: tiny optimization
2007-01-03 01:36:42 +00:00
Denis Vlasenko
87033fb5fa
forgot to svn add util-linux/minix.h :(
2007-01-03 00:47:47 +00:00
Denis Vlasenko
73464ce53d
fbset: move variable from data to bss
...
fsck_minix: fix fallout
2007-01-03 00:45:05 +00:00
Denis Vlasenko
aa95959cb8
factor out minix structures/constants into minix.h
...
fsck_minix: optimizations
2007-01-03 00:43:19 +00:00
Denis Vlasenko
6dd392a252
fsck_minix: optimizations. ~130 bytes
2007-01-03 00:41:53 +00:00
Denis Vlasenko
24cfe8fe0c
introduce small[u]int
...
fsck_minix: use it for flag variables. 140 bytes saved
2007-01-03 00:39:15 +00:00