Commit Graph

  • a0e701d137 fsck: small optimization Denis Vlasenko 2007-01-19 02:01:19 +00:00
  • 74c9d2365a fix potentially misaligned 32-bit accesses Denis Vlasenko 2007-01-18 15:42:00 +00:00
  • c966ba46a9 - move the smallint that is platform dependant to it's proper place Bernhard Reutner-Fischer 2007-01-18 10:32:09 +00:00
  • f8384fa50c Use char for smallint on CRIS as well. Peter Kjellerstedt 2007-01-18 10:26:07 +00:00
  • 1a250d9f32 - reinstate paranoia check in wrapf(). Bernhard Reutner-Fischer 2007-01-18 08:41:22 +00:00
  • 7f0d7ae4f5 fix subtle bug inherited from dash Denis Vlasenko 2007-01-18 01:12:57 +00:00
  • 41aaefce71 stop using global variable needlessly Denis Vlasenko 2007-01-18 00:53:35 +00:00
  • cbbc043d1b smallint can be a char for amd64 too Denis Vlasenko 2007-01-18 00:16:06 +00:00
  • ef44d9d9f2 sed,get_line_from_file: improve comments Denis Vlasenko 2007-01-17 23:16:16 +00:00
  • ae114c235e - stty's visible() function and catv's guts are identical. Merge them into an appropriate libbb function. Bernhard Reutner-Fischer 2007-01-17 19:51:00 +00:00
  • 79cc55975f - remove superfluous define that expanded to "!strcmp" - remove some dead code Bernhard Reutner-Fischer 2007-01-17 19:46:46 +00:00
  • 8eb0549e5d - reuse return code of vsnprintf to avoid pulling in strlen Bernhard Reutner-Fischer 2007-01-17 19:46:33 +00:00
  • 94feb1c807 - merge display_changed() and display_all() This one is a bit risky but did work for me in cursory testing.. Bernhard Reutner-Fischer 2007-01-17 19:46:12 +00:00
  • d4a745c3d4 - peruse get_terminal_width_height and remove legacy code for ancient slowaris versions. Bernhard Reutner-Fischer 2007-01-17 19:45:36 +00:00
  • a6e31ad834 - rewrite find_param to use index_in_str_array Bernhard Reutner-Fischer 2007-01-17 19:45:14 +00:00
  • 4950f010f3 - manually inline tty_value_to_baud and remove string_to_baud_or_die (cleanup) Bernhard Reutner-Fischer 2007-01-17 19:44:59 +00:00
  • 21fc740023 - constify some read-only members and remove superfluous casts (cleanup) Bernhard Reutner-Fischer 2007-01-17 19:44:24 +00:00
  • 4fa566d4ad - reuse option_mask32 for state-handling in main - improve check for errors from fcntl Bernhard Reutner-Fischer 2007-01-17 19:42:30 +00:00
  • 9e8df9354a - replace some occurances of "kernel" with busybox Bernhard Reutner-Fischer 2007-01-17 19:36:01 +00:00
  • b64eed6030 httpd: use fd#1 in inetd mode inetd: micro style fix Denis Vlasenko 2007-01-14 17:06:11 +00:00
  • d1a6e8d320 inetd: preparatory patch, no code changes Denis Vlasenko 2007-01-14 14:46:18 +00:00
  • d97c9244b1 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. Denis Vlasenko 2007-01-14 13:12:06 +00:00
  • b8b81a6f8f small size optimization Denis Vlasenko 2007-01-14 12:47:27 +00:00
  • 844ff096ec isrv.h: add copyright info Denis Vlasenko 2007-01-14 12:34:48 +00:00
  • fdf7aec532 I forgot "svn add" AGAIN! :( Denis Vlasenko 2007-01-14 12:32:30 +00:00
  • c14c95ec89 fakeidentd: avoid extra fcntl calls Denis Vlasenko 2007-01-14 12:31:26 +00:00
  • 19250813a8 fakeidentd: fix daemon mode (was thinking that it is in inetd-wait mode and dying after timeout). Minor fixes, comments are improved in places. Denis Vlasenko 2007-01-14 12:07:25 +00:00
  • ffcef2d1f7 inetd: open log after daemonization Denis Vlasenko 2007-01-14 02:03:28 +00:00
  • 7a431b3715 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). Denis Vlasenko 2007-01-14 01:29:06 +00:00
  • 150f402b36 whitespace fixes (leading spaces to tab) Denis Vlasenko 2007-01-13 21:06:21 +00:00
  • 2418288cac small fixes to ipv6 infrastructure Denis Vlasenko 2007-01-13 21:05:38 +00:00
  • 3a34d0c08a random small size optimizations Denis Vlasenko 2007-01-12 22:10:34 +00:00
  • 21b080daa8 stty: fix bug reported by Paul Albrecht <albrecht@rdi1.com> - stty -echo didn't work. Introduced by me :( Denis Vlasenko 2007-01-12 21:03:07 +00:00
  • f8abc100cc stty: rearrange functions, avoiding the need in forward declarations. No other code chages. Denis Vlasenko 2007-01-12 21:02:04 +00:00
  • 4df8135cf6 undo RESERVE_CONFIG_BUFFER change. aldot, small on-stack char[N] objects are perfectly okay, don't convert them to RESERVE_CONFIG_BUFFERs. Denis Vlasenko 2007-01-12 21:01:05 +00:00
  • 5d68724d5b next part of ipv6-ization. mostly netcat. Denis Vlasenko 2007-01-12 20:59:31 +00:00
  • 2c91652bbc next part of ipv6-ization. dnsd code is "interesting"... Denis Vlasenko 2007-01-12 14:57:37 +00:00
  • 6536a9b583 next part of ipv6-ization is here: wget & httpd Denis Vlasenko 2007-01-12 10:35:23 +00:00
  • f8138d1f91 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 Denis Vlasenko 2007-01-11 23:26:13 +00:00
  • 4fa5e8b455 fix my own breakage Denis Vlasenko 2007-01-11 22:39:25 +00:00
  • f7996f3b70 Trailing whitespace removal over entire tree Denis Vlasenko 2007-01-11 17:20:00 +00:00
  • 3821fb13ea fix verbose output; remove commented-out includes. Denis Vlasenko 2007-01-11 16:51:21 +00:00
  • 8e9ccba371 ipv6-ization efforts continue. Few bugs are found, unknown number likely introduced... Denis Vlasenko 2007-01-11 16:50:23 +00:00
  • 085231fbba code shrinkage by Bernhard Fischer <rep.nop@aon.at> Denis Vlasenko 2007-01-10 22:35:54 +00:00
  • 1a8bf7f5d3 missed a few #undefs (no real impact I think) Denis Vlasenko 2007-01-10 20:57:03 +00:00
  • 7573541f74 fix bug 1146 (gunzip breakage introduced by me --vda) Denis Vlasenko 2007-01-10 20:50:04 +00:00
  • bbe514683a a bit more IPv6-ization work syslogd: converted to use it (in -R host:port) Denis Vlasenko 2007-01-10 20:19:56 +00:00
  • 9de420c27c 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). Denis Vlasenko 2007-01-10 09:28:01 +00:00
  • 62a6983a81 execute "safe applets" exev if not standalone shell (patch by "Eric Spakman" <E.Spakman@inter.nl.net>) Denis Vlasenko 2007-01-10 00:24:50 +00:00
  • 886bb0df66 Fix typo in usage text by shortening it Denis Vlasenko 2007-01-09 23:48:46 +00:00
  • 1c962f23e0 Yet another small size reduction by Bernhard Fischer <rep.nop@aon.at> Denis Vlasenko 2007-01-09 23:44:57 +00:00
  • 59f2c34037 small size reduction by Bernhard Fischer <rep.nop@aon.at> Denis Vlasenko 2007-01-09 23:43:28 +00:00
  • bae7948a5a small size reduction by Bernhard Fischer <rep.nop@aon.at> Denis Vlasenko 2007-01-09 23:42:43 +00:00
  • db1edde6d8 compilation fix by Bernhard Fischer <rep.nop@aon.at> Denis Vlasenko 2007-01-09 23:39:48 +00:00
  • d1e54e4f56 - missing hunk to go with r17206 Bernhard Reutner-Fischer 2007-01-09 17:41:54 +00:00
  • 0f48663f83 - shrink by 26 bytes or so Bernhard Reutner-Fischer 2007-01-09 17:37:32 +00:00
  • e86bd6cde5 - vapier wants LD to point to CC, revert my previous change Bernhard Reutner-Fischer 2007-01-09 17:36:26 +00:00
  • 8fc4011992 - 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 2007-01-09 15:46:36 +00:00
  • f07fe62d89 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 Bernhard Reutner-Fischer 2007-01-09 10:06:19 +00:00
  • 44c2eb23dd 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...) Denis Vlasenko 2007-01-08 23:55:33 +00:00
  • d6c23aeefb - guess we need dl too Bernhard Reutner-Fischer 2007-01-08 16:38:33 +00:00
  • c1feac6e9f - set LD to ld - simplify the cmd_busybox__ a bit and pass the LDFLAGS via -Wl down to CC Bernhard Reutner-Fischer 2007-01-08 16:29:15 +00:00
  • 681f183b94 Previous "fix" wasn't good enough. Now *this* is the correct fix (I think). Denis Vlasenko 2007-01-07 22:23:38 +00:00
  • 91c06e0a3c arp: small fixes for user-supplied device name case Denis Vlasenko 2007-01-07 22:20:33 +00:00
  • 42646c5585 - style fixes and shrink by another 4 bytes while at it. Bernhard Reutner-Fischer 2007-01-07 22:12:35 +00:00
  • 6998142998 httpd: stop adding our own "Content-type:" to CGI output Denis Vlasenko 2007-01-07 21:25:12 +00:00
  • db6a5c3f9e gzip cleanup part #13 - the last for today I think Denis Vlasenko 2007-01-07 19:45:51 +00:00
  • 3ae6f34135 gzip cleanup part #12 Denis Vlasenko 2007-01-07 19:44:57 +00:00
  • 2f6df7fa0a gzip cleanup part #11 Denis Vlasenko 2007-01-07 19:44:35 +00:00
  • 56c83eaaf5 gzip cleanup part #10 Denis Vlasenko 2007-01-07 19:40:50 +00:00
  • 89af56b3e5 gzip cleanup part #9 Denis Vlasenko 2007-01-07 19:40:34 +00:00
  • 52933d47bd gzip cleanup part #8 Denis Vlasenko 2007-01-07 19:40:13 +00:00
  • ef87d46b8c gzip cleanup part #7 Denis Vlasenko 2007-01-07 19:39:54 +00:00
  • 1a03c21adf gzip cleanup part #6 Denis Vlasenko 2007-01-07 19:39:34 +00:00
  • da31fbc1b1 gzip cleanup part #5 Denis Vlasenko 2007-01-07 19:39:02 +00:00
  • f824136f6b gzip cleanup part #4 Denis Vlasenko 2007-01-07 19:38:42 +00:00
  • ed0f6db35e gzip cleanup part #3 Denis Vlasenko 2007-01-07 19:38:26 +00:00
  • 30551fd6da gzip cleanup part #2 Denis Vlasenko 2007-01-07 19:38:06 +00:00
  • 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. Denis Vlasenko 2007-01-07 19:37:42 +00:00
  • 88e2b1cb62 I *always* forgotting svn add Denis Vlasenko 2007-01-07 19:35:11 +00:00
  • 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 Bernhard Reutner-Fischer 2007-01-07 15:56:09 +00:00
  • 5568b722d4 - a few minor tweaks Bernhard Reutner-Fischer 2007-01-07 15:53:18 +00:00
  • 70722ec4ce - pull taskset.tests from the busybox_scratch branch Bernhard Reutner-Fischer 2007-01-07 15:19:34 +00:00
  • f0b71c19ae - add arp to defconfig Bernhard Reutner-Fischer 2007-01-07 12:18:59 +00:00
  • fa85b86f38 add arp applet - thanks to "Eric Spakman" <E.Spakman@inter.nl.net> Denis Vlasenko 2007-01-07 01:24:12 +00:00
  • b05955e0a5 work around gcc's false warning Denis Vlasenko 2007-01-07 00:24:49 +00:00
  • 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 Denis Vlasenko 2007-01-07 00:21:41 +00:00
  • 8a820b2732 syslogs: a bit better wording in explanation how buffering is allocated Denis Vlasenko 2007-01-06 22:08:53 +00:00
  • ea9e35f5dd - minor shrinkage: -25 bytes or so. Bernhard Reutner-Fischer 2007-01-06 21:47:09 +00:00
  • 3697a829de "kernel" => "busybox" Denis Vlasenko 2007-01-06 10:31:45 +00:00
  • da98165ad6 kill unused variable Denis Vlasenko 2007-01-06 01:27:24 +00:00
  • 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 Denis Vlasenko 2007-01-06 00:03:11 +00:00
  • d1a19affeb split inflate_xx_setup() subroutines from inflate_xx() Denis Vlasenko 2007-01-05 23:58:45 +00:00
  • cd42cb8df0 do not expose internal state of [g]zip unpacker. fix memory leak in inflate_gunzip. Denis Vlasenko 2007-01-05 23:56:53 +00:00
  • 447b543eaf Stopped doing assignments inside expressions. Who wrote this gem, I wonder? Denis Vlasenko 2007-01-05 19:49:02 +00:00
  • cc33ef12d2 decompress_unzip: preparatory patch Denis Vlasenko 2007-01-05 19:46:04 +00:00
  • 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! Denis Vlasenko 2007-01-05 14:04:47 +00:00
  • 98b8e9487d simplify access to buffer, making code a bit smaller Denis Vlasenko 2007-01-05 13:59:05 +00:00
  • 89d49a4236 - remove duplicate includes Bernhard Reutner-Fischer 2007-01-04 22:13:25 +00:00
  • 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 Denis Vlasenko 2007-01-04 21:22:11 +00:00