Bernhard Reutner-Fischer [Tue, 9 Jan 2007 17:41:54 +0000 (17:41 -0000)]
- missing hunk to go with r17206
Bernhard Reutner-Fischer [Tue, 9 Jan 2007 17:37:32 +0000 (17:37 -0000)]
- shrink by 26 bytes or so
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
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
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
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...)
Bernhard Reutner-Fischer [Mon, 8 Jan 2007 16:38:33 +0000 (16:38 -0000)]
- guess we need dl too
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
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).
Denis Vlasenko [Sun, 7 Jan 2007 22:20:33 +0000 (22:20 -0000)]
arp: small fixes for user-supplied device name case
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.
Denis Vlasenko [Sun, 7 Jan 2007 21:25:12 +0000 (21:25 -0000)]
httpd: stop adding our own "Content-type:" to CGI output
Denis Vlasenko [Sun, 7 Jan 2007 19:45:51 +0000 (19:45 -0000)]
gzip cleanup part #13 - the last for today I think
Denis Vlasenko [Sun, 7 Jan 2007 19:44:57 +0000 (19:44 -0000)]
gzip cleanup part #12
Denis Vlasenko [Sun, 7 Jan 2007 19:44:35 +0000 (19:44 -0000)]
gzip cleanup part #11
Denis Vlasenko [Sun, 7 Jan 2007 19:40:50 +0000 (19:40 -0000)]
gzip cleanup part #10
Denis Vlasenko [Sun, 7 Jan 2007 19:40:34 +0000 (19:40 -0000)]
gzip cleanup part #9
Denis Vlasenko [Sun, 7 Jan 2007 19:40:13 +0000 (19:40 -0000)]
gzip cleanup part #8
Denis Vlasenko [Sun, 7 Jan 2007 19:39:54 +0000 (19:39 -0000)]
gzip cleanup part #7
Denis Vlasenko [Sun, 7 Jan 2007 19:39:34 +0000 (19:39 -0000)]
gzip cleanup part #6
Denis Vlasenko [Sun, 7 Jan 2007 19:39:02 +0000 (19:39 -0000)]
gzip cleanup part #5
Denis Vlasenko [Sun, 7 Jan 2007 19:38:42 +0000 (19:38 -0000)]
gzip cleanup part #4
Denis Vlasenko [Sun, 7 Jan 2007 19:38:26 +0000 (19:38 -0000)]
gzip cleanup part #3
Denis Vlasenko [Sun, 7 Jan 2007 19:38:06 +0000 (19:38 -0000)]
gzip cleanup part #2
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.
Denis Vlasenko [Sun, 7 Jan 2007 19:35:11 +0000 (19:35 -0000)]
I *always* forgotting svn add
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
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 15:53:18 +0000 (15:53 -0000)]
- a few minor tweaks
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 15:19:34 +0000 (15:19 -0000)]
- pull taskset.tests from the busybox_scratch branch
Bernhard Reutner-Fischer [Sun, 7 Jan 2007 12:18:59 +0000 (12:18 -0000)]
- add arp to defconfig
Denis Vlasenko [Sun, 7 Jan 2007 01:24:12 +0000 (01:24 -0000)]
add arp applet - thanks to
"Eric Spakman" <E.Spakman@inter.nl.net>
Denis Vlasenko [Sun, 7 Jan 2007 00:24:49 +0000 (00:24 -0000)]
work around gcc's false warning
Denis Vlasenko [Sun, 7 Jan 2007 00:21:41 +0000 (00:21 -0000)]
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
Denis Vlasenko [Sat, 6 Jan 2007 22:08:53 +0000 (22:08 -0000)]
syslogs: a bit better wording in explanation how buffering
is allocated
Bernhard Reutner-Fischer [Sat, 6 Jan 2007 21:47:09 +0000 (21:47 -0000)]
- minor shrinkage: -25 bytes or so.
Denis Vlasenko [Sat, 6 Jan 2007 10:31:45 +0000 (10:31 -0000)]
"kernel" => "busybox"
Denis Vlasenko [Sat, 6 Jan 2007 01:27:24 +0000 (01:27 -0000)]
kill unused variable
Denis Vlasenko [Sat, 6 Jan 2007 00:03:11 +0000 (00:03 -0000)]
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
Denis Vlasenko [Fri, 5 Jan 2007 23:58:45 +0000 (23:58 -0000)]
split inflate_xx_setup() subroutines from inflate_xx()
Denis Vlasenko [Fri, 5 Jan 2007 23:56:53 +0000 (23:56 -0000)]
do not expose internal state of [g]zip unpacker.
fix memory leak in inflate_gunzip.
Denis Vlasenko [Fri, 5 Jan 2007 19:49:02 +0000 (19:49 -0000)]
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);
Denis Vlasenko [Fri, 5 Jan 2007 19:46:04 +0000 (19:46 -0000)]
decompress_unzip: preparatory patch
Denis Vlasenko [Fri, 5 Jan 2007 14:04:47 +0000 (14:04 -0000)]
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!
Denis Vlasenko [Fri, 5 Jan 2007 13:59:05 +0000 (13:59 -0000)]
simplify access to buffer, making code a bit smaller
Bernhard Reutner-Fischer [Thu, 4 Jan 2007 22:13:25 +0000 (22:13 -0000)]
- remove duplicate includes
Denis Vlasenko [Thu, 4 Jan 2007 21:22:11 +0000 (21:22 -0000)]
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
Denis Vlasenko [Thu, 4 Jan 2007 18:02:32 +0000 (18:02 -0000)]
syslogd: stop doing open/fstat/lseek/close on _every_ write
(still doing it if more than a second passed in between).
Costs ~40 bytes.
Denis Vlasenko [Thu, 4 Jan 2007 17:59:59 +0000 (17:59 -0000)]
new libbb func: xmalloc_realpath (+ use it where makes sense)
syslogd, logread: add debugging code (disabled)
syslogs: drastically smaller bss; fix "-C n" behaviour
Denis Vlasenko [Thu, 4 Jan 2007 17:57:54 +0000 (17:57 -0000)]
syslogd: almost rewritten. Had several obvious bugs...
Bernhard Reutner-Fischer [Thu, 4 Jan 2007 15:44:49 +0000 (15:44 -0000)]
- spelling fix
Denis Vlasenko [Thu, 4 Jan 2007 03:07:57 +0000 (03:07 -0000)]
klogd: small optimizations
(btw, I looked into syslogd... that's frightening!)
Denis Vlasenko [Wed, 3 Jan 2007 23:23:58 +0000 (23:23 -0000)]
fix allnoconfig build. the most useful fix of the month. ;)
[spotted by Bernhard Fischer <rep.nop@aon.at>]
Denis Vlasenko [Wed, 3 Jan 2007 23:02:18 +0000 (23:02 -0000)]
httpd: read cgi output with full_read, not safe_read
(avoids mangling of HTTP headers)
Denis Vlasenko [Wed, 3 Jan 2007 22:29:01 +0000 (22:29 -0000)]
wget: always print port# in 'Host' header (smaller code)
Denis Vlasenko [Wed, 3 Jan 2007 22:14:18 +0000 (22:14 -0000)]
ping[6]: don't do htons(a++), it can be a macro
Denis Vlasenko [Wed, 3 Jan 2007 22:09:26 +0000 (22:09 -0000)]
wget: print port# in 'Host' header, if different from 80
Denis Vlasenko [Wed, 3 Jan 2007 21:55:50 +0000 (21:55 -0000)]
ftpgetput: fix PASV mode, fix xatou0induced breakage,
improve error message, guard against garbage from remote server
being printed. ~20 bytes code growth
Denis Vlasenko [Wed, 3 Jan 2007 20:07:06 +0000 (20:07 -0000)]
chown: fix handling of "user.group" notation
Denis Vlasenko [Wed, 3 Jan 2007 03:15:58 +0000 (03:15 -0000)]
find: fix misplaced #else (fix by Harald Kuthe <trhoudini@hotmail.com>)
Denis Vlasenko [Wed, 3 Jan 2007 02:58:54 +0000 (02:58 -0000)]
fdisk: remove 8k buffer from bss - OSF labels
are not THAT common anyway
Denis Vlasenko [Wed, 3 Jan 2007 02:56:00 +0000 (02:56 -0000)]
convert calloc to xzalloc
fix sleep-on-die option
Denis Vlasenko [Wed, 3 Jan 2007 01:57:25 +0000 (01:57 -0000)]
extern variable declaration in a .c file is heresy - fixing it
Denis Vlasenko [Wed, 3 Jan 2007 01:36:42 +0000 (01:36 -0000)]
fsck_minix: tiny optimization
Denis Vlasenko [Wed, 3 Jan 2007 00:47:47 +0000 (00:47 -0000)]
forgot to svn add util-linux/minix.h :(
Denis Vlasenko [Wed, 3 Jan 2007 00:45:05 +0000 (00:45 -0000)]
fbset: move variable from data to bss
fsck_minix: fix fallout
Denis Vlasenko [Wed, 3 Jan 2007 00:43:19 +0000 (00:43 -0000)]
factor out minix structures/constants into minix.h
fsck_minix: optimizations
Denis Vlasenko [Wed, 3 Jan 2007 00:41:53 +0000 (00:41 -0000)]
fsck_minix: optimizations. ~130 bytes
Denis Vlasenko [Wed, 3 Jan 2007 00:39:15 +0000 (00:39 -0000)]
introduce small[u]int
fsck_minix: use it for flag variables. 140 bytes saved
Denis Vlasenko [Tue, 2 Jan 2007 16:45:05 +0000 (16:45 -0000)]
silly style fixes
Denis Vlasenko [Tue, 2 Jan 2007 16:32:16 +0000 (16:32 -0000)]
Remove networking/libiproute/linux/pkt_sched.h
(and networking/libiproute/linux/ since it become empty).
Style fixes.
Mike Frysinger [Tue, 2 Jan 2007 05:43:30 +0000 (05:43 -0000)]
str2u() is only used when FEATURE_SORT_BIG is enabled
Mike Frysinger [Tue, 2 Jan 2007 05:42:35 +0000 (05:42 -0000)]
convert usage compressed command into the new cmd style
Denis Vlasenko [Mon, 1 Jan 2007 23:53:52 +0000 (23:53 -0000)]
awk: style fixes
Denis Vlasenko [Mon, 1 Jan 2007 23:53:12 +0000 (23:53 -0000)]
awk: undo locale setting for numbers - or else parsing
can act quite mysteriously
date: add if(ENABLE_LOCALE_SUPPORT)
Denis Vlasenko [Mon, 1 Jan 2007 23:51:30 +0000 (23:51 -0000)]
awk: style cleanup. A lot of rw data moved to ro
(still has quite a lot of statics etc...).
getopt32-ification.
Denis Vlasenko [Mon, 1 Jan 2007 18:18:04 +0000 (18:18 -0000)]
stty: fix width of a field for ppc32
sort: fix -u to match coreutils 6.3
msh: compile fix (my fault)
Denis Vlasenko [Mon, 1 Jan 2007 06:00:38 +0000 (06:00 -0000)]
msh: double "static char line[LINELIM]" etc deleted.
massive amounts of assignments-in-ifs deleted
(some of which were VERY nasty)
Denis Vlasenko [Sun, 31 Dec 2006 20:40:20 +0000 (20:40 -0000)]
rt_names: stop allocating 5k in rwdata
objsizes: don't show build machinery's object modules
Denis Vlasenko [Sun, 31 Dec 2006 19:36:01 +0000 (19:36 -0000)]
less: fix <tab><backspace> buglet
Denis Vlasenko [Sun, 31 Dec 2006 19:23:31 +0000 (19:23 -0000)]
less: interpret backspace.
less is officially declared PAGER-capable! ;)
(this includes viewing of manpages)
Denis Vlasenko [Sun, 31 Dec 2006 19:07:23 +0000 (19:07 -0000)]
iproute: remove double get_hz optimization
Denis Vlasenko [Sun, 31 Dec 2006 18:58:32 +0000 (18:58 -0000)]
remove commented out #includes etc
move get_hz to the only caller
Denis Vlasenko [Sun, 31 Dec 2006 18:57:37 +0000 (18:57 -0000)]
stop using __u32 etc. uint32_t is there for a reason
Denis Vlasenko [Sun, 31 Dec 2006 12:14:16 +0000 (12:14 -0000)]
fixes from Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Mike Frysinger [Sun, 31 Dec 2006 11:46:19 +0000 (11:46 -0000)]
convert include/autoconf.h split and include/bbconfigopts.h commands into the new cmd style
Mike Frysinger [Sun, 31 Dec 2006 11:34:17 +0000 (11:34 -0000)]
Yann E. MORIN. writes: i pity the fool who doesnt use the z length modifier with size_t types
Denis Vlasenko [Sat, 30 Dec 2006 22:03:02 +0000 (22:03 -0000)]
about.html: update maintainer name
libbb/Kbuild: less needs xregcomp.o
Denis Vlasenko [Sat, 30 Dec 2006 21:11:57 +0000 (21:11 -0000)]
fixdep.c: avoit doing memcmp in most cases
uidgid_get.c: add forgotten copyright notice
pwd/grp/shadow: avoid collisions with libc names
Denis Vlasenko [Sat, 30 Dec 2006 19:52:28 +0000 (19:52 -0000)]
saw commit of vapier@busybox.net (thanks!),
decided to stop doing FOUR memcmp's per each input character.
I should have fixed this much earlier...
Mike Frysinger [Sat, 30 Dec 2006 19:46:38 +0000 (19:46 -0000)]
kill off AUTOCONF_INCLUDED (again) since it tends to get into cat fights with the kernel headers
Mike Frysinger [Sat, 30 Dec 2006 19:43:35 +0000 (19:43 -0000)]
make sure AUTOCONF_TIMESTAMP is filled up properly ... if user has a timezone of Factory for example, strftime() will overflow the string and leave us without a trailing "\n and all hell breaks loose when we compile
Mike Frysinger [Sat, 30 Dec 2006 19:30:20 +0000 (19:30 -0000)]
prevent buffer underflows with empty lines
Mike Frysinger [Sat, 30 Dec 2006 19:21:48 +0000 (19:21 -0000)]
prevent accessing memory that we dont own
Denis Vlasenko [Sat, 30 Dec 2006 18:42:29 +0000 (18:42 -0000)]
next bunch of fixes for bugs found by randconfig
Denis Vlasenko [Sat, 30 Dec 2006 17:57:03 +0000 (17:57 -0000)]
done a dozen of randconfig test. guess what? ALL failed...
these are resulting fixes
Denis Vlasenko [Sat, 30 Dec 2006 14:46:51 +0000 (14:46 -0000)]
fix for uclibc-without-shadow.h compilation
Mike Frysinger [Fri, 29 Dec 2006 23:27:22 +0000 (23:27 -0000)]
we need to use the compiler driver to invoke LD as LDFLAGS is in the form the compiler driver understands, not the form the linker itself understands, so trying to invoke ld directly and passing it LDFLAGS while invoking the compiler driver in other places and passing it LDFLAGS does not work
Denis Vlasenko [Thu, 28 Dec 2006 21:44:43 +0000 (21:44 -0000)]
Add link to post-1.3.1 patches to website
Mike Frysinger [Thu, 28 Dec 2006 21:41:09 +0000 (21:41 -0000)]
* precision requires the argument be an integer, not size_t
Denis Vlasenko [Thu, 28 Dec 2006 21:33:30 +0000 (21:33 -0000)]
fix build without shadow support