035ef5659e
Patch from Garrett Kajmowicz to move a lot of #defines into the header file.
Rob Landley
2006-05-03 20:05:18 +00:00
2584e9b39f
Remove HDIO_GETGEO_BIG which is dead (removed from 2.6) and was pointless back in 2.4 (it fetched the same hd_geometry struct only with uint cylinders instead of ushort cylinders: nothing that big has ever accurately reported gemoetry, it's all LBA.
Rob Landley
2006-05-03 20:00:00 +00:00
0f0b645f73
Use ATTRIBUTE_NORETURN as suggested by tito, plus a few in-passing cleanups.
Rob Landley
2006-05-03 18:28:06 +00:00
c5598177bc
Patch from Jason Schoon to add optional SIGUSR1 support to dd.
Rob Landley
2006-05-02 22:44:04 +00:00
67d5b8b5b1
Minor tweaks: remove traces of old $COMMAND environment variable.
Rob Landley
2006-05-02 21:39:04 +00:00
2631486f1b
Patch from Shaun Jackman:
Rob Landley
2006-05-02 19:46:52 +00:00
6389ff1115
Patch from tito removing obsolete code.
Rob Landley
2006-05-01 19:28:53 +00:00
c488f87953
Notes on portability, and on when #include <linux/blah> is appropriate.
Rob Landley
2006-05-01 05:26:01 +00:00
73f54702bc
Fixup a build break if ENABLE_SHOW_USAGE switched off. (Fallout from the compressed usage messages patch).
Rob Landley
2006-05-01 00:53:40 +00:00
3ea66a805d
Patches from Denis Vlasenko to rework "current_name" handling and remove print_current_name().
Rob Landley
2006-04-29 20:08:40 +00:00
8a6254994c
Patch from Denis Vlasenko: * Do not initialize globals to 0, it is done automatically * unsigned short -> uint16_t, unsigned int -> uint32_t where appropriate (did it ever work on Alphas?) * triple sync() is silly - removed * check_zone_nr uses check_zone_nr2 now * remove trailing periods from messages, uppercase first letter
Rob Landley
2006-04-29 20:05:17 +00:00
9950cab8e0
Patch from Denis Vlasenko: ix bug (inode_map and zone_map are char* pointers, sizeof() on them gives 4 or 8)
Rob Landley
2006-04-29 20:03:54 +00:00
5bc3f05a23
Remove some unused code pointed out by Tito, plus a slightly more graceful way of handling endianness.
Rob Landley
2006-04-29 19:11:24 +00:00
a3e4f38f7b
Style fixes from Denis Vlasenko.
Rob Landley
2006-04-29 16:06:31 +00:00
5f8b5ecda2
Another patch from Denis Vlasenko: Make hdparm smaller: * Make bb_ioctl return the status * Replace ioctl with bb_ioctl in a few places * Add bb_ioctl_alt, use where appropriate (four places) * unsigned char args1[4+512] = {WIN_IDENTIFY,0,0,1,}; ate 0.5k of rodata, fix that
Rob Landley
2006-04-29 16:03:40 +00:00
e5b281f89e
From Dennis Vlasenko, Make hdparm smaller: * Use combined no_scsi_no_xt() * Have common unsigned char args[4] = {WIN_SETFEATURES,0,0,0};
Rob Landley
2006-04-29 15:49:18 +00:00
2e2d752d49
Cleanup to hdparm by tito.
Rob Landley
2006-04-29 15:23:33 +00:00
2514042661
termios.h is already included so dont include sys/termios.h as well
Mike Frysinger
2006-04-29 04:45:22 +00:00
02fe81033f
detect more obsolete headers
Mike Frysinger
2006-04-29 04:44:08 +00:00
59c6baedf7
just include fcntl.h not sys/fcntl.h
Mike Frysinger
2006-04-29 04:43:50 +00:00
706f8f6de5
just include fcntl.h not sys/fcntl.h
Mike Frysinger
2006-04-29 04:43:31 +00:00
f054be12de
Rob Sullivan writes: rewrite the regex handling to improve stability
Mike Frysinger
2006-04-29 04:21:10 +00:00
12ef09b818
compile.h is incorrect; create a new do_link.h and use that for bb_mkdep and usage
Mike Frysinger
2006-04-29 04:19:10 +00:00
fe6bb3853c
use pretty output for scripts/bb_mkdep and scripts/usage
Mike Frysinger
2006-04-29 04:12:36 +00:00
3737c03630
- rerun gcse pass after reload, enable whole-program iff we are not building the lib (due to bug in gcc; see comment.) I would have run the testsuite to check if everything is still behaving, but unfortunately i cannot run the testsuite anymore: it just sits there and does nothing even with a pristine checkout and an old gcc. srcdir=/tmp/busybox/testsuite /tmp/busybox/testsuite/runtest PASS: Applet order FAIL: Common typos PASS: Obsolete function usage PASS: Obsolete function usage <spins, ^C> make[1]: *** [check] Interrupt make: *** [check] Interrupt
Bernhard Reutner-Fischer
2006-04-28 20:02:29 +00:00
15545b1db9
- print "Obsolet headers" instead of "Obsolete function usage" when checking for obsolet includes.
Bernhard Reutner-Fischer
2006-04-28 19:53:48 +00:00
a2d9a1752c
More usage.h cleanups, with collateral changes to httpd. Specifically, most of our CONFIG entries switch stuff on instead of off when enabled, so fix the gratuitously reversed INETD thing.
Rob Landley
2006-04-28 19:38:04 +00:00
0e6a3e14e4
Patch from tito to update output of hdparm.
Rob Landley
2006-04-28 01:33:30 +00:00
7e21d5f6b1
Patch from Dennis Vlasenko to add the option to compress help text.
Rob Landley
2006-04-27 23:34:46 +00:00
d5b9428bb6
Re-wordwrap the new tests, and fix seq.c to pass them.
Rob Landley
2006-04-27 22:36:32 +00:00
a345dc855f
- add two regression tests for seq. "seq two arguments equal, arbitrary negative step" fails but should pass..
Bernhard Reutner-Fischer
2006-04-27 13:46:56 +00:00
fc477f4bc6
- add note about crond
Bernhard Reutner-Fischer
2006-04-26 19:40:15 +00:00
06a81d368e
- patch from Denis Vlasenko to make sizes PHONY and to add objsizes which prints the sizes of the individual object files.
Bernhard Reutner-Fischer
2006-04-26 10:10:25 +00:00
5fe8d5b9c5
Convert a chunk of usage.h to USE_ and SKIP_ (more to do there), and fix a DEFALT typo in du while I was there.
Rob Landley
2006-04-25 22:40:53 +00:00
7818a422bc
Portability tweak from Shaun Jackman, don't include asm/page.h directly.
Rob Landley
2006-04-25 18:42:23 +00:00
997650b972
From Denis Vlasenko: * CPU% = process[i].ticks/sum(process[i].ticks) * busy_cpu_ticks/total_cpu_ticks * got rid of empty line under "Load average" line and used last line - +2 visible processes * do not do float conversion of loadavg, just read it as string from /proc * fix display on small screens * dropped unused .stime, .utime fields * a few variables were renamed * style fixes
Rob Landley
2006-04-24 23:13:46 +00:00
56fbd21fa7
- return ret so we return something meaningful.
Bernhard Reutner-Fischer
2006-04-24 17:41:29 +00:00
70cbb6e026
Jason Schoon writes: Attached is a patch to display the usage message if fuser is called with no arguments, rather than doing no work and failing silently.
Mike Frysinger
2006-04-21 22:04:05 +00:00
10f55b1dae
Jason Schoon writes: This makes the case where LFS is not defined, but fdisk is configured with large disk support use the pretty build rules.
Mike Frysinger
2006-04-21 21:59:22 +00:00
586ea61284
2006-04-20 Shaun Jackman <sjackman@gmail.com> * Makefile: Build a bFLT binary. * Rules.mak: Ditto.
Mike Frysinger
2006-04-21 01:18:07 +00:00
791976490b
- passwd doesnt use salt with md5 passwords; bug #604 thanks taviso
Ned Ludd
2006-04-21 00:40:35 +00:00
f162183527
kill signed warnings
Mike Frysinger
2006-04-20 04:00:11 +00:00
998dbee6d9
Patch from Jean Wolter:
Rob Landley
2006-04-19 22:22:06 +00:00
5076eb4af9
svn 14824 broke -funsigned-char and possibly building out of tree, because $(srcdir) can't bind early since it's set to a different value in each subdir. If it binds early, it's blank, hence an empty -I which eats the next option as a directory to look for #include files in.
Rob Landley
2006-04-19 20:32:27 +00:00
856489b63c
New applet cksum, from Rob Sullivan.
Rob Landley
2006-04-18 20:57:28 +00:00
bbd50b58ea
Remove some #if 0 code.
Rob Landley
2006-04-18 20:42:39 +00:00
e4386342b4
Simplify the GPL boilerplate.
Rob Landley
2006-04-18 20:41:51 +00:00
18260d5099
- typo: s/derefernce/dereference/g Thanks to P.J. Day.
Bernhard Reutner-Fischer
2006-04-18 14:17:49 +00:00
0c013f5fc7
- commentary typo and superfluous whitespace removal in weird messages.
Bernhard Reutner-Fischer
2006-04-18 12:46:56 +00:00
38fc692e38
- improve wording in some help texts a little bit.
Bernhard Reutner-Fischer
2006-04-18 11:21:07 +00:00
074fe347b7
- add typo s/deamon/daemon/g
Bernhard Reutner-Fischer
2006-04-18 11:15:19 +00:00
ea46f456d4
- patch from P.J. Day to rely on the automatic indenting provided by depends.
Bernhard Reutner-Fischer
2006-04-18 11:11:40 +00:00
ba31d27249
- enable dumpleases applet again; bad rob
Bernhard Reutner-Fischer
2006-04-18 10:04:08 +00:00
9b68dbd878
- add grep for typo s/algorithic/algorithmic/g
Bernhard Reutner-Fischer
2006-04-18 08:44:19 +00:00
54f75ee300
- BusyBox is under GPL. in http://www.busybox.net/lists/busybox/2006-April/020364.html Denis Vlasenko said when asked which license to use for these files: "Sure. LGPL or GPL is fine with me." Adjusting accordingly.
Bernhard Reutner-Fischer
2006-04-18 08:24:13 +00:00
2949577981
- simplify config options of the ip applet.
Bernhard Reutner-Fischer
2006-04-18 08:11:37 +00:00
a2e98043d5
From Rob Sullivan: Fix a segfault with searching, plus some cleanups.
Rob Landley
2006-04-18 01:53:41 +00:00
29ba9796be
Robert Eggers noticed that nfsmount would sometimes incorrectly return success.
Rob Landley
2006-04-17 23:02:57 +00:00
0edbad1a7c
Glenn gave permission for GPLv2 "or later".
Rob Landley
2006-04-17 22:49:30 +00:00
026147a48f
Patch from Tito to fix printing null and make output look like hdparm 6.3.
Rob Landley
2006-04-17 22:29:13 +00:00
8b1f11da52
Remove a superfluous quote and more non-generic standalone code.
Rob Landley
2006-04-17 21:49:34 +00:00
559f7d8e92
Elf dynamic linker stuff from Rich Felker.
Rob Landley
2006-04-17 21:47:03 +00:00
5c16988910
enable udhcp applets again; bad rob
Mike Frysinger
2006-04-17 02:00:49 +00:00
20c22e0883
just use the stack to kill memleak and return if user didnt give us anything to match
Mike Frysinger
2006-04-16 21:41:00 +00:00
bf2d9905ca
use xmalloc, dont hardcode length of string, and get rid of pointless call to memset
Mike Frysinger
2006-04-16 21:30:47 +00:00
f8346038e9
kill off pointless malloc.h include
Mike Frysinger
2006-04-16 21:17:00 +00:00
b66c931fad
kill pointless memory.h includes
Mike Frysinger
2006-04-16 21:15:42 +00:00
d017d73399
add a check for obsolete headers
Mike Frysinger
2006-04-16 21:14:59 +00:00
af07a00082
- fix typo. Thanks to David Moberg for pointing this out.
Bernhard Reutner-Fischer
2006-04-16 20:56:03 +00:00
00d10a94f3
uncuddle if statements
Mike Frysinger
2006-04-16 20:54:19 +00:00
f284c767e5
use more boiler plate GPL notices
Mike Frysinger
2006-04-16 20:38:26 +00:00
3a2b103eea
uncuddle brackets
Mike Frysinger
2006-04-16 20:34:26 +00:00
dbd8c3b295
add some tests for common typos and for obsolete functions
Mike Frysinger
2006-04-16 06:09:46 +00:00
1a54030445
use memmove() instead of bcopy()
Mike Frysinger
2006-04-16 05:58:21 +00:00
4b7b8a58a1
touchup comment
Mike Frysinger
2006-04-16 05:55:15 +00:00
0436b9f482
use strchr() not index()
Mike Frysinger
2006-04-16 05:54:31 +00:00
78bd504947
use memcmp() not bcmp()
Mike Frysinger
2006-04-16 05:51:47 +00:00
b0a2d6c19d
Remove code for protocols we don't properly support. (Most of this could never be selected via menuconfig anyway.) If somebody wants one of these protocols, ask on the list for us to support it _properly_.
Rob Landley
2006-04-14 20:07:33 +00:00
da0dcd1050
Patch from Robert P Day to remove standalone code from httpd. (Busybox has its own make standalone planned as a general solution to this for all applets.)
Rob Landley
2006-04-14 19:46:19 +00:00
e66c7efc31
Busybox is under the GPL.
Rob Landley
2006-04-14 19:25:01 +00:00
d086b504c3
Hard wiring configuration symbol values into the code defeats the purpose of _having_ configuration symbol values.
Rob Landley
2006-04-14 02:32:29 +00:00
346d6d9af2
The link to Bernhard's subversion branch belongs in subversion.html (where it already is).
Rob Landley
2006-04-14 00:55:46 +00:00
2ec922eed5
Patch from Robert P Day: let menuconfig indent stuff for us, we don't have to do it in Config.in.
Rob Landley
2006-04-13 23:22:16 +00:00
6b4377f333
- remove unneeded include, use shorter boilerplate while at it and also shrink filter_accept_reject_list() a tiny bit while at it. text data bss dec hex filename 59 0 0 59 3b filter_accept_reject_list.o 62 0 0 62 3e filter_accept_reject_list.o.orig
Bernhard Reutner-Fischer
2006-04-13 13:32:16 +00:00
c2cb0f32b4
- patch from Denis Vlasenko to add and use bb_xopen3()
Bernhard Reutner-Fischer
2006-04-13 12:45:04 +00:00
34fc71f5a3
- note to think about eventually ditching vdprintf()
Bernhard Reutner-Fischer
2006-04-12 18:50:19 +00:00
d9cf7ac781
- patch from Denis Vlasenko to add and use bb_xchdir()
Bernhard Reutner-Fischer
2006-04-12 18:39:58 +00:00
67f641e75b
- patch from Denis Vlasenko to add bb_xbind() and bb_xlisten()
Bernhard Reutner-Fischer
2006-04-12 18:24:37 +00:00
2c99851181
- patch from Denis Vlasenko to add and use bb_xdaemon()
Bernhard Reutner-Fischer
2006-04-12 18:09:26 +00:00
dac7ff15b7
- patch from Denis Vlasenko to add and use bb_xsocket() and to use bb_xopen some more while at it. Also use shorter boilerplate while at it.
Bernhard Reutner-Fischer
2006-04-12 17:55:51 +00:00
fc5f318896
- use C99 %j format to print intmax. Closes bugs #802 and #743
Bernhard Reutner-Fischer
2006-04-12 08:03:11 +00:00
cb44816ba3
- add and use bb_opendir(), bb_xopendir(). text data bss dec hex filename 889445 9392 1035784 1934621 1d851d busybox.gcc-4.2.orig 889297 9392 1035784 1934473 1d8489 busybox.gcc-4.2 889009 9820 1037860 1936689 1d8d31 busybox.gcc-4.1.orig 888817 9820 1037860 1936497 1d8c71 busybox.gcc-4.1
Bernhard Reutner-Fischer
2006-04-12 07:35:12 +00:00
d0ea52ee04
- pin the CFLAGS to make sure that we don't have to re-evaluate the check_gcc over and over again. Makes make -j work for me..
Bernhard Reutner-Fischer
2006-04-11 20:48:24 +00:00
a23a6d7819
- include netinet/in.h for struct sockaddr_in. Closes bug #735
Bernhard Reutner-Fischer
2006-04-11 18:15:17 +00:00
e7f8a32929
- httpd in inetd mode: POST from IE (6) ends up in 'cannot display page' Closes#827
Bernhard Reutner-Fischer
2006-04-11 13:51:50 +00:00
cc295fb261
- comment out the check-referer lines.
Bernhard Reutner-Fischer
2006-04-11 08:55:19 +00:00
e0e9886c19
- we seem to use h3, so make it consistent.
Bernhard Reutner-Fischer
2006-04-11 08:49:01 +00:00
91f604771b
- update screenshot to reflect the busybox-1.1.2 stable release.
Bernhard Reutner-Fischer
2006-04-11 08:42:58 +00:00